[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.
J
Jordan Brown committed
99efc627a5a8cb56f50cfffee544c86c49572b6f
Parent: bfaeb4a
Committed by GitHub <noreply@github.com>
on 5/23/2025, 2:09:41 PM