Skip to content

Commit 1557f2c

Browse files
Fix ESLint React hooks plugin
1 parent 897a3c8 commit 1557f2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

eslint.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default defineConfig([
5757
pluginJsxA11y.flatConfigs.recommended,
5858
pluginReact.configs.flat.recommended,
5959
pluginReact.configs.flat['jsx-runtime'],
60-
'react-hooks/recommended-latest',
60+
pluginReactHooks.configs.flat.recommended,
6161
],
6262
languageOptions: {
6363
globals: globals.browser,
@@ -66,9 +66,6 @@ export default defineConfig([
6666
sourceType: 'module',
6767
},
6868
},
69-
plugins: {
70-
'react-hooks': pluginReactHooks,
71-
},
7269
settings: {
7370
react: {
7471
version: 'detect',

0 commit comments

Comments
 (0)