/
.eslintrc.json
48 lines (48 loc) · 1.34 KB
/
.eslintrc.json
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
{
"env": {
"node": true
},
"parser": "babel-eslint",
"extends": [
"airbnb-base",
"standard-preact"
],
"plugins": [
"import"
],
"rules": {
"no-plusplus": 0,
"indent": ["error", 4],
"no-prototype-builtins": 0,
"max-len": ["error", 120],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"import/extensions": ["error", "never", { "packages": "always" }],
"global-require": "warn",
"import/no-dynamic-require": "warn",
"strict": 0,
"no-console": 0,
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"quotes": ["error", "single",{ "allowTemplateLiterals": true }],
"prefer-destructuring": ["error", { "object": false, "array": false }],
"operator-linebreak": 0,
"function-paren-newline": ["error", "consistent"]
},
"globals": {
"fetch": false,
"poly": false,
"document": false,
"window": false,
"localStorage": false,
"history": false,
"PubSub": false,
"navigator": false,
"starprnt": false,
"StartWebprnt": false,
"isNaN": false,
"isFinite": false,
"FormData": false,
"FileReader": false,
"XMLHttpRequest": false
}
}