chore(deps-dev): bump eslint-plugin-react-hooks from 5.2.0 to 7.1.1
Bumps eslint-plugin-react-hooks from 5.2.0 to 7.1.1.
Release notes
Sourced from eslint-plugin-react-hooks's releases.
[email protected] (April 17, 2026)
Note: 7.1.0 accidentally removed the
component-hook-factoriesrule, causing errors for users who referenced it in their ESLint config. This is now fixed.
- Add deprecated no-op
component-hook-factoriesrule for backwards compatibility. (@mofeiZin #36307)[email protected] (April 16, 2026)
This release adds ESLint v10 support, improves performance by skipping compilation for non-React files, and includes compiler lint improvements including better
set-state-in-effectdetection, improved ref validation, and more helpful error reporting.
- Add ESLint v10 support. (
@azat-ioin #35720)- Skip compilation for non-React files to improve performance. (
@josephsavonain #35589)- Fix exhaustive deps bug with Flow type casting. (
@jorge-cabin #35691)- Fix
useEffectEventchecks in component syntax. (@jbrown215in #35041)- Improved
set-state-in-effectvalidation with fewer false negatives. (@jorge-cabin #35134,@josephsavonain #35147,@jackpopein #35214,@chesnokov-tonyin #35419,@jsleitorin #36107)- Improved ref validation for non-mutating functions and event handler props. (
@josephsavonain #35893,@kolvianin #35062)- Compiler now reports all errors instead of stopping at the first. (
@josephsavonain #35873–#35884)- Improved source locations and error display in compiler diagnostics. (
@nathanmarksin #35348,@josephsavonain #34963)
Changelog
Sourced from eslint-plugin-react-hooks's changelog.
7.1.1
Note: 7.1.0 accidentally removed the
component-hook-factoriesrule, causing errors for users who referenced it in their ESLint config. This is now fixed.
- Add deprecated no-op
component-hook-factoriesrule for backwards compatibility. (@mofeiZin #36307)7.1.0
This release adds ESLint v10 support, improves performance by skipping compilation for non-React files, and includes compiler lint improvements including better
set-state-in-effectdetection, improved ref validation, and more helpful error reporting.
- Add ESLint v10 support. (
@azat-ioin #35720)- Skip compilation for non-React files to improve performance. (
@josephsavonain #35589)- Fix exhaustive deps bug with Flow type casting. (
@jorge-cabin #35691)- Fix
useEffectEventchecks in component syntax. (@jbrown215in #35041)- Improved
set-state-in-effectvalidation with fewer false negatives. (@jorge-cabin #35134,@josephsavonain #35147,@jackpopein #35214,@chesnokov-tonyin #35419,@jsleitorin #36107)- Improved ref validation for non-mutating functions and event handler props. (
@josephsavonain #35893,@kolvianin #35062)- Compiler now reports all errors instead of stopping at the first. (
@josephsavonain #35873–#35884)- Improved source locations and error display in compiler diagnostics. (
@nathanmarksin #35348,@josephsavonain #34963)7.0.1
- Disallowed passing inline
useEffectEventvalues as JSX props to guard against accidental propagation. (#34820 by@jf-eirinha)- Switch to
export =so eslint-plugin-react-hooks emits correct types for consumers in Node16 ESM projects. (#34949 by@karlhorky)- Tightened the typing of
configs.flatso theconfigsexport is always defined. (#34950 by@poteto)- Fix named import runtime errors. (#34951, #34953 by
@karlhorky)7.0.0
This release slims down presets to just 2 configurations (
recommendedandrecommended-latest), and all compiler rules are enabled by default.
- 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). (@potetoin #34757)6.1.1
Note: 6.1.0 accidentally allowed use of
recommendedwithout flat config, causing errors when used with ESLint v9'sdefineConfig()helper. This has been fixed in 6.1.1.
- Fix
recommendedconfig for flat config compatibility. Therecommendedconfig has been converted to flat config format. Non-flat config users should userecommended-legacyinstead. (@potetoin #34700)- Add
recommended-latestandrecommended-latest-legacyconfigs that include React Compiler rules. (@potetoin #34675)- Remove unused
NoUnusedOptOutDirectivesrule. (@potetoin #34703)- Remove
hermes-parserand dependency. (@potetoin #34719)- Remove
@babel/plugin-proposal-private-methodsdependency. (@ArnaudBarreand@josephsavonain #34715)- Update for Zod v3/v4 compatibility. (
@kolianand@josephsavonain #34717)6.1.0
Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.
- Breaking: Require Node.js 18 or newer. (
@michaelfaithin #32458)- Breaking: Flat config is now the default
recommendedpreset. Legacy config moved torecommended-legacy. (@michaelfaithin #32457)- New Violations: Disallow calling
usewithin try/catch blocks. (@potetoin #34040)
... (truncated)
Commits
- See full diff in compare view
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| prepedge_ai | Preview, Comment | Jun 11, 2026 11:32am |