-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·44 lines (44 loc) · 949 Bytes
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier", "react-hooks"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"rules": {
"no-console": [2, { "allow": ["warn", "error", "info"] }],
"react/destructuring-assignment": [
"error",
{
"functional": "always",
"class": "never",
"createClass": "always"
}
],
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx"]
}
],
"react/button-has-type": 0,
"jsx-a11y/label-has-associated-control":0,
"jsx-a11y/label-has-for": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}