-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (35 loc) · 1.25 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
{
"env": {
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"no-shadow": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"curly": "error",
"default-case": "error",
"eol-last": "error",
"eqeqeq": ["error", "always"],
"func-call-spacing": ["error", "never"],
"no-caller": "error",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-eval": "error",
"no-invalid-this": "error",
"no-multiple-empty-lines": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-new-wrappers": "error",
"no-trailing-spaces": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"object-shorthand": "error",
"one-var": ["error", { "initialized": "never", "uninitialized": "never" }],
"prefer-arrow-callback": [ "error", { "allowUnboundThis": false } ],
"quotes": ["error", "single", {"avoidEscape": true}],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}]
}
}