-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
34 lines (34 loc) · 922 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
29
30
31
32
33
34
{
"env": {
"node": true,
"commonjs": true,
"es2021": true,
"jest": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
// "max-len": ["error", { "code": 120 }],
"no-undef": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": ["error", "single"],
"no-console": "error",
"no-unused-vars": "error",
"semi": ["error", "always"],
"no-var": "error",
"eol-last": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"lines-around-comment": ["error", { "beforeLineComment": false, "allowBlockStart": true }],
"semi-spacing": "error",
"no-trailing-spaces": "error",
"space-in-parens": ["error", "always"]
}
}