This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
191 lines (191 loc) · 4.15 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"root": true,
"env": {
"es6": false,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"deprecation",
"header"
],
"rules": {
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description",
"ts-expect-error": "allow-with-description"
}
],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/indent": [
"error",
"tab",
{
"SwitchCase": 1,
"FunctionDeclaration": {
"parameters": "off"
},
"FunctionExpression": {
"parameters": "off"
},
"CallExpression": {
"arguments": "off"
}
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/unified-signatures": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"comma-dangle": "error",
"constructor-super": "error",
"curly": "error",
"deprecation/deprecation": "error",
"dot-notation": ["error", {"allowPattern": "^_"}],
"eol-last": [
"error",
"always"
],
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"header/header": [
"error",
"block",
[
"",
{ "pattern": "\tCopyright \\d{4} Dynatrace LLC", "template": "\tCopyright 2020 Dynatrace LLC" },
"",
"\tLicensed under the Apache License, Version 2.0 (the \"License\");",
"\tyou may not use this file except in compliance with the License.",
"\tYou may obtain a copy of the License at",
"",
"\thttp://www.apache.org/licenses/LICENSE-2.0",
"",
"\tUnless required by applicable law or agreed to in writing, software",
"\tdistributed under the License is distributed on an \"AS IS\" BASIS,",
"\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
"\tSee the License for the specific language governing permissions and",
"\tlimitations under the License.",
""
]
],
"id-blacklist": [
"error",
"any",
"Boolean",
"boolean"
],
"id-match": "error",
"keyword-spacing": "error",
"max-len": [
"error",
{
"code": 200,
"ignoreStrings": true
}
],
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-debugger": "error",
"no-empty": "error",
"no-eval": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 5
}
],
"no-new-wrappers": "error",
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"object-curly-spacing": [
"error",
"always",
{
"arraysInObjects": true,
"objectsInObjects": true
}
],
"one-var": [
"error",
"never"
],
"radix": "error",
"space-before-blocks": "error",
"use-isnan": "error"
}
}