Rules
Rules in ESLint are grouped by category to help you understand their purpose.
No rules are enabled by default. The "extends": "eslint:recommended"
property in a configuration file enables rules that report common problems, which have a check mark ✓ below.
The `--fix` option on the command line automatically fixes problems (currently mostly whitespace) reported by rules which have a wrench 🔧 below.
Deprecated
These rules have been deprecated in accordance with the deprecation policy, and replaced by newer rules:Deprecated rule | Replaced by |
---|---|
callback-return | (no replacement) |
global-require | (no replacement) |
handle-callback-err | (no replacement) |
id-blacklist | id-denylist |
indent-legacy | indent |
lines-around-directive | padding-line-between-statements |
newline-after-var | padding-line-between-statements |
newline-before-return | padding-line-between-statements |
no-buffer-constructor | (no replacement) |
no-catch-shadow | no-shadow |
no-mixed-requires | (no replacement) |
no-native-reassign | no-global-assign |
no-negated-in-lhs | no-unsafe-negation |
no-new-require | (no replacement) |
no-path-concat | (no replacement) |
no-process-env | (no replacement) |
no-process-exit | (no replacement) |
no-restricted-modules | (no replacement) |
no-spaced-func | func-call-spacing |
no-sync | (no replacement) |
prefer-reflect | (no replacement) |
require-jsdoc | (no replacement) |
valid-jsdoc | (no replacement) |