From 6e3a89762de170dec37c8494a310ee42c5556c1e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 11:09:53 +0000 Subject: [PATCH 1/2] Initial plan From 0e1095380dddd77563b12cce75c596a902808532 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 11:20:54 +0000 Subject: [PATCH 2/2] Fix ESLint config for eslint-plugin-react-hooks 7.0.1 Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com> --- .eslintrc.cjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index ffb0653134..369758a927 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -12,7 +12,6 @@ module.exports = { // TODO: try out plugin:@typescript-eslint/recommended-type-checked "plugin:@typescript-eslint/eslint-recommended", "plugin:react/recommended", - "plugin:react-hooks/recommended-legacy", "plugin:jsx-a11y/recommended", "plugin:import/recommended", "plugin:import/typescript", @@ -25,7 +24,7 @@ module.exports = { tsconfigRootDir: __dirname, project: ["./*/tsconfig.json", "./tsconfig.json"], }, - plugins: ["@typescript-eslint"], + plugins: ["@typescript-eslint", "react-hooks"], settings: { react: { version: "detect" }, // --------- Import Plugin Settings --------- @@ -50,6 +49,10 @@ module.exports = { }, }, rules: { + // --------- React Hooks Plugin Rules --------- + // Only enable core hooks rules for backward compatibility with v6 + "react-hooks/rules-of-hooks": "error", + "react-hooks/exhaustive-deps": "warn", // --------- typescipt-eslint Plugin Rules --------- // enforce to have interfaces/type should start with "I". "@typescript-eslint/naming-convention": [