Skip to content

Commit c2bfe43

Browse files
committed
bulk update eslint.config.js
1 parent e7b7716 commit c2bfe43

File tree

7 files changed

+139
-85
lines changed

7 files changed

+139
-85
lines changed

eslint.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import importPlugin from 'eslint-plugin-import';
44
import jsxA11y from 'eslint-plugin-jsx-a11y';
55
import react from 'eslint-plugin-react';
66
import reactHooks from 'eslint-plugin-react-hooks';
7-
import reactCompiler from 'eslint-plugin-react-compiler';
87

98
export default tseslint.config(
109
{ ignores: ['dist/', 'website/'] },
@@ -14,8 +13,7 @@ export default tseslint.config(
1413
jsxA11y.flatConfigs.recommended,
1514
react.configs.flat.recommended,
1615
react.configs.flat['jsx-runtime'],
17-
reactHooks.configs['recommended-latest'],
18-
reactCompiler.configs.recommended,
16+
reactHooks.configs.recommended,
1917
{
2018
settings: {
2119
'import/resolver': { typescript: true },
@@ -26,6 +24,7 @@ export default tseslint.config(
2624
'error',
2725
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
2826
],
27+
'react-hooks/react-compiler': 'error',
2928
},
3029
},
3130
);

examples/03_suspense/src/provider.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable react-compiler/react-compiler */
2-
31
import {
42
useCallback,
53
useRef,

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
"eslint-plugin-import": "^2.31.0",
7070
"eslint-plugin-jsx-a11y": "^6.10.2",
7171
"eslint-plugin-react": "^7.37.4",
72-
"eslint-plugin-react-compiler": "19.0.0-beta-decd7b8-20250118",
73-
"eslint-plugin-react-hooks": "5.2.0-canary-de1eaa26-20250124",
72+
"eslint-plugin-react-hooks": "6.0.0-rc.1",
7473
"happy-dom": "^16.7.2",
7574
"prettier": "^3.4.2",
7675
"react": "^18.3.1",

0 commit comments

Comments
 (0)