-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
41 lines (41 loc) · 1.13 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true
},
"extends": "standard",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"curly": ["error", "multi-line"],
"no-return-await": "error",
"quote-props": ["error", "as-needed"],
"arrow-spacing": "error",
"space-before-blocks": "error",
"keyword-spacing": "error",
"indent": ["error", 2, {"SwitchCase": 1}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true, "mode": "minimum"}],
"comma-spacing": ["error", { "before": false, "after": true }],
"camelcase": "error",
"no-var": "error",
"prefer-const": "error",
"semi": ["error", "never"],
"max-len": ["error", 150, 4],
"generator-star-spacing": ["error", {"before": true, "after": false}],
"quotes": ["error", "single"],
"strict": ["error", "global"],
"object-curly-spacing": ["error", "never"]
}
}