-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
63 lines (63 loc) · 1.23 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
58
59
60
61
62
63
{
"extends": "airbnb",
"plugins": ["react", "jsx-a11y", "import"],
"settings": {
"import/resolver": {
"eslint-import-resolver-webpack": {
"config": "webpack.base.config.js"
}
}
},
"rules": {
"no-underscore-dangle": [
"error",
{
"allow": ["__PRELOADED_STATE__", "__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"]
}
],
"jsx-a11y/href-no-hash": 0
},
"globals": {
"__DEV__": false,
"__PROD__": false,
"__SERVER__": false
},
"env": {
"browser": true
},
"parser": "babel-eslint",
"parserOptions": {
"allowImportExportEverywhere": true
},
"overrides": [
{
"files": ["*.stories.jsx"],
"rules": {
"import/no-extraneous-dependencies": [2, {
"devDependencies": true
}]
}
},
{
"files": ["*.spec.js", "*.spec.jsx"],
"plugins": ["react", "jsx-a11y", "import", "jest"],
"env": {
"jest": true
},
"rules": {
"import/no-extraneous-dependencies": [2, {
"devDependencies": true
}]
}
},
{
"files": ["service-worker.js"],
"env": {
"serviceworker": true
},
"rules": {
"comma-dangle": 0
}
}
]
}