-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
73 lines (73 loc) · 2.56 KB
/
.eslintrc
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"env": {
"es2022": true,
"shared-node-browser": true
},
"globals": {
"fetch": "readonly"
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"array-bracket-newline": ["error", { "multiline": true }],
"array-bracket-spacing": ["error", "never"],
"array-element-newline": ["error", "consistent"],
"arrow-body-style": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-spacing": "error",
"computed-property-spacing": "error",
"curly": ["error", "all"],
"dot-location": ["error", "property"],
"eol-last": "error",
"func-call-spacing": "error",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": "error",
"implicit-arrow-linebreak": "error",
"indent": ["error", 2],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
// "lines-around-comment": "error",
"lines-between-class-members": "error",
"multiline-ternary": ["error", "always-multiline"],
"no-multiple-empty-lines": "error",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unexpected-multiline": "error",
"no-unused-vars": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": ["error", {
"consistent": true,
"multiline": true
}],
"object-curly-spacing" :["error", "always"],
"operator-linebreak" :"error",
"quotes": ["error", "single", { "avoidEscape": true }],
"quote-props": ["error", "as-needed"],
"rest-spread-spacing": "error",
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"switch-colon-spacing": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error"
}
}