-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
28 lines (28 loc) · 942 Bytes
/
.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
{
"env": {
"node": true,
"es2020": true
},
"extends": "eslint:recommended",
"rules": {
"func-style": [2, "expression", {"allowArrowFunctions": true}],
"func-call-spacing": [2, "never"],
"indent": [2, 2, {"SwitchCase": 1}],
"linebreak-style": [2, "linux"],
"no-console": 0,
"no-multi-assign": 2,
"no-new-object": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": [2, {"functions": true, "classes": true, "variables": true}],
"operator-linebreak": [2, "before"],
"prefer-const": [2, {"ignoreReadBeforeAssign": true}],
"quotes": [2, "single"],
"semi": [2, "always"],
"space-before-blocks": [0, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": 2,
"unicode-bom": [2, "never"]
}
}