Skip to content

Commit 2fcf6e6

Browse files
chore(deps): update dependency eslint-plugin-react-hooks to v6 (#7795)
> [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07. <hr> This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [eslint-plugin-react-hooks](https://react.dev/) ([source](https://redirect.github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks)) | [`5.2.0` -> `6.1.1`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/5.2.0/6.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-react-hooks/6.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-react-hooks/5.2.0/6.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>facebook/react (eslint-plugin-react-hooks)</summary> ### [`v6.1.1`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#611) [Compare Source](https://redirect.github.com/facebook/react/compare/861811347b8fa936b4a114fc022db9b8253b3d86...a2329c10ffc153303ad5a65b99d91d8500ceabdd) **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 `recommended` config for flat config compatibility. The `recommended` config has been converted to flat config format. Non-flat config users should use `recommended-legacy` instead. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34700](https://redirect.github.com/facebook/react/pull/34700)) - Add `recommended-latest` and `recommended-latest-legacy` configs that include React Compiler rules. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34675](https://redirect.github.com/facebook/react/pull/34675)) - Remove unused `NoUnusedOptOutDirectives` rule. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34703](https://redirect.github.com/facebook/react/pull/34703)) - Remove `hermes-parser` and dependency. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34719](https://redirect.github.com/facebook/react/pull/34719)) - Remove `@babel/plugin-proposal-private-methods` dependency. ([@&#8203;ArnaudBarre](https://redirect.github.com/ArnaudBarre) and [@&#8203;josephsavona](https://redirect.github.com/josephsavona) in [#&#8203;34715](https://redirect.github.com/facebook/react/pull/34715)) - Update for Zod v3/v4 compatibility. ([@&#8203;kolian](https://redirect.github.com/kolvian) and [@&#8203;josephsavona](https://redirect.github.com/josephsavona) in [#&#8203;34717](https://redirect.github.com/facebook/react/pull/34717)) ### [`v6.1.0`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#610) [Compare Source](https://redirect.github.com/facebook/react/compare/fea92d846284bb7f4427ccbe8c16aaf85f0e2943...861811347b8fa936b4a114fc022db9b8253b3d86) **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. ([@&#8203;michaelfaith](https://redirect.github.com/michaelfaith) in [#&#8203;32458](https://redirect.github.com/facebook/react/pull/32458)) - **Breaking:** Flat config is now the default `recommended` preset. Legacy config moved to `recommended-legacy`. ([@&#8203;michaelfaith](https://redirect.github.com/michaelfaith) in [#&#8203;32457](https://redirect.github.com/facebook/react/pull/32457)) - **New Violations:** Disallow calling `use` within try/catch blocks. ([@&#8203;poteto](https://redirect.github.com/poteto) in [#&#8203;34040](https://redirect.github.com/facebook/react/pull/34040)) - **New Violations:** Disallow calling `useEffectEvent` functions in arbitrary closures. ([@&#8203;jbrown215](https://redirect.github.com/jbrown215) in [#&#8203;33544](https://redirect.github.com/facebook/react/pull/33544)) - Handle `React.useEffect` in addition to `useEffect` in rules-of-hooks. ([@&#8203;Ayc0](https://redirect.github.com/Ayc0) in [#&#8203;34076](https://redirect.github.com/facebook/react/pull/34076)) - Added `react-hooks` settings config option that to accept `additionalEffectHooks` that are used across exhaustive-deps and rules-of-hooks rules. ([@&#8203;jbrown215](https://redirect.github.com/jbrown215)) in [#&#8203;34497](https://redirect.github.com/facebook/react/pull/34497) ### [`v6.0.0`](https://redirect.github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#600) [Compare Source](https://redirect.github.com/facebook/react/compare/3607f4838a8f4a87160da36aa26bb1432d7a5f11...fea92d846284bb7f4427ccbe8c16aaf85f0e2943) Accidentally released. See 6.1.0 for the actual changes. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/UI5/webcomponents-react). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjEzMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas Harbarth <[email protected]>
1 parent eed4bda commit 2fcf6e6

File tree

11 files changed

+183
-47
lines changed

11 files changed

+183
-47
lines changed

eslint.config.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ const config = tseslint.config(
4848
reactPlugin.configs.flat.recommended, // This is not a plugin object, but a shareable config object
4949
reactPlugin.configs.flat['jsx-runtime'], // Add this if you are using React 17+
5050
// eslint-plugin-react-hooks
51-
{
52-
plugins: {
53-
'react-hooks': reactHooksPlugin,
54-
},
55-
rules: reactHooksPlugin.configs.recommended.rules,
56-
},
51+
...reactHooksPlugin.configs.recommended,
5752
{
5853
languageOptions: {
5954
globals: {

examples/react-router-ts/package-lock.json

Lines changed: 35 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/react-router-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"eslint-plugin-import": "2.32.0",
3333
"eslint-plugin-jsx-a11y": "6.10.2",
3434
"eslint-plugin-react": "7.37.5",
35-
"eslint-plugin-react-hooks": "5.2.0",
35+
"eslint-plugin-react-hooks": "6.1.1",
3636
"globals": "16.4.0",
3737
"typescript": "5.8.3",
3838
"typescript-eslint": "8.44.1",

examples/vite-ts/package-lock.json

Lines changed: 35 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/vite-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@vitejs/plugin-react": "5.0.4",
3131
"cypress": "15.2.0",
3232
"eslint": "9.36.0",
33-
"eslint-plugin-react-hooks": "5.2.0",
33+
"eslint-plugin-react-hooks": "6.1.1",
3434
"eslint-plugin-react-refresh": "0.4.23",
3535
"globals": "16.4.0",
3636
"typescript-eslint": "8.44.1",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"eslint-plugin-no-only-tests": "3.3.0",
8282
"eslint-plugin-prettier": "5.5.4",
8383
"eslint-plugin-react": "7.37.5",
84-
"eslint-plugin-react-hooks": "5.2.0",
84+
"eslint-plugin-react-hooks": "6.1.1",
8585
"eslint-plugin-storybook": "9.1.7",
8686
"glob": "11.0.3",
8787
"globals": "16.4.0",

patterns/navigation-layout/package-lock.json

Lines changed: 35 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patterns/navigation-layout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@types/react-dom": "19.1.11",
2424
"@vitejs/plugin-react": "5.0.4",
2525
"eslint": "9.36.0",
26-
"eslint-plugin-react-hooks": "5.2.0",
26+
"eslint-plugin-react-hooks": "6.1.1",
2727
"eslint-plugin-react-refresh": "0.4.23",
2828
"globals": "16.4.0",
2929
"typescript": "5.8.3",

templates/vite-ts/package-lock.json

Lines changed: 35 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/vite-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@ui5/webcomponents-cypress-commands": "2.15.0",
2828
"cypress": "15.2.0",
2929
"eslint": "9.36.0",
30-
"eslint-plugin-react-hooks": "5.2.0",
30+
"eslint-plugin-react-hooks": "6.1.1",
3131
"eslint-plugin-react-refresh": "0.4.23",
3232
"globals": "16.4.0",
3333
"typescript": "5.8.3",

0 commit comments

Comments
 (0)