-
Notifications
You must be signed in to change notification settings - Fork 153
/
.eslintrc.json
42 lines (42 loc) · 1.11 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
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"rules": {
"strict": ["error", "global"],
"indent": [2, "tab"],
"curly": [2, "all"],
"quotes": [2, "single"],
"max-len": [1, 100],
"prefer-const": 0,
"no-console": ["error", { "allow": ["warn", "error", "log"] }],
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [1, {"max": 1}],
"no-new-object": 2,
"no-trailing-spaces": [2, {"skipBlankLines": false}],
"no-empty": 2,
"no-cond-assign": [2, "always"],
"no-alert": 2,
"no-caller": 2,
"no-labels": 2,
"no-eval": 2,
"no-fallthrough": 2,
"default-case": 2,
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"space-before-function-paren": [2, "always"],
"space-before-blocks": [2, "always"],
"eqeqeq": 2,
"no-unused-vars": ["error", { "args": "none" }],
"space-in-parens": ["error", "never"]
}
}