-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
334 lines (334 loc) · 13.2 KB
/
index.d.ts
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
/* eslint-disable-next-line no-underscore-dangle, init-declarations */
declare const _default: (
| { readonly rules: Readonly<import("eslint").Linter.RulesRecord> }
| {
name: "binden/eslint-config";
rules: {
"array-callback-return": [
"error",
{ allowImplicit: true; checkForEach: true },
];
"no-await-in-loop": "off";
"no-constant-binary-expression": "warn";
"no-constructor-return": "error";
"no-duplicate-imports": "error";
"no-promise-executor-return": "error";
"no-self-compare": "error";
"no-template-curly-in-string": "error";
"no-unmodified-loop-condition": "warn";
"no-unreachable-loop": "error";
"no-unused-private-class-members": "error";
"no-use-before-define": "error";
"require-atomic-updates": "error";
"accessor-pairs": "off";
"arrow-body-style": "error";
"block-scoped-var": "error";
camelcase: "off";
"capitalized-comments": "off";
"class-methods-use-this": "warn";
complexity: "off";
"consistent-return": "error";
"consistent-this": "off";
curly: "error";
"default-case": "error";
"default-case-last": "error";
"default-param-last": "error";
"dot-notation": "error";
eqeqeq: "error";
"func-name-matching": "error";
"func-names": ["error", "as-needed"];
"func-style": [
"error",
"declaration",
{
allowArrowFunctions: true;
},
];
"grouped-accessor-pairs": "error";
"guard-for-in": "off";
"id-denylist": "off";
"id-length": "off";
"id-match": "off";
"init-declarations": "warn";
"max-classes-per-file": "off";
"max-depth": "off";
"max-lines": "off";
"max-lines-per-function": "off";
"max-nested-callbacks": "off";
"max-params": "off";
"max-statements": "off";
"new-cap": "warn";
"no-alert": "warn";
"no-array-constructor": "error";
"no-bitwise": "off";
"no-caller": "error";
"no-confusing-arrow": "error";
"no-console": "error";
"no-continue": "error";
"no-div-regex": "error";
"no-else-return": "error";
"no-empty-function": "error";
"no-eq-null": "error";
"no-eval": "error";
"no-extend-native": "error";
"no-extra-bind": "error";
"no-extra-label": "error";
"no-floating-decimal": "error";
"no-implicit-coercion": "error";
"no-implicit-globals": "off";
"no-implied-eval": "error";
"no-inline-comments": "error";
"no-invalid-this": "error";
"no-iterator": "error";
"no-label-var": "error";
"no-labels": "error";
"no-lone-blocks": "error";
"no-lonely-if": "error";
"no-loop-func": "error";
"no-mixed-operators": "off";
"no-multi-assign": "error";
"no-multi-str": "error";
"no-negated-condition": "warn";
"no-nested-ternary": "off";
"no-new": "error";
"no-new-func": "error";
"no-new-object": "error";
"no-new-wrappers": "error";
"no-octal-escape": "error";
"no-param-reassign": "error";
"no-plusplus": "error";
"no-proto": "error";
"no-restricted-exports": "off";
"no-restricted-globals": "off";
"no-restricted-imports": "off";
"no-restricted-properties": "off";
"no-restricted-syntax": "off";
"no-return-assign": "error";
"no-return-await": "error";
"no-script-url": "error";
"no-sequences": "error";
"no-shadow": "error";
"no-ternary": "off";
"no-throw-literal": "error";
"no-undef-init": "error";
"no-undefined": "error";
"no-underscore-dangle": [
"error",
{
enforceInMethodNames: true;
enforceInClassFields: true;
},
];
"no-unneeded-ternary": "error";
"no-unused-expressions": "error";
"no-useless-call": "error";
"no-useless-computed-key": "error";
"no-useless-concat": "error";
"no-useless-constructor": "error";
"no-useless-rename": "error";
"no-var": "error";
"no-void": "error";
"no-warning-comments": "error";
"object-shorthand": "error";
"one-var": ["error", "never"];
"one-var-declaration-per-line": ["error", "always"];
"operator-assignment": "error";
"prefer-arrow-callback": "error";
"prefer-const": "error";
"prefer-destructuring": "error";
"prefer-exponentiation-operator": "error";
"prefer-named-capture-group": "error";
"prefer-numeric-literals": "error";
"prefer-object-has-own": "error";
"prefer-object-spread": "error";
"prefer-promise-reject-errors": "error";
"prefer-regex-literals": "off";
"prefer-rest-params": "error";
"prefer-spread": "error";
"prefer-template": "error";
"quote-props": ["error", "as-needed"];
radix: "error";
"require-await": "error";
"require-unicode-regexp": "error";
"sort-imports": "off";
"sort-keys": "off";
"sort-vars": "error";
"spaced-comment": ["error", "always"];
strict: ["error", "never"];
"symbol-description": "error";
"vars-on-top": "error";
yoda: ["error", "never"];
"array-bracket-newline": "off";
"array-bracket-spacing": "off";
"array-element-newline": "off";
"arrow-parens": "off";
"arrow-spacing": "off";
"block-spacing": "off";
"brace-style": "off";
"comma-dangle": "off";
"comma-spacing": "off";
"comma-style": "off";
"computed-property-spacing": "off";
"dot-location": "off";
"eol-last": "error";
"func-call-spacing": "off";
"function-call-argument-newline": "off";
"function-paren-newline": "off";
"generator-star-spacing": "off";
"implicit-arrow-linebreak": "off";
indent: "off";
"jsx-quotes": "off";
"key-spacing": "off";
"keyword-spacing": "off";
"line-comment-position": [
"warn",
{
position: "above";
},
];
"linebreak-style": ["error", "unix"];
"lines-around-comment": "off";
"lines-between-class-members": "off";
"max-len": "off";
"max-statements-per-line": "off";
"multiline-ternary": "off";
"new-parens": "off";
"newline-per-chained-call": "off";
"no-extra-parens": "off";
"no-multi-spaces": "off";
"no-multiple-empty-lines": "off";
"no-tabs": "off";
"no-trailing-spaces": "off";
"no-whitespace-before-property": "off";
"nonblock-statement-body-position": "off";
"object-curly-newline": "off";
"object-curly-spacing": "off";
"operator-linebreak": "off";
"padded-blocks": "off";
"padding-line-between-statements": "off";
quotes: "off";
"rest-spread-spacing": "off";
semi: "off";
"semi-spacing": "off";
"semi-style": "off";
"space-before-blocks": "off";
"space-before-function-paren": "off";
"space-in-parens": "off";
"space-infix-ops": "off";
"space-unary-ops": "off";
"switch-colon-spacing": "off";
"template-curly-spacing": "off";
"template-tag-spacing": "off";
"unicode-bom": "off";
};
}
| import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Config
| {
rules: {
"@typescript-eslint/array-type": (string | { default: string })[];
"@typescript-eslint/ban-tslint-comment": string;
"@typescript-eslint/class-literal-property-style": string[];
"@typescript-eslint/consistent-generic-constructors": string[];
"@typescript-eslint/consistent-indexed-object-style": string[];
"@typescript-eslint/consistent-type-definitions": string[];
"@typescript-eslint/consistent-type-exports": (
| string
| { fixMixedExportsWithInlineTypeSpecifier: boolean }
)[];
"@typescript-eslint/consistent-type-imports": string;
"@typescript-eslint/explicit-function-return-type": string;
"@typescript-eslint/explicit-member-accessibility": string;
"@typescript-eslint/explicit-module-boundary-types": string;
"@typescript-eslint/member-delimiter-style": string;
"@typescript-eslint/member-ordering": string;
"@typescript-eslint/method-signature-style": string[];
"@typescript-eslint/naming-convention": string;
"@typescript-eslint/no-base-to-string": string;
"@typescript-eslint/no-confusing-void-expression": string;
"@typescript-eslint/no-duplicate-enum-values": string;
"@typescript-eslint/no-dynamic-delete": string;
"@typescript-eslint/no-empty-object-type": [
string,
{ allowInterfaces: "never" | "with-single-extends" | "always" },
];
"@typescript-eslint/no-extraneous-class": string;
"@typescript-eslint/no-invalid-void-type": string;
"@typescript-eslint/no-meaningless-void-operator": string;
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": string;
"@typescript-eslint/no-redundant-type-constituents": string;
"@typescript-eslint/no-require-imports": string;
"@typescript-eslint/no-type-alias": string;
"@typescript-eslint/no-unnecessary-boolean-literal-compare": string;
"@typescript-eslint/no-unnecessary-condition": string;
"@typescript-eslint/no-unnecessary-qualifier": string;
"@typescript-eslint/no-unnecessary-type-arguments": string;
"@typescript-eslint/no-useless-empty-export": string;
"@typescript-eslint/parameter-properties": string;
"@typescript-eslint/prefer-enum-initializers": string;
"@typescript-eslint/prefer-for-of": string;
"@typescript-eslint/prefer-function-type": string;
"@typescript-eslint/prefer-includes": string;
"@typescript-eslint/prefer-literal-enum-member": string;
"@typescript-eslint/prefer-nullish-coalescing": string;
"@typescript-eslint/prefer-optional-chain": string;
"@typescript-eslint/prefer-readonly": string;
"@typescript-eslint/prefer-readonly-parameter-types": string;
"@typescript-eslint/prefer-regexp-exec": string;
"@typescript-eslint/prefer-ts-expect-error": string;
"@typescript-eslint/promise-function-async": string;
"@typescript-eslint/require-array-sort-compare": string;
"@typescript-eslint/strict-boolean-expressions": string;
"@typescript-eslint/switch-exhaustiveness-check": string;
"@typescript-eslint/type-annotation-spacing": string;
"@typescript-eslint/typedef": string;
"@typescript-eslint/unified-signatures": [
string,
{ ignoreDifferentlyNamedParameters: boolean },
];
"@typescript-eslint/brace-style": string;
"@typescript-eslint/comma-dangle": string;
"@typescript-eslint/comma-spacing": string;
"default-param-last": string;
"@typescript-eslint/default-param-last": string;
"dot-notation": string;
"@typescript-eslint/dot-notation": string;
"@typescript-eslint/func-call-spacing": string;
"@typescript-eslint/indent": string;
"@typescript-eslint/keyword-spacing": string;
"@typescript-eslint/lines-between-class-members": string;
"no-dupe-class-members": string;
"@typescript-eslint/no-dupe-class-members": string;
"@typescript-eslint/no-extra-parens": string;
"no-invalid-this": string;
"@typescript-eslint/no-invalid-this": string;
"no-loop-func": string;
"@typescript-eslint/no-loop-func": string;
"no-redeclare": string;
"@typescript-eslint/no-redeclare": string;
"@typescript-eslint/no-restricted-imports": string;
"no-shadow": string;
"@typescript-eslint/no-shadow": string;
"no-throw-literal": string;
"@typescript-eslint/no-throw-literal": string;
"no-unused-expressions": string;
"@typescript-eslint/no-unused-expressions": string;
"no-use-before-define": string;
"@typescript-eslint/no-use-before-define": string;
"no-useless-constructor": string;
"@typescript-eslint/no-useless-constructor": string;
"@typescript-eslint/object-curly-spacing": string;
"@typescript-eslint/padding-line-between-statements": string;
"@typescript-eslint/quotes": string;
"no-return-await": string;
"@typescript-eslint/return-await": string;
"@typescript-eslint/semi": string;
"space-before-blocks": string;
"@typescript-eslint/space-before-blocks": string;
"space-before-function-paren": string;
"@typescript-eslint/space-before-function-paren": string;
"space-infix-ops": string;
"@typescript-eslint/space-infix-ops": string;
};
}
)[];
export default _default;