-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
44 lines (44 loc) · 1.62 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
{
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"array-bracket-spacing": [ "error", "never" ],
"block-spacing": "error",
"brace-style":["error", "1tbs"],
"comma-spacing":["error", { "after": true }],
"comma-style":["error", "last"],
"eqeqeq": ["error","smart"],
"indent": ["error",2],
"func-call-spacing":["error", "never"],
"key-spacing":["error", { "beforeColon": false, "afterColon": true }],
"linebreak-style": ["error","windows"],
"max-len": ["error", { "code": 100 }],
"no-array-constructor": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-restricted-syntax": ["error", "SequenceExpression"],
"no-return-assign":["error", "always"],
"no-sequences": "error",
"no-template-curly-in-string": "error",
"no-unneeded-ternary": "error",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": [ "error", "always" ],
"one-var": ["error", "never"],
"operator-linebreak": ["error", "before"],
"prefer-const": "error",
"quotes": ["error","single"],
"semi": ["error","never"],
"space-before-blocks": "error",
"space-before-function-paren": ["error","always"],
"space-in-parens": [ "error", "never" ]
}
}