eslint-plugin-react-hooks
7.1.1 · 17 Apr 2026MIT116.1M / weekRepositoryHomepagenpmAtom feed
Upgrading eslint-plugin-react-hooks From 2.5.1 to 7.1.1
30 releases in betweennotes for 4
Reading releases, release notes and advisories…
- 1+
- change to make
- 0
- advisories fixed
- 2+
- new
- 3+
- fixes
Counted from 4 of 30 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- breaking7.0.0
Release by release
- new
- fixed
Fix exhaustive deps bug with Flow type casting. (@jorge-cab in #35691)
- fixed
Fix
useEffectEventchecks in component syntax. (@jbrown215 in #35041)
- breaking
Removed
recommended-latest-legacyandflat/recommendedconfigs. The plugin now providesrecommended(legacy and flat configs with all recommended rules), andrecommended-latest(legacy and flat configs with all recommended rules plus new bleeding edge experimental compiler rules). (@poteto in #34757)
- breaking
3.0.0 – 6.1.126 releases, no release note
8 other lines we could not sort, mostly version bumps
- 7.1.0
Skip compilation for non-React files to improve performance. (@josephsavona in #35589)
- 7.1.0
Improved
set-state-in-effectvalidation with fewer false negatives. (@jorge-cab in #35134, @josephsavona in #35147, @jackpope in #35214, @chesnokov-tony in #35419, @jsleitor in #36107) - 7.1.0
Improved ref validation for non-mutating functions and event handler props. (@josephsavona in #35893, @kolvian in #35062)
- 7.1.0
Compiler now reports all errors instead of stopping at the first. (@josephsavona in #35873–#35884)
- 7.1.0
Improved source locations and error display in compiler diagnostics. (@nathanmarks in #35348, @josephsavona in #34963)
- 7.0.1
Disallowed passing inline
useEffectEventvalues as JSX props to guard against accidental propagation. - 7.0.1
Switch to
export =so eslint-plugin-react-hooks emits correct types for consumers in Node16 ESM projects. - 7.0.1
Tightened the typing of
configs.flatso theconfigsexport is always defined.