by React team · eslint-plugin-react-hooks
The Rules of Hooks, exhaustive dependencies and the React Compiler checks maintained by the React team.
npm install -D eslint eslint-plugin-react-hooks// eslint.config.js
import reactHooks from "eslint-plugin-react-hooks";
export default [
reactHooks.configs.flat.recommended,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| react-hooks/exhaustive-deps In ESLint, Oxlint, Biome201.1M reach · +35.3% | warn | In ESLint, Oxlint, Biome | 201.1M | +35.3% |
| react-hooks/rules-of-hooks In ESLint, Oxlint, Biome201.1M reach · +35.3% | error | In ESLint, Oxlint, Biome | 201.1M | +35.3% |
| react-hooks/error-boundaries In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/globals In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/immutability In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/incompatible-library In ESLint, Oxlint165.2M reach · +28.2% | warn | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/preserve-manual-memoization In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/purity In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/refs In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/set-state-in-effect In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/set-state-in-render In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/static-components In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/unsupported-syntax In ESLint, Oxlint165.2M reach · +28.2% | warn | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/use-memo In ESLint, Oxlint165.2M reach · +28.2% | error | In ESLint, Oxlint | 165.2M | +28.2% |
| react-hooks/config In ESLint165.2M reach · +28.2% | error | In ESLint | 165.2M | +28.2% |
| react-hooks/gating In ESLint165.2M reach · +28.2% | error | In ESLint | 165.2M | +28.2% |