-
-
Notifications
You must be signed in to change notification settings - Fork 204
/
.eslintrc.json
77 lines (65 loc) · 1.52 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"root": true,
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 2017,
"ecmaFeatures": {
"legacyDecorators": true
},
"sourceType": "module"
},
"env": {
"es6": true,
"commonjs": true,
"node": true,
"browser": true
},
"globals": {},
"rules": {
"no-empty": "off",
"no-mixed-spaces-and-tabs": "off",
"indent": "off",
"indent-legacy": [ "error", "tab", {
"SwitchCase": 1
}],
"linebreak-style": [ "error", "unix" ],
"max-len": [ "error", 100, {
"tabWidth": 4,
"ignoreUrls": true
}],
"no-trailing-spaces": "error",
"eol-last": "error",
"block-spacing": [ "error", "always" ],
"keyword-spacing": [ "error", {
"before": true,
"after": true
}],
"space-before-blocks": [ "error", "always" ],
"brace-style": [ "error", "1tbs", {
"allowSingleLine": true
}],
"curly": [ "error", "all" ],
"guard-for-in": "warn",
"semi": "error",
"no-sequences": "error",
"no-var": "error",
"no-redeclare": [ "error", { "builtinGlobals": true } ],
"no-useless-escape": "off",
"quotes": [ "error", "double" ],
"prefer-template": "error",
"comma-style": [ "error", "last" ],
"comma-dangle": [ "error", "never" ],
"dot-location": [ "error", "property" ],
"operator-linebreak": [ "error", "before" ],
"eqeqeq": "error",
"max-depth": [ "error", { "max": 4 } ],
"new-cap": [ "error", {
"capIsNew": false,
"properties": false
}],
"new-parens": "error",
"no-console": "error"
}
}