@@ -66,13 +66,13 @@ export async function react(
66
66
name : 'coderwyd/react/setup' ,
67
67
plugins : {
68
68
react : plugins [ '@eslint-react' ] ,
69
+ 'react-compiler' : pluginReactCompiler ,
69
70
'react-dom' : plugins [ '@eslint-react/dom' ] ,
70
71
'react-hooks' : pluginReactHooks ,
71
72
'react-hooks-extra' : plugins [ '@eslint-react/hooks-extra' ] ,
72
73
'react-naming-convention' : plugins [ '@eslint-react/naming-convention' ] ,
73
74
'react-refresh' : pluginReactRefresh ,
74
75
'react-web-api' : plugins [ '@eslint-react/web-api' ] ,
75
- 'react-compiler' : pluginReactCompiler ,
76
76
} ,
77
77
} ,
78
78
{
@@ -87,16 +87,12 @@ export async function react(
87
87
} ,
88
88
name : 'coderwyd/react/rules' ,
89
89
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' ,
96
91
// recommended rules from @eslint -react/dom
97
92
'react-dom/no-children-in-void-dom-elements' : 'warn' ,
98
93
'react-dom/no-dangerously-set-innerhtml' : 'warn' ,
99
94
'react-dom/no-dangerously-set-innerhtml-with-children' : 'error' ,
95
+
100
96
'react-dom/no-find-dom-node' : 'error' ,
101
97
'react-dom/no-missing-button-type' : 'warn' ,
102
98
'react-dom/no-missing-iframe-sandbox' : 'warn' ,
@@ -105,13 +101,9 @@ export async function react(
105
101
'react-dom/no-script-url' : 'warn' ,
106
102
'react-dom/no-unsafe-iframe-sandbox' : 'warn' ,
107
103
'react-dom/no-unsafe-target-blank' : 'warn' ,
108
-
109
- 'react-compiler/react-compiler' : 'warn' ,
110
-
111
104
// recommended rules react-hooks
112
105
'react-hooks/exhaustive-deps' : 'warn' ,
113
106
'react-hooks/rules-of-hooks' : 'error' ,
114
-
115
107
// react refresh
116
108
'react-refresh/only-export-components' : [
117
109
'warn' ,
@@ -142,6 +134,14 @@ export async function react(
142
134
} ,
143
135
] ,
144
136
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
+
145
145
// recommended rules from @eslint -react
146
146
'react/ensure-forward-ref-using-ref' : 'warn' ,
147
147
'react/jsx-no-duplicate-props' : 'warn' ,
0 commit comments