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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true
},
extends: [
"standard",
"plugin:@typescript-eslint/recommended"
],
parserOptions: {
ecmaVersion: 12,
parser: "@typescript-eslint/parser"
},
plugins: [
"@typescript-eslint"
],
rules: {
"no-console": "off",
"no-debugger": "off",
"array-bracket-spacing": [
"error",
"always"
],
"array-bracket-newline": [ "warn", "consistent" ],
"array-element-newline": "off",
"arrow-body-style": "off",
"arrow-parens": [
"error",
"as-needed"
],
"arrow-spacing": [
"error",
{
after: true,
before: true
}
],
"brace-style": [ "error", "stroustrup", { allowSingleLine: false } ],
camelcase: "off",
"capitalized-comments": [
"error",
"always"
],
"comma-spacing": [
"error",
{
after: true,
before: false
}
],
"comma-style": [
"error",
"last"
],
"comma-dangle": [ "error", "never" ],
"computed-property-spacing": [
"error",
"never"
],
curly: [ "error", "all" ],
"dot-notation": "off",
eqeqeq: "error",
"func-names": "off",
"func-style": [ "error", "declaration", { allowArrowFunctions: true } ],
"id-length": "off",
"implicit-arrow-linebreak": [
"error",
"beside"
],
indent: [ "warn", "tab" ],
"keyword-spacing": [ "error", {
before: false,
overrides: {
from: { before: true },
for: { after: false },
if: { after: false },
throw: { after: false },
while: { after: false }
}
} ],
"linebreak-style": [
"error",
"unix"
],
"line-comment-position": [ "error", { position: "above" } ],
"max-len": [ "error", { code: 90 } ],
"max-lines": [ "error", 600 ],
"max-params": [ "error", 6 ],
"max-statements": "off",
"multiline-comment-style": [ "error", "bare-block" ],
"no-await-in-loop": "off",
"no-control-regex": "off",
"no-else-return": [
"error",
{
allowElseIf: true
}
],
"no-extra-parens": "off",
"no-magic-numbers": "off",
"no-tabs": "off",
"no-ternary": "off",
"no-underscore-dangle": [ "error", { allowAfterThis: true } ],
"no-var": "error",
"object-curly-spacing": [
"error",
"always"
],
"object-shorthand": "off",
"one-var": "off",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"prefer-const": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"quote-props": [ "error", "as-needed" ],
quotes: [ "error", "double" ],
semi: [ "error", "always" ],
"semi-style": [
"error",
"last"
],
"sort-keys": "off",
"space-before-function-paren": [ "error", "never" ],
"space-in-parens": [
"error",
"never"
],
"spaced-comment": [
"error",
"always"
],
strict: [
"error",
"never"
],
"template-curly-spacing": [
"error",
"never"
],
"unicode-bom": [
"error",
"never"
],
yoda: [
"error",
"never"
]
}
};
|