@daopk/eslint-config 0.0.4 → 0.1.0
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/dist/index.d.ts +926 -195
- package/dist/index.js +171 -130
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
|
|
2
1
|
import { Linter } from 'eslint';
|
|
2
|
+
import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
|
|
3
|
+
|
|
4
|
+
type StylisticOptions = Omit<StylisticCustomizeOptions, 'flat' | 'pluginName'>;
|
|
3
5
|
|
|
4
6
|
/* eslint-disable */
|
|
5
7
|
/* prettier-ignore */
|
|
@@ -1313,7 +1315,7 @@ interface RuleOptions {
|
|
|
1313
1315
|
* Disallow identifiers from shadowing restricted names
|
|
1314
1316
|
* @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
|
|
1315
1317
|
*/
|
|
1316
|
-
'no-shadow-restricted-names'?: Linter.RuleEntry<
|
|
1318
|
+
'no-shadow-restricted-names'?: Linter.RuleEntry<NoShadowRestrictedNames>
|
|
1317
1319
|
/**
|
|
1318
1320
|
* Disallow spacing between function identifiers and their applications (deprecated)
|
|
1319
1321
|
* @see https://eslint.org/docs/latest/rules/no-spaced-func
|
|
@@ -2475,7 +2477,7 @@ interface RuleOptions {
|
|
|
2475
2477
|
'stylistic/semi'?: Linter.RuleEntry<StylisticSemi>
|
|
2476
2478
|
/**
|
|
2477
2479
|
* Enforce consistent spacing before and after semicolons
|
|
2478
|
-
* @see https://eslint.style/rules/
|
|
2480
|
+
* @see https://eslint.style/rules/ts/semi-spacing
|
|
2479
2481
|
*/
|
|
2480
2482
|
'stylistic/semi-spacing'?: Linter.RuleEntry<StylisticSemiSpacing>
|
|
2481
2483
|
/**
|
|
@@ -2793,7 +2795,7 @@ interface RuleOptions {
|
|
|
2793
2795
|
*/
|
|
2794
2796
|
'typescript/no-for-in-array'?: Linter.RuleEntry<[]>
|
|
2795
2797
|
/**
|
|
2796
|
-
* Disallow the use of `eval()`-like
|
|
2798
|
+
* Disallow the use of `eval()`-like functions
|
|
2797
2799
|
* @see https://typescript-eslint.io/rules/no-implied-eval
|
|
2798
2800
|
*/
|
|
2799
2801
|
'typescript/no-implied-eval'?: Linter.RuleEntry<[]>
|
|
@@ -3409,6 +3411,8 @@ type CapitalizedComments = []|[("always" | "never")]|[("always" | "never"), ({
|
|
|
3409
3411
|
type ClassMethodsUseThis = []|[{
|
|
3410
3412
|
exceptMethods?: string[]
|
|
3411
3413
|
enforceForClassFields?: boolean
|
|
3414
|
+
ignoreOverrideMethods?: boolean
|
|
3415
|
+
ignoreClassesWithImplements?: ("all" | "public-fields")
|
|
3412
3416
|
}]
|
|
3413
3417
|
// ----- comma-dangle -----
|
|
3414
3418
|
type CommaDangle = []|[(_CommaDangleValue | {
|
|
@@ -4401,7 +4405,7 @@ type NoEmpty = []|[{
|
|
|
4401
4405
|
}]
|
|
4402
4406
|
// ----- no-empty-function -----
|
|
4403
4407
|
type NoEmptyFunction = []|[{
|
|
4404
|
-
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
|
|
4408
|
+
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
|
|
4405
4409
|
}]
|
|
4406
4410
|
// ----- no-empty-pattern -----
|
|
4407
4411
|
type NoEmptyPattern = []|[{
|
|
@@ -4603,13 +4607,9 @@ type NoRestrictedModules = ((string | {
|
|
|
4603
4607
|
}[])
|
|
4604
4608
|
// ----- no-restricted-properties -----
|
|
4605
4609
|
type NoRestrictedProperties = ({
|
|
4606
|
-
|
|
4607
|
-
property?: string
|
|
4608
|
-
message?: string
|
|
4610
|
+
[k: string]: unknown | undefined
|
|
4609
4611
|
} | {
|
|
4610
|
-
|
|
4611
|
-
property: string
|
|
4612
|
-
message?: string
|
|
4612
|
+
[k: string]: unknown | undefined
|
|
4613
4613
|
})[]
|
|
4614
4614
|
// ----- no-restricted-syntax -----
|
|
4615
4615
|
type NoRestrictedSyntax = (string | {
|
|
@@ -4633,6 +4633,10 @@ type NoShadow = []|[{
|
|
|
4633
4633
|
allow?: string[]
|
|
4634
4634
|
ignoreOnInitialization?: boolean
|
|
4635
4635
|
}]
|
|
4636
|
+
// ----- no-shadow-restricted-names -----
|
|
4637
|
+
type NoShadowRestrictedNames = []|[{
|
|
4638
|
+
reportGlobalThis?: boolean
|
|
4639
|
+
}]
|
|
4636
4640
|
// ----- no-sync -----
|
|
4637
4641
|
type NoSync = []|[{
|
|
4638
4642
|
allowAtRootLevel?: boolean
|
|
@@ -4684,6 +4688,7 @@ type NoUnusedExpressions = []|[{
|
|
|
4684
4688
|
allowTernary?: boolean
|
|
4685
4689
|
allowTaggedTemplates?: boolean
|
|
4686
4690
|
enforceForJSX?: boolean
|
|
4691
|
+
ignoreDirectives?: boolean
|
|
4687
4692
|
}]
|
|
4688
4693
|
// ----- no-unused-vars -----
|
|
4689
4694
|
type NoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -5102,6 +5107,14 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5102
5107
|
|
|
5103
5108
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5104
5109
|
|
|
5110
|
+
fallbackSort?: {
|
|
5111
|
+
|
|
5112
|
+
order?: ("asc" | "desc")
|
|
5113
|
+
|
|
5114
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5115
|
+
[k: string]: unknown | undefined
|
|
5116
|
+
}
|
|
5117
|
+
|
|
5105
5118
|
ignoreCase?: boolean
|
|
5106
5119
|
|
|
5107
5120
|
alphabet?: string
|
|
@@ -5110,6 +5123,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5110
5123
|
|
|
5111
5124
|
order?: ("asc" | "desc")
|
|
5112
5125
|
|
|
5126
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5127
|
+
|
|
5113
5128
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
5114
5129
|
|
|
5115
5130
|
customGroups?: ({
|
|
@@ -5125,7 +5140,13 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5125
5140
|
|
|
5126
5141
|
selector?: ("literal" | "spread")
|
|
5127
5142
|
|
|
5128
|
-
elementNamePattern?:
|
|
5143
|
+
elementNamePattern?: (({
|
|
5144
|
+
pattern?: string
|
|
5145
|
+
flags?: string
|
|
5146
|
+
} | string)[] | ({
|
|
5147
|
+
pattern?: string
|
|
5148
|
+
flags?: string
|
|
5149
|
+
} | string))
|
|
5129
5150
|
}[]
|
|
5130
5151
|
} | {
|
|
5131
5152
|
|
|
@@ -5139,18 +5160,46 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5139
5160
|
|
|
5140
5161
|
selector?: ("literal" | "spread")
|
|
5141
5162
|
|
|
5142
|
-
elementNamePattern?:
|
|
5163
|
+
elementNamePattern?: (({
|
|
5164
|
+
pattern?: string
|
|
5165
|
+
flags?: string
|
|
5166
|
+
} | string)[] | ({
|
|
5167
|
+
pattern?: string
|
|
5168
|
+
flags?: string
|
|
5169
|
+
} | string))
|
|
5143
5170
|
})[]
|
|
5144
5171
|
useConfigurationIf?: {
|
|
5145
|
-
|
|
5172
|
+
|
|
5173
|
+
allNamesMatchPattern?: (({
|
|
5174
|
+
pattern?: string
|
|
5175
|
+
flags?: string
|
|
5176
|
+
} | string)[] | ({
|
|
5177
|
+
pattern?: string
|
|
5178
|
+
flags?: string
|
|
5179
|
+
} | string))
|
|
5146
5180
|
}
|
|
5147
5181
|
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5182
|
+
partitionByComment?: (boolean | (({
|
|
5183
|
+
pattern?: string
|
|
5184
|
+
flags?: string
|
|
5185
|
+
} | string)[] | ({
|
|
5186
|
+
pattern?: string
|
|
5187
|
+
flags?: string
|
|
5188
|
+
} | string)) | {
|
|
5189
|
+
block?: (boolean | (({
|
|
5190
|
+
pattern?: string
|
|
5191
|
+
flags?: string
|
|
5192
|
+
} | string)[] | ({
|
|
5193
|
+
pattern?: string
|
|
5194
|
+
flags?: string
|
|
5195
|
+
} | string)))
|
|
5196
|
+
line?: (boolean | (({
|
|
5197
|
+
pattern?: string
|
|
5198
|
+
flags?: string
|
|
5199
|
+
} | string)[] | ({
|
|
5200
|
+
pattern?: string
|
|
5201
|
+
flags?: string
|
|
5202
|
+
} | string)))
|
|
5154
5203
|
})
|
|
5155
5204
|
|
|
5156
5205
|
partitionByNewLine?: boolean
|
|
@@ -5160,7 +5209,6 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5160
5209
|
groups?: (string | string[] | {
|
|
5161
5210
|
|
|
5162
5211
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5163
|
-
[k: string]: unknown | undefined
|
|
5164
5212
|
})[]
|
|
5165
5213
|
}[]
|
|
5166
5214
|
// ----- perfectionist/sort-classes -----
|
|
@@ -5168,6 +5216,14 @@ type PerfectionistSortClasses = []|[{
|
|
|
5168
5216
|
|
|
5169
5217
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5170
5218
|
|
|
5219
|
+
fallbackSort?: {
|
|
5220
|
+
|
|
5221
|
+
order?: ("asc" | "desc")
|
|
5222
|
+
|
|
5223
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5224
|
+
[k: string]: unknown | undefined
|
|
5225
|
+
}
|
|
5226
|
+
|
|
5171
5227
|
ignoreCase?: boolean
|
|
5172
5228
|
|
|
5173
5229
|
alphabet?: string
|
|
@@ -5176,7 +5232,7 @@ type PerfectionistSortClasses = []|[{
|
|
|
5176
5232
|
|
|
5177
5233
|
order?: ("asc" | "desc")
|
|
5178
5234
|
|
|
5179
|
-
|
|
5235
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5180
5236
|
|
|
5181
5237
|
customGroups?: ({
|
|
5182
5238
|
|
|
@@ -5189,15 +5245,33 @@ type PerfectionistSortClasses = []|[{
|
|
|
5189
5245
|
newlinesInside?: ("always" | "never")
|
|
5190
5246
|
anyOf?: {
|
|
5191
5247
|
|
|
5192
|
-
decoratorNamePattern?: string
|
|
5193
|
-
|
|
5194
5248
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
5195
5249
|
|
|
5196
5250
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
5197
5251
|
|
|
5198
|
-
|
|
5252
|
+
decoratorNamePattern?: (({
|
|
5253
|
+
pattern?: string
|
|
5254
|
+
flags?: string
|
|
5255
|
+
} | string)[] | ({
|
|
5256
|
+
pattern?: string
|
|
5257
|
+
flags?: string
|
|
5258
|
+
} | string))
|
|
5259
|
+
|
|
5260
|
+
elementValuePattern?: (({
|
|
5261
|
+
pattern?: string
|
|
5262
|
+
flags?: string
|
|
5263
|
+
} | string)[] | ({
|
|
5264
|
+
pattern?: string
|
|
5265
|
+
flags?: string
|
|
5266
|
+
} | string))
|
|
5199
5267
|
|
|
5200
|
-
elementNamePattern?:
|
|
5268
|
+
elementNamePattern?: (({
|
|
5269
|
+
pattern?: string
|
|
5270
|
+
flags?: string
|
|
5271
|
+
} | string)[] | ({
|
|
5272
|
+
pattern?: string
|
|
5273
|
+
flags?: string
|
|
5274
|
+
} | string))
|
|
5201
5275
|
}[]
|
|
5202
5276
|
} | {
|
|
5203
5277
|
|
|
@@ -5209,33 +5283,73 @@ type PerfectionistSortClasses = []|[{
|
|
|
5209
5283
|
|
|
5210
5284
|
newlinesInside?: ("always" | "never")
|
|
5211
5285
|
|
|
5212
|
-
decoratorNamePattern?: string
|
|
5213
|
-
|
|
5214
5286
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
5215
5287
|
|
|
5216
5288
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
5217
5289
|
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5290
|
+
decoratorNamePattern?: (({
|
|
5291
|
+
pattern?: string
|
|
5292
|
+
flags?: string
|
|
5293
|
+
} | string)[] | ({
|
|
5294
|
+
pattern?: string
|
|
5295
|
+
flags?: string
|
|
5296
|
+
} | string))
|
|
5297
|
+
|
|
5298
|
+
elementValuePattern?: (({
|
|
5299
|
+
pattern?: string
|
|
5300
|
+
flags?: string
|
|
5301
|
+
} | string)[] | ({
|
|
5302
|
+
pattern?: string
|
|
5303
|
+
flags?: string
|
|
5304
|
+
} | string))
|
|
5305
|
+
|
|
5306
|
+
elementNamePattern?: (({
|
|
5307
|
+
pattern?: string
|
|
5308
|
+
flags?: string
|
|
5309
|
+
} | string)[] | ({
|
|
5310
|
+
pattern?: string
|
|
5311
|
+
flags?: string
|
|
5312
|
+
} | string))
|
|
5221
5313
|
})[]
|
|
5222
5314
|
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5315
|
+
ignoreCallbackDependenciesPatterns?: (({
|
|
5316
|
+
pattern?: string
|
|
5317
|
+
flags?: string
|
|
5318
|
+
} | string)[] | ({
|
|
5319
|
+
pattern?: string
|
|
5320
|
+
flags?: string
|
|
5321
|
+
} | string))
|
|
5322
|
+
|
|
5323
|
+
partitionByComment?: (boolean | (({
|
|
5324
|
+
pattern?: string
|
|
5325
|
+
flags?: string
|
|
5326
|
+
} | string)[] | ({
|
|
5327
|
+
pattern?: string
|
|
5328
|
+
flags?: string
|
|
5329
|
+
} | string)) | {
|
|
5330
|
+
block?: (boolean | (({
|
|
5331
|
+
pattern?: string
|
|
5332
|
+
flags?: string
|
|
5333
|
+
} | string)[] | ({
|
|
5334
|
+
pattern?: string
|
|
5335
|
+
flags?: string
|
|
5336
|
+
} | string)))
|
|
5337
|
+
line?: (boolean | (({
|
|
5338
|
+
pattern?: string
|
|
5339
|
+
flags?: string
|
|
5340
|
+
} | string)[] | ({
|
|
5341
|
+
pattern?: string
|
|
5342
|
+
flags?: string
|
|
5343
|
+
} | string)))
|
|
5227
5344
|
})
|
|
5228
5345
|
|
|
5229
5346
|
partitionByNewLine?: boolean
|
|
5230
5347
|
|
|
5231
5348
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5232
5349
|
|
|
5233
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5234
|
-
|
|
5235
5350
|
groups?: (string | string[] | {
|
|
5236
5351
|
|
|
5237
5352
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5238
|
-
[k: string]: unknown | undefined
|
|
5239
5353
|
})[]
|
|
5240
5354
|
}]
|
|
5241
5355
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -5243,6 +5357,14 @@ type PerfectionistSortDecorators = []|[{
|
|
|
5243
5357
|
|
|
5244
5358
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5245
5359
|
|
|
5360
|
+
fallbackSort?: {
|
|
5361
|
+
|
|
5362
|
+
order?: ("asc" | "desc")
|
|
5363
|
+
|
|
5364
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5365
|
+
[k: string]: unknown | undefined
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5246
5368
|
ignoreCase?: boolean
|
|
5247
5369
|
|
|
5248
5370
|
alphabet?: string
|
|
@@ -5251,6 +5373,8 @@ type PerfectionistSortDecorators = []|[{
|
|
|
5251
5373
|
|
|
5252
5374
|
order?: ("asc" | "desc")
|
|
5253
5375
|
|
|
5376
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5377
|
+
|
|
5254
5378
|
sortOnParameters?: boolean
|
|
5255
5379
|
|
|
5256
5380
|
sortOnProperties?: boolean
|
|
@@ -5261,22 +5385,36 @@ type PerfectionistSortDecorators = []|[{
|
|
|
5261
5385
|
|
|
5262
5386
|
sortOnClasses?: boolean
|
|
5263
5387
|
|
|
5264
|
-
partitionByComment?: (
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5388
|
+
partitionByComment?: (boolean | (({
|
|
5389
|
+
pattern?: string
|
|
5390
|
+
flags?: string
|
|
5391
|
+
} | string)[] | ({
|
|
5392
|
+
pattern?: string
|
|
5393
|
+
flags?: string
|
|
5394
|
+
} | string)) | {
|
|
5395
|
+
block?: (boolean | (({
|
|
5396
|
+
pattern?: string
|
|
5397
|
+
flags?: string
|
|
5398
|
+
} | string)[] | ({
|
|
5399
|
+
pattern?: string
|
|
5400
|
+
flags?: string
|
|
5401
|
+
} | string)))
|
|
5402
|
+
line?: (boolean | (({
|
|
5403
|
+
pattern?: string
|
|
5404
|
+
flags?: string
|
|
5405
|
+
} | string)[] | ({
|
|
5406
|
+
pattern?: string
|
|
5407
|
+
flags?: string
|
|
5408
|
+
} | string)))
|
|
5268
5409
|
})
|
|
5269
5410
|
|
|
5270
5411
|
customGroups?: {
|
|
5271
5412
|
[k: string]: (string | string[]) | undefined
|
|
5272
5413
|
}
|
|
5273
5414
|
|
|
5274
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5275
|
-
|
|
5276
5415
|
groups?: (string | string[] | {
|
|
5277
5416
|
|
|
5278
5417
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5279
|
-
[k: string]: unknown | undefined
|
|
5280
5418
|
})[]
|
|
5281
5419
|
}]
|
|
5282
5420
|
// ----- perfectionist/sort-enums -----
|
|
@@ -5284,6 +5422,14 @@ type PerfectionistSortEnums = []|[{
|
|
|
5284
5422
|
|
|
5285
5423
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5286
5424
|
|
|
5425
|
+
fallbackSort?: {
|
|
5426
|
+
|
|
5427
|
+
order?: ("asc" | "desc")
|
|
5428
|
+
|
|
5429
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5430
|
+
[k: string]: unknown | undefined
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5287
5433
|
ignoreCase?: boolean
|
|
5288
5434
|
|
|
5289
5435
|
alphabet?: string
|
|
@@ -5292,6 +5438,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
5292
5438
|
|
|
5293
5439
|
order?: ("asc" | "desc")
|
|
5294
5440
|
|
|
5441
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5442
|
+
|
|
5295
5443
|
forceNumericSort?: boolean
|
|
5296
5444
|
customGroups?: ({
|
|
5297
5445
|
[k: string]: (string | string[]) | undefined
|
|
@@ -5306,9 +5454,21 @@ type PerfectionistSortEnums = []|[{
|
|
|
5306
5454
|
newlinesInside?: ("always" | "never")
|
|
5307
5455
|
anyOf?: {
|
|
5308
5456
|
|
|
5309
|
-
elementValuePattern?:
|
|
5457
|
+
elementValuePattern?: (({
|
|
5458
|
+
pattern?: string
|
|
5459
|
+
flags?: string
|
|
5460
|
+
} | string)[] | ({
|
|
5461
|
+
pattern?: string
|
|
5462
|
+
flags?: string
|
|
5463
|
+
} | string))
|
|
5310
5464
|
|
|
5311
|
-
elementNamePattern?:
|
|
5465
|
+
elementNamePattern?: (({
|
|
5466
|
+
pattern?: string
|
|
5467
|
+
flags?: string
|
|
5468
|
+
} | string)[] | ({
|
|
5469
|
+
pattern?: string
|
|
5470
|
+
flags?: string
|
|
5471
|
+
} | string))
|
|
5312
5472
|
}[]
|
|
5313
5473
|
} | {
|
|
5314
5474
|
|
|
@@ -5320,29 +5480,55 @@ type PerfectionistSortEnums = []|[{
|
|
|
5320
5480
|
|
|
5321
5481
|
newlinesInside?: ("always" | "never")
|
|
5322
5482
|
|
|
5323
|
-
elementValuePattern?:
|
|
5324
|
-
|
|
5325
|
-
|
|
5483
|
+
elementValuePattern?: (({
|
|
5484
|
+
pattern?: string
|
|
5485
|
+
flags?: string
|
|
5486
|
+
} | string)[] | ({
|
|
5487
|
+
pattern?: string
|
|
5488
|
+
flags?: string
|
|
5489
|
+
} | string))
|
|
5490
|
+
|
|
5491
|
+
elementNamePattern?: (({
|
|
5492
|
+
pattern?: string
|
|
5493
|
+
flags?: string
|
|
5494
|
+
} | string)[] | ({
|
|
5495
|
+
pattern?: string
|
|
5496
|
+
flags?: string
|
|
5497
|
+
} | string))
|
|
5326
5498
|
})[])
|
|
5327
5499
|
|
|
5328
5500
|
sortByValue?: boolean
|
|
5329
5501
|
|
|
5330
|
-
partitionByComment?: (
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5502
|
+
partitionByComment?: (boolean | (({
|
|
5503
|
+
pattern?: string
|
|
5504
|
+
flags?: string
|
|
5505
|
+
} | string)[] | ({
|
|
5506
|
+
pattern?: string
|
|
5507
|
+
flags?: string
|
|
5508
|
+
} | string)) | {
|
|
5509
|
+
block?: (boolean | (({
|
|
5510
|
+
pattern?: string
|
|
5511
|
+
flags?: string
|
|
5512
|
+
} | string)[] | ({
|
|
5513
|
+
pattern?: string
|
|
5514
|
+
flags?: string
|
|
5515
|
+
} | string)))
|
|
5516
|
+
line?: (boolean | (({
|
|
5517
|
+
pattern?: string
|
|
5518
|
+
flags?: string
|
|
5519
|
+
} | string)[] | ({
|
|
5520
|
+
pattern?: string
|
|
5521
|
+
flags?: string
|
|
5522
|
+
} | string)))
|
|
5334
5523
|
})
|
|
5335
5524
|
|
|
5336
5525
|
partitionByNewLine?: boolean
|
|
5337
5526
|
|
|
5338
5527
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5339
5528
|
|
|
5340
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5341
|
-
|
|
5342
5529
|
groups?: (string | string[] | {
|
|
5343
5530
|
|
|
5344
5531
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5345
|
-
[k: string]: unknown | undefined
|
|
5346
5532
|
})[]
|
|
5347
5533
|
}]
|
|
5348
5534
|
// ----- perfectionist/sort-exports -----
|
|
@@ -5350,6 +5536,14 @@ type PerfectionistSortExports = []|[{
|
|
|
5350
5536
|
|
|
5351
5537
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5352
5538
|
|
|
5539
|
+
fallbackSort?: {
|
|
5540
|
+
|
|
5541
|
+
order?: ("asc" | "desc")
|
|
5542
|
+
|
|
5543
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5544
|
+
[k: string]: unknown | undefined
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5353
5547
|
ignoreCase?: boolean
|
|
5354
5548
|
|
|
5355
5549
|
alphabet?: string
|
|
@@ -5358,23 +5552,48 @@ type PerfectionistSortExports = []|[{
|
|
|
5358
5552
|
|
|
5359
5553
|
order?: ("asc" | "desc")
|
|
5360
5554
|
|
|
5555
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5556
|
+
|
|
5361
5557
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
5362
5558
|
|
|
5363
|
-
partitionByComment?: (
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5559
|
+
partitionByComment?: (boolean | (({
|
|
5560
|
+
pattern?: string
|
|
5561
|
+
flags?: string
|
|
5562
|
+
} | string)[] | ({
|
|
5563
|
+
pattern?: string
|
|
5564
|
+
flags?: string
|
|
5565
|
+
} | string)) | {
|
|
5566
|
+
block?: (boolean | (({
|
|
5567
|
+
pattern?: string
|
|
5568
|
+
flags?: string
|
|
5569
|
+
} | string)[] | ({
|
|
5570
|
+
pattern?: string
|
|
5571
|
+
flags?: string
|
|
5572
|
+
} | string)))
|
|
5573
|
+
line?: (boolean | (({
|
|
5574
|
+
pattern?: string
|
|
5575
|
+
flags?: string
|
|
5576
|
+
} | string)[] | ({
|
|
5577
|
+
pattern?: string
|
|
5578
|
+
flags?: string
|
|
5579
|
+
} | string)))
|
|
5367
5580
|
})
|
|
5368
5581
|
|
|
5369
5582
|
partitionByNewLine?: boolean
|
|
5370
|
-
|
|
5371
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5372
5583
|
}]
|
|
5373
5584
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
5374
5585
|
type PerfectionistSortHeritageClauses = []|[{
|
|
5375
5586
|
|
|
5376
5587
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5377
5588
|
|
|
5589
|
+
fallbackSort?: {
|
|
5590
|
+
|
|
5591
|
+
order?: ("asc" | "desc")
|
|
5592
|
+
|
|
5593
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5594
|
+
[k: string]: unknown | undefined
|
|
5595
|
+
}
|
|
5596
|
+
|
|
5378
5597
|
ignoreCase?: boolean
|
|
5379
5598
|
|
|
5380
5599
|
alphabet?: string
|
|
@@ -5383,16 +5602,15 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
5383
5602
|
|
|
5384
5603
|
order?: ("asc" | "desc")
|
|
5385
5604
|
|
|
5605
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5606
|
+
|
|
5386
5607
|
customGroups?: {
|
|
5387
5608
|
[k: string]: (string | string[]) | undefined
|
|
5388
5609
|
}
|
|
5389
5610
|
|
|
5390
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5391
|
-
|
|
5392
5611
|
groups?: (string | string[] | {
|
|
5393
5612
|
|
|
5394
5613
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5395
|
-
[k: string]: unknown | undefined
|
|
5396
5614
|
})[]
|
|
5397
5615
|
}]
|
|
5398
5616
|
// ----- perfectionist/sort-imports -----
|
|
@@ -5401,6 +5619,14 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
5401
5619
|
|
|
5402
5620
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5403
5621
|
|
|
5622
|
+
fallbackSort?: {
|
|
5623
|
+
|
|
5624
|
+
order?: ("asc" | "desc")
|
|
5625
|
+
|
|
5626
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5627
|
+
[k: string]: unknown | undefined
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5404
5630
|
ignoreCase?: boolean
|
|
5405
5631
|
|
|
5406
5632
|
alphabet?: string
|
|
@@ -5409,6 +5635,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
5409
5635
|
|
|
5410
5636
|
order?: ("asc" | "desc")
|
|
5411
5637
|
|
|
5638
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5639
|
+
|
|
5412
5640
|
customGroups?: {
|
|
5413
5641
|
|
|
5414
5642
|
value?: {
|
|
@@ -5420,8 +5648,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
5420
5648
|
}
|
|
5421
5649
|
}
|
|
5422
5650
|
|
|
5423
|
-
internalPattern?: string[]
|
|
5424
|
-
|
|
5425
5651
|
maxLineLength?: number
|
|
5426
5652
|
|
|
5427
5653
|
sortSideEffects?: boolean
|
|
@@ -5430,22 +5656,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
5430
5656
|
|
|
5431
5657
|
tsconfigRootDir?: string
|
|
5432
5658
|
|
|
5433
|
-
partitionByComment?: (
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5659
|
+
partitionByComment?: (boolean | (({
|
|
5660
|
+
pattern?: string
|
|
5661
|
+
flags?: string
|
|
5662
|
+
} | string)[] | ({
|
|
5663
|
+
pattern?: string
|
|
5664
|
+
flags?: string
|
|
5665
|
+
} | string)) | {
|
|
5666
|
+
block?: (boolean | (({
|
|
5667
|
+
pattern?: string
|
|
5668
|
+
flags?: string
|
|
5669
|
+
} | string)[] | ({
|
|
5670
|
+
pattern?: string
|
|
5671
|
+
flags?: string
|
|
5672
|
+
} | string)))
|
|
5673
|
+
line?: (boolean | (({
|
|
5674
|
+
pattern?: string
|
|
5675
|
+
flags?: string
|
|
5676
|
+
} | string)[] | ({
|
|
5677
|
+
pattern?: string
|
|
5678
|
+
flags?: string
|
|
5679
|
+
} | string)))
|
|
5437
5680
|
})
|
|
5438
5681
|
|
|
5439
5682
|
partitionByNewLine?: boolean
|
|
5440
5683
|
|
|
5441
5684
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5442
5685
|
|
|
5443
|
-
|
|
5686
|
+
internalPattern?: (({
|
|
5687
|
+
pattern?: string
|
|
5688
|
+
flags?: string
|
|
5689
|
+
} | string)[] | ({
|
|
5690
|
+
pattern?: string
|
|
5691
|
+
flags?: string
|
|
5692
|
+
} | string))
|
|
5444
5693
|
|
|
5445
5694
|
groups?: (string | string[] | {
|
|
5446
5695
|
|
|
5447
5696
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5448
|
-
[k: string]: unknown | undefined
|
|
5449
5697
|
})[]
|
|
5450
5698
|
})
|
|
5451
5699
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
@@ -5460,6 +5708,14 @@ type PerfectionistSortInterfaces = {
|
|
|
5460
5708
|
|
|
5461
5709
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5462
5710
|
|
|
5711
|
+
fallbackSort?: {
|
|
5712
|
+
|
|
5713
|
+
order?: ("asc" | "desc")
|
|
5714
|
+
|
|
5715
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5716
|
+
[k: string]: unknown | undefined
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5463
5719
|
ignoreCase?: boolean
|
|
5464
5720
|
|
|
5465
5721
|
alphabet?: string
|
|
@@ -5468,11 +5724,7 @@ type PerfectionistSortInterfaces = {
|
|
|
5468
5724
|
|
|
5469
5725
|
order?: ("asc" | "desc")
|
|
5470
5726
|
|
|
5471
|
-
|
|
5472
|
-
useConfigurationIf?: {
|
|
5473
|
-
allNamesMatchPattern?: string
|
|
5474
|
-
declarationMatchesPattern?: string
|
|
5475
|
-
}
|
|
5727
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5476
5728
|
customGroups?: ({
|
|
5477
5729
|
[k: string]: (string | string[]) | undefined
|
|
5478
5730
|
} | ({
|
|
@@ -5490,7 +5742,13 @@ type PerfectionistSortInterfaces = {
|
|
|
5490
5742
|
|
|
5491
5743
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
5492
5744
|
|
|
5493
|
-
elementNamePattern?:
|
|
5745
|
+
elementNamePattern?: (({
|
|
5746
|
+
pattern?: string
|
|
5747
|
+
flags?: string
|
|
5748
|
+
} | string)[] | ({
|
|
5749
|
+
pattern?: string
|
|
5750
|
+
flags?: string
|
|
5751
|
+
} | string))
|
|
5494
5752
|
}[]
|
|
5495
5753
|
} | {
|
|
5496
5754
|
|
|
@@ -5506,27 +5764,73 @@ type PerfectionistSortInterfaces = {
|
|
|
5506
5764
|
|
|
5507
5765
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
5508
5766
|
|
|
5509
|
-
elementNamePattern?:
|
|
5767
|
+
elementNamePattern?: (({
|
|
5768
|
+
pattern?: string
|
|
5769
|
+
flags?: string
|
|
5770
|
+
} | string)[] | ({
|
|
5771
|
+
pattern?: string
|
|
5772
|
+
flags?: string
|
|
5773
|
+
} | string))
|
|
5510
5774
|
})[])
|
|
5775
|
+
useConfigurationIf?: {
|
|
5776
|
+
|
|
5777
|
+
allNamesMatchPattern?: (({
|
|
5778
|
+
pattern?: string
|
|
5779
|
+
flags?: string
|
|
5780
|
+
} | string)[] | ({
|
|
5781
|
+
pattern?: string
|
|
5782
|
+
flags?: string
|
|
5783
|
+
} | string))
|
|
5784
|
+
|
|
5785
|
+
declarationMatchesPattern?: (({
|
|
5786
|
+
pattern?: string
|
|
5787
|
+
flags?: string
|
|
5788
|
+
} | string)[] | ({
|
|
5789
|
+
pattern?: string
|
|
5790
|
+
flags?: string
|
|
5791
|
+
} | string))
|
|
5792
|
+
}
|
|
5511
5793
|
|
|
5512
5794
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
5513
5795
|
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5796
|
+
partitionByComment?: (boolean | (({
|
|
5797
|
+
pattern?: string
|
|
5798
|
+
flags?: string
|
|
5799
|
+
} | string)[] | ({
|
|
5800
|
+
pattern?: string
|
|
5801
|
+
flags?: string
|
|
5802
|
+
} | string)) | {
|
|
5803
|
+
block?: (boolean | (({
|
|
5804
|
+
pattern?: string
|
|
5805
|
+
flags?: string
|
|
5806
|
+
} | string)[] | ({
|
|
5807
|
+
pattern?: string
|
|
5808
|
+
flags?: string
|
|
5809
|
+
} | string)))
|
|
5810
|
+
line?: (boolean | (({
|
|
5811
|
+
pattern?: string
|
|
5812
|
+
flags?: string
|
|
5813
|
+
} | string)[] | ({
|
|
5814
|
+
pattern?: string
|
|
5815
|
+
flags?: string
|
|
5816
|
+
} | string)))
|
|
5520
5817
|
})
|
|
5521
5818
|
|
|
5522
5819
|
partitionByNewLine?: boolean
|
|
5523
5820
|
|
|
5524
5821
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5525
5822
|
|
|
5823
|
+
ignorePattern?: (({
|
|
5824
|
+
pattern?: string
|
|
5825
|
+
flags?: string
|
|
5826
|
+
} | string)[] | ({
|
|
5827
|
+
pattern?: string
|
|
5828
|
+
flags?: string
|
|
5829
|
+
} | string))
|
|
5830
|
+
|
|
5526
5831
|
groups?: (string | string[] | {
|
|
5527
5832
|
|
|
5528
5833
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5529
|
-
[k: string]: unknown | undefined
|
|
5530
5834
|
})[]
|
|
5531
5835
|
}[]
|
|
5532
5836
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -5534,6 +5838,14 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
5534
5838
|
|
|
5535
5839
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5536
5840
|
|
|
5841
|
+
fallbackSort?: {
|
|
5842
|
+
|
|
5843
|
+
order?: ("asc" | "desc")
|
|
5844
|
+
|
|
5845
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5846
|
+
[k: string]: unknown | undefined
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5537
5849
|
ignoreCase?: boolean
|
|
5538
5850
|
|
|
5539
5851
|
alphabet?: string
|
|
@@ -5542,29 +5854,53 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
5542
5854
|
|
|
5543
5855
|
order?: ("asc" | "desc")
|
|
5544
5856
|
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5857
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5858
|
+
|
|
5859
|
+
partitionByComment?: (boolean | (({
|
|
5860
|
+
pattern?: string
|
|
5861
|
+
flags?: string
|
|
5862
|
+
} | string)[] | ({
|
|
5863
|
+
pattern?: string
|
|
5864
|
+
flags?: string
|
|
5865
|
+
} | string)) | {
|
|
5866
|
+
block?: (boolean | (({
|
|
5867
|
+
pattern?: string
|
|
5868
|
+
flags?: string
|
|
5869
|
+
} | string)[] | ({
|
|
5870
|
+
pattern?: string
|
|
5871
|
+
flags?: string
|
|
5872
|
+
} | string)))
|
|
5873
|
+
line?: (boolean | (({
|
|
5874
|
+
pattern?: string
|
|
5875
|
+
flags?: string
|
|
5876
|
+
} | string)[] | ({
|
|
5877
|
+
pattern?: string
|
|
5878
|
+
flags?: string
|
|
5879
|
+
} | string)))
|
|
5549
5880
|
})
|
|
5550
5881
|
|
|
5551
5882
|
partitionByNewLine?: boolean
|
|
5552
5883
|
|
|
5553
5884
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5554
5885
|
|
|
5555
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5556
|
-
|
|
5557
5886
|
groups?: (string | string[] | {
|
|
5558
5887
|
|
|
5559
5888
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5560
|
-
[k: string]: unknown | undefined
|
|
5561
5889
|
})[]
|
|
5562
5890
|
}]
|
|
5563
5891
|
// ----- perfectionist/sort-jsx-props -----
|
|
5564
|
-
type PerfectionistSortJsxProps =
|
|
5892
|
+
type PerfectionistSortJsxProps = {
|
|
5565
5893
|
|
|
5566
5894
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5567
5895
|
|
|
5896
|
+
fallbackSort?: {
|
|
5897
|
+
|
|
5898
|
+
order?: ("asc" | "desc")
|
|
5899
|
+
|
|
5900
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5901
|
+
[k: string]: unknown | undefined
|
|
5902
|
+
}
|
|
5903
|
+
|
|
5568
5904
|
ignoreCase?: boolean
|
|
5569
5905
|
|
|
5570
5906
|
alphabet?: string
|
|
@@ -5573,7 +5909,25 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
5573
5909
|
|
|
5574
5910
|
order?: ("asc" | "desc")
|
|
5575
5911
|
|
|
5576
|
-
|
|
5912
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5913
|
+
useConfigurationIf?: {
|
|
5914
|
+
|
|
5915
|
+
allNamesMatchPattern?: (({
|
|
5916
|
+
pattern?: string
|
|
5917
|
+
flags?: string
|
|
5918
|
+
} | string)[] | ({
|
|
5919
|
+
pattern?: string
|
|
5920
|
+
flags?: string
|
|
5921
|
+
} | string))
|
|
5922
|
+
|
|
5923
|
+
tagMatchesPattern?: (({
|
|
5924
|
+
pattern?: string
|
|
5925
|
+
flags?: string
|
|
5926
|
+
} | string)[] | ({
|
|
5927
|
+
pattern?: string
|
|
5928
|
+
flags?: string
|
|
5929
|
+
} | string))
|
|
5930
|
+
}
|
|
5577
5931
|
|
|
5578
5932
|
partitionByNewLine?: boolean
|
|
5579
5933
|
|
|
@@ -5583,19 +5937,32 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
5583
5937
|
[k: string]: (string | string[]) | undefined
|
|
5584
5938
|
}
|
|
5585
5939
|
|
|
5586
|
-
|
|
5940
|
+
ignorePattern?: (({
|
|
5941
|
+
pattern?: string
|
|
5942
|
+
flags?: string
|
|
5943
|
+
} | string)[] | ({
|
|
5944
|
+
pattern?: string
|
|
5945
|
+
flags?: string
|
|
5946
|
+
} | string))
|
|
5587
5947
|
|
|
5588
5948
|
groups?: (string | string[] | {
|
|
5589
5949
|
|
|
5590
5950
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5591
|
-
[k: string]: unknown | undefined
|
|
5592
5951
|
})[]
|
|
5593
|
-
}]
|
|
5952
|
+
}[]
|
|
5594
5953
|
// ----- perfectionist/sort-maps -----
|
|
5595
5954
|
type PerfectionistSortMaps = {
|
|
5596
5955
|
|
|
5597
5956
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5598
5957
|
|
|
5958
|
+
fallbackSort?: {
|
|
5959
|
+
|
|
5960
|
+
order?: ("asc" | "desc")
|
|
5961
|
+
|
|
5962
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5963
|
+
[k: string]: unknown | undefined
|
|
5964
|
+
}
|
|
5965
|
+
|
|
5599
5966
|
ignoreCase?: boolean
|
|
5600
5967
|
|
|
5601
5968
|
alphabet?: string
|
|
@@ -5604,6 +5971,8 @@ type PerfectionistSortMaps = {
|
|
|
5604
5971
|
|
|
5605
5972
|
order?: ("asc" | "desc")
|
|
5606
5973
|
|
|
5974
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5975
|
+
|
|
5607
5976
|
customGroups?: ({
|
|
5608
5977
|
|
|
5609
5978
|
groupName?: string
|
|
@@ -5615,7 +5984,13 @@ type PerfectionistSortMaps = {
|
|
|
5615
5984
|
newlinesInside?: ("always" | "never")
|
|
5616
5985
|
anyOf?: {
|
|
5617
5986
|
|
|
5618
|
-
elementNamePattern?:
|
|
5987
|
+
elementNamePattern?: (({
|
|
5988
|
+
pattern?: string
|
|
5989
|
+
flags?: string
|
|
5990
|
+
} | string)[] | ({
|
|
5991
|
+
pattern?: string
|
|
5992
|
+
flags?: string
|
|
5993
|
+
} | string))
|
|
5619
5994
|
}[]
|
|
5620
5995
|
} | {
|
|
5621
5996
|
|
|
@@ -5627,28 +6002,55 @@ type PerfectionistSortMaps = {
|
|
|
5627
6002
|
|
|
5628
6003
|
newlinesInside?: ("always" | "never")
|
|
5629
6004
|
|
|
5630
|
-
elementNamePattern?:
|
|
6005
|
+
elementNamePattern?: (({
|
|
6006
|
+
pattern?: string
|
|
6007
|
+
flags?: string
|
|
6008
|
+
} | string)[] | ({
|
|
6009
|
+
pattern?: string
|
|
6010
|
+
flags?: string
|
|
6011
|
+
} | string))
|
|
5631
6012
|
})[]
|
|
5632
6013
|
useConfigurationIf?: {
|
|
5633
|
-
|
|
6014
|
+
|
|
6015
|
+
allNamesMatchPattern?: (({
|
|
6016
|
+
pattern?: string
|
|
6017
|
+
flags?: string
|
|
6018
|
+
} | string)[] | ({
|
|
6019
|
+
pattern?: string
|
|
6020
|
+
flags?: string
|
|
6021
|
+
} | string))
|
|
5634
6022
|
}
|
|
5635
6023
|
|
|
5636
|
-
partitionByComment?: (
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
6024
|
+
partitionByComment?: (boolean | (({
|
|
6025
|
+
pattern?: string
|
|
6026
|
+
flags?: string
|
|
6027
|
+
} | string)[] | ({
|
|
6028
|
+
pattern?: string
|
|
6029
|
+
flags?: string
|
|
6030
|
+
} | string)) | {
|
|
6031
|
+
block?: (boolean | (({
|
|
6032
|
+
pattern?: string
|
|
6033
|
+
flags?: string
|
|
6034
|
+
} | string)[] | ({
|
|
6035
|
+
pattern?: string
|
|
6036
|
+
flags?: string
|
|
6037
|
+
} | string)))
|
|
6038
|
+
line?: (boolean | (({
|
|
6039
|
+
pattern?: string
|
|
6040
|
+
flags?: string
|
|
6041
|
+
} | string)[] | ({
|
|
6042
|
+
pattern?: string
|
|
6043
|
+
flags?: string
|
|
6044
|
+
} | string)))
|
|
5640
6045
|
})
|
|
5641
6046
|
|
|
5642
6047
|
partitionByNewLine?: boolean
|
|
5643
6048
|
|
|
5644
6049
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5645
6050
|
|
|
5646
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5647
|
-
|
|
5648
6051
|
groups?: (string | string[] | {
|
|
5649
6052
|
|
|
5650
6053
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5651
|
-
[k: string]: unknown | undefined
|
|
5652
6054
|
})[]
|
|
5653
6055
|
}[]
|
|
5654
6056
|
// ----- perfectionist/sort-modules -----
|
|
@@ -5656,6 +6058,14 @@ type PerfectionistSortModules = []|[{
|
|
|
5656
6058
|
|
|
5657
6059
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5658
6060
|
|
|
6061
|
+
fallbackSort?: {
|
|
6062
|
+
|
|
6063
|
+
order?: ("asc" | "desc")
|
|
6064
|
+
|
|
6065
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6066
|
+
[k: string]: unknown | undefined
|
|
6067
|
+
}
|
|
6068
|
+
|
|
5659
6069
|
ignoreCase?: boolean
|
|
5660
6070
|
|
|
5661
6071
|
alphabet?: string
|
|
@@ -5664,6 +6074,8 @@ type PerfectionistSortModules = []|[{
|
|
|
5664
6074
|
|
|
5665
6075
|
order?: ("asc" | "desc")
|
|
5666
6076
|
|
|
6077
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6078
|
+
|
|
5667
6079
|
customGroups?: ({
|
|
5668
6080
|
|
|
5669
6081
|
groupName?: string
|
|
@@ -5675,13 +6087,25 @@ type PerfectionistSortModules = []|[{
|
|
|
5675
6087
|
newlinesInside?: ("always" | "never")
|
|
5676
6088
|
anyOf?: {
|
|
5677
6089
|
|
|
5678
|
-
decoratorNamePattern?: string
|
|
5679
|
-
|
|
5680
6090
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
5681
6091
|
|
|
5682
6092
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
5683
6093
|
|
|
5684
|
-
|
|
6094
|
+
decoratorNamePattern?: (({
|
|
6095
|
+
pattern?: string
|
|
6096
|
+
flags?: string
|
|
6097
|
+
} | string)[] | ({
|
|
6098
|
+
pattern?: string
|
|
6099
|
+
flags?: string
|
|
6100
|
+
} | string))
|
|
6101
|
+
|
|
6102
|
+
elementNamePattern?: (({
|
|
6103
|
+
pattern?: string
|
|
6104
|
+
flags?: string
|
|
6105
|
+
} | string)[] | ({
|
|
6106
|
+
pattern?: string
|
|
6107
|
+
flags?: string
|
|
6108
|
+
} | string))
|
|
5685
6109
|
}[]
|
|
5686
6110
|
} | {
|
|
5687
6111
|
|
|
@@ -5693,31 +6117,57 @@ type PerfectionistSortModules = []|[{
|
|
|
5693
6117
|
|
|
5694
6118
|
newlinesInside?: ("always" | "never")
|
|
5695
6119
|
|
|
5696
|
-
decoratorNamePattern?: string
|
|
5697
|
-
|
|
5698
6120
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
5699
6121
|
|
|
5700
6122
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
5701
6123
|
|
|
5702
|
-
|
|
6124
|
+
decoratorNamePattern?: (({
|
|
6125
|
+
pattern?: string
|
|
6126
|
+
flags?: string
|
|
6127
|
+
} | string)[] | ({
|
|
6128
|
+
pattern?: string
|
|
6129
|
+
flags?: string
|
|
6130
|
+
} | string))
|
|
6131
|
+
|
|
6132
|
+
elementNamePattern?: (({
|
|
6133
|
+
pattern?: string
|
|
6134
|
+
flags?: string
|
|
6135
|
+
} | string)[] | ({
|
|
6136
|
+
pattern?: string
|
|
6137
|
+
flags?: string
|
|
6138
|
+
} | string))
|
|
5703
6139
|
})[]
|
|
5704
6140
|
|
|
5705
|
-
partitionByComment?: (
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
6141
|
+
partitionByComment?: (boolean | (({
|
|
6142
|
+
pattern?: string
|
|
6143
|
+
flags?: string
|
|
6144
|
+
} | string)[] | ({
|
|
6145
|
+
pattern?: string
|
|
6146
|
+
flags?: string
|
|
6147
|
+
} | string)) | {
|
|
6148
|
+
block?: (boolean | (({
|
|
6149
|
+
pattern?: string
|
|
6150
|
+
flags?: string
|
|
6151
|
+
} | string)[] | ({
|
|
6152
|
+
pattern?: string
|
|
6153
|
+
flags?: string
|
|
6154
|
+
} | string)))
|
|
6155
|
+
line?: (boolean | (({
|
|
6156
|
+
pattern?: string
|
|
6157
|
+
flags?: string
|
|
6158
|
+
} | string)[] | ({
|
|
6159
|
+
pattern?: string
|
|
6160
|
+
flags?: string
|
|
6161
|
+
} | string)))
|
|
5709
6162
|
})
|
|
5710
6163
|
|
|
5711
6164
|
partitionByNewLine?: boolean
|
|
5712
6165
|
|
|
5713
6166
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5714
6167
|
|
|
5715
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5716
|
-
|
|
5717
6168
|
groups?: (string | string[] | {
|
|
5718
6169
|
|
|
5719
6170
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5720
|
-
[k: string]: unknown | undefined
|
|
5721
6171
|
})[]
|
|
5722
6172
|
}]
|
|
5723
6173
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -5725,6 +6175,14 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
5725
6175
|
|
|
5726
6176
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5727
6177
|
|
|
6178
|
+
fallbackSort?: {
|
|
6179
|
+
|
|
6180
|
+
order?: ("asc" | "desc")
|
|
6181
|
+
|
|
6182
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6183
|
+
[k: string]: unknown | undefined
|
|
6184
|
+
}
|
|
6185
|
+
|
|
5728
6186
|
ignoreCase?: boolean
|
|
5729
6187
|
|
|
5730
6188
|
alphabet?: string
|
|
@@ -5733,25 +6191,50 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
5733
6191
|
|
|
5734
6192
|
order?: ("asc" | "desc")
|
|
5735
6193
|
|
|
6194
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6195
|
+
|
|
5736
6196
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
5737
6197
|
|
|
5738
6198
|
ignoreAlias?: boolean
|
|
5739
6199
|
|
|
5740
|
-
partitionByComment?: (
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
6200
|
+
partitionByComment?: (boolean | (({
|
|
6201
|
+
pattern?: string
|
|
6202
|
+
flags?: string
|
|
6203
|
+
} | string)[] | ({
|
|
6204
|
+
pattern?: string
|
|
6205
|
+
flags?: string
|
|
6206
|
+
} | string)) | {
|
|
6207
|
+
block?: (boolean | (({
|
|
6208
|
+
pattern?: string
|
|
6209
|
+
flags?: string
|
|
6210
|
+
} | string)[] | ({
|
|
6211
|
+
pattern?: string
|
|
6212
|
+
flags?: string
|
|
6213
|
+
} | string)))
|
|
6214
|
+
line?: (boolean | (({
|
|
6215
|
+
pattern?: string
|
|
6216
|
+
flags?: string
|
|
6217
|
+
} | string)[] | ({
|
|
6218
|
+
pattern?: string
|
|
6219
|
+
flags?: string
|
|
6220
|
+
} | string)))
|
|
5744
6221
|
})
|
|
5745
6222
|
|
|
5746
6223
|
partitionByNewLine?: boolean
|
|
5747
|
-
|
|
5748
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5749
6224
|
}]
|
|
5750
6225
|
// ----- perfectionist/sort-named-imports -----
|
|
5751
6226
|
type PerfectionistSortNamedImports = []|[{
|
|
5752
6227
|
|
|
5753
6228
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5754
6229
|
|
|
6230
|
+
fallbackSort?: {
|
|
6231
|
+
|
|
6232
|
+
order?: ("asc" | "desc")
|
|
6233
|
+
|
|
6234
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6235
|
+
[k: string]: unknown | undefined
|
|
6236
|
+
}
|
|
6237
|
+
|
|
5755
6238
|
ignoreCase?: boolean
|
|
5756
6239
|
|
|
5757
6240
|
alphabet?: string
|
|
@@ -5760,25 +6243,50 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
5760
6243
|
|
|
5761
6244
|
order?: ("asc" | "desc")
|
|
5762
6245
|
|
|
6246
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6247
|
+
|
|
5763
6248
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
5764
6249
|
|
|
5765
6250
|
ignoreAlias?: boolean
|
|
5766
6251
|
|
|
5767
|
-
partitionByComment?: (
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
6252
|
+
partitionByComment?: (boolean | (({
|
|
6253
|
+
pattern?: string
|
|
6254
|
+
flags?: string
|
|
6255
|
+
} | string)[] | ({
|
|
6256
|
+
pattern?: string
|
|
6257
|
+
flags?: string
|
|
6258
|
+
} | string)) | {
|
|
6259
|
+
block?: (boolean | (({
|
|
6260
|
+
pattern?: string
|
|
6261
|
+
flags?: string
|
|
6262
|
+
} | string)[] | ({
|
|
6263
|
+
pattern?: string
|
|
6264
|
+
flags?: string
|
|
6265
|
+
} | string)))
|
|
6266
|
+
line?: (boolean | (({
|
|
6267
|
+
pattern?: string
|
|
6268
|
+
flags?: string
|
|
6269
|
+
} | string)[] | ({
|
|
6270
|
+
pattern?: string
|
|
6271
|
+
flags?: string
|
|
6272
|
+
} | string)))
|
|
5771
6273
|
})
|
|
5772
6274
|
|
|
5773
6275
|
partitionByNewLine?: boolean
|
|
5774
|
-
|
|
5775
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
5776
6276
|
}]
|
|
5777
6277
|
// ----- perfectionist/sort-object-types -----
|
|
5778
6278
|
type PerfectionistSortObjectTypes = {
|
|
5779
6279
|
|
|
5780
6280
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5781
6281
|
|
|
6282
|
+
fallbackSort?: {
|
|
6283
|
+
|
|
6284
|
+
order?: ("asc" | "desc")
|
|
6285
|
+
|
|
6286
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6287
|
+
[k: string]: unknown | undefined
|
|
6288
|
+
}
|
|
6289
|
+
|
|
5782
6290
|
ignoreCase?: boolean
|
|
5783
6291
|
|
|
5784
6292
|
alphabet?: string
|
|
@@ -5787,11 +6295,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
5787
6295
|
|
|
5788
6296
|
order?: ("asc" | "desc")
|
|
5789
6297
|
|
|
5790
|
-
|
|
5791
|
-
useConfigurationIf?: {
|
|
5792
|
-
allNamesMatchPattern?: string
|
|
5793
|
-
declarationMatchesPattern?: string
|
|
5794
|
-
}
|
|
6298
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
5795
6299
|
customGroups?: ({
|
|
5796
6300
|
[k: string]: (string | string[]) | undefined
|
|
5797
6301
|
} | ({
|
|
@@ -5809,7 +6313,13 @@ type PerfectionistSortObjectTypes = {
|
|
|
5809
6313
|
|
|
5810
6314
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
5811
6315
|
|
|
5812
|
-
elementNamePattern?:
|
|
6316
|
+
elementNamePattern?: (({
|
|
6317
|
+
pattern?: string
|
|
6318
|
+
flags?: string
|
|
6319
|
+
} | string)[] | ({
|
|
6320
|
+
pattern?: string
|
|
6321
|
+
flags?: string
|
|
6322
|
+
} | string))
|
|
5813
6323
|
}[]
|
|
5814
6324
|
} | {
|
|
5815
6325
|
|
|
@@ -5825,27 +6335,73 @@ type PerfectionistSortObjectTypes = {
|
|
|
5825
6335
|
|
|
5826
6336
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
5827
6337
|
|
|
5828
|
-
elementNamePattern?:
|
|
6338
|
+
elementNamePattern?: (({
|
|
6339
|
+
pattern?: string
|
|
6340
|
+
flags?: string
|
|
6341
|
+
} | string)[] | ({
|
|
6342
|
+
pattern?: string
|
|
6343
|
+
flags?: string
|
|
6344
|
+
} | string))
|
|
5829
6345
|
})[])
|
|
6346
|
+
useConfigurationIf?: {
|
|
6347
|
+
|
|
6348
|
+
allNamesMatchPattern?: (({
|
|
6349
|
+
pattern?: string
|
|
6350
|
+
flags?: string
|
|
6351
|
+
} | string)[] | ({
|
|
6352
|
+
pattern?: string
|
|
6353
|
+
flags?: string
|
|
6354
|
+
} | string))
|
|
6355
|
+
|
|
6356
|
+
declarationMatchesPattern?: (({
|
|
6357
|
+
pattern?: string
|
|
6358
|
+
flags?: string
|
|
6359
|
+
} | string)[] | ({
|
|
6360
|
+
pattern?: string
|
|
6361
|
+
flags?: string
|
|
6362
|
+
} | string))
|
|
6363
|
+
}
|
|
5830
6364
|
|
|
5831
6365
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
5832
6366
|
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
6367
|
+
partitionByComment?: (boolean | (({
|
|
6368
|
+
pattern?: string
|
|
6369
|
+
flags?: string
|
|
6370
|
+
} | string)[] | ({
|
|
6371
|
+
pattern?: string
|
|
6372
|
+
flags?: string
|
|
6373
|
+
} | string)) | {
|
|
6374
|
+
block?: (boolean | (({
|
|
6375
|
+
pattern?: string
|
|
6376
|
+
flags?: string
|
|
6377
|
+
} | string)[] | ({
|
|
6378
|
+
pattern?: string
|
|
6379
|
+
flags?: string
|
|
6380
|
+
} | string)))
|
|
6381
|
+
line?: (boolean | (({
|
|
6382
|
+
pattern?: string
|
|
6383
|
+
flags?: string
|
|
6384
|
+
} | string)[] | ({
|
|
6385
|
+
pattern?: string
|
|
6386
|
+
flags?: string
|
|
6387
|
+
} | string)))
|
|
5839
6388
|
})
|
|
5840
6389
|
|
|
5841
6390
|
partitionByNewLine?: boolean
|
|
5842
6391
|
|
|
5843
6392
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5844
6393
|
|
|
6394
|
+
ignorePattern?: (({
|
|
6395
|
+
pattern?: string
|
|
6396
|
+
flags?: string
|
|
6397
|
+
} | string)[] | ({
|
|
6398
|
+
pattern?: string
|
|
6399
|
+
flags?: string
|
|
6400
|
+
} | string))
|
|
6401
|
+
|
|
5845
6402
|
groups?: (string | string[] | {
|
|
5846
6403
|
|
|
5847
6404
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5848
|
-
[k: string]: unknown | undefined
|
|
5849
6405
|
})[]
|
|
5850
6406
|
}[]
|
|
5851
6407
|
// ----- perfectionist/sort-objects -----
|
|
@@ -5853,6 +6409,14 @@ type PerfectionistSortObjects = {
|
|
|
5853
6409
|
|
|
5854
6410
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5855
6411
|
|
|
6412
|
+
fallbackSort?: {
|
|
6413
|
+
|
|
6414
|
+
order?: ("asc" | "desc")
|
|
6415
|
+
|
|
6416
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6417
|
+
[k: string]: unknown | undefined
|
|
6418
|
+
}
|
|
6419
|
+
|
|
5856
6420
|
ignoreCase?: boolean
|
|
5857
6421
|
|
|
5858
6422
|
alphabet?: string
|
|
@@ -5861,16 +6425,12 @@ type PerfectionistSortObjects = {
|
|
|
5861
6425
|
|
|
5862
6426
|
order?: ("asc" | "desc")
|
|
5863
6427
|
|
|
6428
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6429
|
+
|
|
5864
6430
|
destructuredObjects?: (boolean | {
|
|
5865
6431
|
|
|
5866
6432
|
groups?: boolean
|
|
5867
6433
|
})
|
|
5868
|
-
|
|
5869
|
-
ignorePattern?: string[]
|
|
5870
|
-
useConfigurationIf?: {
|
|
5871
|
-
allNamesMatchPattern?: string
|
|
5872
|
-
callingFunctionNamePattern?: string
|
|
5873
|
-
}
|
|
5874
6434
|
customGroups?: ({
|
|
5875
6435
|
[k: string]: (string | string[]) | undefined
|
|
5876
6436
|
} | ({
|
|
@@ -5888,9 +6448,21 @@ type PerfectionistSortObjects = {
|
|
|
5888
6448
|
|
|
5889
6449
|
selector?: ("member" | "method" | "multiline" | "property")
|
|
5890
6450
|
|
|
5891
|
-
elementValuePattern?:
|
|
6451
|
+
elementValuePattern?: (({
|
|
6452
|
+
pattern?: string
|
|
6453
|
+
flags?: string
|
|
6454
|
+
} | string)[] | ({
|
|
6455
|
+
pattern?: string
|
|
6456
|
+
flags?: string
|
|
6457
|
+
} | string))
|
|
5892
6458
|
|
|
5893
|
-
elementNamePattern?:
|
|
6459
|
+
elementNamePattern?: (({
|
|
6460
|
+
pattern?: string
|
|
6461
|
+
flags?: string
|
|
6462
|
+
} | string)[] | ({
|
|
6463
|
+
pattern?: string
|
|
6464
|
+
flags?: string
|
|
6465
|
+
} | string))
|
|
5894
6466
|
}[]
|
|
5895
6467
|
} | {
|
|
5896
6468
|
|
|
@@ -5906,10 +6478,40 @@ type PerfectionistSortObjects = {
|
|
|
5906
6478
|
|
|
5907
6479
|
selector?: ("member" | "method" | "multiline" | "property")
|
|
5908
6480
|
|
|
5909
|
-
elementValuePattern?:
|
|
5910
|
-
|
|
5911
|
-
|
|
6481
|
+
elementValuePattern?: (({
|
|
6482
|
+
pattern?: string
|
|
6483
|
+
flags?: string
|
|
6484
|
+
} | string)[] | ({
|
|
6485
|
+
pattern?: string
|
|
6486
|
+
flags?: string
|
|
6487
|
+
} | string))
|
|
6488
|
+
|
|
6489
|
+
elementNamePattern?: (({
|
|
6490
|
+
pattern?: string
|
|
6491
|
+
flags?: string
|
|
6492
|
+
} | string)[] | ({
|
|
6493
|
+
pattern?: string
|
|
6494
|
+
flags?: string
|
|
6495
|
+
} | string))
|
|
5912
6496
|
})[])
|
|
6497
|
+
useConfigurationIf?: {
|
|
6498
|
+
|
|
6499
|
+
allNamesMatchPattern?: (({
|
|
6500
|
+
pattern?: string
|
|
6501
|
+
flags?: string
|
|
6502
|
+
} | string)[] | ({
|
|
6503
|
+
pattern?: string
|
|
6504
|
+
flags?: string
|
|
6505
|
+
} | string))
|
|
6506
|
+
|
|
6507
|
+
callingFunctionNamePattern?: (({
|
|
6508
|
+
pattern?: string
|
|
6509
|
+
flags?: string
|
|
6510
|
+
} | string)[] | ({
|
|
6511
|
+
pattern?: string
|
|
6512
|
+
flags?: string
|
|
6513
|
+
} | string))
|
|
6514
|
+
}
|
|
5913
6515
|
|
|
5914
6516
|
destructureOnly?: boolean
|
|
5915
6517
|
|
|
@@ -5917,22 +6519,44 @@ type PerfectionistSortObjects = {
|
|
|
5917
6519
|
|
|
5918
6520
|
styledComponents?: boolean
|
|
5919
6521
|
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
6522
|
+
partitionByComment?: (boolean | (({
|
|
6523
|
+
pattern?: string
|
|
6524
|
+
flags?: string
|
|
6525
|
+
} | string)[] | ({
|
|
6526
|
+
pattern?: string
|
|
6527
|
+
flags?: string
|
|
6528
|
+
} | string)) | {
|
|
6529
|
+
block?: (boolean | (({
|
|
6530
|
+
pattern?: string
|
|
6531
|
+
flags?: string
|
|
6532
|
+
} | string)[] | ({
|
|
6533
|
+
pattern?: string
|
|
6534
|
+
flags?: string
|
|
6535
|
+
} | string)))
|
|
6536
|
+
line?: (boolean | (({
|
|
6537
|
+
pattern?: string
|
|
6538
|
+
flags?: string
|
|
6539
|
+
} | string)[] | ({
|
|
6540
|
+
pattern?: string
|
|
6541
|
+
flags?: string
|
|
6542
|
+
} | string)))
|
|
5926
6543
|
})
|
|
5927
6544
|
|
|
5928
6545
|
partitionByNewLine?: boolean
|
|
5929
6546
|
|
|
5930
6547
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5931
6548
|
|
|
6549
|
+
ignorePattern?: (({
|
|
6550
|
+
pattern?: string
|
|
6551
|
+
flags?: string
|
|
6552
|
+
} | string)[] | ({
|
|
6553
|
+
pattern?: string
|
|
6554
|
+
flags?: string
|
|
6555
|
+
} | string))
|
|
6556
|
+
|
|
5932
6557
|
groups?: (string | string[] | {
|
|
5933
6558
|
|
|
5934
6559
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
5935
|
-
[k: string]: unknown | undefined
|
|
5936
6560
|
})[]
|
|
5937
6561
|
}[]
|
|
5938
6562
|
// ----- perfectionist/sort-sets -----
|
|
@@ -5940,6 +6564,14 @@ type PerfectionistSortSets = {
|
|
|
5940
6564
|
|
|
5941
6565
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
5942
6566
|
|
|
6567
|
+
fallbackSort?: {
|
|
6568
|
+
|
|
6569
|
+
order?: ("asc" | "desc")
|
|
6570
|
+
|
|
6571
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6572
|
+
[k: string]: unknown | undefined
|
|
6573
|
+
}
|
|
6574
|
+
|
|
5943
6575
|
ignoreCase?: boolean
|
|
5944
6576
|
|
|
5945
6577
|
alphabet?: string
|
|
@@ -5948,6 +6580,8 @@ type PerfectionistSortSets = {
|
|
|
5948
6580
|
|
|
5949
6581
|
order?: ("asc" | "desc")
|
|
5950
6582
|
|
|
6583
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6584
|
+
|
|
5951
6585
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
5952
6586
|
|
|
5953
6587
|
customGroups?: ({
|
|
@@ -5963,7 +6597,13 @@ type PerfectionistSortSets = {
|
|
|
5963
6597
|
|
|
5964
6598
|
selector?: ("literal" | "spread")
|
|
5965
6599
|
|
|
5966
|
-
elementNamePattern?:
|
|
6600
|
+
elementNamePattern?: (({
|
|
6601
|
+
pattern?: string
|
|
6602
|
+
flags?: string
|
|
6603
|
+
} | string)[] | ({
|
|
6604
|
+
pattern?: string
|
|
6605
|
+
flags?: string
|
|
6606
|
+
} | string))
|
|
5967
6607
|
}[]
|
|
5968
6608
|
} | {
|
|
5969
6609
|
|
|
@@ -5977,18 +6617,46 @@ type PerfectionistSortSets = {
|
|
|
5977
6617
|
|
|
5978
6618
|
selector?: ("literal" | "spread")
|
|
5979
6619
|
|
|
5980
|
-
elementNamePattern?:
|
|
6620
|
+
elementNamePattern?: (({
|
|
6621
|
+
pattern?: string
|
|
6622
|
+
flags?: string
|
|
6623
|
+
} | string)[] | ({
|
|
6624
|
+
pattern?: string
|
|
6625
|
+
flags?: string
|
|
6626
|
+
} | string))
|
|
5981
6627
|
})[]
|
|
5982
6628
|
useConfigurationIf?: {
|
|
5983
|
-
|
|
6629
|
+
|
|
6630
|
+
allNamesMatchPattern?: (({
|
|
6631
|
+
pattern?: string
|
|
6632
|
+
flags?: string
|
|
6633
|
+
} | string)[] | ({
|
|
6634
|
+
pattern?: string
|
|
6635
|
+
flags?: string
|
|
6636
|
+
} | string))
|
|
5984
6637
|
}
|
|
5985
6638
|
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
6639
|
+
partitionByComment?: (boolean | (({
|
|
6640
|
+
pattern?: string
|
|
6641
|
+
flags?: string
|
|
6642
|
+
} | string)[] | ({
|
|
6643
|
+
pattern?: string
|
|
6644
|
+
flags?: string
|
|
6645
|
+
} | string)) | {
|
|
6646
|
+
block?: (boolean | (({
|
|
6647
|
+
pattern?: string
|
|
6648
|
+
flags?: string
|
|
6649
|
+
} | string)[] | ({
|
|
6650
|
+
pattern?: string
|
|
6651
|
+
flags?: string
|
|
6652
|
+
} | string)))
|
|
6653
|
+
line?: (boolean | (({
|
|
6654
|
+
pattern?: string
|
|
6655
|
+
flags?: string
|
|
6656
|
+
} | string)[] | ({
|
|
6657
|
+
pattern?: string
|
|
6658
|
+
flags?: string
|
|
6659
|
+
} | string)))
|
|
5992
6660
|
})
|
|
5993
6661
|
|
|
5994
6662
|
partitionByNewLine?: boolean
|
|
@@ -5998,7 +6666,6 @@ type PerfectionistSortSets = {
|
|
|
5998
6666
|
groups?: (string | string[] | {
|
|
5999
6667
|
|
|
6000
6668
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
6001
|
-
[k: string]: unknown | undefined
|
|
6002
6669
|
})[]
|
|
6003
6670
|
}[]
|
|
6004
6671
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -6006,6 +6673,14 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
6006
6673
|
|
|
6007
6674
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
6008
6675
|
|
|
6676
|
+
fallbackSort?: {
|
|
6677
|
+
|
|
6678
|
+
order?: ("asc" | "desc")
|
|
6679
|
+
|
|
6680
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6681
|
+
[k: string]: unknown | undefined
|
|
6682
|
+
}
|
|
6683
|
+
|
|
6009
6684
|
ignoreCase?: boolean
|
|
6010
6685
|
|
|
6011
6686
|
alphabet?: string
|
|
@@ -6014,13 +6689,21 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
6014
6689
|
|
|
6015
6690
|
order?: ("asc" | "desc")
|
|
6016
6691
|
|
|
6017
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
6692
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6018
6693
|
}]
|
|
6019
6694
|
// ----- perfectionist/sort-union-types -----
|
|
6020
6695
|
type PerfectionistSortUnionTypes = []|[{
|
|
6021
6696
|
|
|
6022
6697
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
6023
6698
|
|
|
6699
|
+
fallbackSort?: {
|
|
6700
|
+
|
|
6701
|
+
order?: ("asc" | "desc")
|
|
6702
|
+
|
|
6703
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6704
|
+
[k: string]: unknown | undefined
|
|
6705
|
+
}
|
|
6706
|
+
|
|
6024
6707
|
ignoreCase?: boolean
|
|
6025
6708
|
|
|
6026
6709
|
alphabet?: string
|
|
@@ -6029,22 +6712,38 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
6029
6712
|
|
|
6030
6713
|
order?: ("asc" | "desc")
|
|
6031
6714
|
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6715
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6716
|
+
|
|
6717
|
+
partitionByComment?: (boolean | (({
|
|
6718
|
+
pattern?: string
|
|
6719
|
+
flags?: string
|
|
6720
|
+
} | string)[] | ({
|
|
6721
|
+
pattern?: string
|
|
6722
|
+
flags?: string
|
|
6723
|
+
} | string)) | {
|
|
6724
|
+
block?: (boolean | (({
|
|
6725
|
+
pattern?: string
|
|
6726
|
+
flags?: string
|
|
6727
|
+
} | string)[] | ({
|
|
6728
|
+
pattern?: string
|
|
6729
|
+
flags?: string
|
|
6730
|
+
} | string)))
|
|
6731
|
+
line?: (boolean | (({
|
|
6732
|
+
pattern?: string
|
|
6733
|
+
flags?: string
|
|
6734
|
+
} | string)[] | ({
|
|
6735
|
+
pattern?: string
|
|
6736
|
+
flags?: string
|
|
6737
|
+
} | string)))
|
|
6036
6738
|
})
|
|
6037
6739
|
|
|
6038
6740
|
partitionByNewLine?: boolean
|
|
6039
6741
|
|
|
6040
6742
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
6041
6743
|
|
|
6042
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
6043
|
-
|
|
6044
6744
|
groups?: (string | string[] | {
|
|
6045
6745
|
|
|
6046
6746
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
6047
|
-
[k: string]: unknown | undefined
|
|
6048
6747
|
})[]
|
|
6049
6748
|
}]
|
|
6050
6749
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -6052,6 +6751,14 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
6052
6751
|
|
|
6053
6752
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
6054
6753
|
|
|
6754
|
+
fallbackSort?: {
|
|
6755
|
+
|
|
6756
|
+
order?: ("asc" | "desc")
|
|
6757
|
+
|
|
6758
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6759
|
+
[k: string]: unknown | undefined
|
|
6760
|
+
}
|
|
6761
|
+
|
|
6055
6762
|
ignoreCase?: boolean
|
|
6056
6763
|
|
|
6057
6764
|
alphabet?: string
|
|
@@ -6060,15 +6767,32 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
6060
6767
|
|
|
6061
6768
|
order?: ("asc" | "desc")
|
|
6062
6769
|
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6770
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
6771
|
+
|
|
6772
|
+
partitionByComment?: (boolean | (({
|
|
6773
|
+
pattern?: string
|
|
6774
|
+
flags?: string
|
|
6775
|
+
} | string)[] | ({
|
|
6776
|
+
pattern?: string
|
|
6777
|
+
flags?: string
|
|
6778
|
+
} | string)) | {
|
|
6779
|
+
block?: (boolean | (({
|
|
6780
|
+
pattern?: string
|
|
6781
|
+
flags?: string
|
|
6782
|
+
} | string)[] | ({
|
|
6783
|
+
pattern?: string
|
|
6784
|
+
flags?: string
|
|
6785
|
+
} | string)))
|
|
6786
|
+
line?: (boolean | (({
|
|
6787
|
+
pattern?: string
|
|
6788
|
+
flags?: string
|
|
6789
|
+
} | string)[] | ({
|
|
6790
|
+
pattern?: string
|
|
6791
|
+
flags?: string
|
|
6792
|
+
} | string)))
|
|
6067
6793
|
})
|
|
6068
6794
|
|
|
6069
6795
|
partitionByNewLine?: boolean
|
|
6070
|
-
|
|
6071
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
6072
6796
|
}]
|
|
6073
6797
|
// ----- prefer-arrow-callback -----
|
|
6074
6798
|
type PreferArrowCallback = []|[{
|
|
@@ -7307,6 +8031,7 @@ type StylisticSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
7307
8031
|
// ----- stylistic/space-infix-ops -----
|
|
7308
8032
|
type StylisticSpaceInfixOps = []|[{
|
|
7309
8033
|
int32Hint?: boolean
|
|
8034
|
+
ignoreTypes?: boolean
|
|
7310
8035
|
}]
|
|
7311
8036
|
// ----- stylistic/space-unary-ops -----
|
|
7312
8037
|
type StylisticSpaceUnaryOps = []|[{
|
|
@@ -7505,6 +8230,8 @@ type TypescriptExplicitModuleBoundaryTypes = []|[{
|
|
|
7505
8230
|
|
|
7506
8231
|
allowHigherOrderFunctions?: boolean
|
|
7507
8232
|
|
|
8233
|
+
allowOverloadFunctions?: boolean
|
|
8234
|
+
|
|
7508
8235
|
allowTypedFunctionExpressions?: boolean
|
|
7509
8236
|
}]
|
|
7510
8237
|
// ----- typescript/init-declarations -----
|
|
@@ -8177,7 +8904,7 @@ type TypescriptNoUnnecessaryBooleanLiteralCompare = []|[{
|
|
|
8177
8904
|
// ----- typescript/no-unnecessary-condition -----
|
|
8178
8905
|
type TypescriptNoUnnecessaryCondition = []|[{
|
|
8179
8906
|
|
|
8180
|
-
allowConstantLoopConditions?: boolean
|
|
8907
|
+
allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
|
|
8181
8908
|
|
|
8182
8909
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
8183
8910
|
|
|
@@ -8194,6 +8921,7 @@ type TypescriptNoUnusedExpressions = []|[{
|
|
|
8194
8921
|
allowTernary?: boolean
|
|
8195
8922
|
allowTaggedTemplates?: boolean
|
|
8196
8923
|
enforceForJSX?: boolean
|
|
8924
|
+
ignoreDirectives?: boolean
|
|
8197
8925
|
}]
|
|
8198
8926
|
// ----- typescript/no-unused-vars -----
|
|
8199
8927
|
type TypescriptNoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -8536,6 +9264,8 @@ type TypescriptUnboundMethod = []|[{
|
|
|
8536
9264
|
type TypescriptUnifiedSignatures = []|[{
|
|
8537
9265
|
|
|
8538
9266
|
ignoreDifferentlyNamedParameters?: boolean
|
|
9267
|
+
|
|
9268
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean
|
|
8539
9269
|
}]
|
|
8540
9270
|
// ----- unicode-bom -----
|
|
8541
9271
|
type UnicodeBom = []|[("always" | "never")]
|
|
@@ -8609,14 +9339,15 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
8609
9339
|
onlyEquality?: boolean
|
|
8610
9340
|
}]
|
|
8611
9341
|
|
|
8612
|
-
|
|
8613
|
-
|
|
9342
|
+
interface Options {
|
|
9343
|
+
stylistic?: StylisticOptions;
|
|
8614
9344
|
ignores?: string[];
|
|
8615
9345
|
rules?: RuleOptions;
|
|
8616
9346
|
}
|
|
8617
9347
|
type LinterConfig = Omit<Linter.Config, 'plugins'> & {
|
|
8618
9348
|
plugins?: Record<string, any>;
|
|
8619
9349
|
};
|
|
9350
|
+
|
|
8620
9351
|
declare function daopk(options?: Options, ...userConfigs: Linter.Config[]): LinterConfig[];
|
|
8621
9352
|
|
|
8622
|
-
export {
|
|
9353
|
+
export { daopk as default };
|