Skip to content

Commit 6a6fae5

Browse files
tstirrat15edorivai
authored andcommitted
Add hook rules to eslint
1 parent 37d7611 commit 6a6fae5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.eslintrc

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
"env": {
44
"browser": true
55
},
6-
"plugins": ["import", "react"],
6+
"plugins": ["import", "react", "react-hooks"],
77
"extends": [
88
"eslint:recommended",
99
"plugin:import/errors",
10-
"plugin:react/recommended"
10+
"plugin:react/recommended",
11+
"plugin:react-hooks/recommended"
1112
],
1213
"globals": {
1314
"__DEV__": true
1415
},
1516
"settings": {
1617
"react": {
17-
"version": "15"
18+
"version": "16"
1819
}
1920
}
2021
}

0 commit comments

Comments
 (0)