-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
40 lines (37 loc) · 1.12 KB
/
.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
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true,
"serviceworker": true
},
"extends": "airbnb",
"plugins": ["compat"],
"rules": {
"func-style": ["error", "declaration", {
"allowArrowFunctions": true
}],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "never"],
"function-paren-newline": 0,
"no-param-reassign": 1,
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-syntax": 0,
"no-else-return": 0,
"max-len": 1,
"react/jsx-filename-extension": 0,
"react/self-closing-comp": 0,
"react/prop-types": 0,
"react/no-multi-comp": 0,
"react/no-unescaped-entities": 1,
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link"],
"specialLink": ["to"]
}],
"jsx-a11y/no-autofocus": 0,
"jsx-a11y/label-has-for": 0,
"compat/compat": 2
}
}