by Meta · @react-native/eslint-config
The config new React Native projects start with. Written for the eslintrc format.
pnpm add -D eslint @react-native/eslint-config// .eslintrc.json (legacy config format)
{
"extends": "@react-native"
}| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| eslint/no-cond-assign | warn | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-ex-assign | warn | 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 | warn | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-sparse-arrays | warn | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/use-isnan | warn | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-control-regex | warn | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-useless-escape | warn | In ESLint, Oxlint, Biome | 278.7M | +44.9% |
| eslint/no-empty-character-class | warn | In ESLint, Oxlint, Biome | 278.3M | +45.0% |
| eslint/valid-typeof | warn | In ESLint, Oxlint, Biome | 278M | +44.8% |
| eslint/no-with | warn | 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 | warn | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-obj-calls | warn | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-unreachable | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-debugger | warn | In ESLint, Oxlint, Biome | 275.4M | +45.8% |
| eslint/no-extra-boolean-cast | warn | In ESLint, Oxlint, Biome | 275.4M | +45.8% |
| eslint/no-dupe-class-members | error | In ESLint, Oxlint, Biome | 271.7M | +45.9% |
| eslint/no-delete-var | warn | In ESLint, Oxlint, Biome | 251.5M | +40.3% |
| eslint/no-invalid-regexp | warn | In ESLint, Oxlint | 250.3M | +40.3% |
| eslint/no-fallthrough | warn | In ESLint, Oxlint, Biome | 229.8M | +30.9% |
| eslint/no-regex-spaces | warn | In ESLint, Oxlint, Biome | 229.8M | +30.9% |
| eslint/no-octal | warn | In ESLint, Biome | 229.7M | +30.9% |
| react-hooks/exhaustive-deps | error | In ESLint, Oxlint, Biome | 199.8M | +35.4% |
| react-hooks/rules-of-hooks | error | In ESLint, Oxlint, Biome | 199.8M | +35.4% |
| typescript/no-unused-vars | error | In ESLint, Biome | 184.2M | +27.9% |
| react/jsx-no-comment-textnodes | error | In ESLint, Oxlint, Biome | 166.5M | +46.5% |
| react/jsx-no-duplicate-props | error | In ESLint, Oxlint, Biome | 166.5M | +46.5% |
| react/no-string-refs | error | In ESLint, Oxlint, Biome | 162.5M | +48.0% |
| react/jsx-no-undef | error | In ESLint, Oxlint | 136.5M | +37.4% |
| react/jsx-uses-react | warn | In ESLint | 132.4M | +38.7% |
| react/jsx-uses-vars | warn | In ESLint | 132.4M | +38.7% |
| eslint/no-caller | warn | In ESLint, Oxlint, Biome | 100.4M | +97.3% |
| eslint/no-eval | error | In ESLint, Oxlint, Biome | 99.7M | +98.1% |
| eslint/no-iterator | warn | In ESLint, Oxlint | 71.7M | +94.8% |
| eslint/eqeqeq | warn | In ESLint, Oxlint, Biome | 50.5M | +50.5% |
| eslint/no-self-compare | warn | In ESLint, Oxlint, Biome | 50M | +51.2% |
| eslint/no-sequences | warn | In ESLint, Oxlint, Biome | 50M | +51.2% |
| eslint/no-octal-escape | warn | In ESLint, Biome | 50M | +51.2% |
| eslint/no-implied-eval | warn | In ESLint, Oxlint, Biome | 49.8M | +51.3% |
| eslint/no-labels | warn | In ESLint, Oxlint, Biome | 49.2M | +51.2% |
| eslint/no-lone-blocks | warn | In ESLint, Oxlint, Biome | 49.2M | +51.2% |
| jest/no-focused-tests | warn | In ESLint, Oxlint, Biome | 47.9M | +56.3% |
| jest/no-identical-title | warn | In ESLint, Oxlint, Biome | 47.9M | +56.3% |
| eslint/no-proto | warn | In ESLint, Oxlint, Biome | 45.9M | +57.4% |
| eslint/no-script-url | warn | In ESLint, Oxlint, Biome | 45.8M | +54.9% |
| eslint/no-undef-init | warn | In ESLint, Biome | 45.8M | +57.5% |
| eslint/no-label-var | warn | In ESLint, Oxlint, Biome | 45.6M | +54.9% |
| eslint/dot-notation | warn | In ESLint, Biome | 45M | +58.6% |
| eslint/no-array-constructor | warn | In ESLint, Oxlint, Biome | 44.9M | +58.0% |
| eslint/radix | warn | In ESLint, Oxlint, Biome | 41.8M | +62.5% |
| eslint/no-new-wrappers | warn | In ESLint, Oxlint, Biome | 22.6M | +12.7% |
| eslint/no-extend-native | warn | In ESLint, Oxlint, Biome | 22.6M | +12.7% |
| eslint/no-extra-bind | warn | In ESLint, Oxlint, Biome | 22.6M | +12.7% |
| eslint/no-new-func | error | In ESLint, Oxlint, Biome | 22M | +12.5% |
| eslint/no-new-object | warn | In ESLint, Biome | 19M | +5.4% |
| eslint/no-new | warn | In ESLint, Oxlint, Biome | 17.9M | +14.5% |
| eslint/yoda | warn | In ESLint, Oxlint, Biome | 17.9M | +14.5% |
| jest/no-disabled-tests | warn | In ESLint, Oxlint, Biome | 17.9M | +9.6% |
| jest/valid-expect | warn | In ESLint, Oxlint | 17.9M | +9.6% |
| eslint/no-return-assign | warn | In ESLint, Oxlint, Biome | 17.2M | +13.3% |
| eslint/no-void | warn | In ESLint, Oxlint, Biome | 17.2M | +13.3% |
| eslint/no-alert | warn | In ESLint, Oxlint, Biome | 13.7M | +12.9% |
| eslint/no-bitwise | warn | In ESLint, Oxlint, Biome | 13.6M | +12.6% |
| eslint/no-new-require | warn | In ESLint, Biome | 11.1M | +3.1% |
| eslint/no-path-concat | warn | In ESLint | 11.1M | +3.1% |
| react/self-closing-comp | warn | In ESLint, Oxlint, Biome | 6.7M | +26.4% |
| react/no-did-update-set-state | warn | In ESLint, Oxlint | 4.6M | +3.9% |
| react/no-unstable-nested-components | warn | In ESLint, Oxlint | 4.6M | +3.9% |
| typescript/no-shadow | warn | In ESLint, Biome | 3.5M | +2.6% |
| eslint/no-div-regex | warn | In ESLint, Oxlint, Biome | 3.2M | +67.2% |
| eslint/no-catch-shadow | warn | In ESLint, Biome | 3.2M | +67.2% |
| eslint/consistent-this | warn | In ESLint | 1.4M | +10.5% |
| eslint/no-negated-in-lhs | warn | In ESLint, Biome | 1.2M | +7.6% |
| react/no-did-mount-set-state | warn | In ESLint, Oxlint | 1.2M | +7.6% |
| eslint/handle-callback-err | warn | In ESLint | 1.2M | +7.6% |
| eslint/no-mixed-requires | warn | In ESLint | 1.2M | +7.6% |
| eslint/no-restricted-modules | warn | In ESLint | 1.2M | +7.6% |