Skip to content

Commit 35e6856

Browse files
apanizoerikras
authored andcommitted
Adding eslint hooks plugin (#36)
1 parent 81d982c commit 35e6856

File tree

3 files changed

+22
-31
lines changed

3 files changed

+22
-31
lines changed

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "react-app",
3+
"plugins": ["react-hooks"],
34
"rules": {
4-
"jsx-a11y/href-no-hash": 0
5+
"jsx-a11y/href-no-hash": 0,
6+
"react-hooks/rules-of-hooks": "error",
7+
"react-hooks/exhaustive-deps": "warn"
58
}
69
}

package-lock.json

Lines changed: 17 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"eslint-plugin-import": "^2.16.0",
5656
"eslint-plugin-jsx-a11y": "^6.2.1",
5757
"eslint-plugin-react": "^7.11.1",
58+
"eslint-plugin-react-hooks": "^1.6.0",
5859
"fast-deep-equal": "^2.0.1",
5960
"final-form": "^4.11.1",
6061
"hoek": ">=4.2.1",

0 commit comments

Comments
 (0)