fix: remove undefined eslint rule reference, downgrade react-hooks plugin to v5

This commit is contained in:
RockChinQ
2026-04-03 12:18:31 +08:00
parent 5c59ecbbbd
commit 82341702a8
4 changed files with 13 additions and 268 deletions
-7
View File
@@ -1,5 +1,4 @@
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import tseslint from 'typescript-eslint';
@@ -8,7 +7,6 @@ const eslintConfig = [
{
files: ['**/*.{js,jsx,ts,tsx}'],
plugins: {
react,
'react-hooks': reactHooks,
},
rules: {
@@ -19,11 +17,6 @@ const eslintConfig = [
],
'@typescript-eslint/no-explicit-any': 'off',
},
settings: {
react: {
version: 'detect',
},
},
},
eslintPluginPrettierRecommended,
{