-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
58 lines (58 loc) · 1.68 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"node": true,
"es6": true
},
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"],
"block-scoped-var": "error",
"consistent-return": "error",
"curly": "error",
"eqeqeq": "error",
"no-alert": "error",
"no-caller": "error",
"no-eval": "error",
"no-console": "off",
"no-invalid-this": "error",
"no-unused-expressions": "error",
"strict": ["error", "safe"],
"global-require": "error",
"array-bracket-newline": "error",
"array-bracket-spacing": ["error", "always"],
"brace-style": "error",
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"func-call-spacing": "error",
"indent": ["error", 4, {
"SwitchCase": 1,
"MemberExpression": 0
}],
"key-spacing": "error",
"new-cap": "error",
"new-parens": "error",
"no-lonely-if": "error",
"no-new-object": "error",
"no-nested-ternary": "error",
"no-whitespace-before-property": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"spaced-comment": ["error", "always", {
"exceptions": ["/"]
}],
"switch-colon-spacing": "error",
"global-require": 0,
"no-empty": 0
}
}