Skip to content

Commit e76deca

Browse files
committed
add config for react in eslint
1 parent 0963bd1 commit e76deca

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.eslintrc

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
2+
"parser": "babel-eslint",
23
"env": {
3-
"browser": true,
4-
"node": true
5-
}
4+
"browser": true,
5+
"node": true
6+
},
7+
"plugins": [
8+
"react-hooks"
9+
],
10+
"rules": {
11+
"react-hooks/rules-of-hooks": "error",
12+
"react-hooks/exhaustive-deps": "warn"
13+
}
614
}

0 commit comments

Comments
 (0)