@@ -48,17 +48,13 @@ export async function react(
48
48
'react/no-leaked-conditional-rendering' : 'warn' ,
49
49
}
50
50
51
- const [
52
- pluginReact ,
53
- pluginReactHooks ,
54
- pluginReactRefresh ,
55
- pluginReactCompiler ,
56
- ] = await Promise . all ( [
57
- interopDefault ( import ( '@eslint-react/eslint-plugin' ) ) ,
58
- interopDefault ( import ( 'eslint-plugin-react-hooks' ) ) ,
59
- interopDefault ( import ( 'eslint-plugin-react-refresh' ) ) ,
60
- interopDefault ( import ( 'eslint-plugin-react-compiler' ) ) ,
61
- ] as const )
51
+ const [ pluginReact , pluginReactHooks , pluginReactRefresh ] = await Promise . all (
52
+ [
53
+ interopDefault ( import ( '@eslint-react/eslint-plugin' ) ) ,
54
+ interopDefault ( import ( 'eslint-plugin-react-hooks' ) ) ,
55
+ interopDefault ( import ( 'eslint-plugin-react-refresh' ) ) ,
56
+ ] as const ,
57
+ )
62
58
63
59
const plugins = pluginReact . configs . all . plugins
64
60
@@ -67,7 +63,6 @@ export async function react(
67
63
name : 'coderwyd/react/setup' ,
68
64
plugins : {
69
65
react : plugins [ '@eslint-react' ] ,
70
- 'react-compiler' : pluginReactCompiler ,
71
66
'react-dom' : plugins [ '@eslint-react/dom' ] ,
72
67
'react-hooks' : pluginReactHooks ,
73
68
'react-hooks-extra' : plugins [ '@eslint-react/hooks-extra' ] ,
@@ -88,8 +83,6 @@ export async function react(
88
83
} ,
89
84
name : 'coderwyd/react/rules' ,
90
85
rules : {
91
- 'react-compiler/react-compiler' : 'warn' ,
92
-
93
86
// recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
94
87
'react/no-access-state-in-setstate' : 'error' ,
95
88
'react/no-array-index-key' : 'warn' ,
@@ -150,6 +143,7 @@ export async function react(
150
143
// recommended rules eslint-plugin-react-hooks https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks/src/rules
151
144
'react-hooks/exhaustive-deps' : 'warn' ,
152
145
'react-hooks/rules-of-hooks' : 'error' ,
146
+ 'react-hooks/react-compiler' : 'warn' ,
153
147
154
148
// recommended rules from eslint-plugin-react-hooks-extra https://eslint-react.xyz/docs/rules/overview#hooks-extra-rules
155
149
'react-hooks-extra/no-direct-set-state-in-use-effect' : 'warn' ,
0 commit comments