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 d8f4e46 commit 76b64c4Copy full SHA for 76b64c4
.eslintrc.cjs
@@ -20,6 +20,7 @@ module.exports = {
20
'prettier',
21
'plugin:react-hook-form/recommended',
22
'plugin:import/recommended',
23
+ 'plugin:react-hooks/recommended',
24
],
25
plugins: [
26
'@typescript-eslint',
@@ -91,8 +92,16 @@ module.exports = {
91
92
'prefer-arrow-callback': 'off',
93
'prettier/prettier': 'error',
94
radix: 'error',
95
+
96
+ // https://react.dev/reference/eslint-plugin-react-hooks#recommended
97
'react-hooks/exhaustive-deps': 'error',
- 'react-hooks/rules-of-hooks': 'error',
98
+ // recommended rules that go nuts in our codebase. we should fix them
99
+ // eventually
100
+ 'react-hooks/incompatible-library': 'off',
101
+ 'react-hooks/purity': 'off',
102
+ 'react-hooks/refs': 'off',
103
+ 'react-hooks/set-state-in-effect': 'off',
104
105
'react/button-has-type': 'error',
106
'react/jsx-boolean-value': 'error',
107
'react/display-name': 'off',
0 commit comments