-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
57 lines (50 loc) · 1.65 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
{
"env": {
"browser": false,
"commonjs": false,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": false
},
"sourceType": "script"
},
"extends": ["eslint:recommended"],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"no-extra-semi": "error",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"object-curly-spacing": ["error", "never"],
"keyword-spacing": "error",
"no-trailing-spaces": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"eol-last": ["error", "always"],
"no-else-return": ["error", { "allowElseIf": true }],
"no-lonely-if": "error",
"no-useless-return": "error",
"no-floating-decimal": "error",
"no-octal": "error",
"no-delete-var": "error",
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"operator-linebreak": ["error", "before"],
"no-mixed-operators": "error",
"no-unneeded-ternary": "error",
"no-unsafe-negation": "error",
"no-regex-spaces": "error",
"wrap-iife": "error",
"new-parens": "error",
"no-unused-labels": "error",
"func-call-spacing": "error",
"space-in-parens": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"no-console": "off"
}
}