@@ -78,6 +78,7 @@ export async function react(
78
78
'react-hooks-extra' : plugins [ '@eslint-react/hooks-extra' ] ,
79
79
'react-naming-convention' : plugins [ '@eslint-react/naming-convention' ] ,
80
80
'react-refresh' : pluginReactRefresh ,
81
+ 'react-web-api' : plugins [ '@eslint-react/web-api' ] ,
81
82
} ,
82
83
} ,
83
84
{
@@ -108,7 +109,6 @@ export async function react(
108
109
// recommended rules react-hooks
109
110
'react-hooks/exhaustive-deps' : 'warn' ,
110
111
'react-hooks/rules-of-hooks' : 'error' ,
111
-
112
112
// react refresh
113
113
'react-refresh/only-export-components' : [
114
114
'warn' ,
@@ -144,6 +144,13 @@ export async function react(
144
144
] ,
145
145
} ,
146
146
] ,
147
+ // recommended rules from @eslint -react/web-api
148
+ 'react-web-api/no-leaked-event-listener' : 'warn' ,
149
+
150
+ 'react-web-api/no-leaked-interval' : 'warn' ,
151
+ 'react-web-api/no-leaked-resize-observer' : 'warn' ,
152
+
153
+ 'react-web-api/no-leaked-timeout' : 'warn' ,
147
154
148
155
// recommended rules from @eslint -react
149
156
'react/ensure-forward-ref-using-ref' : 'warn' ,
0 commit comments