From 8ba5ba392bd9e4733e625ad47268041ca33d9fd5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 21:51:06 +0000 Subject: [PATCH 1/2] Bump eslint-plugin-react-hooks from 5.2.0 to 7.1.1 Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 5.2.0 to 7.1.1. - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/eslint-plugin-react-hooks@7.1.1/packages/eslint-plugin-react-hooks) --- updated-dependencies: - dependency-name: eslint-plugin-react-hooks dependency-version: 7.1.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 2b0bf8484..4cf5603d5 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.18", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f783e905f..2f4c72b18 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)) @@ -2015,12 +2015,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'} @@ -5556,10 +5550,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 From f25a8bdb3b892d1aee54d8ec3da38bb7b990c5e4 Mon Sep 17 00:00:00 2001 From: "langsmith-fleet[bot]" Date: Sat, 25 Jul 2026 19:00:25 +0000 Subject: [PATCH 2/2] Relax new react hooks lint rules --- eslint.config.js | 2 ++ 1 file changed, 2 insertions(+) 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",