-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1.33 KB
/
.eslintrc.js
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
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
//"linebreak-style": ["error", "windows"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"comma-dangle": ["error", "never"],
"one-var": ["error", "always"],
"eol-last": ["error", "never"],
"func-names": ["error", "never"],
"object-shorthand": "off",
"import/no-extraneous-dependencies": "off", // revisit
"import/no-dynamic-require": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-console": "off",
"no-use-before-define": ["error", "nofunc"],
"no-param-reassign": ["error", { "props": false }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"consistent-return": "off",
"no-underscore-dangle": "off",
"import/no-duplicates": "off",
"no-duplicate-imports": "off",
"import/extensions": "off"
},
"globals": {
"window": true,
"document": true,
"Event": true,
"MutationObserver": true,
"Node": true,
"localStorage": true
},
"settings": {
"import/resolver": "webpack"
},
"env": {
"browser": 1
}
};