@@ -66,13 +66,13 @@ export async function react(
6666 name : 'coderwyd/react/setup' ,
6767 plugins : {
6868 react : plugins [ '@eslint-react' ] ,
69+ 'react-compiler' : pluginReactCompiler ,
6970 'react-dom' : plugins [ '@eslint-react/dom' ] ,
7071 'react-hooks' : pluginReactHooks ,
7172 'react-hooks-extra' : plugins [ '@eslint-react/hooks-extra' ] ,
7273 'react-naming-convention' : plugins [ '@eslint-react/naming-convention' ] ,
7374 'react-refresh' : pluginReactRefresh ,
7475 'react-web-api' : plugins [ '@eslint-react/web-api' ] ,
75- 'react-compiler' : pluginReactCompiler ,
7676 } ,
7777 } ,
7878 {
@@ -87,16 +87,12 @@ export async function react(
8787 } ,
8888 name : 'coderwyd/react/rules' ,
8989 rules : {
90- // recommended rules from @eslint -react/web-api
91- 'react-web-api/no-leaked-event-listener' : 'warn' ,
92- 'react-web-api/no-leaked-interval' : 'warn' ,
93- 'react-web-api/no-leaked-resize-observer' : 'warn' ,
94- 'react-web-api/no-leaked-timeout' : 'warn' ,
95-
90+ 'react-compiler/react-compiler' : 'warn' ,
9691 // recommended rules from @eslint -react/dom
9792 'react-dom/no-children-in-void-dom-elements' : 'warn' ,
9893 'react-dom/no-dangerously-set-innerhtml' : 'warn' ,
9994 'react-dom/no-dangerously-set-innerhtml-with-children' : 'error' ,
95+
10096 'react-dom/no-find-dom-node' : 'error' ,
10197 'react-dom/no-missing-button-type' : 'warn' ,
10298 'react-dom/no-missing-iframe-sandbox' : 'warn' ,
@@ -105,13 +101,9 @@ export async function react(
105101 'react-dom/no-script-url' : 'warn' ,
106102 'react-dom/no-unsafe-iframe-sandbox' : 'warn' ,
107103 'react-dom/no-unsafe-target-blank' : 'warn' ,
108-
109- 'react-compiler/react-compiler' : 'warn' ,
110-
111104 // recommended rules react-hooks
112105 'react-hooks/exhaustive-deps' : 'warn' ,
113106 'react-hooks/rules-of-hooks' : 'error' ,
114-
115107 // react refresh
116108 'react-refresh/only-export-components' : [
117109 'warn' ,
@@ -142,6 +134,14 @@ export async function react(
142134 } ,
143135 ] ,
144136
137+ // recommended rules from @eslint -react/web-api
138+ 'react-web-api/no-leaked-event-listener' : 'warn' ,
139+
140+ 'react-web-api/no-leaked-interval' : 'warn' ,
141+ 'react-web-api/no-leaked-resize-observer' : 'warn' ,
142+
143+ 'react-web-api/no-leaked-timeout' : 'warn' ,
144+
145145 // recommended rules from @eslint -react
146146 'react/ensure-forward-ref-using-ref' : 'warn' ,
147147 'react/jsx-no-duplicate-props' : 'warn' ,
0 commit comments