react/packages/eslint-plugin-react-hooks/__tests__
Jordan Brown 99efc627a5
[eslint] Add an option to require dependencies on effect hooks (#33344)
Summary:

To prepare for automatic effect dependencies, some codebases may want to
codemod
existing useEffect calls with no deps to include an explicit undefined
second argument
in order to preserve the "run on every render" behavior. In sufficiently
large codebases,
this may require a temporary enforcement period where all effects
provide an explicit
dependencies argument.

Outside of migration, relying on a component to render can lead to real
bugs,
especially when working with memoization.
2025-05-23 10:09:41 -04:00
..
ESLintRuleExhaustiveDeps-test.js [eslint] Add an option to require dependencies on effect hooks (#33344) 2025-05-23 10:09:41 -04:00
ESLintRulesOfHooks-test.js [eslint-plugin-react-hooks] updates for component syntax (#33089) 2025-05-02 15:04:45 -04:00
ReactCompilerRule-test.ts [eprh] Temporarily disable ref access in render validation (#32839) 2025-04-09 14:49:31 -04:00
ReactCompilerRuleTypescript-test.ts feat(eslint-plugin-react-hooks): merge rule from eslint-plugin-react-compiler into react-hooks plugin (#32416) 2025-03-12 21:43:06 -04:00