@vinicunca/eslint-config 3.6.0 → 3.7.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 +313 -114
- package/dist/index.js +57 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -11802,8 +11802,6 @@ type PaddingLineBetweenStatements = {
|
|
|
11802
11802
|
// ----- perfectionist/sort-array-includes -----
|
|
11803
11803
|
type PerfectionistSortArrayIncludes = {
|
|
11804
11804
|
|
|
11805
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11806
|
-
|
|
11807
11805
|
fallbackSort?: {
|
|
11808
11806
|
|
|
11809
11807
|
order?: ("asc" | "desc")
|
|
@@ -11812,6 +11810,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11812
11810
|
[k: string]: unknown | undefined
|
|
11813
11811
|
}
|
|
11814
11812
|
|
|
11813
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11814
|
+
|
|
11815
11815
|
ignoreCase?: boolean
|
|
11816
11816
|
|
|
11817
11817
|
alphabet?: string
|
|
@@ -11826,13 +11826,21 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11826
11826
|
|
|
11827
11827
|
customGroups?: ({
|
|
11828
11828
|
|
|
11829
|
-
|
|
11829
|
+
newlinesInside?: ("always" | "never")
|
|
11830
|
+
|
|
11831
|
+
fallbackSort?: {
|
|
11832
|
+
|
|
11833
|
+
order?: ("asc" | "desc")
|
|
11834
|
+
|
|
11835
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11836
|
+
[k: string]: unknown | undefined
|
|
11837
|
+
}
|
|
11830
11838
|
|
|
11831
|
-
|
|
11839
|
+
groupName?: string
|
|
11832
11840
|
|
|
11833
|
-
order?: ("
|
|
11841
|
+
order?: ("asc" | "desc")
|
|
11834
11842
|
|
|
11835
|
-
|
|
11843
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11836
11844
|
anyOf?: {
|
|
11837
11845
|
|
|
11838
11846
|
selector?: ("literal" | "spread")
|
|
@@ -11847,13 +11855,21 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11847
11855
|
}[]
|
|
11848
11856
|
} | {
|
|
11849
11857
|
|
|
11850
|
-
|
|
11858
|
+
newlinesInside?: ("always" | "never")
|
|
11859
|
+
|
|
11860
|
+
fallbackSort?: {
|
|
11861
|
+
|
|
11862
|
+
order?: ("asc" | "desc")
|
|
11863
|
+
|
|
11864
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11865
|
+
[k: string]: unknown | undefined
|
|
11866
|
+
}
|
|
11851
11867
|
|
|
11852
|
-
|
|
11868
|
+
groupName?: string
|
|
11853
11869
|
|
|
11854
|
-
order?: ("
|
|
11870
|
+
order?: ("asc" | "desc")
|
|
11855
11871
|
|
|
11856
|
-
|
|
11872
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11857
11873
|
|
|
11858
11874
|
selector?: ("literal" | "spread")
|
|
11859
11875
|
|
|
@@ -11911,8 +11927,6 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11911
11927
|
// ----- perfectionist/sort-classes -----
|
|
11912
11928
|
type PerfectionistSortClasses = []|[{
|
|
11913
11929
|
|
|
11914
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11915
|
-
|
|
11916
11930
|
fallbackSort?: {
|
|
11917
11931
|
|
|
11918
11932
|
order?: ("asc" | "desc")
|
|
@@ -11921,6 +11935,8 @@ type PerfectionistSortClasses = []|[{
|
|
|
11921
11935
|
[k: string]: unknown | undefined
|
|
11922
11936
|
}
|
|
11923
11937
|
|
|
11938
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
11939
|
+
|
|
11924
11940
|
ignoreCase?: boolean
|
|
11925
11941
|
|
|
11926
11942
|
alphabet?: string
|
|
@@ -11933,13 +11949,21 @@ type PerfectionistSortClasses = []|[{
|
|
|
11933
11949
|
|
|
11934
11950
|
customGroups?: ({
|
|
11935
11951
|
|
|
11936
|
-
|
|
11952
|
+
newlinesInside?: ("always" | "never")
|
|
11953
|
+
|
|
11954
|
+
fallbackSort?: {
|
|
11955
|
+
|
|
11956
|
+
order?: ("asc" | "desc")
|
|
11957
|
+
|
|
11958
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11959
|
+
[k: string]: unknown | undefined
|
|
11960
|
+
}
|
|
11937
11961
|
|
|
11938
|
-
|
|
11962
|
+
groupName?: string
|
|
11939
11963
|
|
|
11940
|
-
order?: ("
|
|
11964
|
+
order?: ("asc" | "desc")
|
|
11941
11965
|
|
|
11942
|
-
|
|
11966
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11943
11967
|
anyOf?: {
|
|
11944
11968
|
|
|
11945
11969
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
@@ -11972,13 +11996,21 @@ type PerfectionistSortClasses = []|[{
|
|
|
11972
11996
|
}[]
|
|
11973
11997
|
} | {
|
|
11974
11998
|
|
|
11975
|
-
|
|
11999
|
+
newlinesInside?: ("always" | "never")
|
|
11976
12000
|
|
|
11977
|
-
|
|
12001
|
+
fallbackSort?: {
|
|
12002
|
+
|
|
12003
|
+
order?: ("asc" | "desc")
|
|
12004
|
+
|
|
12005
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12006
|
+
[k: string]: unknown | undefined
|
|
12007
|
+
}
|
|
11978
12008
|
|
|
11979
|
-
|
|
12009
|
+
groupName?: string
|
|
11980
12010
|
|
|
11981
|
-
|
|
12011
|
+
order?: ("asc" | "desc")
|
|
12012
|
+
|
|
12013
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
11982
12014
|
|
|
11983
12015
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
11984
12016
|
|
|
@@ -12052,8 +12084,6 @@ type PerfectionistSortClasses = []|[{
|
|
|
12052
12084
|
// ----- perfectionist/sort-decorators -----
|
|
12053
12085
|
type PerfectionistSortDecorators = []|[{
|
|
12054
12086
|
|
|
12055
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12056
|
-
|
|
12057
12087
|
fallbackSort?: {
|
|
12058
12088
|
|
|
12059
12089
|
order?: ("asc" | "desc")
|
|
@@ -12062,6 +12092,8 @@ type PerfectionistSortDecorators = []|[{
|
|
|
12062
12092
|
[k: string]: unknown | undefined
|
|
12063
12093
|
}
|
|
12064
12094
|
|
|
12095
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12096
|
+
|
|
12065
12097
|
ignoreCase?: boolean
|
|
12066
12098
|
|
|
12067
12099
|
alphabet?: string
|
|
@@ -12117,8 +12149,6 @@ type PerfectionistSortDecorators = []|[{
|
|
|
12117
12149
|
// ----- perfectionist/sort-enums -----
|
|
12118
12150
|
type PerfectionistSortEnums = []|[{
|
|
12119
12151
|
|
|
12120
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12121
|
-
|
|
12122
12152
|
fallbackSort?: {
|
|
12123
12153
|
|
|
12124
12154
|
order?: ("asc" | "desc")
|
|
@@ -12127,6 +12157,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
12127
12157
|
[k: string]: unknown | undefined
|
|
12128
12158
|
}
|
|
12129
12159
|
|
|
12160
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12161
|
+
|
|
12130
12162
|
ignoreCase?: boolean
|
|
12131
12163
|
|
|
12132
12164
|
alphabet?: string
|
|
@@ -12142,13 +12174,21 @@ type PerfectionistSortEnums = []|[{
|
|
|
12142
12174
|
[k: string]: (string | string[]) | undefined
|
|
12143
12175
|
} | ({
|
|
12144
12176
|
|
|
12145
|
-
|
|
12177
|
+
newlinesInside?: ("always" | "never")
|
|
12178
|
+
|
|
12179
|
+
fallbackSort?: {
|
|
12180
|
+
|
|
12181
|
+
order?: ("asc" | "desc")
|
|
12182
|
+
|
|
12183
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12184
|
+
[k: string]: unknown | undefined
|
|
12185
|
+
}
|
|
12146
12186
|
|
|
12147
|
-
|
|
12187
|
+
groupName?: string
|
|
12148
12188
|
|
|
12149
|
-
order?: ("
|
|
12189
|
+
order?: ("asc" | "desc")
|
|
12150
12190
|
|
|
12151
|
-
|
|
12191
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12152
12192
|
anyOf?: {
|
|
12153
12193
|
|
|
12154
12194
|
elementValuePattern?: (({
|
|
@@ -12169,13 +12209,21 @@ type PerfectionistSortEnums = []|[{
|
|
|
12169
12209
|
}[]
|
|
12170
12210
|
} | {
|
|
12171
12211
|
|
|
12172
|
-
|
|
12212
|
+
newlinesInside?: ("always" | "never")
|
|
12173
12213
|
|
|
12174
|
-
|
|
12214
|
+
fallbackSort?: {
|
|
12215
|
+
|
|
12216
|
+
order?: ("asc" | "desc")
|
|
12217
|
+
|
|
12218
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12219
|
+
[k: string]: unknown | undefined
|
|
12220
|
+
}
|
|
12175
12221
|
|
|
12176
|
-
|
|
12222
|
+
groupName?: string
|
|
12177
12223
|
|
|
12178
|
-
|
|
12224
|
+
order?: ("asc" | "desc")
|
|
12225
|
+
|
|
12226
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12179
12227
|
|
|
12180
12228
|
elementValuePattern?: (({
|
|
12181
12229
|
pattern?: string
|
|
@@ -12231,8 +12279,6 @@ type PerfectionistSortEnums = []|[{
|
|
|
12231
12279
|
// ----- perfectionist/sort-exports -----
|
|
12232
12280
|
type PerfectionistSortExports = []|[{
|
|
12233
12281
|
|
|
12234
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12235
|
-
|
|
12236
12282
|
fallbackSort?: {
|
|
12237
12283
|
|
|
12238
12284
|
order?: ("asc" | "desc")
|
|
@@ -12241,6 +12287,8 @@ type PerfectionistSortExports = []|[{
|
|
|
12241
12287
|
[k: string]: unknown | undefined
|
|
12242
12288
|
}
|
|
12243
12289
|
|
|
12290
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12291
|
+
|
|
12244
12292
|
ignoreCase?: boolean
|
|
12245
12293
|
|
|
12246
12294
|
alphabet?: string
|
|
@@ -12281,8 +12329,6 @@ type PerfectionistSortExports = []|[{
|
|
|
12281
12329
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
12282
12330
|
type PerfectionistSortHeritageClauses = []|[{
|
|
12283
12331
|
|
|
12284
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12285
|
-
|
|
12286
12332
|
fallbackSort?: {
|
|
12287
12333
|
|
|
12288
12334
|
order?: ("asc" | "desc")
|
|
@@ -12291,6 +12337,8 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
12291
12337
|
[k: string]: unknown | undefined
|
|
12292
12338
|
}
|
|
12293
12339
|
|
|
12340
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12341
|
+
|
|
12294
12342
|
ignoreCase?: boolean
|
|
12295
12343
|
|
|
12296
12344
|
alphabet?: string
|
|
@@ -12314,8 +12362,6 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
12314
12362
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
12315
12363
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
12316
12364
|
|
|
12317
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12318
|
-
|
|
12319
12365
|
fallbackSort?: {
|
|
12320
12366
|
|
|
12321
12367
|
order?: ("asc" | "desc")
|
|
@@ -12324,6 +12370,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
12324
12370
|
[k: string]: unknown | undefined
|
|
12325
12371
|
}
|
|
12326
12372
|
|
|
12373
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12374
|
+
|
|
12327
12375
|
ignoreCase?: boolean
|
|
12328
12376
|
|
|
12329
12377
|
alphabet?: string
|
|
@@ -12403,8 +12451,6 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
12403
12451
|
// ----- perfectionist/sort-interfaces -----
|
|
12404
12452
|
type PerfectionistSortInterfaces = {
|
|
12405
12453
|
|
|
12406
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12407
|
-
|
|
12408
12454
|
fallbackSort?: {
|
|
12409
12455
|
|
|
12410
12456
|
order?: ("asc" | "desc")
|
|
@@ -12413,6 +12459,8 @@ type PerfectionistSortInterfaces = {
|
|
|
12413
12459
|
[k: string]: unknown | undefined
|
|
12414
12460
|
}
|
|
12415
12461
|
|
|
12462
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12463
|
+
|
|
12416
12464
|
ignoreCase?: boolean
|
|
12417
12465
|
|
|
12418
12466
|
alphabet?: string
|
|
@@ -12426,19 +12474,36 @@ type PerfectionistSortInterfaces = {
|
|
|
12426
12474
|
[k: string]: (string | string[]) | undefined
|
|
12427
12475
|
} | ({
|
|
12428
12476
|
|
|
12429
|
-
|
|
12477
|
+
newlinesInside?: ("always" | "never")
|
|
12478
|
+
|
|
12479
|
+
fallbackSort?: {
|
|
12480
|
+
|
|
12481
|
+
order?: ("asc" | "desc")
|
|
12482
|
+
|
|
12483
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12484
|
+
sortBy?: ("name" | "value")
|
|
12485
|
+
[k: string]: unknown | undefined
|
|
12486
|
+
}
|
|
12430
12487
|
|
|
12431
|
-
|
|
12488
|
+
groupName?: string
|
|
12432
12489
|
|
|
12433
|
-
order?: ("
|
|
12490
|
+
order?: ("asc" | "desc")
|
|
12434
12491
|
|
|
12435
|
-
|
|
12492
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12436
12493
|
anyOf?: {
|
|
12437
12494
|
|
|
12438
12495
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
12439
12496
|
|
|
12440
12497
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
12441
12498
|
|
|
12499
|
+
elementValuePattern?: (({
|
|
12500
|
+
pattern?: string
|
|
12501
|
+
flags?: string
|
|
12502
|
+
} | string)[] | ({
|
|
12503
|
+
pattern?: string
|
|
12504
|
+
flags?: string
|
|
12505
|
+
} | string))
|
|
12506
|
+
|
|
12442
12507
|
elementNamePattern?: (({
|
|
12443
12508
|
pattern?: string
|
|
12444
12509
|
flags?: string
|
|
@@ -12446,21 +12511,39 @@ type PerfectionistSortInterfaces = {
|
|
|
12446
12511
|
pattern?: string
|
|
12447
12512
|
flags?: string
|
|
12448
12513
|
} | string))
|
|
12514
|
+
sortBy?: ("name" | "value")
|
|
12449
12515
|
}[]
|
|
12450
12516
|
} | {
|
|
12451
12517
|
|
|
12452
|
-
|
|
12518
|
+
newlinesInside?: ("always" | "never")
|
|
12453
12519
|
|
|
12454
|
-
|
|
12520
|
+
fallbackSort?: {
|
|
12521
|
+
|
|
12522
|
+
order?: ("asc" | "desc")
|
|
12523
|
+
|
|
12524
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12525
|
+
sortBy?: ("name" | "value")
|
|
12526
|
+
[k: string]: unknown | undefined
|
|
12527
|
+
}
|
|
12528
|
+
|
|
12529
|
+
groupName?: string
|
|
12455
12530
|
|
|
12456
|
-
order?: ("
|
|
12531
|
+
order?: ("asc" | "desc")
|
|
12457
12532
|
|
|
12458
|
-
|
|
12533
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12459
12534
|
|
|
12460
12535
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
12461
12536
|
|
|
12462
12537
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
12463
12538
|
|
|
12539
|
+
elementValuePattern?: (({
|
|
12540
|
+
pattern?: string
|
|
12541
|
+
flags?: string
|
|
12542
|
+
} | string)[] | ({
|
|
12543
|
+
pattern?: string
|
|
12544
|
+
flags?: string
|
|
12545
|
+
} | string))
|
|
12546
|
+
|
|
12464
12547
|
elementNamePattern?: (({
|
|
12465
12548
|
pattern?: string
|
|
12466
12549
|
flags?: string
|
|
@@ -12468,6 +12551,7 @@ type PerfectionistSortInterfaces = {
|
|
|
12468
12551
|
pattern?: string
|
|
12469
12552
|
flags?: string
|
|
12470
12553
|
} | string))
|
|
12554
|
+
sortBy?: ("name" | "value")
|
|
12471
12555
|
})[])
|
|
12472
12556
|
useConfigurationIf?: {
|
|
12473
12557
|
|
|
@@ -12524,6 +12608,7 @@ type PerfectionistSortInterfaces = {
|
|
|
12524
12608
|
pattern?: string
|
|
12525
12609
|
flags?: string
|
|
12526
12610
|
} | string))
|
|
12611
|
+
sortBy?: ("name" | "value")
|
|
12527
12612
|
|
|
12528
12613
|
groups?: (string | string[] | {
|
|
12529
12614
|
|
|
@@ -12533,8 +12618,6 @@ type PerfectionistSortInterfaces = {
|
|
|
12533
12618
|
// ----- perfectionist/sort-intersection-types -----
|
|
12534
12619
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
12535
12620
|
|
|
12536
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12537
|
-
|
|
12538
12621
|
fallbackSort?: {
|
|
12539
12622
|
|
|
12540
12623
|
order?: ("asc" | "desc")
|
|
@@ -12543,6 +12626,8 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
12543
12626
|
[k: string]: unknown | undefined
|
|
12544
12627
|
}
|
|
12545
12628
|
|
|
12629
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12630
|
+
|
|
12546
12631
|
ignoreCase?: boolean
|
|
12547
12632
|
|
|
12548
12633
|
alphabet?: string
|
|
@@ -12588,8 +12673,6 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
12588
12673
|
// ----- perfectionist/sort-jsx-props -----
|
|
12589
12674
|
type PerfectionistSortJsxProps = {
|
|
12590
12675
|
|
|
12591
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12592
|
-
|
|
12593
12676
|
fallbackSort?: {
|
|
12594
12677
|
|
|
12595
12678
|
order?: ("asc" | "desc")
|
|
@@ -12598,6 +12681,8 @@ type PerfectionistSortJsxProps = {
|
|
|
12598
12681
|
[k: string]: unknown | undefined
|
|
12599
12682
|
}
|
|
12600
12683
|
|
|
12684
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12685
|
+
|
|
12601
12686
|
ignoreCase?: boolean
|
|
12602
12687
|
|
|
12603
12688
|
alphabet?: string
|
|
@@ -12650,8 +12735,6 @@ type PerfectionistSortJsxProps = {
|
|
|
12650
12735
|
// ----- perfectionist/sort-maps -----
|
|
12651
12736
|
type PerfectionistSortMaps = {
|
|
12652
12737
|
|
|
12653
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12654
|
-
|
|
12655
12738
|
fallbackSort?: {
|
|
12656
12739
|
|
|
12657
12740
|
order?: ("asc" | "desc")
|
|
@@ -12660,6 +12743,8 @@ type PerfectionistSortMaps = {
|
|
|
12660
12743
|
[k: string]: unknown | undefined
|
|
12661
12744
|
}
|
|
12662
12745
|
|
|
12746
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12747
|
+
|
|
12663
12748
|
ignoreCase?: boolean
|
|
12664
12749
|
|
|
12665
12750
|
alphabet?: string
|
|
@@ -12672,13 +12757,21 @@ type PerfectionistSortMaps = {
|
|
|
12672
12757
|
|
|
12673
12758
|
customGroups?: ({
|
|
12674
12759
|
|
|
12675
|
-
|
|
12760
|
+
newlinesInside?: ("always" | "never")
|
|
12676
12761
|
|
|
12677
|
-
|
|
12762
|
+
fallbackSort?: {
|
|
12763
|
+
|
|
12764
|
+
order?: ("asc" | "desc")
|
|
12765
|
+
|
|
12766
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12767
|
+
[k: string]: unknown | undefined
|
|
12768
|
+
}
|
|
12678
12769
|
|
|
12679
|
-
|
|
12770
|
+
groupName?: string
|
|
12680
12771
|
|
|
12681
|
-
|
|
12772
|
+
order?: ("asc" | "desc")
|
|
12773
|
+
|
|
12774
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12682
12775
|
anyOf?: {
|
|
12683
12776
|
|
|
12684
12777
|
elementNamePattern?: (({
|
|
@@ -12691,13 +12784,21 @@ type PerfectionistSortMaps = {
|
|
|
12691
12784
|
}[]
|
|
12692
12785
|
} | {
|
|
12693
12786
|
|
|
12694
|
-
|
|
12787
|
+
newlinesInside?: ("always" | "never")
|
|
12695
12788
|
|
|
12696
|
-
|
|
12789
|
+
fallbackSort?: {
|
|
12790
|
+
|
|
12791
|
+
order?: ("asc" | "desc")
|
|
12792
|
+
|
|
12793
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12794
|
+
[k: string]: unknown | undefined
|
|
12795
|
+
}
|
|
12697
12796
|
|
|
12698
|
-
|
|
12797
|
+
groupName?: string
|
|
12699
12798
|
|
|
12700
|
-
|
|
12799
|
+
order?: ("asc" | "desc")
|
|
12800
|
+
|
|
12801
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12701
12802
|
|
|
12702
12803
|
elementNamePattern?: (({
|
|
12703
12804
|
pattern?: string
|
|
@@ -12753,8 +12854,6 @@ type PerfectionistSortMaps = {
|
|
|
12753
12854
|
// ----- perfectionist/sort-modules -----
|
|
12754
12855
|
type PerfectionistSortModules = []|[{
|
|
12755
12856
|
|
|
12756
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12757
|
-
|
|
12758
12857
|
fallbackSort?: {
|
|
12759
12858
|
|
|
12760
12859
|
order?: ("asc" | "desc")
|
|
@@ -12763,6 +12862,8 @@ type PerfectionistSortModules = []|[{
|
|
|
12763
12862
|
[k: string]: unknown | undefined
|
|
12764
12863
|
}
|
|
12765
12864
|
|
|
12865
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12866
|
+
|
|
12766
12867
|
ignoreCase?: boolean
|
|
12767
12868
|
|
|
12768
12869
|
alphabet?: string
|
|
@@ -12775,13 +12876,21 @@ type PerfectionistSortModules = []|[{
|
|
|
12775
12876
|
|
|
12776
12877
|
customGroups?: ({
|
|
12777
12878
|
|
|
12778
|
-
|
|
12879
|
+
newlinesInside?: ("always" | "never")
|
|
12880
|
+
|
|
12881
|
+
fallbackSort?: {
|
|
12882
|
+
|
|
12883
|
+
order?: ("asc" | "desc")
|
|
12884
|
+
|
|
12885
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12886
|
+
[k: string]: unknown | undefined
|
|
12887
|
+
}
|
|
12779
12888
|
|
|
12780
|
-
|
|
12889
|
+
groupName?: string
|
|
12781
12890
|
|
|
12782
|
-
order?: ("
|
|
12891
|
+
order?: ("asc" | "desc")
|
|
12783
12892
|
|
|
12784
|
-
|
|
12893
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12785
12894
|
anyOf?: {
|
|
12786
12895
|
|
|
12787
12896
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
@@ -12806,13 +12915,21 @@ type PerfectionistSortModules = []|[{
|
|
|
12806
12915
|
}[]
|
|
12807
12916
|
} | {
|
|
12808
12917
|
|
|
12809
|
-
|
|
12918
|
+
newlinesInside?: ("always" | "never")
|
|
12919
|
+
|
|
12920
|
+
fallbackSort?: {
|
|
12921
|
+
|
|
12922
|
+
order?: ("asc" | "desc")
|
|
12923
|
+
|
|
12924
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12925
|
+
[k: string]: unknown | undefined
|
|
12926
|
+
}
|
|
12810
12927
|
|
|
12811
|
-
|
|
12928
|
+
groupName?: string
|
|
12812
12929
|
|
|
12813
|
-
order?: ("
|
|
12930
|
+
order?: ("asc" | "desc")
|
|
12814
12931
|
|
|
12815
|
-
|
|
12932
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12816
12933
|
|
|
12817
12934
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
12818
12935
|
|
|
@@ -12870,8 +12987,6 @@ type PerfectionistSortModules = []|[{
|
|
|
12870
12987
|
// ----- perfectionist/sort-named-exports -----
|
|
12871
12988
|
type PerfectionistSortNamedExports = []|[{
|
|
12872
12989
|
|
|
12873
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12874
|
-
|
|
12875
12990
|
fallbackSort?: {
|
|
12876
12991
|
|
|
12877
12992
|
order?: ("asc" | "desc")
|
|
@@ -12880,6 +12995,8 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
12880
12995
|
[k: string]: unknown | undefined
|
|
12881
12996
|
}
|
|
12882
12997
|
|
|
12998
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12999
|
+
|
|
12883
13000
|
ignoreCase?: boolean
|
|
12884
13001
|
|
|
12885
13002
|
alphabet?: string
|
|
@@ -12922,8 +13039,6 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
12922
13039
|
// ----- perfectionist/sort-named-imports -----
|
|
12923
13040
|
type PerfectionistSortNamedImports = []|[{
|
|
12924
13041
|
|
|
12925
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12926
|
-
|
|
12927
13042
|
fallbackSort?: {
|
|
12928
13043
|
|
|
12929
13044
|
order?: ("asc" | "desc")
|
|
@@ -12932,6 +13047,8 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
12932
13047
|
[k: string]: unknown | undefined
|
|
12933
13048
|
}
|
|
12934
13049
|
|
|
13050
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13051
|
+
|
|
12935
13052
|
ignoreCase?: boolean
|
|
12936
13053
|
|
|
12937
13054
|
alphabet?: string
|
|
@@ -12974,8 +13091,6 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
12974
13091
|
// ----- perfectionist/sort-object-types -----
|
|
12975
13092
|
type PerfectionistSortObjectTypes = {
|
|
12976
13093
|
|
|
12977
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12978
|
-
|
|
12979
13094
|
fallbackSort?: {
|
|
12980
13095
|
|
|
12981
13096
|
order?: ("asc" | "desc")
|
|
@@ -12984,6 +13099,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
12984
13099
|
[k: string]: unknown | undefined
|
|
12985
13100
|
}
|
|
12986
13101
|
|
|
13102
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13103
|
+
|
|
12987
13104
|
ignoreCase?: boolean
|
|
12988
13105
|
|
|
12989
13106
|
alphabet?: string
|
|
@@ -12997,19 +13114,36 @@ type PerfectionistSortObjectTypes = {
|
|
|
12997
13114
|
[k: string]: (string | string[]) | undefined
|
|
12998
13115
|
} | ({
|
|
12999
13116
|
|
|
13000
|
-
|
|
13117
|
+
newlinesInside?: ("always" | "never")
|
|
13118
|
+
|
|
13119
|
+
fallbackSort?: {
|
|
13120
|
+
|
|
13121
|
+
order?: ("asc" | "desc")
|
|
13122
|
+
|
|
13123
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13124
|
+
sortBy?: ("name" | "value")
|
|
13125
|
+
[k: string]: unknown | undefined
|
|
13126
|
+
}
|
|
13001
13127
|
|
|
13002
|
-
|
|
13128
|
+
groupName?: string
|
|
13003
13129
|
|
|
13004
|
-
order?: ("
|
|
13130
|
+
order?: ("asc" | "desc")
|
|
13005
13131
|
|
|
13006
|
-
|
|
13132
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13007
13133
|
anyOf?: {
|
|
13008
13134
|
|
|
13009
13135
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
13010
13136
|
|
|
13011
13137
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
13012
13138
|
|
|
13139
|
+
elementValuePattern?: (({
|
|
13140
|
+
pattern?: string
|
|
13141
|
+
flags?: string
|
|
13142
|
+
} | string)[] | ({
|
|
13143
|
+
pattern?: string
|
|
13144
|
+
flags?: string
|
|
13145
|
+
} | string))
|
|
13146
|
+
|
|
13013
13147
|
elementNamePattern?: (({
|
|
13014
13148
|
pattern?: string
|
|
13015
13149
|
flags?: string
|
|
@@ -13017,21 +13151,39 @@ type PerfectionistSortObjectTypes = {
|
|
|
13017
13151
|
pattern?: string
|
|
13018
13152
|
flags?: string
|
|
13019
13153
|
} | string))
|
|
13154
|
+
sortBy?: ("name" | "value")
|
|
13020
13155
|
}[]
|
|
13021
13156
|
} | {
|
|
13022
13157
|
|
|
13023
|
-
|
|
13158
|
+
newlinesInside?: ("always" | "never")
|
|
13024
13159
|
|
|
13025
|
-
|
|
13160
|
+
fallbackSort?: {
|
|
13161
|
+
|
|
13162
|
+
order?: ("asc" | "desc")
|
|
13163
|
+
|
|
13164
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13165
|
+
sortBy?: ("name" | "value")
|
|
13166
|
+
[k: string]: unknown | undefined
|
|
13167
|
+
}
|
|
13026
13168
|
|
|
13027
|
-
|
|
13169
|
+
groupName?: string
|
|
13028
13170
|
|
|
13029
|
-
|
|
13171
|
+
order?: ("asc" | "desc")
|
|
13172
|
+
|
|
13173
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13030
13174
|
|
|
13031
13175
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
13032
13176
|
|
|
13033
13177
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
13034
13178
|
|
|
13179
|
+
elementValuePattern?: (({
|
|
13180
|
+
pattern?: string
|
|
13181
|
+
flags?: string
|
|
13182
|
+
} | string)[] | ({
|
|
13183
|
+
pattern?: string
|
|
13184
|
+
flags?: string
|
|
13185
|
+
} | string))
|
|
13186
|
+
|
|
13035
13187
|
elementNamePattern?: (({
|
|
13036
13188
|
pattern?: string
|
|
13037
13189
|
flags?: string
|
|
@@ -13039,6 +13191,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13039
13191
|
pattern?: string
|
|
13040
13192
|
flags?: string
|
|
13041
13193
|
} | string))
|
|
13194
|
+
sortBy?: ("name" | "value")
|
|
13042
13195
|
})[])
|
|
13043
13196
|
useConfigurationIf?: {
|
|
13044
13197
|
|
|
@@ -13095,6 +13248,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
13095
13248
|
pattern?: string
|
|
13096
13249
|
flags?: string
|
|
13097
13250
|
} | string))
|
|
13251
|
+
sortBy?: ("name" | "value")
|
|
13098
13252
|
|
|
13099
13253
|
groups?: (string | string[] | {
|
|
13100
13254
|
|
|
@@ -13104,8 +13258,6 @@ type PerfectionistSortObjectTypes = {
|
|
|
13104
13258
|
// ----- perfectionist/sort-objects -----
|
|
13105
13259
|
type PerfectionistSortObjects = {
|
|
13106
13260
|
|
|
13107
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13108
|
-
|
|
13109
13261
|
fallbackSort?: {
|
|
13110
13262
|
|
|
13111
13263
|
order?: ("asc" | "desc")
|
|
@@ -13114,6 +13266,8 @@ type PerfectionistSortObjects = {
|
|
|
13114
13266
|
[k: string]: unknown | undefined
|
|
13115
13267
|
}
|
|
13116
13268
|
|
|
13269
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13270
|
+
|
|
13117
13271
|
ignoreCase?: boolean
|
|
13118
13272
|
|
|
13119
13273
|
alphabet?: string
|
|
@@ -13132,13 +13286,21 @@ type PerfectionistSortObjects = {
|
|
|
13132
13286
|
[k: string]: (string | string[]) | undefined
|
|
13133
13287
|
} | ({
|
|
13134
13288
|
|
|
13135
|
-
|
|
13289
|
+
newlinesInside?: ("always" | "never")
|
|
13290
|
+
|
|
13291
|
+
fallbackSort?: {
|
|
13292
|
+
|
|
13293
|
+
order?: ("asc" | "desc")
|
|
13294
|
+
|
|
13295
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13296
|
+
[k: string]: unknown | undefined
|
|
13297
|
+
}
|
|
13136
13298
|
|
|
13137
|
-
|
|
13299
|
+
groupName?: string
|
|
13138
13300
|
|
|
13139
|
-
order?: ("
|
|
13301
|
+
order?: ("asc" | "desc")
|
|
13140
13302
|
|
|
13141
|
-
|
|
13303
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13142
13304
|
anyOf?: {
|
|
13143
13305
|
|
|
13144
13306
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
@@ -13163,13 +13325,21 @@ type PerfectionistSortObjects = {
|
|
|
13163
13325
|
}[]
|
|
13164
13326
|
} | {
|
|
13165
13327
|
|
|
13166
|
-
|
|
13328
|
+
newlinesInside?: ("always" | "never")
|
|
13329
|
+
|
|
13330
|
+
fallbackSort?: {
|
|
13331
|
+
|
|
13332
|
+
order?: ("asc" | "desc")
|
|
13333
|
+
|
|
13334
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13335
|
+
[k: string]: unknown | undefined
|
|
13336
|
+
}
|
|
13167
13337
|
|
|
13168
|
-
|
|
13338
|
+
groupName?: string
|
|
13169
13339
|
|
|
13170
|
-
order?: ("
|
|
13340
|
+
order?: ("asc" | "desc")
|
|
13171
13341
|
|
|
13172
|
-
|
|
13342
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13173
13343
|
|
|
13174
13344
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
13175
13345
|
|
|
@@ -13259,8 +13429,6 @@ type PerfectionistSortObjects = {
|
|
|
13259
13429
|
// ----- perfectionist/sort-sets -----
|
|
13260
13430
|
type PerfectionistSortSets = {
|
|
13261
13431
|
|
|
13262
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13263
|
-
|
|
13264
13432
|
fallbackSort?: {
|
|
13265
13433
|
|
|
13266
13434
|
order?: ("asc" | "desc")
|
|
@@ -13269,6 +13437,8 @@ type PerfectionistSortSets = {
|
|
|
13269
13437
|
[k: string]: unknown | undefined
|
|
13270
13438
|
}
|
|
13271
13439
|
|
|
13440
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13441
|
+
|
|
13272
13442
|
ignoreCase?: boolean
|
|
13273
13443
|
|
|
13274
13444
|
alphabet?: string
|
|
@@ -13283,13 +13453,21 @@ type PerfectionistSortSets = {
|
|
|
13283
13453
|
|
|
13284
13454
|
customGroups?: ({
|
|
13285
13455
|
|
|
13286
|
-
|
|
13456
|
+
newlinesInside?: ("always" | "never")
|
|
13457
|
+
|
|
13458
|
+
fallbackSort?: {
|
|
13459
|
+
|
|
13460
|
+
order?: ("asc" | "desc")
|
|
13461
|
+
|
|
13462
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13463
|
+
[k: string]: unknown | undefined
|
|
13464
|
+
}
|
|
13287
13465
|
|
|
13288
|
-
|
|
13466
|
+
groupName?: string
|
|
13289
13467
|
|
|
13290
|
-
order?: ("
|
|
13468
|
+
order?: ("asc" | "desc")
|
|
13291
13469
|
|
|
13292
|
-
|
|
13470
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13293
13471
|
anyOf?: {
|
|
13294
13472
|
|
|
13295
13473
|
selector?: ("literal" | "spread")
|
|
@@ -13304,13 +13482,21 @@ type PerfectionistSortSets = {
|
|
|
13304
13482
|
}[]
|
|
13305
13483
|
} | {
|
|
13306
13484
|
|
|
13307
|
-
|
|
13485
|
+
newlinesInside?: ("always" | "never")
|
|
13308
13486
|
|
|
13309
|
-
|
|
13487
|
+
fallbackSort?: {
|
|
13488
|
+
|
|
13489
|
+
order?: ("asc" | "desc")
|
|
13490
|
+
|
|
13491
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13492
|
+
[k: string]: unknown | undefined
|
|
13493
|
+
}
|
|
13310
13494
|
|
|
13311
|
-
|
|
13495
|
+
groupName?: string
|
|
13312
13496
|
|
|
13313
|
-
|
|
13497
|
+
order?: ("asc" | "desc")
|
|
13498
|
+
|
|
13499
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13314
13500
|
|
|
13315
13501
|
selector?: ("literal" | "spread")
|
|
13316
13502
|
|
|
@@ -13368,8 +13554,6 @@ type PerfectionistSortSets = {
|
|
|
13368
13554
|
// ----- perfectionist/sort-switch-case -----
|
|
13369
13555
|
type PerfectionistSortSwitchCase = []|[{
|
|
13370
13556
|
|
|
13371
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13372
|
-
|
|
13373
13557
|
fallbackSort?: {
|
|
13374
13558
|
|
|
13375
13559
|
order?: ("asc" | "desc")
|
|
@@ -13378,6 +13562,8 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
13378
13562
|
[k: string]: unknown | undefined
|
|
13379
13563
|
}
|
|
13380
13564
|
|
|
13565
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13566
|
+
|
|
13381
13567
|
ignoreCase?: boolean
|
|
13382
13568
|
|
|
13383
13569
|
alphabet?: string
|
|
@@ -13391,8 +13577,6 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
13391
13577
|
// ----- perfectionist/sort-union-types -----
|
|
13392
13578
|
type PerfectionistSortUnionTypes = []|[{
|
|
13393
13579
|
|
|
13394
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13395
|
-
|
|
13396
13580
|
fallbackSort?: {
|
|
13397
13581
|
|
|
13398
13582
|
order?: ("asc" | "desc")
|
|
@@ -13401,6 +13585,8 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
13401
13585
|
[k: string]: unknown | undefined
|
|
13402
13586
|
}
|
|
13403
13587
|
|
|
13588
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13589
|
+
|
|
13404
13590
|
ignoreCase?: boolean
|
|
13405
13591
|
|
|
13406
13592
|
alphabet?: string
|
|
@@ -13446,8 +13632,6 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
13446
13632
|
// ----- perfectionist/sort-variable-declarations -----
|
|
13447
13633
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
13448
13634
|
|
|
13449
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13450
|
-
|
|
13451
13635
|
fallbackSort?: {
|
|
13452
13636
|
|
|
13453
13637
|
order?: ("asc" | "desc")
|
|
@@ -13456,6 +13640,8 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
13456
13640
|
[k: string]: unknown | undefined
|
|
13457
13641
|
}
|
|
13458
13642
|
|
|
13643
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
13644
|
+
|
|
13459
13645
|
ignoreCase?: boolean
|
|
13460
13646
|
|
|
13461
13647
|
alphabet?: string
|
|
@@ -18493,7 +18679,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
18493
18679
|
onlyEquality?: boolean
|
|
18494
18680
|
}]
|
|
18495
18681
|
// Names of all the configs
|
|
18496
|
-
type ConfigNames = 'vinicunca/astro/setup' | 'vinicunca/astro/rules' | 'vinicunca/eslint-comments/rules' | 'vinicunca/formatter/setup' | 'vinicunca/imports/rules' | 'vinicunca/imports/disables/bin' | 'vinicunca/javascript/setup' | 'vinicunca/javascript/rules' | 'vinicunca/javascript/disables' | 'vinicunca/jsx/setup' | 'vinicunca/jsdoc/rules' | 'vinicunca/jsonc/setup' | 'vinicunca/jsonc/rules' | 'vinicunca/markdown/setup' | 'vinicunca/markdown/processor' | 'vinicunca/markdown/parser' | 'vinicunca/markdown/disables' | 'vinicunca/node/rules' | 'vinicunca/perfectionist/rules' | 'vinicunca/react/setup' | 'vinicunca/react/rules' | 'vinicunca/solid/setup' | 'vinicunca/solid/rules' | 'vinicunca/sort/package-json' | 'vinicunca/stylistic/rules' | 'vinicunca/svelte/setup' | 'vinicunca/svelte/rules' | 'vinicunca/test/setup' | 'vinicunca/test/rules' | 'vinicunca/toml/setup' | 'vinicunca/toml/rules' | 'vinicunca/regexp/rules' | 'vinicunca/sonar/rules' | 'vinicunca/typescript/setup' | 'vinicunca/typescript/parser' | 'vinicunca/typescript/rules' | 'vinicunca/typescript/disables/dts' | 'vinicunca/typescript/disables/tests' | 'vinicunca/typescript/disables/javascript' | 'vinicunca/unicorn/rules' | 'vinicunca/unocss' | 'vinicunca/vue/setup' | 'vinicunca/vue/rules' | 'vinicunca/yaml/setup' | 'vinicunca/yaml/rules'
|
|
18682
|
+
type ConfigNames = 'vinicunca/astro/setup' | 'vinicunca/astro/rules' | 'vinicunca/eslint-comments/rules' | 'vinicunca/formatter/setup' | 'vinicunca/imports/rules' | 'vinicunca/imports/disables/bin' | 'vinicunca/javascript/setup' | 'vinicunca/javascript/rules' | 'vinicunca/javascript/disables' | 'vinicunca/jsx/setup' | 'vinicunca/jsdoc/rules' | 'vinicunca/jsonc/setup' | 'vinicunca/jsonc/rules' | 'vinicunca/markdown/setup' | 'vinicunca/markdown/processor' | 'vinicunca/markdown/parser' | 'vinicunca/markdown/disables' | 'vinicunca/node/rules' | 'vinicunca/perfectionist/rules' | 'vinicunca/react/setup' | 'vinicunca/react/rules' | 'vinicunca/solid/setup' | 'vinicunca/solid/rules' | 'vinicunca/sort/package-json' | 'vinicunca/stylistic/rules' | 'vinicunca/svelte/setup' | 'vinicunca/svelte/rules' | 'vinicunca/test/setup' | 'vinicunca/test/rules' | 'vinicunca/toml/setup' | 'vinicunca/toml/rules' | 'vinicunca/regexp/rules' | 'vinicunca/sonar/rules' | 'vinicunca/typescript/setup' | 'vinicunca/typescript/parser' | 'vinicunca/typescript/rules' | 'vinicunca/typescript/disables/dts' | 'vinicunca/typescript/disables/tests' | 'vinicunca/typescript/disables/javascript' | 'vinicunca/unicorn/rules' | 'vinicunca/unocss' | 'vinicunca/vue/setup' | 'vinicunca/vue/rules' | 'vinicunca/yaml/setup' | 'vinicunca/yaml/rules' | 'vinicunca/yaml/pnpm-workspace'
|
|
18497
18683
|
|
|
18498
18684
|
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
|
18499
18685
|
interface VendoredPrettierOptionsRequired {
|
|
@@ -18910,6 +19096,17 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
18910
19096
|
* @default false
|
|
18911
19097
|
*/
|
|
18912
19098
|
unocss?: boolean | OptionsUnoCSS;
|
|
19099
|
+
/**
|
|
19100
|
+
* Enable pnpm catalogs support.
|
|
19101
|
+
*
|
|
19102
|
+
* Currently it's disabled by default, as it's still experimental.
|
|
19103
|
+
* In the future it will be smartly enabled based on the project usage.
|
|
19104
|
+
*
|
|
19105
|
+
* @see https://github.com/antfu/pnpm-workspace-utils
|
|
19106
|
+
* @experimental
|
|
19107
|
+
* @default false
|
|
19108
|
+
*/
|
|
19109
|
+
pnpm?: boolean;
|
|
18913
19110
|
/**
|
|
18914
19111
|
* Use external formatters to format files.
|
|
18915
19112
|
*
|
|
@@ -18988,6 +19185,8 @@ declare function node(): Promise<Array<TypedFlatConfigItem>>;
|
|
|
18988
19185
|
*/
|
|
18989
19186
|
declare function perfectionist(): Promise<Array<TypedFlatConfigItem>>;
|
|
18990
19187
|
|
|
19188
|
+
declare function pnpm(): Promise<Array<TypedFlatConfigItem>>;
|
|
19189
|
+
|
|
18991
19190
|
declare function react(options?: OptionsFiles & OptionsOverrides & OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes): Promise<Array<TypedFlatConfigItem>>;
|
|
18992
19191
|
|
|
18993
19192
|
declare function regexp(options?: OptionsOverrides & OptionsRegExp): Promise<Array<TypedFlatConfigItem>>;
|
|
@@ -19135,4 +19334,4 @@ declare function ensurePackages(packages: Array<string | undefined>): Promise<vo
|
|
|
19135
19334
|
declare function isInEditorEnv(): boolean;
|
|
19136
19335
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
19137
19336
|
|
|
19138
|
-
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsProjectType, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, STYLISTIC_CONFIG_DEFAULTS, type StylisticConfig, type StylisticOptions, type TypedFlatConfigItem, astro, combineConfigs, command, comments, defaultPluginRenaming, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, react, regexp, renamePluginInConfigs, renameRules, solid, sonar, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|
|
19337
|
+
export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsProjectType, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsUnoCSS, type OptionsVue, type ResolvedOptions, type Rules, STYLISTIC_CONFIG_DEFAULTS, type StylisticConfig, type StylisticOptions, type TypedFlatConfigItem, astro, combineConfigs, command, comments, defaultPluginRenaming, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, solid, sonar, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|
package/dist/index.js
CHANGED
|
@@ -1257,6 +1257,30 @@ async function perfectionist() {
|
|
|
1257
1257
|
];
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
+
// src/configs/pnpm.ts
|
|
1261
|
+
async function pnpm() {
|
|
1262
|
+
return [
|
|
1263
|
+
{
|
|
1264
|
+
files: [
|
|
1265
|
+
"package.json",
|
|
1266
|
+
"**/package.json"
|
|
1267
|
+
],
|
|
1268
|
+
languageOptions: {
|
|
1269
|
+
parser: await interopDefault(import("jsonc-eslint-parser"))
|
|
1270
|
+
},
|
|
1271
|
+
name: "vinicunca/pnpm/rules",
|
|
1272
|
+
plugins: {
|
|
1273
|
+
pnpm: await interopDefault(import("eslint-plugin-pnpm"))
|
|
1274
|
+
},
|
|
1275
|
+
rules: {
|
|
1276
|
+
"pnpm/enforce-catalog": ERROR,
|
|
1277
|
+
"pnpm/prefer-workspace-settings": ERROR,
|
|
1278
|
+
"pnpm/valid-catalog": ERROR
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
];
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1260
1284
|
// src/configs/react.ts
|
|
1261
1285
|
import { isPackageExists as isPackageExists3 } from "local-pkg";
|
|
1262
1286
|
var ReactRefreshAllowConstantExportPackages = [
|
|
@@ -2451,8 +2475,33 @@ async function yaml(options = {}) {
|
|
|
2451
2475
|
},
|
|
2452
2476
|
{
|
|
2453
2477
|
files: ["pnpm-workspace.yaml"],
|
|
2478
|
+
name: "vinicunca/yaml/pnpm-workspace",
|
|
2454
2479
|
rules: {
|
|
2455
|
-
"yaml/sort-keys":
|
|
2480
|
+
"yaml/sort-keys": [
|
|
2481
|
+
ERROR,
|
|
2482
|
+
{
|
|
2483
|
+
order: [
|
|
2484
|
+
"packages",
|
|
2485
|
+
"overrides",
|
|
2486
|
+
"patchedDependencies",
|
|
2487
|
+
"hoistPattern",
|
|
2488
|
+
"catalog",
|
|
2489
|
+
"catalogs",
|
|
2490
|
+
"allowedDeprecatedVersions",
|
|
2491
|
+
"allowNonAppliedPatches",
|
|
2492
|
+
"configDependencies",
|
|
2493
|
+
"ignoredBuiltDependencies",
|
|
2494
|
+
"ignoredOptionalDependencies",
|
|
2495
|
+
"neverBuiltDependencies",
|
|
2496
|
+
"onlyBuiltDependencies",
|
|
2497
|
+
"onlyBuiltDependenciesFile",
|
|
2498
|
+
"packageExtensions",
|
|
2499
|
+
"peerDependencyRules",
|
|
2500
|
+
"supportedArchitectures"
|
|
2501
|
+
],
|
|
2502
|
+
pathPattern: "^$"
|
|
2503
|
+
}
|
|
2504
|
+
]
|
|
2456
2505
|
}
|
|
2457
2506
|
}
|
|
2458
2507
|
];
|
|
@@ -2498,6 +2547,7 @@ function vinicuncaESLint(options = {}, ...userConfigs) {
|
|
|
2498
2547
|
regexp: enableRegexp = true,
|
|
2499
2548
|
solid: enableSolid = false,
|
|
2500
2549
|
svelte: enableSvelte = false,
|
|
2550
|
+
pnpm: enableCatalogs = false,
|
|
2501
2551
|
typescript: enableTypeScript = isPackageExists4("typescript"),
|
|
2502
2552
|
unicorn: enableUnicorn = true,
|
|
2503
2553
|
unocss: enableUnoCSS = false,
|
|
@@ -2640,6 +2690,11 @@ function vinicuncaESLint(options = {}, ...userConfigs) {
|
|
|
2640
2690
|
sortTsconfig()
|
|
2641
2691
|
);
|
|
2642
2692
|
}
|
|
2693
|
+
if (enableCatalogs) {
|
|
2694
|
+
configs2.push(
|
|
2695
|
+
pnpm()
|
|
2696
|
+
);
|
|
2697
|
+
}
|
|
2643
2698
|
if (options.yaml ?? true) {
|
|
2644
2699
|
configs2.push(yaml({
|
|
2645
2700
|
overrides: getOverrides(options, "yaml"),
|
|
@@ -2762,6 +2817,7 @@ export {
|
|
|
2762
2817
|
default6 as pluginSonar,
|
|
2763
2818
|
default7 as pluginUnicorn,
|
|
2764
2819
|
default8 as pluginUnusedImports,
|
|
2820
|
+
pnpm,
|
|
2765
2821
|
react,
|
|
2766
2822
|
regexp,
|
|
2767
2823
|
renamePluginInConfigs,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.7.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -112,16 +112,16 @@
|
|
|
112
112
|
"@antfu/install-pkg": "^1.0.0",
|
|
113
113
|
"@clack/prompts": "^0.10.0",
|
|
114
114
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
115
|
-
"@eslint/markdown": "^6.
|
|
115
|
+
"@eslint/markdown": "^6.3.0",
|
|
116
116
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
117
117
|
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
118
118
|
"@typescript-eslint/parser": "^8.26.0",
|
|
119
|
-
"@unocss/eslint-plugin": "^66.
|
|
119
|
+
"@unocss/eslint-plugin": "^66.0.0",
|
|
120
120
|
"@vitest/eslint-plugin": "^1.1.36",
|
|
121
121
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
122
122
|
"eslint-flat-config-utils": "^2.0.1",
|
|
123
123
|
"eslint-merge-processors": "^2.0.0",
|
|
124
|
-
"eslint-plugin-antfu": "^3.1.
|
|
124
|
+
"eslint-plugin-antfu": "^3.1.1",
|
|
125
125
|
"eslint-plugin-command": "^3.1.0",
|
|
126
126
|
"eslint-plugin-format": "^1.0.1",
|
|
127
127
|
"eslint-plugin-import-x": "^4.6.1",
|
|
@@ -129,7 +129,8 @@
|
|
|
129
129
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
130
130
|
"eslint-plugin-n": "^17.16.2",
|
|
131
131
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
132
|
-
"eslint-plugin-perfectionist": "^4.
|
|
132
|
+
"eslint-plugin-perfectionist": "^4.10.1",
|
|
133
|
+
"eslint-plugin-pnpm": "^0.1.2",
|
|
133
134
|
"eslint-plugin-regexp": "^2.7.0",
|
|
134
135
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
135
136
|
"eslint-plugin-toml": "^0.12.0",
|