{"id":19579,"library":"eslint-config-seekingalpha-node","title":"SeekingAlpha Node.js ESLint Config","description":"SeekingAlpha's shareable ESLint config for Node.js projects, version 9.32.0. This config packages rules from eslint-plugin-n for Node.js linting. It requires ESLint 9.39.2 and eslint-plugin-n 17.24.0 as peer dependencies and is designed for flat config only. Maintained by SeekingAlpha, it enforces a specific rule set tailored for Node.js development.","status":"active","version":"9.32.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-node","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-seekingalpha-node","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-seekingalpha-node","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required","package":"eslint","optional":false},{"reason":"peer dependency providing Node.js rules","package":"eslint-plugin-n","optional":false}],"imports":[{"note":"ESM-only since v9; CommonJS require is not supported.","wrong":"const nodeConfig = require('eslint-config-seekingalpha-node')","symbol":"default","correct":"import nodeConfig from 'eslint-config-seekingalpha-node'"},{"note":"Accessing plugins property from config. CommonJS require is not supported.","wrong":"const { plugins } = require('eslint-config-seekingalpha-node')","symbol":"plugins","correct":"import nodeConfig from 'eslint-config-seekingalpha-node'; const { plugins } = nodeConfig;"},{"note":"Accessing rules property from config. CommonJS require is not supported.","wrong":"const { rules } = require('eslint-config-seekingalpha-node')","symbol":"rules","correct":"import nodeConfig from 'eslint-config-seekingalpha-node'; const { rules } = nodeConfig;"}],"quickstart":{"code":"import nodeConfig from 'eslint-config-seekingalpha-node';\n\nexport default [\n  {\n    plugins: {\n      ...nodeConfig.plugins,\n    },\n    rules: {\n      ...nodeConfig.rules,\n    },\n  },\n];","lang":"javascript","description":"This shows how to import the shareable config in ESLint flat config format, spreading plugins and rules into your own config array."},"warnings":[{"fix":"Use ESM imports (import) in eslint.config.js. Convert from .eslintrc to flat config if needed.","message":"v9 is ESM-only and requires flat config; CommonJS and legacy eslintrc format are not supported.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Upgrade to v9 and update ESLint to 9.x.","message":"v8.x is no longer maintained; upgrade to v9 for continued updates.","severity":"deprecated","affected_versions":"8.x"},{"fix":"Ensure your project uses exact versions: npm install eslint@9.39.2 eslint-plugin-n@17.24.0 --save-dev","message":"Peer dependency version requirements are strict: ESLint 9.39.2 and eslint-plugin-n 17.24.0. Installing other versions may cause conflicts.","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"If linting globals like process or __dirname, add globals: { process: 'readonly', __dirname: 'readonly' } or use the env config property if available.","message":"This config does not include any parser or environment; you may need to add parserOptions or env per your Node version.","severity":"gotcha","affected_versions":">=9.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Rename .eslintrc.cjs to eslint.config.js and use import statements.","cause":"Attempting to use require() on an ESM-only module.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/eslint-config-seekingalpha-node/index.js from /path/to/.eslintrc.cjs not supported."},{"fix":"Install the peer dependency: npm install eslint-plugin-n@17.24.0 --save-dev","cause":"Missing peer dependency eslint-plugin-n.","error":"Cannot find module 'eslint-plugin-n'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}