-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.28 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"array-bracket-spacing": ["error", "never",
{ "singleValue": false, "objectsInArrays": false, "arraysInArrays": false }
],
"arrow-spacing": ["error"],
"capitalized-comments": ["warn"],
"comma-dangle": ["warn", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"curly": ["warn"],
"default-case-last": ["error"],
"indent": ["warn", "tab"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["warn", "windows"],
"no-console": ["warn"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error", { max: 1 }],
"no-trailing-spaces": ["error"],
"no-undef": ["warn"],
"no-unused-vars": ["warn"],
"no-var": ["warn"],
"no-warning-comments": ["warn"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "double"],
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"spaced-comment": ["error", "always"],
"space-in-parens": ["error", "never"]
}
};