-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
53 lines (52 loc) · 1.16 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
45
46
47
48
49
50
51
52
53
{
"extends": ["airbnb", "prettier"],
"plugins": ["import", "jsx-a11y", "react", "mocha"],
"env": {
"browser": true,
"node": true,
"mocha": true,
"jest": true
},
"globals": {
"cy": true,
"Cypress": true
},
"parser": "babel-eslint",
"rules": {
"no-underscore-dangle": [
"error",
{
"allow": ["_id", "__REDUX_DEVTOOLS_EXTENSION__"]
}
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"import/no-named-as-default": 0,
"react/static-property-placement": ["error", "static public field"],
"react/state-in-constructor": ["error", "never"],
"no-console": [2, { "allow": ["error"] }]
},
"overrides": [
{
"files": ["test/**/*.js"],
"rules": {
"no-unused-expressions": "off",
"func-names": "off",
"no-restricted-syntax": "off",
"no-await-in-loop": "off"
}
}
]
}