{"id":19578,"library":"eslint-config-seekingalpha-base","title":"SeekingAlpha Base ESLint Config","description":"SeekingAlpha's shareable base ESLint configuration, version 11.52.0, requiring ESLint 9.39.2 and plugins import, promise, unicorn. This config enforces SeekingAlpha's JavaScript coding standards. Updated regularly with the ESLint ecosystem. Differentiators: opinionated set tuned for production codebases, strict module systems, and unicorn rule usage. Requires Node >= 24.","status":"active","version":"11.52.0","language":"javascript","source_language":"en","source_url":"https://github.com/seekingalpha/javascript","tags":["javascript","code","codelinter","policy","quality","eslint","eslintconfig","ECMAScript6","sa"],"install":[{"cmd":"npm install eslint-config-seekingalpha-base","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-seekingalpha-base","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-seekingalpha-base","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for ESLint","package":"eslint","optional":false},{"reason":"peer dependency for import rules","package":"eslint-plugin-import","optional":false},{"reason":"peer dependency for promise rules","package":"eslint-plugin-promise","optional":false},{"reason":"peer dependency for unicorn rules","package":"eslint-plugin-unicorn","optional":false}],"imports":[{"note":"ESM-only package; does not support CommonJS require().","wrong":"const baseConfig = require('eslint-config-seekingalpha-base')","symbol":"baseConfig (default import)","correct":"import baseConfig from 'eslint-config-seekingalpha-base'"},{"note":"Package uses default export only; named import will return undefined.","wrong":"import { baseConfig } from 'eslint-config-seekingalpha-base'","symbol":"baseConfig (named import - not available)","correct":"import baseConfig from 'eslint-config-seekingalpha-base'"},{"note":"The exported config is not directly usable as a flat config array; you must destructure and wrap it as shown.","wrong":"export default baseConfig","symbol":"Flat config usage (ESLint 9.x)","correct":"export default [ { plugins: baseConfig.plugins, rules: baseConfig.rules, settings: baseConfig.settings } ]"}],"quickstart":{"code":"// Install dependencies first:\n// npm install eslint@9.39.2 eslint-plugin-import@2.32.0 eslint-plugin-promise@7.2.1 eslint-plugin-unicorn@64.0.0 --save-dev\n// npm install eslint-config-seekingalpha-base@latest --save-dev\n\n// eslint.config.js\nimport baseConfig from 'eslint-config-seekingalpha-base';\n\nexport default [\n  {\n    plugins: {\n      ...baseConfig.plugins,\n    },\n    rules: {\n      ...baseConfig.rules,\n    },\n    settings: {\n      ...baseConfig.settings,\n    },\n  },\n];\n","lang":"javascript","description":"ESLint flat config setup using SeekingAlpha base config with plugin forwarding."},"warnings":[{"fix":"Migrate to eslint.config.js flat config format as shown in README.","message":"ESLint 9 (flat config) required; no longer supports .eslintrc files.","severity":"breaking","affected_versions":">=11.0.0"},{"fix":"Upgrade Node.js to version 24 or higher.","message":"Node version must be >= 24.","severity":"breaking","affected_versions":">=11.52.0"},{"fix":"Install exact specified versions to avoid rule incompatibilities.","message":"Peer dependencies must match exact versions: eslint@9.39.2, eslint-plugin-import@2.32.0, eslint-plugin-promise@7.2.1, eslint-plugin-unicorn@64.0.0.","severity":"breaking","affected_versions":">=11.52.0"},{"fix":"Use dynamic import() or switch project to ESM.","message":"CommonJS require() will fail with ERR_REQUIRE_ESM.","severity":"gotcha","affected_versions":">=11.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use import() or change project to ESM (set 'type': 'module' in package.json).","cause":"Package is ESM-only; using require() in CommonJS file.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/eslint-config-seekingalpha-base/index.js not supported."},{"fix":"npm install eslint-plugin-import@2.32.0 --save-dev","cause":"Missing or wrong version of peer dependency.","error":"ESLint couldn't find the plugin 'eslint-plugin-import'."},{"fix":"Ensure eslint-plugin-import is at exact version 2.32.0.","cause":"Plugin version mismatch with config's expected rule schema.","error":"Configuration for rule 'import/no-unresolved' is invalid."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}