From cfa44de1c93c1057f152fb878343d66916175f5f Mon Sep 17 00:00:00 2001 From: Ruben Talstra Date: Thu, 3 Apr 2025 00:42:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20Update=20ESLint=20rules?= =?UTF-8?q?=20for=20React=20hooks=20(#6685)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 67e3f24f4..b86eb9fe6 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -286,10 +286,12 @@ export default [ rules: { // i18n 'i18next/no-literal-string': [ - 'error', { + 'error', + { mode: 'jsx-text-only', 'should-validate-template': true, - }], + }, + ], // '@typescript-eslint/no-unused-expressions': 'off', '@typescript-eslint/no-unused-vars': 'off', @@ -299,8 +301,8 @@ export default [ '@typescript-eslint/ban-ts-comment': 'off', // React 'react/no-unknown-property': 'warn', - 'react-hooks/rules-of-hooks': 'off', - 'react-hooks/exhaustive-deps': 'off', + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'warn', // General 'no-constant-binary-expression': 'off', 'import/no-cycle': 'off',