Skip to content

Commit cfa44de

Browse files
authored
🧹 chore: Update ESLint rules for React hooks (danny-avila#6685)
1 parent d8337e0 commit cfa44de

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

eslint.config.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,12 @@ export default [
286286
rules: {
287287
// i18n
288288
'i18next/no-literal-string': [
289-
'error', {
289+
'error',
290+
{
290291
mode: 'jsx-text-only',
291292
'should-validate-template': true,
292-
}],
293+
},
294+
],
293295
//
294296
'@typescript-eslint/no-unused-expressions': 'off',
295297
'@typescript-eslint/no-unused-vars': 'off',
@@ -299,8 +301,8 @@ export default [
299301
'@typescript-eslint/ban-ts-comment': 'off',
300302
// React
301303
'react/no-unknown-property': 'warn',
302-
'react-hooks/rules-of-hooks': 'off',
303-
'react-hooks/exhaustive-deps': 'off',
304+
'react-hooks/rules-of-hooks': 'error',
305+
'react-hooks/exhaustive-deps': 'warn',
304306
// General
305307
'no-constant-binary-expression': 'off',
306308
'import/no-cycle': 'off',

0 commit comments

Comments
 (0)