Logo
  • DB
  • About
  • Updates
eslint-plugin-node
Deprecated
eslint-plugin-n

Additional ESLint's rules for Node.js

❯ npm i --save-dev eslint-plugin-node
📖 README🐛 BugsGitHub LogoGitHubnpm Logonpm
🕵️‍♂️ Linter
  • 3 Configs
  • 39 Rules
GitHub LogoGitHub
  • JavaScript
  • 946 Stars
  • 18 Watchers
npm Logonpm
  • 2M Wkly Downloads
  • +46% WoW
  • 11.1.0 269 kB
📋 Requirements
  • Node: >=8.10
  • ESLint: >=5.16
🗂️ Keywords
  • coding-style
  • ecmascript
  • javascript
  • nodejs
  • npm
  • ...
ConfigurationRules
recommended14
🔴 recommended-module14
🟠 recommended-script14
RuleDescription🔧💡💭🗂️⚙️🔴🟠
callback-return

require return statements after callbacks

📖
exports-style

enforce either module.exports or exports

📖⚙️
file-extension-in-import

enforce the style of file extensions in import declarations

🔧📖⚙️
global-require

require require() calls to be placed at top-level module scope

📖
handle-callback-err

require error handling in callbacks

📖
no-callback-literal

ensure Node.js-style error-first callback pattern is followed

no-deprecated-api

disallow deprecated APIs

⚙️🔴🟠
no-exports-assign

disallow the assignment to exports

🔴🟠
no-extraneous-import

disallow import declarations which import extraneous modules

⚙️🔴🟠
no-extraneous-require

disallow require() expressions which import extraneous modules

⚙️🔴🟠
no-hide-core-modules

disallow third-party modules which are hiding core modules

⚙️
no-missing-import

disallow import declarations which import non-existence modules

⚙️🔴🟠
no-missing-require

disallow require() expressions which import non-existence modules

⚙️🔴🟠
no-mixed-requires

disallow require calls to be mixed with regular variable declarations

📖⚙️
no-new-require

disallow new operators with calls to require

📖
no-path-concat

disallow string concatenation with __dirname and __filename

📖
no-process-env

disallow the use of process.env

📖
no-process-exit

disallow the use of process.exit()

📖
no-restricted-import

disallow specified modules when loaded by require

📖⚙️
no-restricted-require

disallow specified modules when loaded by require

📖⚙️
no-sync

disallow synchronous methods

📖⚙️
no-unpublished-bin

disallow bin files that npm ignores

⚙️🔴🟠
no-unpublished-import

disallow import declarations which import private modules

⚙️🔴🟠
no-unpublished-require

disallow require() expressions which import private modules

⚙️🔴🟠
no-unsupported-features

disallow unsupported ECMAScript features on the specified version

⚙️
no-unsupported-features/es-builtins

disallow unsupported ECMAScript built-ins on the specified version

⚙️🔴🟠
no-unsupported-features/es-syntax

disallow unsupported ECMAScript syntax on the specified version

⚙️🔴🟠
no-unsupported-features/node-builtins

disallow unsupported Node.js built-in APIs on the specified version

⚙️🔴🟠
prefer-global/buffer

enforce either Buffer or require("buffer").Buffer

📖
prefer-global/console

enforce either console or require("console")

📖
prefer-global/process

enforce either process or require("process")

📖
prefer-global/text-decoder

enforce either TextDecoder or require("util").TextDecoder

📖
prefer-global/text-encoder

enforce either TextEncoder or require("util").TextEncoder

📖
prefer-global/url

enforce either URL or require("url").URL

📖
prefer-global/url-search-params

enforce either URLSearchParams or require("url").URLSearchParams

📖
prefer-promises/dns

enforce require("dns").promises

📖
prefer-promises/fs

enforce require("fs").promises

📖
process-exit-as-throw

make process.exit() expressions the same code path as throw

🔴🟠
shebang

suggest correct usage of shebang

🔧⚙️🔴🟠
© 2024 Lintbase