eslint-plugin-node weekly downloads statistics
By mysticatea (2 listings) · npm · ESLint plugins
Additional ESLint's rules for Node.js
eslint-plugin-node has 4,156,429 recorded weekly downloads on npm, an increase of 8.0% over the past 30 days, ranking #184 of 3,247 tracked listings.
About eslint-plugin-node
eslint-plugin-node
Additional ESLint's rules for Node.js
💿 Install & Usage
$ npm install --save-dev eslint eslint-plugin-node
- Requires Node.js
>=8.10.0 - Requires ESLint
>=5.16.0
Note: It recommends a use of the "engines" field of package.json. The "engines" field is used by node/no-unsupported-features/* rules.
.eslintrc.json (An example)
{
"extends": [
"eslint:recommended",
"plugin:node/recommended"
],
"parserOptions": {
// Only ESLint 6.2.0 and later support ES2020.
"ecmaVersion": 2020
},
"rules": {
"node/exports-style": ["error", "module.exports"],
"node/file-extension-in-import": ["error", "always"],
"node/prefer-global/buffer": ["error", "always"],
"node/prefer-global/console": ["error", "always"],
"node/prefer-global/process": ["error", "always"],
"node/prefer-global/url-search-params": ["error", "always"],
"node/prefer-global/url": ["error", "always"],
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "error"
}
}
package.json (An example)
{
"name": "your-module",
"version": "1.0.0",
"type": "commonjs",
"engines": {
"node": ">=8.10.0"
}
}
📖 Rules
- ⭐️ - the mark of recommended rules.
- ✒️ - the mark of fixable rules.
Possible Errors
| Rule ID | Description | |
|---|---|---|
| node/no-callback-literal | ensure Node.js-style error-first callback pattern is followed | |
| node/no-exports-assign | disallow the assignment to exports | ⭐️ |
| node/no-extraneous-import | disallow import declarations which import extraneous modules | ⭐️ |
| node/no-extraneous-require | disallow require() expressions which import extraneous modules | ⭐️ |
| node/no-missing-import | disallow import declarations which import non-existence modules | ⭐️ |
| node/no-missing-require | disallow require() expressions which import non-existence modules | ⭐️ |
| node/no-unpublished-bin | disallow bin files that npm ignores | ⭐️ |
| node/no-unpublished-import | disallow import declarations which import private modules | ⭐️ |
| node/no-unpublished-require | disallow require() expressions which import private modules | ⭐️ |
| node/no-unsupported-features/es-builtins | disallow unsupported ECMAScript built-ins on the specified version | ⭐️ |
| node/no-unsupported-features/es-syntax | disallow unsupported ECMAScript syntax on the specified version | ⭐️ |
| node/no-unsupported-features/node-builtins | disallow unsupported Node.js built-in APIs on the specified version | ⭐️ |
| node/process-exit-as-throw | make process.exit() expressions the same code path as throw | ⭐️ |
| node/shebang | suggest correct usage of shebang | ⭐️✒️ |
Best Practices
| Rule ID | Description | |
|---|---|---|
| node/no-deprecated-api | disallow deprecated APIs | ⭐️ |
Stylistic Issues
| Rule ID | Description | |
|---|---|---|
| node/exports-style | enforce either module.exports or exports | |
| node/file-extension-in-import | enforce the style of file extensions in import declarations | ✒️ |
| node/prefer-global/buffer | enforce either Buffer or require("buffer").Buffer | |
| node/prefer-global/console | enforce either console or require("console") | |
| node/prefer-global/process | enforce either process or require("process") | |
| node/prefer-global/text-decoder | enforce either TextDecoder or require("util").TextDecoder | |
| node/prefer-global/text-encoder | enforce either TextEncoder or require("util").TextEncoder | |
| node/prefer-global/url-search-params | enforce either URLSearchParams or require("url").URLSearchParams | |
| node/prefer-global/url | enforce either URL or require("url").URL | |
| node/prefer-promises/dns | enforce require("dns").promises | |
| node/prefer-promises/fs | enforce require("fs").promises |
Deprecated rules…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- node
- nodejs
- ecmascript
- shebang
- file
- path
- import
- require
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm ESLint plugins plugins
All 20 eslint-plugin-node alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-node. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.