We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b143fd1 commit c4eec7aCopy full SHA for c4eec7a
eslint.config.js
@@ -25,7 +25,6 @@ export default typescript.config(
25
rules: {
26
...react.configs.recommended.rules,
27
...react.configs['jsx-runtime'].rules,
28
- ...reactHooks.configs.recommended.rules,
29
'react-refresh/only-export-components': [
30
'warn',
31
{ allowConstantExport: true },
@@ -78,6 +77,9 @@ export default typescript.config(
78
77
'@typescript-eslint/restrict-template-expressions': 'off',
79
'@typescript-eslint/no-unused-vars': 'warn',
80
'@typescript-eslint/require-await': 'warn',
+ // react hooks
81
+ 'react-hooks/rules-of-hooks': 'error',
82
+ 'react-hooks/exhaustive-deps': 'error',
83
},
84
settings: { react: { version: 'detect' } },
85
0 commit comments