@perfective/eslint-config 0.28.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.adoc +29 -31
- package/README.md +24 -4
- package/config/plugin.d.ts +0 -3
- package/config/plugin.js +0 -24
- package/config.d.ts +1 -1
- package/config.js +1 -4
- package/cypress.d.ts +1 -0
- package/cypress.js +58 -0
- package/index.d.ts +1734 -0
- package/index.js +2 -35
- package/jest-dom.d.ts +1 -0
- package/jest-dom.js +11 -0
- package/jest.d.ts +1 -0
- package/jest.js +24 -0
- package/package.json +49 -17
- package/rules/array-func/index.d.ts +14 -0
- package/rules/cypress/index.d.ts +21 -0
- package/rules/cypress/index.js +4 -1
- package/rules/eslint/index.d.ts +339 -0
- package/rules/eslint/layout-formatting.d.ts +64 -0
- package/rules/eslint/possible-problems.d.ts +96 -0
- package/rules/eslint/possible-problems.js +10 -2
- package/rules/eslint/suggestions.d.ts +181 -0
- package/rules/eslint/suggestions.js +3 -1
- package/rules/eslint-comments/best-practices.d.ts +8 -0
- package/rules/eslint-comments/index.d.ts +21 -0
- package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
- package/rules/import/helpful-warnings.d.ts +10 -0
- package/rules/import/index.d.ts +78 -0
- package/rules/import/module-systems.d.ts +10 -0
- package/rules/import/static-analysis.d.ts +26 -0
- package/rules/import/style-guide.d.ts +33 -0
- package/rules/jest/index.d.ts +124 -0
- package/rules/jest/typescript-eslint.d.ts +5 -0
- package/rules/jest-dom/index.d.ts +32 -0
- package/rules/jsdoc/index.d.ts +134 -0
- package/rules/n/index.d.ts +66 -0
- package/rules/prefer-arrow/index.d.ts +14 -0
- package/rules/promise/index.d.ts +35 -0
- package/rules/rxjs/index.d.ts +60 -0
- package/rules/rxjs/index.js +41 -42
- package/rules/security/index.d.ts +22 -0
- package/rules/simple-import-sort/index.d.ts +10 -0
- package/rules/stylistic/js/index.d.ts +197 -0
- package/rules/stylistic/jsx/index.d.ts +81 -0
- package/rules/stylistic/plus/index.d.ts +14 -0
- package/rules/stylistic/ts/index.d.ts +135 -0
- package/rules/testing-library/index.d.ts +62 -0
- package/rules/typescript-eslint/extension-rules.d.ts +113 -0
- package/rules/typescript-eslint/index.d.ts +369 -0
- package/rules/typescript-eslint/supported-rules.d.ts +253 -0
- package/rules/unicorn/index.d.ts +178 -0
- package/rxjs.d.ts +1 -0
- package/rxjs.js +58 -0
- package/testing-library.d.ts +1 -0
- package/testing-library.js +11 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
export declare const typescriptEslintConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
'@typescript-eslint': import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.Plugin;
|
|
4
|
+
};
|
|
5
|
+
rules: {
|
|
6
|
+
'block-spacing': string;
|
|
7
|
+
'@typescript-eslint/block-spacing': string;
|
|
8
|
+
'brace-style': string;
|
|
9
|
+
'@typescript-eslint/brace-style': string;
|
|
10
|
+
'class-methods-use-this': string;
|
|
11
|
+
'@typescript-eslint/class-methods-use-this': string;
|
|
12
|
+
'comma-dangle': string;
|
|
13
|
+
'@typescript-eslint/comma-dangle': string;
|
|
14
|
+
'comma-spacing': string;
|
|
15
|
+
'@typescript-eslint/comma-spacing': string;
|
|
16
|
+
'consistent-return': string;
|
|
17
|
+
'@typescript-eslint/consistent-return': string;
|
|
18
|
+
'default-param-last': string;
|
|
19
|
+
'@typescript-eslint/default-param-last': string;
|
|
20
|
+
'dot-notation': string;
|
|
21
|
+
'@typescript-eslint/dot-notation': (string | {
|
|
22
|
+
allowKeywords: boolean;
|
|
23
|
+
allowPrivateClassPropertyAccess: boolean;
|
|
24
|
+
allowProtectedClassPropertyAccess: boolean;
|
|
25
|
+
})[];
|
|
26
|
+
'func-call-spacing': string;
|
|
27
|
+
'@typescript-eslint/func-call-spacing': string;
|
|
28
|
+
indent: string;
|
|
29
|
+
'@typescript-eslint/indent': string;
|
|
30
|
+
'init-declarations': string;
|
|
31
|
+
'@typescript-eslint/init-declarations': string[];
|
|
32
|
+
'key-spacing': string;
|
|
33
|
+
'@typescript-eslint/key-spacing': string;
|
|
34
|
+
'keyword-spacing': string;
|
|
35
|
+
'@typescript-eslint/keyword-spacing': string;
|
|
36
|
+
'lines-around-comment': string;
|
|
37
|
+
'@typescript-eslint/lines-around-comment': string;
|
|
38
|
+
'lines-between-class-members': string;
|
|
39
|
+
'@typescript-eslint/lines-between-class-members': string;
|
|
40
|
+
'no-array-constructor': string;
|
|
41
|
+
'@typescript-eslint/no-array-constructor': string;
|
|
42
|
+
'no-dupe-class-members': string;
|
|
43
|
+
'@typescript-eslint/no-dupe-class-members': string;
|
|
44
|
+
'no-empty-function': string;
|
|
45
|
+
'@typescript-eslint/no-empty-function': (string | {
|
|
46
|
+
allow: string[];
|
|
47
|
+
})[];
|
|
48
|
+
'no-extra-parens': string;
|
|
49
|
+
'@typescript-eslint/no-extra-parens': string;
|
|
50
|
+
'no-extra-semi': string;
|
|
51
|
+
'@typescript-eslint/no-extra-semi': string;
|
|
52
|
+
'no-implied-eval': string;
|
|
53
|
+
'@typescript-eslint/no-implied-eval': string;
|
|
54
|
+
'no-invalid-this': string;
|
|
55
|
+
'@typescript-eslint/no-invalid-this': string;
|
|
56
|
+
'no-loop-func': string;
|
|
57
|
+
'@typescript-eslint/no-loop-func': string;
|
|
58
|
+
'@typescript-eslint/no-loss-of-precision': string;
|
|
59
|
+
'no-magic-numbers': string;
|
|
60
|
+
'@typescript-eslint/no-magic-numbers': string;
|
|
61
|
+
'no-redeclare': string;
|
|
62
|
+
'@typescript-eslint/no-redeclare': string;
|
|
63
|
+
'no-restricted-imports': string;
|
|
64
|
+
'@typescript-eslint/no-restricted-imports': {}[];
|
|
65
|
+
'no-shadow': string;
|
|
66
|
+
'@typescript-eslint/no-shadow': string;
|
|
67
|
+
'no-throw-literal': string;
|
|
68
|
+
'@typescript-eslint/only-throw-error': (string | {
|
|
69
|
+
allowThrowingAny: boolean;
|
|
70
|
+
allowThrowingUnknown: boolean;
|
|
71
|
+
})[];
|
|
72
|
+
'no-unused-expressions': string;
|
|
73
|
+
'@typescript-eslint/no-unused-expressions': string;
|
|
74
|
+
'no-unused-vars': string;
|
|
75
|
+
'@typescript-eslint/no-unused-vars': (string | {
|
|
76
|
+
args: string;
|
|
77
|
+
argsIgnorePattern: string;
|
|
78
|
+
caughtErrors: string;
|
|
79
|
+
destructuredArrayIgnorePattern: string;
|
|
80
|
+
ignoreRestSiblings: boolean;
|
|
81
|
+
vars: string;
|
|
82
|
+
})[];
|
|
83
|
+
'no-use-before-define': string;
|
|
84
|
+
'@typescript-eslint/no-use-before-define': (string | {
|
|
85
|
+
functions: boolean;
|
|
86
|
+
classes: boolean;
|
|
87
|
+
variables: boolean;
|
|
88
|
+
allowNamedExports: boolean;
|
|
89
|
+
enums: boolean;
|
|
90
|
+
typedefs: boolean;
|
|
91
|
+
ignoreTypeReferences: boolean;
|
|
92
|
+
})[];
|
|
93
|
+
'no-useless-constructor': string;
|
|
94
|
+
'@typescript-eslint/no-useless-constructor': string;
|
|
95
|
+
'object-curly-spacing': string;
|
|
96
|
+
'@typescript-eslint/object-curly-spacing': string;
|
|
97
|
+
'padding-line-between-statements': string;
|
|
98
|
+
'@typescript-eslint/padding-line-between-statements': string;
|
|
99
|
+
'prefer-destructuring': string;
|
|
100
|
+
'@typescript-eslint/prefer-destructuring': string;
|
|
101
|
+
'prefer-promise-reject-errors': string;
|
|
102
|
+
'@typescript-eslint/prefer-promise-reject-errors': string;
|
|
103
|
+
quotes: string;
|
|
104
|
+
'@typescript-eslint/quotes': string;
|
|
105
|
+
'require-await': string;
|
|
106
|
+
'@typescript-eslint/require-await': string;
|
|
107
|
+
'no-return-await': string;
|
|
108
|
+
'@typescript-eslint/return-await': string[];
|
|
109
|
+
semi: string;
|
|
110
|
+
'@typescript-eslint/semi': string;
|
|
111
|
+
'space-before-blocks': string;
|
|
112
|
+
'@typescript-eslint/space-before-blocks': string;
|
|
113
|
+
'space-before-function-paren': string;
|
|
114
|
+
'@typescript-eslint/space-before-function-paren': string;
|
|
115
|
+
'space-infix-ops': string;
|
|
116
|
+
'@typescript-eslint/space-infix-ops': string;
|
|
117
|
+
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
118
|
+
'@typescript-eslint/array-type': (string | {
|
|
119
|
+
default: string;
|
|
120
|
+
readonly: string;
|
|
121
|
+
})[];
|
|
122
|
+
'@typescript-eslint/await-thenable': string;
|
|
123
|
+
'@typescript-eslint/ban-ts-comment': string;
|
|
124
|
+
'@typescript-eslint/ban-tslint-comment': string;
|
|
125
|
+
'@typescript-eslint/ban-types': string;
|
|
126
|
+
'@typescript-eslint/class-literal-property-style': string;
|
|
127
|
+
'@typescript-eslint/consistent-generic-constructors': string[];
|
|
128
|
+
'@typescript-eslint/consistent-indexed-object-style': string[];
|
|
129
|
+
'@typescript-eslint/consistent-type-assertions': (string | {
|
|
130
|
+
assertionStyle: string;
|
|
131
|
+
objectLiteralTypeAssertions: string;
|
|
132
|
+
})[];
|
|
133
|
+
'@typescript-eslint/consistent-type-definitions': string[];
|
|
134
|
+
'@typescript-eslint/consistent-type-exports': (string | {
|
|
135
|
+
fixMixedExportsWithInlineTypeSpecifier: boolean;
|
|
136
|
+
})[];
|
|
137
|
+
'@typescript-eslint/consistent-type-imports': (string | {
|
|
138
|
+
prefer: string;
|
|
139
|
+
disallowTypeAnnotations: boolean;
|
|
140
|
+
})[];
|
|
141
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
142
|
+
allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
|
|
143
|
+
allowDirectConstAssertionInArrowFunctions: boolean;
|
|
144
|
+
allowExpressions: boolean;
|
|
145
|
+
allowFunctionsWithoutTypeParameters: boolean;
|
|
146
|
+
allowHigherOrderFunctions: boolean;
|
|
147
|
+
allowIIFEs: boolean;
|
|
148
|
+
allowTypedFunctionExpressions: boolean;
|
|
149
|
+
allowedNames: never[];
|
|
150
|
+
})[];
|
|
151
|
+
'@typescript-eslint/explicit-member-accessibility': string;
|
|
152
|
+
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
153
|
+
'@typescript-eslint/member-delimiter-style': string;
|
|
154
|
+
'@typescript-eslint/member-ordering': (string | {
|
|
155
|
+
default: string[];
|
|
156
|
+
})[];
|
|
157
|
+
'@typescript-eslint/method-signature-style': string[];
|
|
158
|
+
'@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
|
|
159
|
+
'@typescript-eslint/no-array-delete': string;
|
|
160
|
+
'@typescript-eslint/no-base-to-string': string;
|
|
161
|
+
'@typescript-eslint/no-confusing-non-null-assertion': string;
|
|
162
|
+
'@typescript-eslint/no-confusing-void-expression': (string | {
|
|
163
|
+
ignoreArrowShorthand: boolean;
|
|
164
|
+
ignoreVoidOperator: boolean;
|
|
165
|
+
})[];
|
|
166
|
+
'@typescript-eslint/no-deprecated': string;
|
|
167
|
+
'@typescript-eslint/no-duplicate-enum-values': string;
|
|
168
|
+
'@typescript-eslint/no-duplicate-type-constituents': (string | {
|
|
169
|
+
ignoreIntersections: boolean;
|
|
170
|
+
ignoreUnions: boolean;
|
|
171
|
+
})[];
|
|
172
|
+
'@typescript-eslint/no-dynamic-delete': string;
|
|
173
|
+
'@typescript-eslint/no-empty-interface': (string | {
|
|
174
|
+
allowSingleExtends: boolean;
|
|
175
|
+
})[];
|
|
176
|
+
'@typescript-eslint/no-empty-object-type': (string | {
|
|
177
|
+
allowInterfaces: string;
|
|
178
|
+
allowObjectTypes: string;
|
|
179
|
+
})[];
|
|
180
|
+
'@typescript-eslint/no-explicit-any': (string | {
|
|
181
|
+
fixToUnknown: boolean;
|
|
182
|
+
ignoreRestArgs: boolean;
|
|
183
|
+
})[];
|
|
184
|
+
'@typescript-eslint/no-extra-non-null-assertion': string;
|
|
185
|
+
'@typescript-eslint/no-extraneous-class': (string | {
|
|
186
|
+
allowConstructorOnly: boolean;
|
|
187
|
+
allowEmpty: boolean;
|
|
188
|
+
allowStaticOnly: boolean;
|
|
189
|
+
allowWithDecorator: boolean;
|
|
190
|
+
})[];
|
|
191
|
+
'@typescript-eslint/no-floating-promises': (string | {
|
|
192
|
+
allowForKnownSafeCalls: never[];
|
|
193
|
+
allowForKnownSafePromises: never[];
|
|
194
|
+
checkThenables: boolean;
|
|
195
|
+
ignoreIIFE: boolean;
|
|
196
|
+
ignoreVoid: boolean;
|
|
197
|
+
})[];
|
|
198
|
+
'@typescript-eslint/no-for-in-array': string;
|
|
199
|
+
'@typescript-eslint/no-import-type-side-effects': string;
|
|
200
|
+
'@typescript-eslint/no-inferrable-types': string;
|
|
201
|
+
'@typescript-eslint/no-invalid-void-type': (string | {
|
|
202
|
+
allowInGenericTypeArguments: boolean;
|
|
203
|
+
})[];
|
|
204
|
+
'@typescript-eslint/no-meaningless-void-operator': (string | {
|
|
205
|
+
checkNever: boolean;
|
|
206
|
+
})[];
|
|
207
|
+
'@typescript-eslint/no-misused-new': string;
|
|
208
|
+
'@typescript-eslint/no-misused-promises': (string | {
|
|
209
|
+
checksConditionals: boolean;
|
|
210
|
+
checksVoidReturn: boolean;
|
|
211
|
+
})[];
|
|
212
|
+
'@typescript-eslint/no-mixed-enums': string;
|
|
213
|
+
'@typescript-eslint/no-namespace': string;
|
|
214
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
|
|
215
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': string;
|
|
216
|
+
'@typescript-eslint/no-non-null-assertion': string;
|
|
217
|
+
'@typescript-eslint/no-redundant-type-constituents': string;
|
|
218
|
+
'@typescript-eslint/no-unnecessary-type-parameters': string;
|
|
219
|
+
'@typescript-eslint/no-require-imports': (string | {
|
|
220
|
+
allow: never[];
|
|
221
|
+
})[];
|
|
222
|
+
'@typescript-eslint/no-restricted-types': (string | {
|
|
223
|
+
types: {
|
|
224
|
+
object: {
|
|
225
|
+
message: string;
|
|
226
|
+
suggest: string[];
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
})[];
|
|
230
|
+
'@typescript-eslint/no-this-alias': string;
|
|
231
|
+
'@typescript-eslint/no-type-alias': string;
|
|
232
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
|
|
233
|
+
allowComparingNullableBooleansToTrue: boolean;
|
|
234
|
+
allowComparingNullableBooleansToFalse: boolean;
|
|
235
|
+
})[];
|
|
236
|
+
'@typescript-eslint/no-unnecessary-condition': (string | {
|
|
237
|
+
allowConstantLoopConditions: boolean;
|
|
238
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
|
|
239
|
+
checkTypePredicates: boolean;
|
|
240
|
+
})[];
|
|
241
|
+
'@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
|
|
242
|
+
'@typescript-eslint/no-unnecessary-qualifier': string;
|
|
243
|
+
'@typescript-eslint/no-unnecessary-template-expression': string;
|
|
244
|
+
'@typescript-eslint/no-unnecessary-type-arguments': string;
|
|
245
|
+
'@typescript-eslint/no-unnecessary-type-assertion': string;
|
|
246
|
+
'@typescript-eslint/no-unnecessary-type-constraint': string;
|
|
247
|
+
'@typescript-eslint/no-unsafe-argument': string;
|
|
248
|
+
'@typescript-eslint/no-unsafe-assignment': string;
|
|
249
|
+
'@typescript-eslint/no-unsafe-call': string;
|
|
250
|
+
'@typescript-eslint/no-unsafe-declaration-merging': string;
|
|
251
|
+
'@typescript-eslint/no-unsafe-enum-comparison': string;
|
|
252
|
+
'@typescript-eslint/no-unsafe-function-type': string;
|
|
253
|
+
'@typescript-eslint/no-unsafe-member-access': string;
|
|
254
|
+
'@typescript-eslint/no-unsafe-return': string;
|
|
255
|
+
'@typescript-eslint/no-unsafe-type-assertion': string;
|
|
256
|
+
'@typescript-eslint/no-unsafe-unary-minus': string;
|
|
257
|
+
'@typescript-eslint/no-useless-empty-export': string;
|
|
258
|
+
'@typescript-eslint/no-useless-template-literal': string;
|
|
259
|
+
'@typescript-eslint/no-var-requires': (string | {
|
|
260
|
+
allow: never[];
|
|
261
|
+
})[];
|
|
262
|
+
'@typescript-eslint/no-wrapper-object-types': string;
|
|
263
|
+
'@typescript-eslint/non-nullable-type-assertion-style': string;
|
|
264
|
+
'@typescript-eslint/parameter-properties': (string | {
|
|
265
|
+
prefer: string;
|
|
266
|
+
})[];
|
|
267
|
+
'@typescript-eslint/prefer-as-const': string;
|
|
268
|
+
'@typescript-eslint/prefer-enum-initializers': string;
|
|
269
|
+
'@typescript-eslint/prefer-find': string;
|
|
270
|
+
'@typescript-eslint/prefer-for-of': string;
|
|
271
|
+
'@typescript-eslint/prefer-function-type': string;
|
|
272
|
+
'@typescript-eslint/prefer-includes': string;
|
|
273
|
+
'@typescript-eslint/prefer-literal-enum-member': (string | {
|
|
274
|
+
allowBitwiseExpressions: boolean;
|
|
275
|
+
})[];
|
|
276
|
+
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
277
|
+
'@typescript-eslint/prefer-nullish-coalescing': (string | {
|
|
278
|
+
ignoreBooleanCoercion: boolean;
|
|
279
|
+
ignoreTernaryTests: boolean;
|
|
280
|
+
ignoreConditionalTests: boolean;
|
|
281
|
+
ignoreMixedLogicalExpressions: boolean;
|
|
282
|
+
ignorePrimitives: {
|
|
283
|
+
bigint: boolean;
|
|
284
|
+
boolean: boolean;
|
|
285
|
+
number: boolean;
|
|
286
|
+
string: boolean;
|
|
287
|
+
};
|
|
288
|
+
})[];
|
|
289
|
+
'@typescript-eslint/prefer-optional-chain': (string | {
|
|
290
|
+
checkAny: boolean;
|
|
291
|
+
checkUnknown: boolean;
|
|
292
|
+
checkString: boolean;
|
|
293
|
+
checkNumber: boolean;
|
|
294
|
+
checkBoolean: boolean;
|
|
295
|
+
checkBigInt: boolean;
|
|
296
|
+
requireNullish: boolean;
|
|
297
|
+
})[];
|
|
298
|
+
'@typescript-eslint/prefer-readonly': string;
|
|
299
|
+
'@typescript-eslint/prefer-readonly-parameter-types': string;
|
|
300
|
+
'@typescript-eslint/prefer-reduce-type-parameter': string;
|
|
301
|
+
'@typescript-eslint/prefer-regexp-exec': string;
|
|
302
|
+
'@typescript-eslint/prefer-return-this-type': string;
|
|
303
|
+
'@typescript-eslint/prefer-string-starts-ends-with': (string | {
|
|
304
|
+
allowSingleElementEquality: string;
|
|
305
|
+
})[];
|
|
306
|
+
'@typescript-eslint/prefer-ts-expect-error': string;
|
|
307
|
+
'@typescript-eslint/promise-function-async': (string | {
|
|
308
|
+
checkArrowFunctions: boolean;
|
|
309
|
+
})[];
|
|
310
|
+
'@typescript-eslint/require-array-sort-compare': (string | {
|
|
311
|
+
ignoreStringArrays: boolean;
|
|
312
|
+
})[];
|
|
313
|
+
'@typescript-eslint/restrict-plus-operands': (string | {
|
|
314
|
+
allowAny: boolean;
|
|
315
|
+
allowBoolean: boolean;
|
|
316
|
+
allowNullish: boolean;
|
|
317
|
+
allowNumberAndString: boolean;
|
|
318
|
+
allowRegExp: boolean;
|
|
319
|
+
skipCompoundAssignments: boolean;
|
|
320
|
+
})[];
|
|
321
|
+
'@typescript-eslint/restrict-template-expressions': (string | {
|
|
322
|
+
allowAny: boolean;
|
|
323
|
+
allowArray: boolean;
|
|
324
|
+
allowBoolean: boolean;
|
|
325
|
+
allowNullish: boolean;
|
|
326
|
+
allowNumber: boolean;
|
|
327
|
+
allowRegExp: boolean;
|
|
328
|
+
allowNever: boolean;
|
|
329
|
+
})[];
|
|
330
|
+
'@typescript-eslint/sort-type-constituents': string;
|
|
331
|
+
'@typescript-eslint/strict-boolean-expressions': (string | {
|
|
332
|
+
allowString: boolean;
|
|
333
|
+
allowNumber: boolean;
|
|
334
|
+
allowNullableEnum: boolean;
|
|
335
|
+
allowNullableObject: boolean;
|
|
336
|
+
allowNullableBoolean: boolean;
|
|
337
|
+
allowNullableString: boolean;
|
|
338
|
+
allowNullableNumber: boolean;
|
|
339
|
+
allowAny: boolean;
|
|
340
|
+
})[];
|
|
341
|
+
'@typescript-eslint/switch-exhaustiveness-check': (string | {
|
|
342
|
+
allowDefaultCaseForExhaustiveSwitch: boolean;
|
|
343
|
+
requireDefaultForNonUnion: boolean;
|
|
344
|
+
})[];
|
|
345
|
+
'@typescript-eslint/triple-slash-reference': (string | {
|
|
346
|
+
path: string;
|
|
347
|
+
types: string;
|
|
348
|
+
lib: string;
|
|
349
|
+
})[];
|
|
350
|
+
'@typescript-eslint/type-annotation-spacing': string;
|
|
351
|
+
'@typescript-eslint/typedef': (string | {
|
|
352
|
+
arrayDestructuring: boolean;
|
|
353
|
+
arrowParameter: boolean;
|
|
354
|
+
memberVariableDeclaration: boolean;
|
|
355
|
+
objectDestructuring: boolean;
|
|
356
|
+
parameter: boolean;
|
|
357
|
+
propertyDeclaration: boolean;
|
|
358
|
+
variableDeclaration: boolean;
|
|
359
|
+
variableDeclarationIgnoreFunction: boolean;
|
|
360
|
+
})[];
|
|
361
|
+
'@typescript-eslint/unbound-method': (string | {
|
|
362
|
+
ignoreStatic: boolean;
|
|
363
|
+
})[];
|
|
364
|
+
'@typescript-eslint/unified-signatures': (string | {
|
|
365
|
+
ignoreDifferentlyNamedParameters: boolean;
|
|
366
|
+
})[];
|
|
367
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export declare const supportedRules: {
|
|
2
|
+
'@typescript-eslint/adjacent-overload-signatures': string;
|
|
3
|
+
'@typescript-eslint/array-type': (string | {
|
|
4
|
+
default: string;
|
|
5
|
+
readonly: string;
|
|
6
|
+
})[];
|
|
7
|
+
'@typescript-eslint/await-thenable': string;
|
|
8
|
+
'@typescript-eslint/ban-ts-comment': string;
|
|
9
|
+
'@typescript-eslint/ban-tslint-comment': string;
|
|
10
|
+
'@typescript-eslint/ban-types': string;
|
|
11
|
+
'@typescript-eslint/class-literal-property-style': string;
|
|
12
|
+
'@typescript-eslint/consistent-generic-constructors': string[];
|
|
13
|
+
'@typescript-eslint/consistent-indexed-object-style': string[];
|
|
14
|
+
'@typescript-eslint/consistent-type-assertions': (string | {
|
|
15
|
+
assertionStyle: string;
|
|
16
|
+
objectLiteralTypeAssertions: string;
|
|
17
|
+
})[];
|
|
18
|
+
'@typescript-eslint/consistent-type-definitions': string[];
|
|
19
|
+
'@typescript-eslint/consistent-type-exports': (string | {
|
|
20
|
+
fixMixedExportsWithInlineTypeSpecifier: boolean;
|
|
21
|
+
})[];
|
|
22
|
+
'@typescript-eslint/consistent-type-imports': (string | {
|
|
23
|
+
prefer: string;
|
|
24
|
+
disallowTypeAnnotations: boolean;
|
|
25
|
+
})[];
|
|
26
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
27
|
+
allowConciseArrowFunctionExpressionsStartingWithVoid: boolean;
|
|
28
|
+
allowDirectConstAssertionInArrowFunctions: boolean;
|
|
29
|
+
allowExpressions: boolean;
|
|
30
|
+
allowFunctionsWithoutTypeParameters: boolean;
|
|
31
|
+
allowHigherOrderFunctions: boolean;
|
|
32
|
+
allowIIFEs: boolean;
|
|
33
|
+
allowTypedFunctionExpressions: boolean;
|
|
34
|
+
allowedNames: never[];
|
|
35
|
+
})[];
|
|
36
|
+
'@typescript-eslint/explicit-member-accessibility': string;
|
|
37
|
+
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
38
|
+
'@typescript-eslint/member-delimiter-style': string;
|
|
39
|
+
'@typescript-eslint/member-ordering': (string | {
|
|
40
|
+
default: string[];
|
|
41
|
+
})[];
|
|
42
|
+
'@typescript-eslint/method-signature-style': string[];
|
|
43
|
+
'@typescript-eslint/naming-convention': (string | import("./rules/typescript-eslint-naming-convention").TypescriptEslintNamingConvention)[];
|
|
44
|
+
'@typescript-eslint/no-array-delete': string;
|
|
45
|
+
'@typescript-eslint/no-base-to-string': string;
|
|
46
|
+
'@typescript-eslint/no-confusing-non-null-assertion': string;
|
|
47
|
+
'@typescript-eslint/no-confusing-void-expression': (string | {
|
|
48
|
+
ignoreArrowShorthand: boolean;
|
|
49
|
+
ignoreVoidOperator: boolean;
|
|
50
|
+
})[];
|
|
51
|
+
'@typescript-eslint/no-deprecated': string;
|
|
52
|
+
'@typescript-eslint/no-duplicate-enum-values': string;
|
|
53
|
+
'@typescript-eslint/no-duplicate-type-constituents': (string | {
|
|
54
|
+
ignoreIntersections: boolean;
|
|
55
|
+
ignoreUnions: boolean;
|
|
56
|
+
})[];
|
|
57
|
+
'@typescript-eslint/no-dynamic-delete': string;
|
|
58
|
+
'@typescript-eslint/no-empty-interface': (string | {
|
|
59
|
+
allowSingleExtends: boolean;
|
|
60
|
+
})[];
|
|
61
|
+
'@typescript-eslint/no-empty-object-type': (string | {
|
|
62
|
+
allowInterfaces: string;
|
|
63
|
+
allowObjectTypes: string;
|
|
64
|
+
})[];
|
|
65
|
+
'@typescript-eslint/no-explicit-any': (string | {
|
|
66
|
+
fixToUnknown: boolean;
|
|
67
|
+
ignoreRestArgs: boolean;
|
|
68
|
+
})[];
|
|
69
|
+
'@typescript-eslint/no-extra-non-null-assertion': string;
|
|
70
|
+
'@typescript-eslint/no-extraneous-class': (string | {
|
|
71
|
+
allowConstructorOnly: boolean;
|
|
72
|
+
allowEmpty: boolean;
|
|
73
|
+
allowStaticOnly: boolean;
|
|
74
|
+
allowWithDecorator: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@typescript-eslint/no-floating-promises': (string | {
|
|
77
|
+
allowForKnownSafeCalls: never[];
|
|
78
|
+
allowForKnownSafePromises: never[];
|
|
79
|
+
checkThenables: boolean;
|
|
80
|
+
ignoreIIFE: boolean;
|
|
81
|
+
ignoreVoid: boolean;
|
|
82
|
+
})[];
|
|
83
|
+
'@typescript-eslint/no-for-in-array': string;
|
|
84
|
+
'@typescript-eslint/no-import-type-side-effects': string;
|
|
85
|
+
'@typescript-eslint/no-inferrable-types': string;
|
|
86
|
+
'@typescript-eslint/no-invalid-void-type': (string | {
|
|
87
|
+
allowInGenericTypeArguments: boolean;
|
|
88
|
+
})[];
|
|
89
|
+
'@typescript-eslint/no-meaningless-void-operator': (string | {
|
|
90
|
+
checkNever: boolean;
|
|
91
|
+
})[];
|
|
92
|
+
'@typescript-eslint/no-misused-new': string;
|
|
93
|
+
'@typescript-eslint/no-misused-promises': (string | {
|
|
94
|
+
checksConditionals: boolean;
|
|
95
|
+
checksVoidReturn: boolean;
|
|
96
|
+
})[];
|
|
97
|
+
'@typescript-eslint/no-mixed-enums': string;
|
|
98
|
+
'@typescript-eslint/no-namespace': string;
|
|
99
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': string;
|
|
100
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': string;
|
|
101
|
+
'@typescript-eslint/no-non-null-assertion': string;
|
|
102
|
+
'@typescript-eslint/no-redundant-type-constituents': string;
|
|
103
|
+
'@typescript-eslint/no-unnecessary-type-parameters': string;
|
|
104
|
+
'@typescript-eslint/no-require-imports': (string | {
|
|
105
|
+
allow: never[];
|
|
106
|
+
})[];
|
|
107
|
+
'@typescript-eslint/no-restricted-types': (string | {
|
|
108
|
+
types: {
|
|
109
|
+
object: {
|
|
110
|
+
message: string;
|
|
111
|
+
suggest: string[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
})[];
|
|
115
|
+
'@typescript-eslint/no-this-alias': string;
|
|
116
|
+
'@typescript-eslint/no-type-alias': string;
|
|
117
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': (string | {
|
|
118
|
+
allowComparingNullableBooleansToTrue: boolean;
|
|
119
|
+
allowComparingNullableBooleansToFalse: boolean;
|
|
120
|
+
})[];
|
|
121
|
+
'@typescript-eslint/no-unnecessary-condition': (string | {
|
|
122
|
+
allowConstantLoopConditions: boolean;
|
|
123
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
|
|
124
|
+
checkTypePredicates: boolean;
|
|
125
|
+
})[];
|
|
126
|
+
'@typescript-eslint/no-unnecessary-parameter-property-assignment': string;
|
|
127
|
+
'@typescript-eslint/no-unnecessary-qualifier': string;
|
|
128
|
+
'@typescript-eslint/no-unnecessary-template-expression': string;
|
|
129
|
+
'@typescript-eslint/no-unnecessary-type-arguments': string;
|
|
130
|
+
'@typescript-eslint/no-unnecessary-type-assertion': string;
|
|
131
|
+
'@typescript-eslint/no-unnecessary-type-constraint': string;
|
|
132
|
+
'@typescript-eslint/no-unsafe-argument': string;
|
|
133
|
+
'@typescript-eslint/no-unsafe-assignment': string;
|
|
134
|
+
'@typescript-eslint/no-unsafe-call': string;
|
|
135
|
+
'@typescript-eslint/no-unsafe-declaration-merging': string;
|
|
136
|
+
'@typescript-eslint/no-unsafe-enum-comparison': string;
|
|
137
|
+
'@typescript-eslint/no-unsafe-function-type': string;
|
|
138
|
+
'@typescript-eslint/no-unsafe-member-access': string;
|
|
139
|
+
'@typescript-eslint/no-unsafe-return': string;
|
|
140
|
+
'@typescript-eslint/no-unsafe-type-assertion': string;
|
|
141
|
+
'@typescript-eslint/no-unsafe-unary-minus': string;
|
|
142
|
+
'@typescript-eslint/no-useless-empty-export': string;
|
|
143
|
+
'@typescript-eslint/no-useless-template-literal': string;
|
|
144
|
+
'@typescript-eslint/no-var-requires': (string | {
|
|
145
|
+
allow: never[];
|
|
146
|
+
})[];
|
|
147
|
+
'@typescript-eslint/no-wrapper-object-types': string;
|
|
148
|
+
'@typescript-eslint/non-nullable-type-assertion-style': string;
|
|
149
|
+
'@typescript-eslint/parameter-properties': (string | {
|
|
150
|
+
prefer: string;
|
|
151
|
+
})[];
|
|
152
|
+
'@typescript-eslint/prefer-as-const': string;
|
|
153
|
+
'@typescript-eslint/prefer-enum-initializers': string;
|
|
154
|
+
'@typescript-eslint/prefer-find': string;
|
|
155
|
+
'@typescript-eslint/prefer-for-of': string;
|
|
156
|
+
'@typescript-eslint/prefer-function-type': string;
|
|
157
|
+
'@typescript-eslint/prefer-includes': string;
|
|
158
|
+
'@typescript-eslint/prefer-literal-enum-member': (string | {
|
|
159
|
+
allowBitwiseExpressions: boolean;
|
|
160
|
+
})[];
|
|
161
|
+
'@typescript-eslint/prefer-namespace-keyword': string;
|
|
162
|
+
'@typescript-eslint/prefer-nullish-coalescing': (string | {
|
|
163
|
+
ignoreBooleanCoercion: boolean;
|
|
164
|
+
ignoreTernaryTests: boolean;
|
|
165
|
+
ignoreConditionalTests: boolean;
|
|
166
|
+
ignoreMixedLogicalExpressions: boolean;
|
|
167
|
+
ignorePrimitives: {
|
|
168
|
+
bigint: boolean;
|
|
169
|
+
boolean: boolean;
|
|
170
|
+
number: boolean;
|
|
171
|
+
string: boolean;
|
|
172
|
+
};
|
|
173
|
+
})[];
|
|
174
|
+
'@typescript-eslint/prefer-optional-chain': (string | {
|
|
175
|
+
checkAny: boolean;
|
|
176
|
+
checkUnknown: boolean;
|
|
177
|
+
checkString: boolean;
|
|
178
|
+
checkNumber: boolean;
|
|
179
|
+
checkBoolean: boolean;
|
|
180
|
+
checkBigInt: boolean;
|
|
181
|
+
requireNullish: boolean;
|
|
182
|
+
})[];
|
|
183
|
+
'@typescript-eslint/prefer-readonly': string;
|
|
184
|
+
'@typescript-eslint/prefer-readonly-parameter-types': string;
|
|
185
|
+
'@typescript-eslint/prefer-reduce-type-parameter': string;
|
|
186
|
+
'@typescript-eslint/prefer-regexp-exec': string;
|
|
187
|
+
'@typescript-eslint/prefer-return-this-type': string;
|
|
188
|
+
'@typescript-eslint/prefer-string-starts-ends-with': (string | {
|
|
189
|
+
allowSingleElementEquality: string;
|
|
190
|
+
})[];
|
|
191
|
+
'@typescript-eslint/prefer-ts-expect-error': string;
|
|
192
|
+
'@typescript-eslint/promise-function-async': (string | {
|
|
193
|
+
checkArrowFunctions: boolean;
|
|
194
|
+
})[];
|
|
195
|
+
'@typescript-eslint/require-array-sort-compare': (string | {
|
|
196
|
+
ignoreStringArrays: boolean;
|
|
197
|
+
})[];
|
|
198
|
+
'@typescript-eslint/restrict-plus-operands': (string | {
|
|
199
|
+
allowAny: boolean;
|
|
200
|
+
allowBoolean: boolean;
|
|
201
|
+
allowNullish: boolean;
|
|
202
|
+
allowNumberAndString: boolean;
|
|
203
|
+
allowRegExp: boolean;
|
|
204
|
+
skipCompoundAssignments: boolean;
|
|
205
|
+
})[];
|
|
206
|
+
'@typescript-eslint/restrict-template-expressions': (string | {
|
|
207
|
+
allowAny: boolean;
|
|
208
|
+
allowArray: boolean;
|
|
209
|
+
allowBoolean: boolean;
|
|
210
|
+
allowNullish: boolean;
|
|
211
|
+
allowNumber: boolean;
|
|
212
|
+
allowRegExp: boolean;
|
|
213
|
+
allowNever: boolean;
|
|
214
|
+
})[];
|
|
215
|
+
'@typescript-eslint/sort-type-constituents': string;
|
|
216
|
+
'@typescript-eslint/strict-boolean-expressions': (string | {
|
|
217
|
+
allowString: boolean;
|
|
218
|
+
allowNumber: boolean;
|
|
219
|
+
allowNullableEnum: boolean;
|
|
220
|
+
allowNullableObject: boolean;
|
|
221
|
+
allowNullableBoolean: boolean;
|
|
222
|
+
allowNullableString: boolean;
|
|
223
|
+
allowNullableNumber: boolean;
|
|
224
|
+
allowAny: boolean;
|
|
225
|
+
})[];
|
|
226
|
+
'@typescript-eslint/switch-exhaustiveness-check': (string | {
|
|
227
|
+
allowDefaultCaseForExhaustiveSwitch: boolean;
|
|
228
|
+
requireDefaultForNonUnion: boolean;
|
|
229
|
+
})[];
|
|
230
|
+
'@typescript-eslint/triple-slash-reference': (string | {
|
|
231
|
+
path: string;
|
|
232
|
+
types: string;
|
|
233
|
+
lib: string;
|
|
234
|
+
})[];
|
|
235
|
+
'@typescript-eslint/type-annotation-spacing': string;
|
|
236
|
+
'@typescript-eslint/typedef': (string | {
|
|
237
|
+
arrayDestructuring: boolean;
|
|
238
|
+
arrowParameter: boolean;
|
|
239
|
+
memberVariableDeclaration: boolean;
|
|
240
|
+
objectDestructuring: boolean;
|
|
241
|
+
parameter: boolean;
|
|
242
|
+
propertyDeclaration: boolean;
|
|
243
|
+
variableDeclaration: boolean;
|
|
244
|
+
variableDeclarationIgnoreFunction: boolean;
|
|
245
|
+
})[];
|
|
246
|
+
'@typescript-eslint/unbound-method': (string | {
|
|
247
|
+
ignoreStatic: boolean;
|
|
248
|
+
})[];
|
|
249
|
+
'@typescript-eslint/unified-signatures': (string | {
|
|
250
|
+
ignoreDifferentlyNamedParameters: boolean;
|
|
251
|
+
})[];
|
|
252
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': string;
|
|
253
|
+
};
|