eslint-config-node

raw JSON →
4.1.0 verified Sat Apr 25 auth: no javascript maintenance

Pluggable ESLint config for Node.js that you can import, extend and override. Version 4.1.0 provides opinionated safety checks and best practices with a bias toward code concision. It extends eslint-config-esnext and sets the Node.js environment. Release cadence is irregular; the package has not been updated since 2019. Key differentiator: it is a superset config that errs on the side of too many rules, easily overridable.

error Error: Failed to load plugin 'eslint-plugin-node': Cannot find module 'eslint-plugin-node'
cause This config does not depend on eslint-plugin-node; it's a different package
fix
Ensure you are using eslint-config-node (not eslint-plugin-node) and check peer deps
error ESLint couldn't find the config "node" after extending from "node"
cause Missing eslint-config-node installation or incorrect config name
fix
Run 'npm install --save-dev eslint-config-node eslint@^6.0.0' and ensure extends: ['node']
breaking Requires eslint ^6.0.0; not compatible with ESLint 7+
fix Use eslint-config-node@5 for ESLint 7+ or eslint@^6.0.0
deprecated Package is no longer actively maintained; last release 2019
fix Consider alternatives like eslint-config-standard or eslint-plugin-n
gotcha eslint-config-node extends eslint-config-esnext, which may conflict with other configs
fix Override rules explicitly in your .eslintrc after extending
gotcha Rule 'no-sync' is set to warn by default, may be unexpected
fix Override rule severity in your config: 'no-sync': 'off' or 'error'
npm install eslint-config-node
yarn add eslint-config-node
pnpm add eslint-config-node

Install the config and peer dependency, then extend 'node' in your .eslintrc.

npm install --save-dev eslint-config-node eslint@^6.0.0
# Then in .eslintrc.yaml:
# extends:
#   - node
# Or in .eslintrc.json:
# { "extends": ["node"] }