Skip to content

Commit ac0126c

Browse files
authored
chore(eslint): update to 'eslint-plugin-react-hooks@6.0.0-rc.1', remove 'eslint-plugin-react-compiler' (#1096)
1 parent 39e52af commit ac0126c

4 files changed

Lines changed: 29 additions & 38 deletions

File tree

eslint.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import vitest from '@vitest/eslint-plugin'
33
import importPlugin from 'eslint-plugin-import'
44
import jestDom from 'eslint-plugin-jest-dom'
55
import react from 'eslint-plugin-react'
6-
import reactCompiler from 'eslint-plugin-react-compiler'
76
import reactHooks from 'eslint-plugin-react-hooks'
87
import testingLibrary from 'eslint-plugin-testing-library'
98
import tseslint from 'typescript-eslint'
@@ -17,8 +16,7 @@ export default tseslint.config(
1716
tseslint.configs.recommended,
1817
react.configs.flat.recommended,
1918
react.configs.flat['jsx-runtime'],
20-
reactHooks.configs['recommended-latest'],
21-
reactCompiler.configs.recommended,
19+
reactHooks.configs.recommended,
2220
{
2321
settings: {
2422
react: {
@@ -72,6 +70,7 @@ export default tseslint.config(
7270
'warn',
7371
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
7472
],
73+
'react-hooks/react-compiler': 'error',
7574
},
7675
},
7776
{

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@
135135
"eslint-plugin-import": "^2.31.0",
136136
"eslint-plugin-jest-dom": "^5.5.0",
137137
"eslint-plugin-react": "^7.37.5",
138-
"eslint-plugin-react-compiler": "19.1.0-rc.1",
139-
"eslint-plugin-react-hooks": "^5.2.0",
138+
"eslint-plugin-react-hooks": "6.0.0-rc.1",
140139
"eslint-plugin-testing-library": "^7.1.1",
141140
"jest-leak-detector": "^29.7.0",
142141
"jsdom": "^26.1.0",

pnpm-lock.yaml

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

src/react/utils/useProxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function useProxy<T extends object>(
3838
useLayoutEffect(() => {
3939
// This is an intentional hack
4040
// It might not work with React Compiler
41-
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
41+
// eslint-disable-next-line react-hooks/react-compiler, react-hooks/exhaustive-deps
4242
isRendering = false
4343
})
4444

0 commit comments

Comments
 (0)