chore(eslint): update to 'eslint-plugin-react-hooks@6.0.0-rc.1', remove 'eslint-plugin-react-compiler' (#3122)

This commit is contained in:
Wonsuk Choi 2025-05-17 14:13:12 +09:00 committed by GitHub
parent 14feb61c7e
commit 9a58ca9c95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 34 additions and 41 deletions

View File

@ -3,7 +3,6 @@ import vitest from '@vitest/eslint-plugin'
import importPlugin from 'eslint-plugin-import'
import jestDom from 'eslint-plugin-jest-dom'
import react from 'eslint-plugin-react'
import reactCompiler from 'eslint-plugin-react-compiler'
import reactHooks from 'eslint-plugin-react-hooks'
import testingLibrary from 'eslint-plugin-testing-library'
import tseslint from 'typescript-eslint'
@ -17,8 +16,7 @@ export default tseslint.config(
tseslint.configs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
reactHooks.configs['recommended-latest'],
reactCompiler.configs.recommended,
reactHooks.configs.recommended,
{
settings: {
react: {
@ -72,6 +70,7 @@ export default tseslint.config(
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'react-hooks/react-compiler': 'error',
},
},
{

View File

@ -137,8 +137,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-compiler": "19.1.0-rc.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-hooks": "6.0.0-rc.1",
"eslint-plugin-testing-library": "^7.1.1",
"immer": "^10.1.1",
"jsdom": "^26.1.0",

65
pnpm-lock.yaml generated
View File

@ -71,12 +71,9 @@ importers:
eslint-plugin-react:
specifier: ^7.37.5
version: 7.37.5(eslint@9.25.1)
eslint-plugin-react-compiler:
specifier: 19.1.0-rc.1
version: 19.1.0-rc.1(eslint@9.25.1)
eslint-plugin-react-hooks:
specifier: ^5.2.0
version: 5.2.0(eslint@9.25.1)
specifier: 6.0.0-rc.1
version: 6.0.0-rc.1(eslint@9.25.1)
eslint-plugin-testing-library:
specifier: ^7.1.1
version: 7.1.1(eslint@9.25.1)(typescript@5.8.3)
@ -224,10 +221,14 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
'@babel/plugin-proposal-private-methods@7.18.6':
resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==}
'@babel/parser@7.27.2':
resolution: {integrity: sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw==}
engines: {node: '>=6.0.0'}
hasBin: true
'@babel/plugin-transform-private-methods@7.27.1':
resolution: {integrity: sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==}
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
@ -1320,15 +1321,9 @@ packages:
'@testing-library/dom':
optional: true
eslint-plugin-react-compiler@19.1.0-rc.1:
resolution: {integrity: sha512-3umw5eqZXapBl7aQGmvcjheKhUbsElb9jTETxRZg371e1LG4EPs/zCHt2JzP+wNcdaZWzjU/R730zPUJblY2zw==}
engines: {node: ^14.17.0 || ^16.0.0 || >= 18.0.0}
peerDependencies:
eslint: '>=7'
eslint-plugin-react-hooks@5.2.0:
resolution: {integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==}
engines: {node: '>=10'}
eslint-plugin-react-hooks@6.0.0-rc.1:
resolution: {integrity: sha512-7C4c7bdtd/B7Q+HruZxYhGjwZVvJawvQpilEYlRG1Jncuk1ZNqrFy9bO8SJNieyj3iDh8WPQA7BzzPO7sNAyEA==}
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
@ -2577,14 +2572,14 @@ packages:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
zod-validation-error@3.4.0:
resolution: {integrity: sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ==}
zod-validation-error@3.4.1:
resolution: {integrity: sha512-1KP64yqDPQ3rupxNv7oXhf7KdhHHgaqbKuspVoiN93TT0xrBjql+Svjkdjq/Qh/7GSMmgQs3AfvBT0heE35thw==}
engines: {node: '>=18.0.0'}
peerDependencies:
zod: ^3.18.0
zod: ^3.24.4
zod@3.24.3:
resolution: {integrity: sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==}
zod@3.24.4:
resolution: {integrity: sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg==}
snapshots:
@ -2724,7 +2719,11 @@ snapshots:
dependencies:
'@babel/types': 7.27.1
'@babel/plugin-proposal-private-methods@7.18.6(@babel/core@7.27.1)':
'@babel/parser@7.27.2':
dependencies:
'@babel/types': 7.27.1
'@babel/plugin-transform-private-methods@7.27.1(@babel/core@7.27.1)':
dependencies:
'@babel/core': 7.27.1
'@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.27.1)
@ -3841,22 +3840,18 @@ snapshots:
optionalDependencies:
'@testing-library/dom': 10.4.0
eslint-plugin-react-compiler@19.1.0-rc.1(eslint@9.25.1):
eslint-plugin-react-hooks@6.0.0-rc.1(eslint@9.25.1):
dependencies:
'@babel/core': 7.27.1
'@babel/parser': 7.27.1
'@babel/plugin-proposal-private-methods': 7.18.6(@babel/core@7.27.1)
'@babel/parser': 7.27.2
'@babel/plugin-transform-private-methods': 7.27.1(@babel/core@7.27.1)
eslint: 9.25.1
hermes-parser: 0.25.1
zod: 3.24.3
zod-validation-error: 3.4.0(zod@3.24.3)
zod: 3.24.4
zod-validation-error: 3.4.1(zod@3.24.4)
transitivePeerDependencies:
- supports-color
eslint-plugin-react-hooks@5.2.0(eslint@9.25.1):
dependencies:
eslint: 9.25.1
eslint-plugin-react@7.37.5(eslint@9.25.1):
dependencies:
array-includes: 3.1.8
@ -5257,8 +5252,8 @@ snapshots:
yocto-queue@0.1.0: {}
zod-validation-error@3.4.0(zod@3.24.3):
zod-validation-error@3.4.1(zod@3.24.4):
dependencies:
zod: 3.24.3
zod: 3.24.4
zod@3.24.3: {}
zod@3.24.4: {}

View File

@ -1,5 +1,5 @@
/* eslint @typescript-eslint/no-unused-expressions: off */ // FIXME
/* eslint react-compiler/react-compiler: off */
/* eslint react-hooks/react-compiler: off */
import { describe, expect, expectTypeOf, it } from 'vitest'
import { create } from 'zustand'