Skip to content

Commit e0a2c2a

Browse files
committed
chore: add missing react-hooks eslint config
1 parent a9d2b0d commit e0a2c2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.eslintrc.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
],
1515
"plugins": [
1616
"react",
17+
"react-hooks",
1718
"testing-library"
1819
],
1920
"parserOptions": {
@@ -23,6 +24,8 @@
2324
"@typescript-eslint/consistent-type-definitions": "off",
2425
"@typescript-eslint/strict-boolean-expressions": "off",
2526
"react/jsx-uses-react": "error",
26-
"react/jsx-uses-vars": "error"
27+
"react/jsx-uses-vars": "error",
28+
"react-hooks/rules-of-hooks": "error",
29+
"react-hooks/exhaustive-deps": "warn"
2730
}
2831
}

0 commit comments

Comments
 (0)