From 63d8fe876e1e2cbc122dc1a028c594fc21c7abd2 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 4 Dec 2025 17:23:17 +0800 Subject: [PATCH] chore: ESLint add react hooks deps check rule (#29132) --- web/eslint.config.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs index 67b561cec0..e9692ef3fb 100644 --- a/web/eslint.config.mjs +++ b/web/eslint.config.mjs @@ -94,7 +94,6 @@ export default combine( // orignal ts/no-var-requires 'ts/no-require-imports': 'off', 'no-console': 'off', - 'react-hooks/exhaustive-deps': 'warn', 'react/display-name': 'off', 'array-callback-return': ['error', { allowImplicit: false, @@ -257,4 +256,9 @@ export default combine( }, }, oxlint.configs['flat/recommended'], + { + rules: { + 'react-hooks/exhaustive-deps': 'warn', + }, + }, )