chore(deps): update dependency eslint-plugin-react-hooks to v7
This MR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| eslint-plugin-react-hooks (source) | ^5.2.0 -> ^7.0.0 |
Release Notes
facebook/react (eslint-plugin-react-hooks)
v7.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)
v7.0.0
This release slims down presets to just 2 configurations (recommended and recommended-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). (@poteto in #34757)
v6.1.1
Note: 6.1.0 accidentally allowed use of recommended without flat config, causing errors when used with ESLint v9's defineConfig() 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. (@poteto in #34700) - Add
recommended-latestandrecommended-latest-legacyconfigs that include React Compiler rules. (@poteto in #34675) - Remove unused
NoUnusedOptOutDirectivesrule. (@poteto in #34703) - Remove
hermes-parserand dependency. (@poteto in #34719) - Remove
@babel/plugin-proposal-private-methodsdependency. (@ArnaudBarre and @josephsavona in #34715) - Update for Zod v3/v4 compatibility. (@kolian and @josephsavona in #34717)
v6.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. (@michaelfaith in #32458)
-
Breaking: Flat config is now the default
recommendedpreset. Legacy config moved torecommended-legacy. (@michaelfaith in #32457) -
New Violations: Disallow calling
usewithin try/catch blocks. (@poteto in #34040) -
New Violations: Disallow calling
useEffectEventfunctions in arbitrary closures. (@jbrown215 in #33544) - Handle
React.useEffectin addition touseEffectin rules-of-hooks. (@Ayc0 in #34076) - Added
react-hookssettings config option that to acceptadditionalEffectHooksthat are used across exhaustive-deps and rules-of-hooks rules. (@jbrown215) in #34497
v6.0.0
Accidentally released. See 6.1.0 for the actual changes.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.