-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
57 lines (57 loc) · 1.38 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
54
55
56
57
{
"plugins": ["react", "prettier"],
"extends": ["eslint:recommended", "airbnb", "plugin:react/recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"__DEV__": true
},
"rules": {
"comma-dangle": ["error", "never"],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight", "to"],
"aspects": ["invalidHref", "preferButton"]
}
],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/jsx-filename-extension": "off",
"react/jsx-max-props-per-line": [
"error",
{ "maximum": 1, "when": "always" }
],
"semi": ["error", "never"],
"import/prefer-default-export": "off",
"import/no-unresolved": [
"error",
{
"ignore": ["Views/", "Helpers/", "Store/", "Config/", "Utils/", "Api/", "TestUtils/", "Constants"]
}
]
},
"overrides": [
{
"files": ["**/*.spec.js"],
"rules": {
"react/jsx-props-no-spreading": "off"
}
}
]
}