-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.27 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
53
54
55
56
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"process": false,
"require": false
},
"rules": {
"curly": "error",
"comma-spacing": "error",
"eqeqeq": "error",
"indent": [ "error", "tab" ],
"linebreak-style": "error",
"no-floating-decimal": "error",
"no-undefined": "error",
"array-bracket-spacing": [
"error",
"always",
{
"singleValue": true,
"objectsInArrays": false
}
],
"block-spacing": "error",
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": "warn",
"semi": "error",
"eol-last": "error",
"comma-dangle": [ "error", "always-multiline" ],
"func-call-spacing": "error",
"key-spacing": [ "error", { "mode": "minimum" }],
"keyword-spacing": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": [ "error", "always" ],
"quotes": [ "error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"semi-spacing": "error",
"space-in-parens": [ "error", "always", { "exceptions": [ "{}", "[]" ] } ],
"arrow-spacing": "error",
"no-duplicate-imports": "error",
"no-var": "error",
"space-before-blocks": "error",
"no-console": "warn"
}
}