From 3277b97c31f9716e9720c59b8394a55da608a75b Mon Sep 17 00:00:00 2001 From: Qu Wang <291733899+jamesa94@users.noreply.github.com> Date: Mon, 31 Aug 2026 02:21:04 +0800 Subject: [PATCH] test/build: add eslint-plugin-react-hooks exhaustive-deps rule --- frontend/.eslintrc.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index 742a93ed..ded6a9c8 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -12,5 +12,7 @@ module.exports = { rules: { 'react-refresh/only-export-components': 'off', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], + 'react-hooks/exhaustive-deps': 'error', + 'react-hooks/rules-of-hooks': 'error', }, }