Rules
info
This is an example of the RulesTable using the default eslint rules that are shipped with eslint.
Recommended
info
These are the recommended rules.
| Rule ID | Fixable | Has Suggestions |
|---|---|---|
| constructor-super | ||
| for-direction | ||
| getter-return | ||
| no-async-promise-executor | ||
| no-case-declarations | ||
| no-class-assign | ||
| no-compare-neg-zero | ||
| no-cond-assign | ||
| no-const-assign | ||
| no-constant-condition | ||
| no-control-regex | ||
| no-debugger | ||
| no-delete-var | ||
| no-dupe-args | ||
| no-dupe-class-members | ||
| no-dupe-else-if | ||
| no-dupe-keys | ||
| no-duplicate-case | ||
| no-empty-character-class | ||
| no-empty-pattern | ||
| no-empty | ✅ | |
| no-ex-assign | ||
| no-extra-boolean-cast | ✅ | |
| no-extra-semi | ✅ | |
| no-fallthrough | ||
| no-func-assign | ||
| no-global-assign | ||
| no-import-assign | ||
| no-inner-declarations | ||
| no-invalid-regexp | ||
| no-irregular-whitespace | ||
| no-loss-of-precision | ||
| no-misleading-character-class | ✅ | |
| no-mixed-spaces-and-tabs | ||
| no-new-symbol | ||
| no-nonoctal-decimal-escape | ✅ | |
| no-obj-calls | ||
| no-octal | ||
| no-prototype-builtins | ||
| no-redeclare | ||
| no-regex-spaces | ✅ | |
| no-self-assign | ||
| no-setter-return | ||
| no-shadow-restricted-names | ||
| no-sparse-arrays | ||
| no-this-before-super | ||
| no-undef | ||
| no-unexpected-multiline | ||
| no-unreachable | ||
| no-unsafe-finally | ||
| no-unsafe-negation | ✅ | |
| no-unsafe-optional-chaining | ||
| no-unused-labels | ✅ | |
| no-unused-vars | ||
| no-useless-backreference | ||
| no-useless-catch | ||
| no-useless-escape | ✅ | |
| no-with | ||
| require-yield | ||
| use-isnan | ||
| valid-typeof | ✅ |
Deprecated
danger
We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
| Rule ID | Description |
|---|---|
| callback-return | (no replacement) |
| global-require | (no replacement) |
| handle-callback-err | (no replacement) |
| id-blacklist | (no replacement) |
| indent-legacy | (no replacement) |
| lines-around-directive | (no replacement) |
| newline-after-var | (no replacement) |
| newline-before-return | (no replacement) |
| no-buffer-constructor | (no replacement) |
| no-catch-shadow | (no replacement) |
| no-mixed-requires | (no replacement) |
| no-native-reassign | (no replacement) |
| no-negated-in-lhs | (no replacement) |
| 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 | (no replacement) |
| no-sync | (no replacement) |
| prefer-reflect | (no replacement) |
| require-jsdoc | (no replacement) |
| valid-jsdoc | (no replacement) |