@@ -122,12 +122,23 @@ export default [
122122 ...nextPlugin . configs . recommended . rules ,
123123 ...nextPlugin . configs [ 'core-web-vitals' ] . rules ,
124124 ...reactHooksPlugin . configs . recommended . rules ,
125- ...eslintReactPlugin . configs . recommended . rules ,
126- // Disable rules from eslint-plugin-react-hooks that have equivalent rules in @eslint-react
127- ...eslintReactPlugin . configs [ 'disable-conflict-eslint-plugin-react-hooks' ] . rules ,
128125 ...eslintReactPlugin . configs [ 'recommended-type-checked' ] . rules ,
129- 'react-hooks/set-state-in-effect' : 'warn' ,
130- 'react-hooks/exhaustive-deps' : 'error' ,
126+ '@eslint-react/exhaustive-deps' : 'error' ,
127+
128+ // @eslint -react version is experimental, we'll use react-hooks/set-state-in-render instead
129+ '@eslint-react/set-state-in-render' : 'off' ,
130+ 'react-hooks/set-state-in-render' : 'error' ,
131+
132+ // Disable rules from eslint-plugin-react-hooks that have equivalent rules enabled in @eslint-react
133+ 'react-hooks/rules-of-hooks' : 'off' ,
134+ 'react-hooks/static-components' : 'off' ,
135+ 'react-hooks/use-memo' : 'off' ,
136+ 'react-hooks/component-hook-factories' : 'off' ,
137+ 'react-hooks/error-boundaries' : 'off' ,
138+ 'react-hooks/set-state-in-effect' : 'off' ,
139+ 'react-hooks/unsupported-syntax' : 'off' ,
140+ 'react-hooks/exhaustive-deps' : 'off' ,
141+
131142 'react-hook-form/no-use-watch' : 'error' ,
132143 '@eslint-react/no-unstable-default-props' : 'error' ,
133144 '@typescript-eslint/ban-ts-comment' : 'warn' ,
0 commit comments