-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.53 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": {
"es2021": true,
"mocha": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"array-bracket-spacing": "error",
"comma-dangle": ["error", "never"],
"comma-style": ["error", "last"],
"consistent-this": ["error", "self"],
"curly": ["error", "all"],
"eol-last": ["error", "always"],
"guard-for-in": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"max-params": ["error", 5],
"new-cap": ["error", { "newIsCap": true, "capIsNew": true, "properties": true }],
"no-eval": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-trailing-spaces": "error",
"no-var": "error",
"one-var": ["error", { "uninitialized": "always", "initialized": "never" }],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}
],
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", { "named": "never" }],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", { "words": false, "nonwords": false }],
"strict": ["error", "global"],
"wrap-iife": ["error", "inside"]
}
}