Skip to content

Commit cfd41f4

Browse files
authored
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#1071)
* chore(package.json): update 'eslint-plugin-react-hooks' to latest version * chore(pnpm-lock.yaml): reflect 'package.json' * chore(eslint.config.mjs): update 'eslint-plugin-react-hooks' config to use 'recommended-latest' * chore(eslint.config.mjs): update 'eslint-plugin-react-compiler' config
1 parent 75097c8 commit cfd41f4

File tree

3 files changed

+81
-55
lines changed

3 files changed

+81
-55
lines changed

eslint.config.mjs

+2-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ export default tseslint.config(
1717
tseslint.configs.recommended,
1818
react.configs.flat.recommended,
1919
react.configs.flat['jsx-runtime'],
20+
reactHooks.configs['recommended-latest'],
21+
reactCompiler.configs.recommended,
2022
{
21-
plugins: {
22-
'react-compiler': reactCompiler,
23-
'react-hooks': reactHooks,
24-
},
2523
settings: {
2624
react: {
2725
version: 'detect',
@@ -74,8 +72,6 @@ export default tseslint.config(
7472
'warn',
7573
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
7674
],
77-
'react-compiler/react-compiler': 'warn',
78-
...reactHooks.configs.recommended.rules,
7975
},
8076
},
8177
{

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"eslint-plugin-jest-dom": "^5.5.0",
129129
"eslint-plugin-react": "^7.37.4",
130130
"eslint-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
131-
"eslint-plugin-react-hooks": "^5.1.0",
131+
"eslint-plugin-react-hooks": "^5.2.0",
132132
"eslint-plugin-testing-library": "^7.1.1",
133133
"jest-leak-detector": "^29.7.0",
134134
"jsdom": "^26.0.0",

0 commit comments

Comments
 (0)