by ESLint · @eslint/js
The rules the ESLint team considers safe for every JavaScript project. Catches likely bugs and stays out of style debates.
pnpm add -D eslint @eslint/js// eslint.config.js
import js from "@eslint/js";
export default [
js.configs.recommended,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| eslint/no-cond-assign | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-ex-assign | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-global-assign | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-shadow-restricted-names | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-sparse-arrays | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/use-isnan | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-control-regex | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-useless-escape | error | In ESLint, Oxlint, Biome | 278.7M | +44.9% |
| eslint/no-empty-character-class | error | In ESLint, Oxlint, Biome | 278.3M | +45.0% |
| eslint/no-duplicate-case | error | In ESLint, Oxlint, Biome | 278.3M | +45.2% |
| eslint/no-empty-pattern | error | In ESLint, Oxlint, Biome | 278.3M | +45.2% |
| eslint/no-self-assign | error | In ESLint, Oxlint, Biome | 278.3M | +45.2% |
| eslint/valid-typeof | error | In ESLint, Oxlint, Biome | 278M | +44.8% |
| eslint/no-with | error | In ESLint, Oxlint, Biome | 276.9M | +45.0% |
| eslint/no-const-assign | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-dupe-keys | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-func-assign | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-obj-calls | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-unreachable | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-debugger | error | In ESLint, Oxlint, Biome | 275.4M | +45.8% |
| eslint/no-extra-boolean-cast | error | In ESLint, Oxlint, Biome | 275.4M | +45.8% |
| eslint/no-this-before-super | error | In ESLint, Oxlint, Biome | 275.4M | +45.2% |
| eslint/no-irregular-whitespace | error | In ESLint, Oxlint, Biome | 274.9M | +45.9% |
| eslint/no-unsafe-negation | error | In ESLint, Oxlint, Biome | 274.7M | +45.2% |
| eslint/no-async-promise-executor | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-compare-neg-zero | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-misleading-character-class | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-unsafe-finally | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-useless-catch | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/require-yield | error | In ESLint, Oxlint, Biome | 274.1M | +45.6% |
| eslint/no-unused-labels | error | In ESLint, Oxlint, Biome | 273.9M | +45.6% |
| eslint/no-loss-of-precision | error | In ESLint, Oxlint, Biome | 273.9M | +46.0% |
| eslint/no-constant-condition | error | In ESLint, Oxlint, Biome | 273.5M | +46.0% |
| eslint/no-useless-backreference | error | In ESLint, Oxlint, Biome | 273M | +46.1% |
| eslint/no-dupe-class-members | error | In ESLint, Oxlint, Biome | 271.7M | +45.9% |
| eslint/getter-return | error | In ESLint, Oxlint, Biome | 271.5M | +45.7% |
| eslint/constructor-super | error | In ESLint, Oxlint, Biome | 271.3M | +46.0% |
| eslint/no-unused-vars | error | In ESLint, Oxlint, Biome | 271.1M | +46.0% |
| eslint/no-class-assign | error | In ESLint, Oxlint, Biome | 271M | +46.1% |
| eslint/no-import-assign | error | In ESLint, Oxlint, Biome | 270.7M | +46.1% |
| eslint/for-direction | error | In ESLint, Oxlint, Biome | 270.1M | +46.5% |
| eslint/no-dupe-else-if | error | In ESLint, Oxlint, Biome | 270.1M | +46.5% |
| eslint/no-nonoctal-decimal-escape | error | In ESLint, Oxlint, Biome | 270M | +46.5% |
| eslint/no-unsafe-optional-chaining | error | In ESLint, Oxlint, Biome | 269.9M | +46.5% |
| eslint/no-setter-return | error | In ESLint, Oxlint, Biome | 267.4M | +46.6% |
| eslint/no-unused-private-class-members | error | In ESLint, Oxlint, Biome | 259.6M | +49.1% |
| eslint/no-delete-var | error | In ESLint, Oxlint, Biome | 251.5M | +40.3% |
| eslint/no-invalid-regexp | error | In ESLint, Oxlint | 250.3M | +40.3% |
| eslint/no-constant-binary-expression | error | In ESLint, Oxlint, Biome | 232.1M | +44.0% |
| eslint/no-empty-static-block | error | In ESLint, Oxlint, Biome | 232.1M | +44.0% |
| eslint/no-unassigned-vars | error | In ESLint, Oxlint, Biome | 231.4M | +44.2% |
| eslint/no-fallthrough | error | In ESLint, Oxlint, Biome | 229.8M | +30.9% |
| eslint/no-regex-spaces | error | In ESLint, Oxlint, Biome | 229.8M | +30.9% |
| eslint/no-octal | error | In ESLint, Biome | 229.7M | +30.9% |
| eslint/no-new-native-nonconstructor | error | In ESLint, Oxlint, Biome | 229.7M | +44.1% |
| eslint/no-dupe-args | error | In ESLint, Biome | 225M | +30.9% |
| eslint/no-case-declarations | error | In ESLint, Oxlint, Biome | 224.5M | +31.6% |
| eslint/no-prototype-builtins | error | In ESLint, Oxlint, Biome | 224.4M | +31.6% |
| eslint/no-redeclare | error | In ESLint, Oxlint, Biome | 220.8M | +31.5% |
| eslint/no-useless-assignment | error | In ESLint, Oxlint, Biome | 208.3M | +33.5% |
| eslint/no-unexpected-multiline | error | In ESLint, Oxlint | 196.5M | +25.2% |
| eslint/no-empty | error | In ESLint, Oxlint, Biome | 196.5M | +25.1% |
| eslint/no-undef | error | In ESLint, Oxlint, Biome | 192.8M | +24.9% |
| eslint/preserve-caught-error | error | In ESLint, Oxlint, Biome | 181.8M | +26.8% |