-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.14 KB
/
.eslintrc
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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"globals": {
"fetchMock": "readonly"
},
"plugins": ["react-hooks"],
"extends": [
"standard",
"standard-jsx",
"plugin:jsx-a11y/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"prefer-const": "error",
"max-len": ["error", {
"code": 160
}],
"no-console": ["error", { "allow": ["warn", "error"] }],
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line"}],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link", "ArticleLink", "FrontLink" ],
"specialLink": [ "hrefLeft", "hrefRight" ],
"aspects": [ "invalidHref", "preferButton" ]
}],
"import/newline-after-import": "error",
"import/no-unresolved": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}