by jsx-eslint · eslint-plugin-react
The recommended set from eslint-plugin-react: missing keys, unknown DOM properties, unescaped entities and similar mistakes.
pnpm add -D eslint eslint-plugin-react// eslint.config.js
import react from "eslint-plugin-react";
export default [
react.configs.flat.recommended,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| 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-danger-with-children | error | In ESLint, Oxlint, Biome | 165.3M | +46.9% |
| react/no-string-refs | error | In ESLint, Oxlint, Biome | 162.5M | +48.0% |
| react/no-children-prop | error | In ESLint, Oxlint, Biome | 161.2M | +48.4% |
| react/no-render-return-value | error | In ESLint, Oxlint, Biome | 161.2M | +48.4% |
| react/jsx-key | error | In ESLint, Oxlint, Biome | 157.9M | +49.8% |
| react/jsx-no-undef | error | In ESLint, Oxlint | 136.5M | +37.4% |
| react/no-is-mounted | error | In ESLint, Oxlint | 135.3M | +37.7% |
| react/require-render-return | error | In ESLint, Oxlint | 135.3M | +37.7% |
| react/jsx-uses-react | error | In ESLint | 132.4M | +38.7% |
| react/jsx-uses-vars | error | In ESLint | 132.4M | +38.7% |
| react/no-direct-mutation-state | error | In ESLint, Oxlint, Biome | 131.9M | +39.0% |
| react/no-find-dom-node | error | In ESLint, Oxlint | 131.2M | +39.1% |
| react/no-unescaped-entities | error | In ESLint, Oxlint | 131.2M | +39.1% |
| react/no-deprecated | error | In ESLint | 131.2M | +39.1% |
| react/display-name | error | In ESLint, Oxlint | 127.8M | +40.4% |
| react/jsx-no-target-blank | error | In ESLint, Oxlint, Biome | 118.4M | +45.5% |
| react/no-unknown-property | error | In ESLint, Oxlint, Biome | 84.3M | +33.4% |
| react/react-in-jsx-scope | error | In ESLint, Oxlint | 84.3M | +33.4% |
| react/prop-types | error | In ESLint | 84.3M | +33.4% |