/
.eslintrc.json
52 lines (52 loc) · 1.6 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
49
50
51
52
{
"env": {
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"standard-preact"
],
"plugins": [
"import"
],
"rules": {
"indent": ["error", 4],
"no-prototype-builtins": 0,
"max-len": ["error", 120],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"global-require": "warn",
"import/no-dynamic-require": "warn",
"import/extensions": ["error", "never", { "packages": "always" }],
"strict": 0,
"no-console": 0,
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 2],
"quotes": ["error", "single",{ "allowTemplateLiterals": true }],
"prefer-destructuring": [
"error", {
"array": false,
"object": false
}, {
"enforceForRenamedProperties": false
}
],
"object-curly-newline": [
"error", {
"ObjectExpression": { "multiline": true, "consistent": false, "minProperties": 6 },
"ObjectPattern": { "multiline": true, "consistent": false, "minProperties": 6 },
"ImportDeclaration": { "multiline": true, "consistent": false, "minProperties": 6 },
"ExportDeclaration": { "multiline": true, "consistent": false, "minProperties": 6 }
}
]
},
"globals": {
"fetch": false,
"poly": false,
"document": false,
"window": false,
"localStorage": false,
"history": false,
"Favico": false
}
}