@@ -48,17 +48,13 @@ export async function react(
4848 'react/no-leaked-conditional-rendering' : 'warn' ,
4949 }
5050
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+ )
6258
6359 const plugins = pluginReact . configs . all . plugins
6460
@@ -67,7 +63,6 @@ export async function react(
6763 name : 'coderwyd/react/setup' ,
6864 plugins : {
6965 react : plugins [ '@eslint-react' ] ,
70- 'react-compiler' : pluginReactCompiler ,
7166 'react-dom' : plugins [ '@eslint-react/dom' ] ,
7267 'react-hooks' : pluginReactHooks ,
7368 'react-hooks-extra' : plugins [ '@eslint-react/hooks-extra' ] ,
@@ -88,8 +83,6 @@ export async function react(
8883 } ,
8984 name : 'coderwyd/react/rules' ,
9085 rules : {
91- 'react-compiler/react-compiler' : 'warn' ,
92-
9386 // recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
9487 'react/no-access-state-in-setstate' : 'error' ,
9588 'react/no-array-index-key' : 'warn' ,
@@ -150,6 +143,7 @@ export async function react(
150143 // recommended rules eslint-plugin-react-hooks https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks/src/rules
151144 'react-hooks/exhaustive-deps' : 'warn' ,
152145 'react-hooks/rules-of-hooks' : 'error' ,
146+ 'react-hooks/react-compiler' : 'warn' ,
153147
154148 // recommended rules from eslint-plugin-react-hooks-extra https://eslint-react.xyz/docs/rules/overview#hooks-extra-rules
155149 'react-hooks-extra/no-direct-set-state-in-use-effect' : 'warn' ,
0 commit comments