Bump eslint-plugin-react-hooks from 6.0.0-rc.1 to 6.0.0-rc.2 (#58545)

* Bump eslint-plugin-react-hooks from 6.0.0-rc.1 to 6.0.0-rc.2

Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 6.0.0-rc.1 to 6.0.0-rc.2.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks)

---
updated-dependencies:
- dependency-name: eslint-plugin-react-hooks
  dependency-version: 6.0.0-rc.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Revert unrelated updates

* Enable new recommended rules as warnings

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
This commit is contained in:
dependabot[bot]
2025-09-05 14:02:47 +00:00
committed by GitHub
co-authored by Grzegorz Zdunek Rafał Cieślak
parent 168f329552
commit a0e55be7de
3 changed files with 28 additions and 12 deletions
+21 -6
View File
@@ -259,8 +259,8 @@ importers:
specifier: ^7.37.5
version: 7.37.5(eslint@9.34.0)
eslint-plugin-react-hooks:
specifier: 6.0.0-rc.1
version: 6.0.0-rc.1(eslint@9.34.0)
specifier: 6.0.0-rc.2
version: 6.0.0-rc.2(eslint@9.34.0)
eslint-plugin-storybook:
specifier: ^9.1.3
version: 9.1.3(eslint@9.34.0)(storybook@9.1.3(@testing-library/dom@10.1.0)(msw@2.10.1(@types/node@22.17.1)(typescript@5.9.2))(prettier@3.6.2)(vite@6.3.5(@types/node@22.17.1)(yaml@2.8.1)))(typescript@5.9.2)
@@ -680,6 +680,13 @@ packages:
peerDependencies:
'@babel/core': ^7.0.0
'@babel/plugin-proposal-private-methods@7.18.6':
resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==}
engines: {node: '>=6.9.0'}
deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
peerDependencies:
'@babel/core': ^7.0.0-0
'@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2':
resolution: {integrity: sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==}
engines: {node: '>=6.9.0'}
@@ -4201,8 +4208,8 @@ packages:
jest:
optional: true
eslint-plugin-react-hooks@6.0.0-rc.1:
resolution: {integrity: sha512-7C4c7bdtd/B7Q+HruZxYhGjwZVvJawvQpilEYlRG1Jncuk1ZNqrFy9bO8SJNieyj3iDh8WPQA7BzzPO7sNAyEA==}
eslint-plugin-react-hooks@6.0.0-rc.2:
resolution: {integrity: sha512-2cnFkQl2xld2BgKDtxLSd/JqkpZHBXZKcz+ZurfiQ7GECzMckIddJN5PZyWach3MN4h/CjwfqPigAtYxInXtuw==}
engines: {node: '>=18'}
peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
@@ -7132,6 +7139,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@babel/plugin-proposal-private-methods@7.18.6(@babel/core@7.28.3)':
dependencies:
'@babel/core': 7.28.3
'@babel/helper-create-class-features-plugin': 7.28.3(@babel/core@7.28.3)
'@babel/helper-plugin-utils': 7.27.1
transitivePeerDependencies:
- supports-color
'@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.28.3)':
dependencies:
'@babel/core': 7.28.3
@@ -11318,11 +11333,11 @@ snapshots:
- supports-color
- typescript
eslint-plugin-react-hooks@6.0.0-rc.1(eslint@9.34.0):
eslint-plugin-react-hooks@6.0.0-rc.2(eslint@9.34.0):
dependencies:
'@babel/core': 7.28.3
'@babel/parser': 7.28.3
'@babel/plugin-transform-private-methods': 7.27.1(@babel/core@7.28.3)
'@babel/plugin-proposal-private-methods': 7.18.6(@babel/core@7.28.3)
eslint: 9.34.0
hermes-parser: 0.25.1
zod: 3.25.76
+6 -5
View File
@@ -101,7 +101,6 @@ export default tseslint.config(
'unused-imports': unusedImportsPlugin,
},
rules: {
...reactHooksPlugin.configs.recommended.rules,
'@typescript-eslint/no-unused-expressions': [
'error',
{ allowShortCircuit: true, allowTernary: true, enforceForJSX: true },
@@ -151,10 +150,12 @@ export default tseslint.config(
'react/no-unescaped-entities': 'warn',
'react/jsx-key': 'warn',
'react/jsx-no-target-blank': 'warn',
'react-hooks/rules-of-hooks': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/react-compiler': 'warn',
// Enable recommended react-hooks rules as warnings.
...Object.fromEntries(
Object.entries(reactHooksPlugin.configs.recommended.rules).map(
([ruleName]) => [ruleName, 'warn']
)
),
},
},
{
+1 -1
View File
@@ -24,7 +24,7 @@
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "6.0.0-rc.1",
"eslint-plugin-react-hooks": "6.0.0-rc.2",
"eslint-plugin-storybook": "^9.1.3",
"eslint-plugin-testing-library": "7.4.0",
"eslint-plugin-unused-imports": "^4.2.0",