diff --git a/eslint.config.js b/eslint.config.js index af6a2b563..c827e1640 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -19,6 +19,8 @@ export default tseslint.config( }, rules: { ...reactHooks.configs.recommended.rules, + "react-hooks/refs": "warn", + "react-hooks/set-state-in-effect": "warn", "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/no-unused-vars": [ "warn", diff --git a/package.json b/package.json index fccdf6403..0e6d2a052 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "dotenv": "^16.5.0", "eslint": "^9.39.3", "eslint-config-next": "16.2.4", - "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.6.0", "next": "^15.5.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 032d83d15..0a0940787 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -172,8 +172,8 @@ importers: specifier: 16.2.4 version: 16.2.4(@typescript-eslint/parser@8.59.1(eslint@9.39.3(jiti@2.6.1))(typescript@5.8.3))(eslint@9.39.3(jiti@2.6.1))(typescript@5.8.3) eslint-plugin-react-hooks: - specifier: ^5.2.0 - version: 5.2.0(eslint@9.39.3(jiti@2.6.1)) + specifier: ^7.1.1 + version: 7.1.1(eslint@9.39.3(jiti@2.6.1)) eslint-plugin-react-refresh: specifier: ^0.5.2 version: 0.5.2(eslint@9.39.3(jiti@2.6.1)) @@ -2007,12 +2007,6 @@ packages: peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 - eslint-plugin-react-hooks@5.2.0: - resolution: {integrity: sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==} - engines: {node: '>=10'} - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-hooks@7.1.1: resolution: {integrity: sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==} engines: {node: '>=18'} @@ -5519,10 +5513,6 @@ snapshots: safe-regex-test: 1.1.0 string.prototype.includes: 2.0.1 - eslint-plugin-react-hooks@5.2.0(eslint@9.39.3(jiti@2.6.1)): - dependencies: - eslint: 9.39.3(jiti@2.6.1) - eslint-plugin-react-hooks@7.1.1(eslint@9.39.3(jiti@2.6.1)): dependencies: '@babel/core': 7.29.0