@w5s/eslint-config 3.11.0 → 3.12.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.
@@ -0,0 +1,4494 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ import type { Linter } from 'eslint'
4
+
5
+ declare module 'eslint' {
6
+ namespace Linter {
7
+ interface RulesRecord extends RuleOptions {}
8
+ }
9
+ }
10
+
11
+ export interface RuleOptions {
12
+ /**
13
+ * Enforce sorted arrays before include method.
14
+ * @see https://perfectionist.dev/rules/sort-array-includes
15
+ */
16
+ 'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>
17
+ /**
18
+ * Enforce sorted arrays.
19
+ * @see https://perfectionist.dev/rules/sort-arrays
20
+ */
21
+ 'perfectionist/sort-arrays'?: Linter.RuleEntry<PerfectionistSortArrays>
22
+ /**
23
+ * Enforce sorted classes.
24
+ * @see https://perfectionist.dev/rules/sort-classes
25
+ */
26
+ 'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>
27
+ /**
28
+ * Enforce sorted decorators.
29
+ * @see https://perfectionist.dev/rules/sort-decorators
30
+ */
31
+ 'perfectionist/sort-decorators'?: Linter.RuleEntry<PerfectionistSortDecorators>
32
+ /**
33
+ * Enforce sorted TypeScript enums.
34
+ * @see https://perfectionist.dev/rules/sort-enums
35
+ */
36
+ 'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>
37
+ /**
38
+ * Enforce sorted export attributes.
39
+ * @see https://perfectionist.dev/rules/sort-export-attributes
40
+ */
41
+ 'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>
42
+ /**
43
+ * Enforce sorted exports.
44
+ * @see https://perfectionist.dev/rules/sort-exports
45
+ */
46
+ 'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>
47
+ /**
48
+ * Enforce sorted heritage clauses.
49
+ * @see https://perfectionist.dev/rules/sort-heritage-clauses
50
+ */
51
+ 'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>
52
+ /**
53
+ * Enforce sorted import attributes.
54
+ * @see https://perfectionist.dev/rules/sort-import-attributes
55
+ */
56
+ 'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>
57
+ /**
58
+ * Enforce sorted imports.
59
+ * @see https://perfectionist.dev/rules/sort-imports
60
+ */
61
+ 'perfectionist/sort-imports'?: Linter.RuleEntry<PerfectionistSortImports>
62
+ /**
63
+ * Enforce sorted interface properties.
64
+ * @see https://perfectionist.dev/rules/sort-interfaces
65
+ */
66
+ 'perfectionist/sort-interfaces'?: Linter.RuleEntry<PerfectionistSortInterfaces>
67
+ /**
68
+ * Enforce sorted intersection types.
69
+ * @see https://perfectionist.dev/rules/sort-intersection-types
70
+ */
71
+ 'perfectionist/sort-intersection-types'?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>
72
+ /**
73
+ * Enforce sorted JSX props.
74
+ * @see https://perfectionist.dev/rules/sort-jsx-props
75
+ */
76
+ 'perfectionist/sort-jsx-props'?: Linter.RuleEntry<PerfectionistSortJsxProps>
77
+ /**
78
+ * Enforce sorted Map elements.
79
+ * @see https://perfectionist.dev/rules/sort-maps
80
+ */
81
+ 'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>
82
+ /**
83
+ * Enforce sorted modules.
84
+ * @see https://perfectionist.dev/rules/sort-modules
85
+ */
86
+ 'perfectionist/sort-modules'?: Linter.RuleEntry<PerfectionistSortModules>
87
+ /**
88
+ * Enforce sorted named exports.
89
+ * @see https://perfectionist.dev/rules/sort-named-exports
90
+ */
91
+ 'perfectionist/sort-named-exports'?: Linter.RuleEntry<PerfectionistSortNamedExports>
92
+ /**
93
+ * Enforce sorted named imports.
94
+ * @see https://perfectionist.dev/rules/sort-named-imports
95
+ */
96
+ 'perfectionist/sort-named-imports'?: Linter.RuleEntry<PerfectionistSortNamedImports>
97
+ /**
98
+ * Enforce sorted object types.
99
+ * @see https://perfectionist.dev/rules/sort-object-types
100
+ */
101
+ 'perfectionist/sort-object-types'?: Linter.RuleEntry<PerfectionistSortObjectTypes>
102
+ /**
103
+ * Enforce sorted objects.
104
+ * @see https://perfectionist.dev/rules/sort-objects
105
+ */
106
+ 'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>
107
+ /**
108
+ * Enforce sorted sets.
109
+ * @see https://perfectionist.dev/rules/sort-sets
110
+ */
111
+ 'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>
112
+ /**
113
+ * Enforce sorted switch cases.
114
+ * @see https://perfectionist.dev/rules/sort-switch-case
115
+ */
116
+ 'perfectionist/sort-switch-case'?: Linter.RuleEntry<PerfectionistSortSwitchCase>
117
+ /**
118
+ * Enforce sorted union types.
119
+ * @see https://perfectionist.dev/rules/sort-union-types
120
+ */
121
+ 'perfectionist/sort-union-types'?: Linter.RuleEntry<PerfectionistSortUnionTypes>
122
+ /**
123
+ * Enforce sorted variable declarations.
124
+ * @see https://perfectionist.dev/rules/sort-variable-declarations
125
+ */
126
+ 'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>
127
+ }
128
+
129
+ /* ======= Declarations ======= */
130
+ // ----- perfectionist/sort-array-includes -----
131
+ type PerfectionistSortArrayIncludes = {
132
+
133
+ fallbackSort?: {
134
+
135
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
136
+
137
+ order?: ("asc" | "desc")
138
+ }
139
+
140
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
141
+
142
+ specialCharacters?: ("remove" | "trim" | "keep")
143
+
144
+ ignoreCase?: boolean
145
+
146
+ alphabet?: string
147
+
148
+ locales?: (string | string[])
149
+
150
+ order?: ("asc" | "desc")
151
+
152
+ customGroups?: ({
153
+
154
+ fallbackSort?: {
155
+
156
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
157
+
158
+ order?: ("asc" | "desc")
159
+ }
160
+
161
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
162
+
163
+ groupName: string
164
+ newlinesInside?: ("ignore" | number)
165
+
166
+ order?: ("asc" | "desc")
167
+
168
+ anyOf: [{
169
+
170
+ elementNamePattern?: (({
171
+
172
+ pattern: string
173
+
174
+ flags?: string
175
+ } | string)[] | ({
176
+
177
+ pattern: string
178
+
179
+ flags?: string
180
+ } | string))
181
+
182
+ selector?: "literal"
183
+ }, ...({
184
+
185
+ elementNamePattern?: (({
186
+
187
+ pattern: string
188
+
189
+ flags?: string
190
+ } | string)[] | ({
191
+
192
+ pattern: string
193
+
194
+ flags?: string
195
+ } | string))
196
+
197
+ selector?: "literal"
198
+ })[]]
199
+ } | {
200
+
201
+ fallbackSort?: {
202
+
203
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
204
+
205
+ order?: ("asc" | "desc")
206
+ }
207
+
208
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
209
+
210
+ groupName: string
211
+ newlinesInside?: ("ignore" | number)
212
+
213
+ order?: ("asc" | "desc")
214
+
215
+ elementNamePattern?: (({
216
+
217
+ pattern: string
218
+
219
+ flags?: string
220
+ } | string)[] | ({
221
+
222
+ pattern: string
223
+
224
+ flags?: string
225
+ } | string))
226
+
227
+ selector?: "literal"
228
+ })[]
229
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
230
+
231
+ groups?: (string | [string, ...(string)[]] | {
232
+ newlinesBetween: ("ignore" | number)
233
+ } | {
234
+ group: (string | [string, ...(string)[]])
235
+
236
+ fallbackSort?: {
237
+
238
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
239
+
240
+ order?: ("asc" | "desc")
241
+ }
242
+
243
+ commentAbove?: string
244
+
245
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
246
+ newlinesInside?: ("ignore" | number)
247
+
248
+ order?: ("asc" | "desc")
249
+ })[]
250
+ newlinesBetween?: ("ignore" | number)
251
+
252
+ useConfigurationIf?: {
253
+
254
+ allNamesMatchPattern?: (({
255
+
256
+ pattern: string
257
+
258
+ flags?: string
259
+ } | string)[] | ({
260
+
261
+ pattern: string
262
+
263
+ flags?: string
264
+ } | string))
265
+
266
+ matchesAstSelector?: string
267
+ }
268
+
269
+ partitionByComment?: (boolean | (({
270
+
271
+ pattern: string
272
+
273
+ flags?: string
274
+ } | string)[] | ({
275
+
276
+ pattern: string
277
+
278
+ flags?: string
279
+ } | string)) | {
280
+
281
+ block?: (boolean | (({
282
+
283
+ pattern: string
284
+
285
+ flags?: string
286
+ } | string)[] | ({
287
+
288
+ pattern: string
289
+
290
+ flags?: string
291
+ } | string)))
292
+
293
+ line?: (boolean | (({
294
+
295
+ pattern: string
296
+
297
+ flags?: string
298
+ } | string)[] | ({
299
+
300
+ pattern: string
301
+
302
+ flags?: string
303
+ } | string)))
304
+ })
305
+
306
+ partitionByNewLine?: boolean
307
+ }[]
308
+ // ----- perfectionist/sort-arrays -----
309
+ type PerfectionistSortArrays = {
310
+
311
+ fallbackSort?: {
312
+
313
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
314
+
315
+ order?: ("asc" | "desc")
316
+ }
317
+
318
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
319
+
320
+ specialCharacters?: ("remove" | "trim" | "keep")
321
+
322
+ ignoreCase?: boolean
323
+
324
+ alphabet?: string
325
+
326
+ locales?: (string | string[])
327
+
328
+ order?: ("asc" | "desc")
329
+
330
+ customGroups?: ({
331
+
332
+ fallbackSort?: {
333
+
334
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
335
+
336
+ order?: ("asc" | "desc")
337
+ }
338
+
339
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
340
+
341
+ groupName: string
342
+ newlinesInside?: ("ignore" | number)
343
+
344
+ order?: ("asc" | "desc")
345
+
346
+ anyOf: [{
347
+
348
+ elementNamePattern?: (({
349
+
350
+ pattern: string
351
+
352
+ flags?: string
353
+ } | string)[] | ({
354
+
355
+ pattern: string
356
+
357
+ flags?: string
358
+ } | string))
359
+
360
+ selector?: "literal"
361
+ }, ...({
362
+
363
+ elementNamePattern?: (({
364
+
365
+ pattern: string
366
+
367
+ flags?: string
368
+ } | string)[] | ({
369
+
370
+ pattern: string
371
+
372
+ flags?: string
373
+ } | string))
374
+
375
+ selector?: "literal"
376
+ })[]]
377
+ } | {
378
+
379
+ fallbackSort?: {
380
+
381
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
382
+
383
+ order?: ("asc" | "desc")
384
+ }
385
+
386
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
387
+
388
+ groupName: string
389
+ newlinesInside?: ("ignore" | number)
390
+
391
+ order?: ("asc" | "desc")
392
+
393
+ elementNamePattern?: (({
394
+
395
+ pattern: string
396
+
397
+ flags?: string
398
+ } | string)[] | ({
399
+
400
+ pattern: string
401
+
402
+ flags?: string
403
+ } | string))
404
+
405
+ selector?: "literal"
406
+ })[]
407
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
408
+
409
+ groups?: (string | [string, ...(string)[]] | {
410
+ newlinesBetween: ("ignore" | number)
411
+ } | {
412
+ group: (string | [string, ...(string)[]])
413
+
414
+ fallbackSort?: {
415
+
416
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
417
+
418
+ order?: ("asc" | "desc")
419
+ }
420
+
421
+ commentAbove?: string
422
+
423
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
424
+ newlinesInside?: ("ignore" | number)
425
+
426
+ order?: ("asc" | "desc")
427
+ })[]
428
+ newlinesBetween?: ("ignore" | number)
429
+
430
+ useConfigurationIf: {
431
+
432
+ allNamesMatchPattern?: (({
433
+
434
+ pattern: string
435
+
436
+ flags?: string
437
+ } | string)[] | ({
438
+
439
+ pattern: string
440
+
441
+ flags?: string
442
+ } | string))
443
+
444
+ matchesAstSelector?: string
445
+ }
446
+
447
+ partitionByComment?: (boolean | (({
448
+
449
+ pattern: string
450
+
451
+ flags?: string
452
+ } | string)[] | ({
453
+
454
+ pattern: string
455
+
456
+ flags?: string
457
+ } | string)) | {
458
+
459
+ block?: (boolean | (({
460
+
461
+ pattern: string
462
+
463
+ flags?: string
464
+ } | string)[] | ({
465
+
466
+ pattern: string
467
+
468
+ flags?: string
469
+ } | string)))
470
+
471
+ line?: (boolean | (({
472
+
473
+ pattern: string
474
+
475
+ flags?: string
476
+ } | string)[] | ({
477
+
478
+ pattern: string
479
+
480
+ flags?: string
481
+ } | string)))
482
+ })
483
+
484
+ partitionByNewLine?: boolean
485
+ }[]
486
+ // ----- perfectionist/sort-classes -----
487
+ type PerfectionistSortClasses = {
488
+
489
+ fallbackSort?: {
490
+
491
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
492
+
493
+ order?: ("asc" | "desc")
494
+ }
495
+
496
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
497
+
498
+ specialCharacters?: ("remove" | "trim" | "keep")
499
+
500
+ ignoreCase?: boolean
501
+
502
+ alphabet?: string
503
+
504
+ locales?: (string | string[])
505
+
506
+ order?: ("asc" | "desc")
507
+
508
+ customGroups?: ({
509
+
510
+ fallbackSort?: {
511
+
512
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
513
+
514
+ order?: ("asc" | "desc")
515
+ }
516
+
517
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
518
+
519
+ groupName: string
520
+ newlinesInside?: ("ignore" | number)
521
+
522
+ order?: ("asc" | "desc")
523
+
524
+ anyOf: [{
525
+
526
+ elementNamePattern?: (({
527
+
528
+ pattern: string
529
+
530
+ flags?: string
531
+ } | string)[] | ({
532
+
533
+ pattern: string
534
+
535
+ flags?: string
536
+ } | string))
537
+
538
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
539
+
540
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
541
+
542
+ decoratorNamePattern?: (({
543
+
544
+ pattern: string
545
+
546
+ flags?: string
547
+ } | string)[] | ({
548
+
549
+ pattern: string
550
+
551
+ flags?: string
552
+ } | string))
553
+
554
+ elementValuePattern?: (({
555
+
556
+ pattern: string
557
+
558
+ flags?: string
559
+ } | string)[] | ({
560
+
561
+ pattern: string
562
+
563
+ flags?: string
564
+ } | string))
565
+ }, ...({
566
+
567
+ elementNamePattern?: (({
568
+
569
+ pattern: string
570
+
571
+ flags?: string
572
+ } | string)[] | ({
573
+
574
+ pattern: string
575
+
576
+ flags?: string
577
+ } | string))
578
+
579
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
580
+
581
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
582
+
583
+ decoratorNamePattern?: (({
584
+
585
+ pattern: string
586
+
587
+ flags?: string
588
+ } | string)[] | ({
589
+
590
+ pattern: string
591
+
592
+ flags?: string
593
+ } | string))
594
+
595
+ elementValuePattern?: (({
596
+
597
+ pattern: string
598
+
599
+ flags?: string
600
+ } | string)[] | ({
601
+
602
+ pattern: string
603
+
604
+ flags?: string
605
+ } | string))
606
+ })[]]
607
+ } | {
608
+
609
+ fallbackSort?: {
610
+
611
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
612
+
613
+ order?: ("asc" | "desc")
614
+ }
615
+
616
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
617
+
618
+ groupName: string
619
+ newlinesInside?: ("ignore" | number)
620
+
621
+ order?: ("asc" | "desc")
622
+
623
+ elementNamePattern?: (({
624
+
625
+ pattern: string
626
+
627
+ flags?: string
628
+ } | string)[] | ({
629
+
630
+ pattern: string
631
+
632
+ flags?: string
633
+ } | string))
634
+
635
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
636
+
637
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
638
+
639
+ decoratorNamePattern?: (({
640
+
641
+ pattern: string
642
+
643
+ flags?: string
644
+ } | string)[] | ({
645
+
646
+ pattern: string
647
+
648
+ flags?: string
649
+ } | string))
650
+
651
+ elementValuePattern?: (({
652
+
653
+ pattern: string
654
+
655
+ flags?: string
656
+ } | string)[] | ({
657
+
658
+ pattern: string
659
+
660
+ flags?: string
661
+ } | string))
662
+ })[]
663
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
664
+
665
+ groups?: (string | [string, ...(string)[]] | {
666
+ newlinesBetween: ("ignore" | number)
667
+ } | {
668
+ group: (string | [string, ...(string)[]])
669
+
670
+ fallbackSort?: {
671
+
672
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
673
+
674
+ order?: ("asc" | "desc")
675
+ }
676
+
677
+ commentAbove?: string
678
+
679
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
680
+ newlinesInside?: ("ignore" | number)
681
+
682
+ order?: ("asc" | "desc")
683
+ })[]
684
+ newlinesBetween?: ("ignore" | number)
685
+
686
+ useConfigurationIf?: {
687
+
688
+ allNamesMatchPattern?: (({
689
+
690
+ pattern: string
691
+
692
+ flags?: string
693
+ } | string)[] | ({
694
+
695
+ pattern: string
696
+
697
+ flags?: string
698
+ } | string))
699
+
700
+ matchesAstSelector?: string
701
+ }
702
+
703
+ useExperimentalDependencyDetection?: boolean
704
+ newlinesBetweenOverloadSignatures?: ("ignore" | number)
705
+
706
+ ignoreCallbackDependenciesPatterns?: (({
707
+
708
+ pattern: string
709
+
710
+ flags?: string
711
+ } | string)[] | ({
712
+
713
+ pattern: string
714
+
715
+ flags?: string
716
+ } | string))
717
+
718
+ partitionByComment?: (boolean | (({
719
+
720
+ pattern: string
721
+
722
+ flags?: string
723
+ } | string)[] | ({
724
+
725
+ pattern: string
726
+
727
+ flags?: string
728
+ } | string)) | {
729
+
730
+ block?: (boolean | (({
731
+
732
+ pattern: string
733
+
734
+ flags?: string
735
+ } | string)[] | ({
736
+
737
+ pattern: string
738
+
739
+ flags?: string
740
+ } | string)))
741
+
742
+ line?: (boolean | (({
743
+
744
+ pattern: string
745
+
746
+ flags?: string
747
+ } | string)[] | ({
748
+
749
+ pattern: string
750
+
751
+ flags?: string
752
+ } | string)))
753
+ })
754
+
755
+ partitionByNewLine?: boolean
756
+ }[]
757
+ // ----- perfectionist/sort-decorators -----
758
+ type PerfectionistSortDecorators = {
759
+
760
+ fallbackSort?: {
761
+
762
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
763
+
764
+ order?: ("asc" | "desc")
765
+ }
766
+
767
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
768
+
769
+ specialCharacters?: ("remove" | "trim" | "keep")
770
+
771
+ ignoreCase?: boolean
772
+
773
+ alphabet?: string
774
+
775
+ locales?: (string | string[])
776
+
777
+ order?: ("asc" | "desc")
778
+
779
+ customGroups?: ({
780
+
781
+ fallbackSort?: {
782
+
783
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
784
+
785
+ order?: ("asc" | "desc")
786
+ }
787
+
788
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
789
+
790
+ groupName: string
791
+ newlinesInside?: ("ignore" | number)
792
+
793
+ order?: ("asc" | "desc")
794
+
795
+ anyOf: [{
796
+
797
+ elementNamePattern?: (({
798
+
799
+ pattern: string
800
+
801
+ flags?: string
802
+ } | string)[] | ({
803
+
804
+ pattern: string
805
+
806
+ flags?: string
807
+ } | string))
808
+ }, ...({
809
+
810
+ elementNamePattern?: (({
811
+
812
+ pattern: string
813
+
814
+ flags?: string
815
+ } | string)[] | ({
816
+
817
+ pattern: string
818
+
819
+ flags?: string
820
+ } | string))
821
+ })[]]
822
+ } | {
823
+
824
+ fallbackSort?: {
825
+
826
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
827
+
828
+ order?: ("asc" | "desc")
829
+ }
830
+
831
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
832
+
833
+ groupName: string
834
+ newlinesInside?: ("ignore" | number)
835
+
836
+ order?: ("asc" | "desc")
837
+
838
+ elementNamePattern?: (({
839
+
840
+ pattern: string
841
+
842
+ flags?: string
843
+ } | string)[] | ({
844
+
845
+ pattern: string
846
+
847
+ flags?: string
848
+ } | string))
849
+ })[]
850
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
851
+
852
+ groups?: (string | [string, ...(string)[]] | {
853
+ newlinesBetween: ("ignore" | number)
854
+ } | {
855
+ group: (string | [string, ...(string)[]])
856
+
857
+ fallbackSort?: {
858
+
859
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
860
+
861
+ order?: ("asc" | "desc")
862
+ }
863
+
864
+ commentAbove?: string
865
+
866
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
867
+ newlinesInside?: ("ignore" | number)
868
+
869
+ order?: ("asc" | "desc")
870
+ })[]
871
+ newlinesBetween?: ("ignore" | number)
872
+
873
+ sortOnParameters?: boolean
874
+
875
+ sortOnProperties?: boolean
876
+
877
+ sortOnAccessors?: boolean
878
+
879
+ sortOnMethods?: boolean
880
+
881
+ sortOnClasses?: boolean
882
+
883
+ partitionByComment?: (boolean | (({
884
+
885
+ pattern: string
886
+
887
+ flags?: string
888
+ } | string)[] | ({
889
+
890
+ pattern: string
891
+
892
+ flags?: string
893
+ } | string)) | {
894
+
895
+ block?: (boolean | (({
896
+
897
+ pattern: string
898
+
899
+ flags?: string
900
+ } | string)[] | ({
901
+
902
+ pattern: string
903
+
904
+ flags?: string
905
+ } | string)))
906
+
907
+ line?: (boolean | (({
908
+
909
+ pattern: string
910
+
911
+ flags?: string
912
+ } | string)[] | ({
913
+
914
+ pattern: string
915
+
916
+ flags?: string
917
+ } | string)))
918
+ })
919
+
920
+ partitionByNewLine?: boolean
921
+ }[]
922
+ // ----- perfectionist/sort-enums -----
923
+ type PerfectionistSortEnums = {
924
+
925
+ fallbackSort?: {
926
+
927
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
928
+
929
+ order?: ("asc" | "desc")
930
+ }
931
+
932
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
933
+
934
+ specialCharacters?: ("remove" | "trim" | "keep")
935
+
936
+ ignoreCase?: boolean
937
+
938
+ alphabet?: string
939
+
940
+ locales?: (string | string[])
941
+
942
+ order?: ("asc" | "desc")
943
+
944
+ customGroups?: ({
945
+
946
+ fallbackSort?: {
947
+
948
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
949
+
950
+ order?: ("asc" | "desc")
951
+ }
952
+
953
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
954
+
955
+ groupName: string
956
+ newlinesInside?: ("ignore" | number)
957
+
958
+ order?: ("asc" | "desc")
959
+
960
+ anyOf: [{
961
+
962
+ elementNamePattern?: (({
963
+
964
+ pattern: string
965
+
966
+ flags?: string
967
+ } | string)[] | ({
968
+
969
+ pattern: string
970
+
971
+ flags?: string
972
+ } | string))
973
+
974
+ elementValuePattern?: (({
975
+
976
+ pattern: string
977
+
978
+ flags?: string
979
+ } | string)[] | ({
980
+
981
+ pattern: string
982
+
983
+ flags?: string
984
+ } | string))
985
+ }, ...({
986
+
987
+ elementNamePattern?: (({
988
+
989
+ pattern: string
990
+
991
+ flags?: string
992
+ } | string)[] | ({
993
+
994
+ pattern: string
995
+
996
+ flags?: string
997
+ } | string))
998
+
999
+ elementValuePattern?: (({
1000
+
1001
+ pattern: string
1002
+
1003
+ flags?: string
1004
+ } | string)[] | ({
1005
+
1006
+ pattern: string
1007
+
1008
+ flags?: string
1009
+ } | string))
1010
+ })[]]
1011
+ } | {
1012
+
1013
+ fallbackSort?: {
1014
+
1015
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1016
+
1017
+ order?: ("asc" | "desc")
1018
+ }
1019
+
1020
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1021
+
1022
+ groupName: string
1023
+ newlinesInside?: ("ignore" | number)
1024
+
1025
+ order?: ("asc" | "desc")
1026
+
1027
+ elementNamePattern?: (({
1028
+
1029
+ pattern: string
1030
+
1031
+ flags?: string
1032
+ } | string)[] | ({
1033
+
1034
+ pattern: string
1035
+
1036
+ flags?: string
1037
+ } | string))
1038
+
1039
+ elementValuePattern?: (({
1040
+
1041
+ pattern: string
1042
+
1043
+ flags?: string
1044
+ } | string)[] | ({
1045
+
1046
+ pattern: string
1047
+
1048
+ flags?: string
1049
+ } | string))
1050
+ })[]
1051
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
1052
+
1053
+ groups?: (string | [string, ...(string)[]] | {
1054
+ newlinesBetween: ("ignore" | number)
1055
+ } | {
1056
+ group: (string | [string, ...(string)[]])
1057
+
1058
+ fallbackSort?: {
1059
+
1060
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1061
+
1062
+ order?: ("asc" | "desc")
1063
+ }
1064
+
1065
+ commentAbove?: string
1066
+
1067
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1068
+ newlinesInside?: ("ignore" | number)
1069
+
1070
+ order?: ("asc" | "desc")
1071
+ })[]
1072
+ newlinesBetween?: ("ignore" | number)
1073
+
1074
+ useConfigurationIf?: {
1075
+
1076
+ allNamesMatchPattern?: (({
1077
+
1078
+ pattern: string
1079
+
1080
+ flags?: string
1081
+ } | string)[] | ({
1082
+
1083
+ pattern: string
1084
+
1085
+ flags?: string
1086
+ } | string))
1087
+
1088
+ matchesAstSelector?: string
1089
+ }
1090
+
1091
+ sortByValue?: ("always" | "ifNumericEnum" | "never")
1092
+
1093
+ useExperimentalDependencyDetection?: boolean
1094
+
1095
+ partitionByComment?: (boolean | (({
1096
+
1097
+ pattern: string
1098
+
1099
+ flags?: string
1100
+ } | string)[] | ({
1101
+
1102
+ pattern: string
1103
+
1104
+ flags?: string
1105
+ } | string)) | {
1106
+
1107
+ block?: (boolean | (({
1108
+
1109
+ pattern: string
1110
+
1111
+ flags?: string
1112
+ } | string)[] | ({
1113
+
1114
+ pattern: string
1115
+
1116
+ flags?: string
1117
+ } | string)))
1118
+
1119
+ line?: (boolean | (({
1120
+
1121
+ pattern: string
1122
+
1123
+ flags?: string
1124
+ } | string)[] | ({
1125
+
1126
+ pattern: string
1127
+
1128
+ flags?: string
1129
+ } | string)))
1130
+ })
1131
+
1132
+ partitionByNewLine?: boolean
1133
+ }[]
1134
+ // ----- perfectionist/sort-export-attributes -----
1135
+ type PerfectionistSortExportAttributes = {
1136
+
1137
+ fallbackSort?: {
1138
+
1139
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1140
+
1141
+ order?: ("asc" | "desc")
1142
+ }
1143
+
1144
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1145
+
1146
+ specialCharacters?: ("remove" | "trim" | "keep")
1147
+
1148
+ ignoreCase?: boolean
1149
+
1150
+ alphabet?: string
1151
+
1152
+ locales?: (string | string[])
1153
+
1154
+ order?: ("asc" | "desc")
1155
+
1156
+ customGroups?: ({
1157
+
1158
+ fallbackSort?: {
1159
+
1160
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1161
+
1162
+ order?: ("asc" | "desc")
1163
+ }
1164
+
1165
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1166
+
1167
+ groupName: string
1168
+ newlinesInside?: ("ignore" | number)
1169
+
1170
+ order?: ("asc" | "desc")
1171
+
1172
+ anyOf: [{
1173
+
1174
+ elementNamePattern?: (({
1175
+
1176
+ pattern: string
1177
+
1178
+ flags?: string
1179
+ } | string)[] | ({
1180
+
1181
+ pattern: string
1182
+
1183
+ flags?: string
1184
+ } | string))
1185
+ }, ...({
1186
+
1187
+ elementNamePattern?: (({
1188
+
1189
+ pattern: string
1190
+
1191
+ flags?: string
1192
+ } | string)[] | ({
1193
+
1194
+ pattern: string
1195
+
1196
+ flags?: string
1197
+ } | string))
1198
+ })[]]
1199
+ } | {
1200
+
1201
+ fallbackSort?: {
1202
+
1203
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1204
+
1205
+ order?: ("asc" | "desc")
1206
+ }
1207
+
1208
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1209
+
1210
+ groupName: string
1211
+ newlinesInside?: ("ignore" | number)
1212
+
1213
+ order?: ("asc" | "desc")
1214
+
1215
+ elementNamePattern?: (({
1216
+
1217
+ pattern: string
1218
+
1219
+ flags?: string
1220
+ } | string)[] | ({
1221
+
1222
+ pattern: string
1223
+
1224
+ flags?: string
1225
+ } | string))
1226
+ })[]
1227
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
1228
+
1229
+ groups?: (string | [string, ...(string)[]] | {
1230
+ newlinesBetween: ("ignore" | number)
1231
+ } | {
1232
+ group: (string | [string, ...(string)[]])
1233
+
1234
+ fallbackSort?: {
1235
+
1236
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1237
+
1238
+ order?: ("asc" | "desc")
1239
+ }
1240
+
1241
+ commentAbove?: string
1242
+
1243
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1244
+ newlinesInside?: ("ignore" | number)
1245
+
1246
+ order?: ("asc" | "desc")
1247
+ })[]
1248
+ newlinesBetween?: ("ignore" | number)
1249
+
1250
+ useConfigurationIf?: {
1251
+
1252
+ allNamesMatchPattern?: (({
1253
+
1254
+ pattern: string
1255
+
1256
+ flags?: string
1257
+ } | string)[] | ({
1258
+
1259
+ pattern: string
1260
+
1261
+ flags?: string
1262
+ } | string))
1263
+
1264
+ matchesAstSelector?: string
1265
+ }
1266
+
1267
+ partitionByComment?: (boolean | (({
1268
+
1269
+ pattern: string
1270
+
1271
+ flags?: string
1272
+ } | string)[] | ({
1273
+
1274
+ pattern: string
1275
+
1276
+ flags?: string
1277
+ } | string)) | {
1278
+
1279
+ block?: (boolean | (({
1280
+
1281
+ pattern: string
1282
+
1283
+ flags?: string
1284
+ } | string)[] | ({
1285
+
1286
+ pattern: string
1287
+
1288
+ flags?: string
1289
+ } | string)))
1290
+
1291
+ line?: (boolean | (({
1292
+
1293
+ pattern: string
1294
+
1295
+ flags?: string
1296
+ } | string)[] | ({
1297
+
1298
+ pattern: string
1299
+
1300
+ flags?: string
1301
+ } | string)))
1302
+ })
1303
+
1304
+ partitionByNewLine?: boolean
1305
+ }[]
1306
+ // ----- perfectionist/sort-exports -----
1307
+ type PerfectionistSortExports = {
1308
+
1309
+ fallbackSort?: {
1310
+
1311
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1312
+
1313
+ order?: ("asc" | "desc")
1314
+ }
1315
+
1316
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1317
+
1318
+ specialCharacters?: ("remove" | "trim" | "keep")
1319
+
1320
+ ignoreCase?: boolean
1321
+
1322
+ alphabet?: string
1323
+
1324
+ locales?: (string | string[])
1325
+
1326
+ order?: ("asc" | "desc")
1327
+
1328
+ customGroups?: ({
1329
+
1330
+ fallbackSort?: {
1331
+
1332
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1333
+
1334
+ order?: ("asc" | "desc")
1335
+ }
1336
+
1337
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1338
+
1339
+ groupName: string
1340
+ newlinesInside?: ("ignore" | number)
1341
+
1342
+ order?: ("asc" | "desc")
1343
+
1344
+ anyOf: [{
1345
+
1346
+ elementNamePattern?: (({
1347
+
1348
+ pattern: string
1349
+
1350
+ flags?: string
1351
+ } | string)[] | ({
1352
+
1353
+ pattern: string
1354
+
1355
+ flags?: string
1356
+ } | string))
1357
+
1358
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[]
1359
+
1360
+ selector?: "export"
1361
+ }, ...({
1362
+
1363
+ elementNamePattern?: (({
1364
+
1365
+ pattern: string
1366
+
1367
+ flags?: string
1368
+ } | string)[] | ({
1369
+
1370
+ pattern: string
1371
+
1372
+ flags?: string
1373
+ } | string))
1374
+
1375
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[]
1376
+
1377
+ selector?: "export"
1378
+ })[]]
1379
+ } | {
1380
+
1381
+ fallbackSort?: {
1382
+
1383
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1384
+
1385
+ order?: ("asc" | "desc")
1386
+ }
1387
+
1388
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1389
+
1390
+ groupName: string
1391
+ newlinesInside?: ("ignore" | number)
1392
+
1393
+ order?: ("asc" | "desc")
1394
+
1395
+ elementNamePattern?: (({
1396
+
1397
+ pattern: string
1398
+
1399
+ flags?: string
1400
+ } | string)[] | ({
1401
+
1402
+ pattern: string
1403
+
1404
+ flags?: string
1405
+ } | string))
1406
+
1407
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[]
1408
+
1409
+ selector?: "export"
1410
+ })[]
1411
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
1412
+
1413
+ groups?: (string | [string, ...(string)[]] | {
1414
+ newlinesBetween: ("ignore" | number)
1415
+ } | {
1416
+ group: (string | [string, ...(string)[]])
1417
+
1418
+ fallbackSort?: {
1419
+
1420
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1421
+
1422
+ order?: ("asc" | "desc")
1423
+ }
1424
+
1425
+ commentAbove?: string
1426
+
1427
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1428
+ newlinesInside?: ("ignore" | number)
1429
+
1430
+ order?: ("asc" | "desc")
1431
+ })[]
1432
+ newlinesBetween?: ("ignore" | number)
1433
+
1434
+ partitionByComment?: (boolean | (({
1435
+
1436
+ pattern: string
1437
+
1438
+ flags?: string
1439
+ } | string)[] | ({
1440
+
1441
+ pattern: string
1442
+
1443
+ flags?: string
1444
+ } | string)) | {
1445
+
1446
+ block?: (boolean | (({
1447
+
1448
+ pattern: string
1449
+
1450
+ flags?: string
1451
+ } | string)[] | ({
1452
+
1453
+ pattern: string
1454
+
1455
+ flags?: string
1456
+ } | string)))
1457
+
1458
+ line?: (boolean | (({
1459
+
1460
+ pattern: string
1461
+
1462
+ flags?: string
1463
+ } | string)[] | ({
1464
+
1465
+ pattern: string
1466
+
1467
+ flags?: string
1468
+ } | string)))
1469
+ })
1470
+
1471
+ partitionByNewLine?: boolean
1472
+ }[]
1473
+ // ----- perfectionist/sort-heritage-clauses -----
1474
+ type PerfectionistSortHeritageClauses = {
1475
+
1476
+ fallbackSort?: {
1477
+
1478
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1479
+
1480
+ order?: ("asc" | "desc")
1481
+ }
1482
+
1483
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1484
+
1485
+ specialCharacters?: ("remove" | "trim" | "keep")
1486
+
1487
+ ignoreCase?: boolean
1488
+
1489
+ alphabet?: string
1490
+
1491
+ locales?: (string | string[])
1492
+
1493
+ order?: ("asc" | "desc")
1494
+
1495
+ customGroups?: ({
1496
+
1497
+ fallbackSort?: {
1498
+
1499
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1500
+
1501
+ order?: ("asc" | "desc")
1502
+ }
1503
+
1504
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1505
+
1506
+ groupName: string
1507
+ newlinesInside?: ("ignore" | number)
1508
+
1509
+ order?: ("asc" | "desc")
1510
+
1511
+ anyOf: [{
1512
+
1513
+ elementNamePattern?: (({
1514
+
1515
+ pattern: string
1516
+
1517
+ flags?: string
1518
+ } | string)[] | ({
1519
+
1520
+ pattern: string
1521
+
1522
+ flags?: string
1523
+ } | string))
1524
+ }, ...({
1525
+
1526
+ elementNamePattern?: (({
1527
+
1528
+ pattern: string
1529
+
1530
+ flags?: string
1531
+ } | string)[] | ({
1532
+
1533
+ pattern: string
1534
+
1535
+ flags?: string
1536
+ } | string))
1537
+ })[]]
1538
+ } | {
1539
+
1540
+ fallbackSort?: {
1541
+
1542
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1543
+
1544
+ order?: ("asc" | "desc")
1545
+ }
1546
+
1547
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1548
+
1549
+ groupName: string
1550
+ newlinesInside?: ("ignore" | number)
1551
+
1552
+ order?: ("asc" | "desc")
1553
+
1554
+ elementNamePattern?: (({
1555
+
1556
+ pattern: string
1557
+
1558
+ flags?: string
1559
+ } | string)[] | ({
1560
+
1561
+ pattern: string
1562
+
1563
+ flags?: string
1564
+ } | string))
1565
+ })[]
1566
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
1567
+
1568
+ groups?: (string | [string, ...(string)[]] | {
1569
+ newlinesBetween: ("ignore" | number)
1570
+ } | {
1571
+ group: (string | [string, ...(string)[]])
1572
+
1573
+ fallbackSort?: {
1574
+
1575
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1576
+
1577
+ order?: ("asc" | "desc")
1578
+ }
1579
+
1580
+ commentAbove?: string
1581
+
1582
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1583
+ newlinesInside?: ("ignore" | number)
1584
+
1585
+ order?: ("asc" | "desc")
1586
+ })[]
1587
+ newlinesBetween?: ("ignore" | number)
1588
+
1589
+ useConfigurationIf?: {
1590
+
1591
+ allNamesMatchPattern?: (({
1592
+
1593
+ pattern: string
1594
+
1595
+ flags?: string
1596
+ } | string)[] | ({
1597
+
1598
+ pattern: string
1599
+
1600
+ flags?: string
1601
+ } | string))
1602
+
1603
+ matchesAstSelector?: string
1604
+ }
1605
+
1606
+ partitionByNewLine?: boolean
1607
+
1608
+ partitionByComment?: (boolean | (({
1609
+
1610
+ pattern: string
1611
+
1612
+ flags?: string
1613
+ } | string)[] | ({
1614
+
1615
+ pattern: string
1616
+
1617
+ flags?: string
1618
+ } | string)) | {
1619
+
1620
+ block?: (boolean | (({
1621
+
1622
+ pattern: string
1623
+
1624
+ flags?: string
1625
+ } | string)[] | ({
1626
+
1627
+ pattern: string
1628
+
1629
+ flags?: string
1630
+ } | string)))
1631
+
1632
+ line?: (boolean | (({
1633
+
1634
+ pattern: string
1635
+
1636
+ flags?: string
1637
+ } | string)[] | ({
1638
+
1639
+ pattern: string
1640
+
1641
+ flags?: string
1642
+ } | string)))
1643
+ })
1644
+ }[]
1645
+ // ----- perfectionist/sort-import-attributes -----
1646
+ type PerfectionistSortImportAttributes = {
1647
+
1648
+ fallbackSort?: {
1649
+
1650
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1651
+
1652
+ order?: ("asc" | "desc")
1653
+ }
1654
+
1655
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1656
+
1657
+ specialCharacters?: ("remove" | "trim" | "keep")
1658
+
1659
+ ignoreCase?: boolean
1660
+
1661
+ alphabet?: string
1662
+
1663
+ locales?: (string | string[])
1664
+
1665
+ order?: ("asc" | "desc")
1666
+
1667
+ customGroups?: ({
1668
+
1669
+ fallbackSort?: {
1670
+
1671
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1672
+
1673
+ order?: ("asc" | "desc")
1674
+ }
1675
+
1676
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1677
+
1678
+ groupName: string
1679
+ newlinesInside?: ("ignore" | number)
1680
+
1681
+ order?: ("asc" | "desc")
1682
+
1683
+ anyOf: [{
1684
+
1685
+ elementNamePattern?: (({
1686
+
1687
+ pattern: string
1688
+
1689
+ flags?: string
1690
+ } | string)[] | ({
1691
+
1692
+ pattern: string
1693
+
1694
+ flags?: string
1695
+ } | string))
1696
+ }, ...({
1697
+
1698
+ elementNamePattern?: (({
1699
+
1700
+ pattern: string
1701
+
1702
+ flags?: string
1703
+ } | string)[] | ({
1704
+
1705
+ pattern: string
1706
+
1707
+ flags?: string
1708
+ } | string))
1709
+ })[]]
1710
+ } | {
1711
+
1712
+ fallbackSort?: {
1713
+
1714
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1715
+
1716
+ order?: ("asc" | "desc")
1717
+ }
1718
+
1719
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1720
+
1721
+ groupName: string
1722
+ newlinesInside?: ("ignore" | number)
1723
+
1724
+ order?: ("asc" | "desc")
1725
+
1726
+ elementNamePattern?: (({
1727
+
1728
+ pattern: string
1729
+
1730
+ flags?: string
1731
+ } | string)[] | ({
1732
+
1733
+ pattern: string
1734
+
1735
+ flags?: string
1736
+ } | string))
1737
+ })[]
1738
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
1739
+
1740
+ groups?: (string | [string, ...(string)[]] | {
1741
+ newlinesBetween: ("ignore" | number)
1742
+ } | {
1743
+ group: (string | [string, ...(string)[]])
1744
+
1745
+ fallbackSort?: {
1746
+
1747
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1748
+
1749
+ order?: ("asc" | "desc")
1750
+ }
1751
+
1752
+ commentAbove?: string
1753
+
1754
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
1755
+ newlinesInside?: ("ignore" | number)
1756
+
1757
+ order?: ("asc" | "desc")
1758
+ })[]
1759
+ newlinesBetween?: ("ignore" | number)
1760
+
1761
+ useConfigurationIf?: {
1762
+
1763
+ allNamesMatchPattern?: (({
1764
+
1765
+ pattern: string
1766
+
1767
+ flags?: string
1768
+ } | string)[] | ({
1769
+
1770
+ pattern: string
1771
+
1772
+ flags?: string
1773
+ } | string))
1774
+
1775
+ matchesAstSelector?: string
1776
+ }
1777
+
1778
+ partitionByComment?: (boolean | (({
1779
+
1780
+ pattern: string
1781
+
1782
+ flags?: string
1783
+ } | string)[] | ({
1784
+
1785
+ pattern: string
1786
+
1787
+ flags?: string
1788
+ } | string)) | {
1789
+
1790
+ block?: (boolean | (({
1791
+
1792
+ pattern: string
1793
+
1794
+ flags?: string
1795
+ } | string)[] | ({
1796
+
1797
+ pattern: string
1798
+
1799
+ flags?: string
1800
+ } | string)))
1801
+
1802
+ line?: (boolean | (({
1803
+
1804
+ pattern: string
1805
+
1806
+ flags?: string
1807
+ } | string)[] | ({
1808
+
1809
+ pattern: string
1810
+
1811
+ flags?: string
1812
+ } | string)))
1813
+ })
1814
+
1815
+ partitionByNewLine?: boolean
1816
+ }[]
1817
+ // ----- perfectionist/sort-imports -----
1818
+ type PerfectionistSortImports = {
1819
+
1820
+ fallbackSort?: {
1821
+
1822
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1823
+
1824
+ order?: ("asc" | "desc")
1825
+ sortBy?: ("specifier" | "path")
1826
+ }
1827
+
1828
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1829
+
1830
+ specialCharacters?: ("remove" | "trim" | "keep")
1831
+
1832
+ ignoreCase?: boolean
1833
+
1834
+ alphabet?: string
1835
+
1836
+ locales?: (string | string[])
1837
+
1838
+ order?: ("asc" | "desc")
1839
+ sortBy?: ("specifier" | "path")
1840
+
1841
+ customGroups?: ({
1842
+
1843
+ fallbackSort?: {
1844
+
1845
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1846
+
1847
+ order?: ("asc" | "desc")
1848
+ sortBy?: ("specifier" | "path")
1849
+ }
1850
+
1851
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1852
+
1853
+ groupName: string
1854
+ newlinesInside?: ("ignore" | number)
1855
+
1856
+ order?: ("asc" | "desc")
1857
+ sortBy?: ("specifier" | "path")
1858
+
1859
+ anyOf: [{
1860
+
1861
+ elementNamePattern?: (({
1862
+
1863
+ pattern: string
1864
+
1865
+ flags?: string
1866
+ } | string)[] | ({
1867
+
1868
+ pattern: string
1869
+
1870
+ flags?: string
1871
+ } | string))
1872
+
1873
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[]
1874
+
1875
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type")
1876
+ }, ...({
1877
+
1878
+ elementNamePattern?: (({
1879
+
1880
+ pattern: string
1881
+
1882
+ flags?: string
1883
+ } | string)[] | ({
1884
+
1885
+ pattern: string
1886
+
1887
+ flags?: string
1888
+ } | string))
1889
+
1890
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[]
1891
+
1892
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type")
1893
+ })[]]
1894
+ } | {
1895
+
1896
+ fallbackSort?: {
1897
+
1898
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1899
+
1900
+ order?: ("asc" | "desc")
1901
+ sortBy?: ("specifier" | "path")
1902
+ }
1903
+
1904
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1905
+
1906
+ groupName: string
1907
+ newlinesInside?: ("ignore" | number)
1908
+
1909
+ order?: ("asc" | "desc")
1910
+ sortBy?: ("specifier" | "path")
1911
+
1912
+ elementNamePattern?: (({
1913
+
1914
+ pattern: string
1915
+
1916
+ flags?: string
1917
+ } | string)[] | ({
1918
+
1919
+ pattern: string
1920
+
1921
+ flags?: string
1922
+ } | string))
1923
+
1924
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[]
1925
+
1926
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type")
1927
+ })[]
1928
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
1929
+
1930
+ groups?: (string | [string, ...(string)[]] | {
1931
+ newlinesBetween: ("ignore" | number)
1932
+ } | {
1933
+ group: (string | [string, ...(string)[]])
1934
+
1935
+ fallbackSort?: {
1936
+
1937
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1938
+
1939
+ order?: ("asc" | "desc")
1940
+ sortBy?: ("specifier" | "path")
1941
+ }
1942
+
1943
+ commentAbove?: string
1944
+
1945
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first")
1946
+ newlinesInside?: ("ignore" | number)
1947
+
1948
+ order?: ("asc" | "desc")
1949
+ sortBy?: ("specifier" | "path")
1950
+ })[]
1951
+ newlinesBetween?: ("ignore" | number)
1952
+ tsconfig?: {
1953
+
1954
+ rootDir: string
1955
+
1956
+ filename?: string
1957
+ }
1958
+
1959
+ maxLineLength?: number
1960
+
1961
+ sortSideEffects?: boolean
1962
+
1963
+ environment?: ("node" | "bun")
1964
+
1965
+ useExperimentalDependencyDetection?: boolean
1966
+
1967
+ partitionByComment?: (boolean | (({
1968
+
1969
+ pattern: string
1970
+
1971
+ flags?: string
1972
+ } | string)[] | ({
1973
+
1974
+ pattern: string
1975
+
1976
+ flags?: string
1977
+ } | string)) | {
1978
+
1979
+ block?: (boolean | (({
1980
+
1981
+ pattern: string
1982
+
1983
+ flags?: string
1984
+ } | string)[] | ({
1985
+
1986
+ pattern: string
1987
+
1988
+ flags?: string
1989
+ } | string)))
1990
+
1991
+ line?: (boolean | (({
1992
+
1993
+ pattern: string
1994
+
1995
+ flags?: string
1996
+ } | string)[] | ({
1997
+
1998
+ pattern: string
1999
+
2000
+ flags?: string
2001
+ } | string)))
2002
+ })
2003
+
2004
+ partitionByNewLine?: boolean
2005
+
2006
+ internalPattern?: (({
2007
+
2008
+ pattern: string
2009
+
2010
+ flags?: string
2011
+ } | string)[] | ({
2012
+
2013
+ pattern: string
2014
+
2015
+ flags?: string
2016
+ } | string))
2017
+ }[]
2018
+ // ----- perfectionist/sort-interfaces -----
2019
+ type PerfectionistSortInterfaces = {
2020
+
2021
+ fallbackSort?: {
2022
+
2023
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2024
+
2025
+ order?: ("asc" | "desc")
2026
+ sortBy?: ("name" | "value")
2027
+ }
2028
+
2029
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2030
+
2031
+ specialCharacters?: ("remove" | "trim" | "keep")
2032
+
2033
+ ignoreCase?: boolean
2034
+
2035
+ alphabet?: string
2036
+
2037
+ locales?: (string | string[])
2038
+
2039
+ order?: ("asc" | "desc")
2040
+ sortBy?: ("name" | "value")
2041
+
2042
+ customGroups?: ({
2043
+
2044
+ fallbackSort?: {
2045
+
2046
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2047
+
2048
+ order?: ("asc" | "desc")
2049
+ sortBy?: ("name" | "value")
2050
+ }
2051
+
2052
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2053
+
2054
+ groupName: string
2055
+ newlinesInside?: ("ignore" | number)
2056
+
2057
+ order?: ("asc" | "desc")
2058
+ sortBy?: ("name" | "value")
2059
+
2060
+ anyOf: [{
2061
+
2062
+ elementNamePattern?: (({
2063
+
2064
+ pattern: string
2065
+
2066
+ flags?: string
2067
+ } | string)[] | ({
2068
+
2069
+ pattern: string
2070
+
2071
+ flags?: string
2072
+ } | string))
2073
+
2074
+ modifiers?: ("optional" | "required" | "multiline")[]
2075
+
2076
+ selector?: ("index-signature" | "member" | "method" | "property")
2077
+
2078
+ elementValuePattern?: (({
2079
+
2080
+ pattern: string
2081
+
2082
+ flags?: string
2083
+ } | string)[] | ({
2084
+
2085
+ pattern: string
2086
+
2087
+ flags?: string
2088
+ } | string))
2089
+ }, ...({
2090
+
2091
+ elementNamePattern?: (({
2092
+
2093
+ pattern: string
2094
+
2095
+ flags?: string
2096
+ } | string)[] | ({
2097
+
2098
+ pattern: string
2099
+
2100
+ flags?: string
2101
+ } | string))
2102
+
2103
+ modifiers?: ("optional" | "required" | "multiline")[]
2104
+
2105
+ selector?: ("index-signature" | "member" | "method" | "property")
2106
+
2107
+ elementValuePattern?: (({
2108
+
2109
+ pattern: string
2110
+
2111
+ flags?: string
2112
+ } | string)[] | ({
2113
+
2114
+ pattern: string
2115
+
2116
+ flags?: string
2117
+ } | string))
2118
+ })[]]
2119
+ } | {
2120
+
2121
+ fallbackSort?: {
2122
+
2123
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2124
+
2125
+ order?: ("asc" | "desc")
2126
+ sortBy?: ("name" | "value")
2127
+ }
2128
+
2129
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2130
+
2131
+ groupName: string
2132
+ newlinesInside?: ("ignore" | number)
2133
+
2134
+ order?: ("asc" | "desc")
2135
+ sortBy?: ("name" | "value")
2136
+
2137
+ elementNamePattern?: (({
2138
+
2139
+ pattern: string
2140
+
2141
+ flags?: string
2142
+ } | string)[] | ({
2143
+
2144
+ pattern: string
2145
+
2146
+ flags?: string
2147
+ } | string))
2148
+
2149
+ modifiers?: ("optional" | "required" | "multiline")[]
2150
+
2151
+ selector?: ("index-signature" | "member" | "method" | "property")
2152
+
2153
+ elementValuePattern?: (({
2154
+
2155
+ pattern: string
2156
+
2157
+ flags?: string
2158
+ } | string)[] | ({
2159
+
2160
+ pattern: string
2161
+
2162
+ flags?: string
2163
+ } | string))
2164
+ })[]
2165
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
2166
+
2167
+ groups?: (string | [string, ...(string)[]] | {
2168
+ newlinesBetween: ("ignore" | number)
2169
+ } | {
2170
+ group: (string | [string, ...(string)[]])
2171
+
2172
+ fallbackSort?: {
2173
+
2174
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2175
+
2176
+ order?: ("asc" | "desc")
2177
+ sortBy?: ("name" | "value")
2178
+ }
2179
+
2180
+ commentAbove?: string
2181
+
2182
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2183
+ newlinesInside?: ("ignore" | number)
2184
+
2185
+ order?: ("asc" | "desc")
2186
+ sortBy?: ("name" | "value")
2187
+ })[]
2188
+ newlinesBetween?: ("ignore" | number)
2189
+
2190
+ useConfigurationIf?: {
2191
+
2192
+ allNamesMatchPattern?: (({
2193
+
2194
+ pattern: string
2195
+
2196
+ flags?: string
2197
+ } | string)[] | ({
2198
+
2199
+ pattern: string
2200
+
2201
+ flags?: string
2202
+ } | string))
2203
+
2204
+ hasNumericKeysOnly?: boolean
2205
+
2206
+ declarationCommentMatchesPattern?: (({
2207
+ scope?: ("shallow" | "deep")
2208
+
2209
+ pattern: string
2210
+
2211
+ flags?: string
2212
+ } | string)[] | ({
2213
+ scope?: ("shallow" | "deep")
2214
+
2215
+ pattern: string
2216
+
2217
+ flags?: string
2218
+ } | string))
2219
+
2220
+ matchesAstSelector?: string
2221
+
2222
+ declarationMatchesPattern?: (({
2223
+ scope?: ("shallow" | "deep")
2224
+
2225
+ pattern: string
2226
+
2227
+ flags?: string
2228
+ } | string)[] | ({
2229
+ scope?: ("shallow" | "deep")
2230
+
2231
+ pattern: string
2232
+
2233
+ flags?: string
2234
+ } | string))
2235
+ }
2236
+
2237
+ partitionByComment?: (boolean | (({
2238
+
2239
+ pattern: string
2240
+
2241
+ flags?: string
2242
+ } | string)[] | ({
2243
+
2244
+ pattern: string
2245
+
2246
+ flags?: string
2247
+ } | string)) | {
2248
+
2249
+ block?: (boolean | (({
2250
+
2251
+ pattern: string
2252
+
2253
+ flags?: string
2254
+ } | string)[] | ({
2255
+
2256
+ pattern: string
2257
+
2258
+ flags?: string
2259
+ } | string)))
2260
+
2261
+ line?: (boolean | (({
2262
+
2263
+ pattern: string
2264
+
2265
+ flags?: string
2266
+ } | string)[] | ({
2267
+
2268
+ pattern: string
2269
+
2270
+ flags?: string
2271
+ } | string)))
2272
+ })
2273
+
2274
+ partitionByNewLine?: boolean
2275
+ }[]
2276
+ // ----- perfectionist/sort-intersection-types -----
2277
+ type PerfectionistSortIntersectionTypes = {
2278
+
2279
+ fallbackSort?: {
2280
+
2281
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2282
+
2283
+ order?: ("asc" | "desc")
2284
+ }
2285
+
2286
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2287
+
2288
+ specialCharacters?: ("remove" | "trim" | "keep")
2289
+
2290
+ ignoreCase?: boolean
2291
+
2292
+ alphabet?: string
2293
+
2294
+ locales?: (string | string[])
2295
+
2296
+ order?: ("asc" | "desc")
2297
+
2298
+ customGroups?: ({
2299
+
2300
+ fallbackSort?: {
2301
+
2302
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2303
+
2304
+ order?: ("asc" | "desc")
2305
+ }
2306
+
2307
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2308
+
2309
+ groupName: string
2310
+ newlinesInside?: ("ignore" | number)
2311
+
2312
+ order?: ("asc" | "desc")
2313
+
2314
+ anyOf: [{
2315
+
2316
+ elementNamePattern?: (({
2317
+
2318
+ pattern: string
2319
+
2320
+ flags?: string
2321
+ } | string)[] | ({
2322
+
2323
+ pattern: string
2324
+
2325
+ flags?: string
2326
+ } | string))
2327
+
2328
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union")
2329
+ }, ...({
2330
+
2331
+ elementNamePattern?: (({
2332
+
2333
+ pattern: string
2334
+
2335
+ flags?: string
2336
+ } | string)[] | ({
2337
+
2338
+ pattern: string
2339
+
2340
+ flags?: string
2341
+ } | string))
2342
+
2343
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union")
2344
+ })[]]
2345
+ } | {
2346
+
2347
+ fallbackSort?: {
2348
+
2349
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2350
+
2351
+ order?: ("asc" | "desc")
2352
+ }
2353
+
2354
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2355
+
2356
+ groupName: string
2357
+ newlinesInside?: ("ignore" | number)
2358
+
2359
+ order?: ("asc" | "desc")
2360
+
2361
+ elementNamePattern?: (({
2362
+
2363
+ pattern: string
2364
+
2365
+ flags?: string
2366
+ } | string)[] | ({
2367
+
2368
+ pattern: string
2369
+
2370
+ flags?: string
2371
+ } | string))
2372
+
2373
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union")
2374
+ })[]
2375
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
2376
+
2377
+ groups?: (string | [string, ...(string)[]] | {
2378
+ newlinesBetween: ("ignore" | number)
2379
+ } | {
2380
+ group: (string | [string, ...(string)[]])
2381
+
2382
+ fallbackSort?: {
2383
+
2384
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2385
+
2386
+ order?: ("asc" | "desc")
2387
+ }
2388
+
2389
+ commentAbove?: string
2390
+
2391
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2392
+ newlinesInside?: ("ignore" | number)
2393
+
2394
+ order?: ("asc" | "desc")
2395
+ })[]
2396
+ newlinesBetween?: ("ignore" | number)
2397
+
2398
+ useConfigurationIf?: {
2399
+
2400
+ allNamesMatchPattern?: (({
2401
+
2402
+ pattern: string
2403
+
2404
+ flags?: string
2405
+ } | string)[] | ({
2406
+
2407
+ pattern: string
2408
+
2409
+ flags?: string
2410
+ } | string))
2411
+
2412
+ matchesAstSelector?: string
2413
+ }
2414
+
2415
+ partitionByComment?: (boolean | (({
2416
+
2417
+ pattern: string
2418
+
2419
+ flags?: string
2420
+ } | string)[] | ({
2421
+
2422
+ pattern: string
2423
+
2424
+ flags?: string
2425
+ } | string)) | {
2426
+
2427
+ block?: (boolean | (({
2428
+
2429
+ pattern: string
2430
+
2431
+ flags?: string
2432
+ } | string)[] | ({
2433
+
2434
+ pattern: string
2435
+
2436
+ flags?: string
2437
+ } | string)))
2438
+
2439
+ line?: (boolean | (({
2440
+
2441
+ pattern: string
2442
+
2443
+ flags?: string
2444
+ } | string)[] | ({
2445
+
2446
+ pattern: string
2447
+
2448
+ flags?: string
2449
+ } | string)))
2450
+ })
2451
+
2452
+ partitionByNewLine?: boolean
2453
+ }[]
2454
+ // ----- perfectionist/sort-jsx-props -----
2455
+ type PerfectionistSortJsxProps = {
2456
+
2457
+ fallbackSort?: {
2458
+
2459
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2460
+
2461
+ order?: ("asc" | "desc")
2462
+ }
2463
+
2464
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2465
+
2466
+ specialCharacters?: ("remove" | "trim" | "keep")
2467
+
2468
+ ignoreCase?: boolean
2469
+
2470
+ alphabet?: string
2471
+
2472
+ locales?: (string | string[])
2473
+
2474
+ order?: ("asc" | "desc")
2475
+
2476
+ customGroups?: ({
2477
+
2478
+ fallbackSort?: {
2479
+
2480
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2481
+
2482
+ order?: ("asc" | "desc")
2483
+ }
2484
+
2485
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2486
+
2487
+ groupName: string
2488
+ newlinesInside?: ("ignore" | number)
2489
+
2490
+ order?: ("asc" | "desc")
2491
+
2492
+ anyOf: [{
2493
+
2494
+ elementNamePattern?: (({
2495
+
2496
+ pattern: string
2497
+
2498
+ flags?: string
2499
+ } | string)[] | ({
2500
+
2501
+ pattern: string
2502
+
2503
+ flags?: string
2504
+ } | string))
2505
+
2506
+ modifiers?: ("shorthand" | "multiline")[]
2507
+
2508
+ selector?: "prop"
2509
+
2510
+ elementValuePattern?: (({
2511
+
2512
+ pattern: string
2513
+
2514
+ flags?: string
2515
+ } | string)[] | ({
2516
+
2517
+ pattern: string
2518
+
2519
+ flags?: string
2520
+ } | string))
2521
+ }, ...({
2522
+
2523
+ elementNamePattern?: (({
2524
+
2525
+ pattern: string
2526
+
2527
+ flags?: string
2528
+ } | string)[] | ({
2529
+
2530
+ pattern: string
2531
+
2532
+ flags?: string
2533
+ } | string))
2534
+
2535
+ modifiers?: ("shorthand" | "multiline")[]
2536
+
2537
+ selector?: "prop"
2538
+
2539
+ elementValuePattern?: (({
2540
+
2541
+ pattern: string
2542
+
2543
+ flags?: string
2544
+ } | string)[] | ({
2545
+
2546
+ pattern: string
2547
+
2548
+ flags?: string
2549
+ } | string))
2550
+ })[]]
2551
+ } | {
2552
+
2553
+ fallbackSort?: {
2554
+
2555
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2556
+
2557
+ order?: ("asc" | "desc")
2558
+ }
2559
+
2560
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2561
+
2562
+ groupName: string
2563
+ newlinesInside?: ("ignore" | number)
2564
+
2565
+ order?: ("asc" | "desc")
2566
+
2567
+ elementNamePattern?: (({
2568
+
2569
+ pattern: string
2570
+
2571
+ flags?: string
2572
+ } | string)[] | ({
2573
+
2574
+ pattern: string
2575
+
2576
+ flags?: string
2577
+ } | string))
2578
+
2579
+ modifiers?: ("shorthand" | "multiline")[]
2580
+
2581
+ selector?: "prop"
2582
+
2583
+ elementValuePattern?: (({
2584
+
2585
+ pattern: string
2586
+
2587
+ flags?: string
2588
+ } | string)[] | ({
2589
+
2590
+ pattern: string
2591
+
2592
+ flags?: string
2593
+ } | string))
2594
+ })[]
2595
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
2596
+
2597
+ groups?: (string | [string, ...(string)[]] | {
2598
+ newlinesBetween: ("ignore" | number)
2599
+ } | {
2600
+ group: (string | [string, ...(string)[]])
2601
+
2602
+ fallbackSort?: {
2603
+
2604
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2605
+
2606
+ order?: ("asc" | "desc")
2607
+ }
2608
+
2609
+ commentAbove?: string
2610
+
2611
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2612
+ newlinesInside?: ("ignore" | number)
2613
+
2614
+ order?: ("asc" | "desc")
2615
+ })[]
2616
+ newlinesBetween?: ("ignore" | number)
2617
+
2618
+ useConfigurationIf?: {
2619
+
2620
+ allNamesMatchPattern?: (({
2621
+
2622
+ pattern: string
2623
+
2624
+ flags?: string
2625
+ } | string)[] | ({
2626
+
2627
+ pattern: string
2628
+
2629
+ flags?: string
2630
+ } | string))
2631
+
2632
+ matchesAstSelector?: string
2633
+
2634
+ tagMatchesPattern?: (({
2635
+
2636
+ pattern: string
2637
+
2638
+ flags?: string
2639
+ } | string)[] | ({
2640
+
2641
+ pattern: string
2642
+
2643
+ flags?: string
2644
+ } | string))
2645
+ }
2646
+
2647
+ partitionByNewLine?: boolean
2648
+ }[]
2649
+ // ----- perfectionist/sort-maps -----
2650
+ type PerfectionistSortMaps = {
2651
+
2652
+ fallbackSort?: {
2653
+
2654
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2655
+
2656
+ order?: ("asc" | "desc")
2657
+ }
2658
+
2659
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2660
+
2661
+ specialCharacters?: ("remove" | "trim" | "keep")
2662
+
2663
+ ignoreCase?: boolean
2664
+
2665
+ alphabet?: string
2666
+
2667
+ locales?: (string | string[])
2668
+
2669
+ order?: ("asc" | "desc")
2670
+
2671
+ customGroups?: ({
2672
+
2673
+ fallbackSort?: {
2674
+
2675
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2676
+
2677
+ order?: ("asc" | "desc")
2678
+ }
2679
+
2680
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2681
+
2682
+ groupName: string
2683
+ newlinesInside?: ("ignore" | number)
2684
+
2685
+ order?: ("asc" | "desc")
2686
+
2687
+ anyOf: [{
2688
+
2689
+ elementNamePattern?: (({
2690
+
2691
+ pattern: string
2692
+
2693
+ flags?: string
2694
+ } | string)[] | ({
2695
+
2696
+ pattern: string
2697
+
2698
+ flags?: string
2699
+ } | string))
2700
+ }, ...({
2701
+
2702
+ elementNamePattern?: (({
2703
+
2704
+ pattern: string
2705
+
2706
+ flags?: string
2707
+ } | string)[] | ({
2708
+
2709
+ pattern: string
2710
+
2711
+ flags?: string
2712
+ } | string))
2713
+ })[]]
2714
+ } | {
2715
+
2716
+ fallbackSort?: {
2717
+
2718
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2719
+
2720
+ order?: ("asc" | "desc")
2721
+ }
2722
+
2723
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2724
+
2725
+ groupName: string
2726
+ newlinesInside?: ("ignore" | number)
2727
+
2728
+ order?: ("asc" | "desc")
2729
+
2730
+ elementNamePattern?: (({
2731
+
2732
+ pattern: string
2733
+
2734
+ flags?: string
2735
+ } | string)[] | ({
2736
+
2737
+ pattern: string
2738
+
2739
+ flags?: string
2740
+ } | string))
2741
+ })[]
2742
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
2743
+
2744
+ groups?: (string | [string, ...(string)[]] | {
2745
+ newlinesBetween: ("ignore" | number)
2746
+ } | {
2747
+ group: (string | [string, ...(string)[]])
2748
+
2749
+ fallbackSort?: {
2750
+
2751
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2752
+
2753
+ order?: ("asc" | "desc")
2754
+ }
2755
+
2756
+ commentAbove?: string
2757
+
2758
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
2759
+ newlinesInside?: ("ignore" | number)
2760
+
2761
+ order?: ("asc" | "desc")
2762
+ })[]
2763
+ newlinesBetween?: ("ignore" | number)
2764
+
2765
+ useConfigurationIf?: {
2766
+
2767
+ allNamesMatchPattern?: (({
2768
+
2769
+ pattern: string
2770
+
2771
+ flags?: string
2772
+ } | string)[] | ({
2773
+
2774
+ pattern: string
2775
+
2776
+ flags?: string
2777
+ } | string))
2778
+
2779
+ matchesAstSelector?: string
2780
+ }
2781
+
2782
+ partitionByComment?: (boolean | (({
2783
+
2784
+ pattern: string
2785
+
2786
+ flags?: string
2787
+ } | string)[] | ({
2788
+
2789
+ pattern: string
2790
+
2791
+ flags?: string
2792
+ } | string)) | {
2793
+
2794
+ block?: (boolean | (({
2795
+
2796
+ pattern: string
2797
+
2798
+ flags?: string
2799
+ } | string)[] | ({
2800
+
2801
+ pattern: string
2802
+
2803
+ flags?: string
2804
+ } | string)))
2805
+
2806
+ line?: (boolean | (({
2807
+
2808
+ pattern: string
2809
+
2810
+ flags?: string
2811
+ } | string)[] | ({
2812
+
2813
+ pattern: string
2814
+
2815
+ flags?: string
2816
+ } | string)))
2817
+ })
2818
+
2819
+ partitionByNewLine?: boolean
2820
+ }[]
2821
+ // ----- perfectionist/sort-modules -----
2822
+ type PerfectionistSortModules = []|[{
2823
+
2824
+ fallbackSort?: {
2825
+
2826
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2827
+
2828
+ order?: ("asc" | "desc")
2829
+ }
2830
+
2831
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2832
+
2833
+ specialCharacters?: ("remove" | "trim" | "keep")
2834
+
2835
+ ignoreCase?: boolean
2836
+
2837
+ alphabet?: string
2838
+
2839
+ locales?: (string | string[])
2840
+
2841
+ order?: ("asc" | "desc")
2842
+
2843
+ customGroups?: ({
2844
+
2845
+ fallbackSort?: {
2846
+
2847
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2848
+
2849
+ order?: ("asc" | "desc")
2850
+ }
2851
+
2852
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2853
+
2854
+ groupName: string
2855
+ newlinesInside?: ("ignore" | number)
2856
+
2857
+ order?: ("asc" | "desc")
2858
+
2859
+ anyOf: [{
2860
+
2861
+ elementNamePattern?: (({
2862
+
2863
+ pattern: string
2864
+
2865
+ flags?: string
2866
+ } | string)[] | ({
2867
+
2868
+ pattern: string
2869
+
2870
+ flags?: string
2871
+ } | string))
2872
+
2873
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
2874
+
2875
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
2876
+
2877
+ decoratorNamePattern?: (({
2878
+
2879
+ pattern: string
2880
+
2881
+ flags?: string
2882
+ } | string)[] | ({
2883
+
2884
+ pattern: string
2885
+
2886
+ flags?: string
2887
+ } | string))
2888
+ }, ...({
2889
+
2890
+ elementNamePattern?: (({
2891
+
2892
+ pattern: string
2893
+
2894
+ flags?: string
2895
+ } | string)[] | ({
2896
+
2897
+ pattern: string
2898
+
2899
+ flags?: string
2900
+ } | string))
2901
+
2902
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
2903
+
2904
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
2905
+
2906
+ decoratorNamePattern?: (({
2907
+
2908
+ pattern: string
2909
+
2910
+ flags?: string
2911
+ } | string)[] | ({
2912
+
2913
+ pattern: string
2914
+
2915
+ flags?: string
2916
+ } | string))
2917
+ })[]]
2918
+ } | {
2919
+
2920
+ fallbackSort?: {
2921
+
2922
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2923
+
2924
+ order?: ("asc" | "desc")
2925
+ }
2926
+
2927
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2928
+
2929
+ groupName: string
2930
+ newlinesInside?: ("ignore" | number)
2931
+
2932
+ order?: ("asc" | "desc")
2933
+
2934
+ elementNamePattern?: (({
2935
+
2936
+ pattern: string
2937
+
2938
+ flags?: string
2939
+ } | string)[] | ({
2940
+
2941
+ pattern: string
2942
+
2943
+ flags?: string
2944
+ } | string))
2945
+
2946
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
2947
+
2948
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
2949
+
2950
+ decoratorNamePattern?: (({
2951
+
2952
+ pattern: string
2953
+
2954
+ flags?: string
2955
+ } | string)[] | ({
2956
+
2957
+ pattern: string
2958
+
2959
+ flags?: string
2960
+ } | string))
2961
+ })[]
2962
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
2963
+
2964
+ groups?: (string | [string, ...(string)[]] | {
2965
+ newlinesBetween: ("ignore" | number)
2966
+ } | {
2967
+ group: (string | [string, ...(string)[]])
2968
+
2969
+ fallbackSort?: {
2970
+
2971
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2972
+
2973
+ order?: ("asc" | "desc")
2974
+ }
2975
+
2976
+ commentAbove?: string
2977
+
2978
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage")
2979
+ newlinesInside?: ("ignore" | number)
2980
+
2981
+ order?: ("asc" | "desc")
2982
+ })[]
2983
+ newlinesBetween?: ("ignore" | number)
2984
+
2985
+ useExperimentalDependencyDetection?: boolean
2986
+ newlinesBetweenOverloadSignatures?: ("ignore" | number)
2987
+
2988
+ partitionByComment?: (boolean | (({
2989
+
2990
+ pattern: string
2991
+
2992
+ flags?: string
2993
+ } | string)[] | ({
2994
+
2995
+ pattern: string
2996
+
2997
+ flags?: string
2998
+ } | string)) | {
2999
+
3000
+ block?: (boolean | (({
3001
+
3002
+ pattern: string
3003
+
3004
+ flags?: string
3005
+ } | string)[] | ({
3006
+
3007
+ pattern: string
3008
+
3009
+ flags?: string
3010
+ } | string)))
3011
+
3012
+ line?: (boolean | (({
3013
+
3014
+ pattern: string
3015
+
3016
+ flags?: string
3017
+ } | string)[] | ({
3018
+
3019
+ pattern: string
3020
+
3021
+ flags?: string
3022
+ } | string)))
3023
+ })
3024
+
3025
+ partitionByNewLine?: boolean
3026
+ }]
3027
+ // ----- perfectionist/sort-named-exports -----
3028
+ type PerfectionistSortNamedExports = {
3029
+
3030
+ fallbackSort?: {
3031
+
3032
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3033
+
3034
+ order?: ("asc" | "desc")
3035
+ }
3036
+
3037
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3038
+
3039
+ specialCharacters?: ("remove" | "trim" | "keep")
3040
+
3041
+ ignoreCase?: boolean
3042
+
3043
+ alphabet?: string
3044
+
3045
+ locales?: (string | string[])
3046
+
3047
+ order?: ("asc" | "desc")
3048
+
3049
+ customGroups?: ({
3050
+
3051
+ fallbackSort?: {
3052
+
3053
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3054
+
3055
+ order?: ("asc" | "desc")
3056
+ }
3057
+
3058
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3059
+
3060
+ groupName: string
3061
+ newlinesInside?: ("ignore" | number)
3062
+
3063
+ order?: ("asc" | "desc")
3064
+
3065
+ anyOf: [{
3066
+
3067
+ elementNamePattern?: (({
3068
+
3069
+ pattern: string
3070
+
3071
+ flags?: string
3072
+ } | string)[] | ({
3073
+
3074
+ pattern: string
3075
+
3076
+ flags?: string
3077
+ } | string))
3078
+
3079
+ modifiers?: ("value" | "type")[]
3080
+
3081
+ selector?: "export"
3082
+ }, ...({
3083
+
3084
+ elementNamePattern?: (({
3085
+
3086
+ pattern: string
3087
+
3088
+ flags?: string
3089
+ } | string)[] | ({
3090
+
3091
+ pattern: string
3092
+
3093
+ flags?: string
3094
+ } | string))
3095
+
3096
+ modifiers?: ("value" | "type")[]
3097
+
3098
+ selector?: "export"
3099
+ })[]]
3100
+ } | {
3101
+
3102
+ fallbackSort?: {
3103
+
3104
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3105
+
3106
+ order?: ("asc" | "desc")
3107
+ }
3108
+
3109
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3110
+
3111
+ groupName: string
3112
+ newlinesInside?: ("ignore" | number)
3113
+
3114
+ order?: ("asc" | "desc")
3115
+
3116
+ elementNamePattern?: (({
3117
+
3118
+ pattern: string
3119
+
3120
+ flags?: string
3121
+ } | string)[] | ({
3122
+
3123
+ pattern: string
3124
+
3125
+ flags?: string
3126
+ } | string))
3127
+
3128
+ modifiers?: ("value" | "type")[]
3129
+
3130
+ selector?: "export"
3131
+ })[]
3132
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
3133
+
3134
+ groups?: (string | [string, ...(string)[]] | {
3135
+ newlinesBetween: ("ignore" | number)
3136
+ } | {
3137
+ group: (string | [string, ...(string)[]])
3138
+
3139
+ fallbackSort?: {
3140
+
3141
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3142
+
3143
+ order?: ("asc" | "desc")
3144
+ }
3145
+
3146
+ commentAbove?: string
3147
+
3148
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3149
+ newlinesInside?: ("ignore" | number)
3150
+
3151
+ order?: ("asc" | "desc")
3152
+ })[]
3153
+ newlinesBetween?: ("ignore" | number)
3154
+
3155
+ useConfigurationIf?: {
3156
+
3157
+ allNamesMatchPattern?: (({
3158
+
3159
+ pattern: string
3160
+
3161
+ flags?: string
3162
+ } | string)[] | ({
3163
+
3164
+ pattern: string
3165
+
3166
+ flags?: string
3167
+ } | string))
3168
+
3169
+ matchesAstSelector?: string
3170
+ }
3171
+
3172
+ ignoreAlias?: boolean
3173
+
3174
+ partitionByComment?: (boolean | (({
3175
+
3176
+ pattern: string
3177
+
3178
+ flags?: string
3179
+ } | string)[] | ({
3180
+
3181
+ pattern: string
3182
+
3183
+ flags?: string
3184
+ } | string)) | {
3185
+
3186
+ block?: (boolean | (({
3187
+
3188
+ pattern: string
3189
+
3190
+ flags?: string
3191
+ } | string)[] | ({
3192
+
3193
+ pattern: string
3194
+
3195
+ flags?: string
3196
+ } | string)))
3197
+
3198
+ line?: (boolean | (({
3199
+
3200
+ pattern: string
3201
+
3202
+ flags?: string
3203
+ } | string)[] | ({
3204
+
3205
+ pattern: string
3206
+
3207
+ flags?: string
3208
+ } | string)))
3209
+ })
3210
+
3211
+ partitionByNewLine?: boolean
3212
+ }[]
3213
+ // ----- perfectionist/sort-named-imports -----
3214
+ type PerfectionistSortNamedImports = {
3215
+
3216
+ fallbackSort?: {
3217
+
3218
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3219
+
3220
+ order?: ("asc" | "desc")
3221
+ }
3222
+
3223
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3224
+
3225
+ specialCharacters?: ("remove" | "trim" | "keep")
3226
+
3227
+ ignoreCase?: boolean
3228
+
3229
+ alphabet?: string
3230
+
3231
+ locales?: (string | string[])
3232
+
3233
+ order?: ("asc" | "desc")
3234
+
3235
+ customGroups?: ({
3236
+
3237
+ fallbackSort?: {
3238
+
3239
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3240
+
3241
+ order?: ("asc" | "desc")
3242
+ }
3243
+
3244
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3245
+
3246
+ groupName: string
3247
+ newlinesInside?: ("ignore" | number)
3248
+
3249
+ order?: ("asc" | "desc")
3250
+
3251
+ anyOf: [{
3252
+
3253
+ elementNamePattern?: (({
3254
+
3255
+ pattern: string
3256
+
3257
+ flags?: string
3258
+ } | string)[] | ({
3259
+
3260
+ pattern: string
3261
+
3262
+ flags?: string
3263
+ } | string))
3264
+
3265
+ modifiers?: ("value" | "type")[]
3266
+
3267
+ selector?: "import"
3268
+ }, ...({
3269
+
3270
+ elementNamePattern?: (({
3271
+
3272
+ pattern: string
3273
+
3274
+ flags?: string
3275
+ } | string)[] | ({
3276
+
3277
+ pattern: string
3278
+
3279
+ flags?: string
3280
+ } | string))
3281
+
3282
+ modifiers?: ("value" | "type")[]
3283
+
3284
+ selector?: "import"
3285
+ })[]]
3286
+ } | {
3287
+
3288
+ fallbackSort?: {
3289
+
3290
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3291
+
3292
+ order?: ("asc" | "desc")
3293
+ }
3294
+
3295
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3296
+
3297
+ groupName: string
3298
+ newlinesInside?: ("ignore" | number)
3299
+
3300
+ order?: ("asc" | "desc")
3301
+
3302
+ elementNamePattern?: (({
3303
+
3304
+ pattern: string
3305
+
3306
+ flags?: string
3307
+ } | string)[] | ({
3308
+
3309
+ pattern: string
3310
+
3311
+ flags?: string
3312
+ } | string))
3313
+
3314
+ modifiers?: ("value" | "type")[]
3315
+
3316
+ selector?: "import"
3317
+ })[]
3318
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
3319
+
3320
+ groups?: (string | [string, ...(string)[]] | {
3321
+ newlinesBetween: ("ignore" | number)
3322
+ } | {
3323
+ group: (string | [string, ...(string)[]])
3324
+
3325
+ fallbackSort?: {
3326
+
3327
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3328
+
3329
+ order?: ("asc" | "desc")
3330
+ }
3331
+
3332
+ commentAbove?: string
3333
+
3334
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3335
+ newlinesInside?: ("ignore" | number)
3336
+
3337
+ order?: ("asc" | "desc")
3338
+ })[]
3339
+ newlinesBetween?: ("ignore" | number)
3340
+
3341
+ useConfigurationIf?: {
3342
+
3343
+ allNamesMatchPattern?: (({
3344
+
3345
+ pattern: string
3346
+
3347
+ flags?: string
3348
+ } | string)[] | ({
3349
+
3350
+ pattern: string
3351
+
3352
+ flags?: string
3353
+ } | string))
3354
+
3355
+ matchesAstSelector?: string
3356
+ }
3357
+
3358
+ ignoreAlias?: boolean
3359
+
3360
+ partitionByComment?: (boolean | (({
3361
+
3362
+ pattern: string
3363
+
3364
+ flags?: string
3365
+ } | string)[] | ({
3366
+
3367
+ pattern: string
3368
+
3369
+ flags?: string
3370
+ } | string)) | {
3371
+
3372
+ block?: (boolean | (({
3373
+
3374
+ pattern: string
3375
+
3376
+ flags?: string
3377
+ } | string)[] | ({
3378
+
3379
+ pattern: string
3380
+
3381
+ flags?: string
3382
+ } | string)))
3383
+
3384
+ line?: (boolean | (({
3385
+
3386
+ pattern: string
3387
+
3388
+ flags?: string
3389
+ } | string)[] | ({
3390
+
3391
+ pattern: string
3392
+
3393
+ flags?: string
3394
+ } | string)))
3395
+ })
3396
+
3397
+ partitionByNewLine?: boolean
3398
+ }[]
3399
+ // ----- perfectionist/sort-object-types -----
3400
+ type PerfectionistSortObjectTypes = {
3401
+
3402
+ fallbackSort?: {
3403
+
3404
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3405
+
3406
+ order?: ("asc" | "desc")
3407
+ sortBy?: ("name" | "value")
3408
+ }
3409
+
3410
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3411
+
3412
+ specialCharacters?: ("remove" | "trim" | "keep")
3413
+
3414
+ ignoreCase?: boolean
3415
+
3416
+ alphabet?: string
3417
+
3418
+ locales?: (string | string[])
3419
+
3420
+ order?: ("asc" | "desc")
3421
+ sortBy?: ("name" | "value")
3422
+
3423
+ customGroups?: ({
3424
+
3425
+ fallbackSort?: {
3426
+
3427
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3428
+
3429
+ order?: ("asc" | "desc")
3430
+ sortBy?: ("name" | "value")
3431
+ }
3432
+
3433
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3434
+
3435
+ groupName: string
3436
+ newlinesInside?: ("ignore" | number)
3437
+
3438
+ order?: ("asc" | "desc")
3439
+ sortBy?: ("name" | "value")
3440
+
3441
+ anyOf: [{
3442
+
3443
+ elementNamePattern?: (({
3444
+
3445
+ pattern: string
3446
+
3447
+ flags?: string
3448
+ } | string)[] | ({
3449
+
3450
+ pattern: string
3451
+
3452
+ flags?: string
3453
+ } | string))
3454
+
3455
+ modifiers?: ("optional" | "required" | "multiline")[]
3456
+
3457
+ selector?: ("index-signature" | "member" | "method" | "property")
3458
+
3459
+ elementValuePattern?: (({
3460
+
3461
+ pattern: string
3462
+
3463
+ flags?: string
3464
+ } | string)[] | ({
3465
+
3466
+ pattern: string
3467
+
3468
+ flags?: string
3469
+ } | string))
3470
+ }, ...({
3471
+
3472
+ elementNamePattern?: (({
3473
+
3474
+ pattern: string
3475
+
3476
+ flags?: string
3477
+ } | string)[] | ({
3478
+
3479
+ pattern: string
3480
+
3481
+ flags?: string
3482
+ } | string))
3483
+
3484
+ modifiers?: ("optional" | "required" | "multiline")[]
3485
+
3486
+ selector?: ("index-signature" | "member" | "method" | "property")
3487
+
3488
+ elementValuePattern?: (({
3489
+
3490
+ pattern: string
3491
+
3492
+ flags?: string
3493
+ } | string)[] | ({
3494
+
3495
+ pattern: string
3496
+
3497
+ flags?: string
3498
+ } | string))
3499
+ })[]]
3500
+ } | {
3501
+
3502
+ fallbackSort?: {
3503
+
3504
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3505
+
3506
+ order?: ("asc" | "desc")
3507
+ sortBy?: ("name" | "value")
3508
+ }
3509
+
3510
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3511
+
3512
+ groupName: string
3513
+ newlinesInside?: ("ignore" | number)
3514
+
3515
+ order?: ("asc" | "desc")
3516
+ sortBy?: ("name" | "value")
3517
+
3518
+ elementNamePattern?: (({
3519
+
3520
+ pattern: string
3521
+
3522
+ flags?: string
3523
+ } | string)[] | ({
3524
+
3525
+ pattern: string
3526
+
3527
+ flags?: string
3528
+ } | string))
3529
+
3530
+ modifiers?: ("optional" | "required" | "multiline")[]
3531
+
3532
+ selector?: ("index-signature" | "member" | "method" | "property")
3533
+
3534
+ elementValuePattern?: (({
3535
+
3536
+ pattern: string
3537
+
3538
+ flags?: string
3539
+ } | string)[] | ({
3540
+
3541
+ pattern: string
3542
+
3543
+ flags?: string
3544
+ } | string))
3545
+ })[]
3546
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
3547
+
3548
+ groups?: (string | [string, ...(string)[]] | {
3549
+ newlinesBetween: ("ignore" | number)
3550
+ } | {
3551
+ group: (string | [string, ...(string)[]])
3552
+
3553
+ fallbackSort?: {
3554
+
3555
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3556
+
3557
+ order?: ("asc" | "desc")
3558
+ sortBy?: ("name" | "value")
3559
+ }
3560
+
3561
+ commentAbove?: string
3562
+
3563
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3564
+ newlinesInside?: ("ignore" | number)
3565
+
3566
+ order?: ("asc" | "desc")
3567
+ sortBy?: ("name" | "value")
3568
+ })[]
3569
+ newlinesBetween?: ("ignore" | number)
3570
+
3571
+ useConfigurationIf?: {
3572
+
3573
+ allNamesMatchPattern?: (({
3574
+
3575
+ pattern: string
3576
+
3577
+ flags?: string
3578
+ } | string)[] | ({
3579
+
3580
+ pattern: string
3581
+
3582
+ flags?: string
3583
+ } | string))
3584
+
3585
+ hasNumericKeysOnly?: boolean
3586
+
3587
+ declarationCommentMatchesPattern?: (({
3588
+ scope?: ("shallow" | "deep")
3589
+
3590
+ pattern: string
3591
+
3592
+ flags?: string
3593
+ } | string)[] | ({
3594
+ scope?: ("shallow" | "deep")
3595
+
3596
+ pattern: string
3597
+
3598
+ flags?: string
3599
+ } | string))
3600
+
3601
+ matchesAstSelector?: string
3602
+
3603
+ declarationMatchesPattern?: (({
3604
+ scope?: ("shallow" | "deep")
3605
+
3606
+ pattern: string
3607
+
3608
+ flags?: string
3609
+ } | string)[] | ({
3610
+ scope?: ("shallow" | "deep")
3611
+
3612
+ pattern: string
3613
+
3614
+ flags?: string
3615
+ } | string))
3616
+ }
3617
+
3618
+ partitionByComment?: (boolean | (({
3619
+
3620
+ pattern: string
3621
+
3622
+ flags?: string
3623
+ } | string)[] | ({
3624
+
3625
+ pattern: string
3626
+
3627
+ flags?: string
3628
+ } | string)) | {
3629
+
3630
+ block?: (boolean | (({
3631
+
3632
+ pattern: string
3633
+
3634
+ flags?: string
3635
+ } | string)[] | ({
3636
+
3637
+ pattern: string
3638
+
3639
+ flags?: string
3640
+ } | string)))
3641
+
3642
+ line?: (boolean | (({
3643
+
3644
+ pattern: string
3645
+
3646
+ flags?: string
3647
+ } | string)[] | ({
3648
+
3649
+ pattern: string
3650
+
3651
+ flags?: string
3652
+ } | string)))
3653
+ })
3654
+
3655
+ partitionByNewLine?: boolean
3656
+ }[]
3657
+ // ----- perfectionist/sort-objects -----
3658
+ type PerfectionistSortObjects = {
3659
+
3660
+ fallbackSort?: {
3661
+
3662
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3663
+
3664
+ order?: ("asc" | "desc")
3665
+ sortBy?: ("name" | "value")
3666
+ }
3667
+
3668
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3669
+
3670
+ specialCharacters?: ("remove" | "trim" | "keep")
3671
+
3672
+ ignoreCase?: boolean
3673
+
3674
+ alphabet?: string
3675
+
3676
+ locales?: (string | string[])
3677
+
3678
+ order?: ("asc" | "desc")
3679
+ sortBy?: ("name" | "value")
3680
+
3681
+ customGroups?: ({
3682
+
3683
+ fallbackSort?: {
3684
+
3685
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3686
+
3687
+ order?: ("asc" | "desc")
3688
+ sortBy?: ("name" | "value")
3689
+ }
3690
+
3691
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3692
+
3693
+ groupName: string
3694
+ newlinesInside?: ("ignore" | number)
3695
+
3696
+ order?: ("asc" | "desc")
3697
+ sortBy?: ("name" | "value")
3698
+
3699
+ anyOf: [{
3700
+
3701
+ elementNamePattern?: (({
3702
+
3703
+ pattern: string
3704
+
3705
+ flags?: string
3706
+ } | string)[] | ({
3707
+
3708
+ pattern: string
3709
+
3710
+ flags?: string
3711
+ } | string))
3712
+
3713
+ modifiers?: ("multiline")[]
3714
+
3715
+ selector?: ("member" | "method" | "property")
3716
+
3717
+ elementValuePattern?: (({
3718
+
3719
+ pattern: string
3720
+
3721
+ flags?: string
3722
+ } | string)[] | ({
3723
+
3724
+ pattern: string
3725
+
3726
+ flags?: string
3727
+ } | string))
3728
+ }, ...({
3729
+
3730
+ elementNamePattern?: (({
3731
+
3732
+ pattern: string
3733
+
3734
+ flags?: string
3735
+ } | string)[] | ({
3736
+
3737
+ pattern: string
3738
+
3739
+ flags?: string
3740
+ } | string))
3741
+
3742
+ modifiers?: ("multiline")[]
3743
+
3744
+ selector?: ("member" | "method" | "property")
3745
+
3746
+ elementValuePattern?: (({
3747
+
3748
+ pattern: string
3749
+
3750
+ flags?: string
3751
+ } | string)[] | ({
3752
+
3753
+ pattern: string
3754
+
3755
+ flags?: string
3756
+ } | string))
3757
+ })[]]
3758
+ } | {
3759
+
3760
+ fallbackSort?: {
3761
+
3762
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3763
+
3764
+ order?: ("asc" | "desc")
3765
+ sortBy?: ("name" | "value")
3766
+ }
3767
+
3768
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3769
+
3770
+ groupName: string
3771
+ newlinesInside?: ("ignore" | number)
3772
+
3773
+ order?: ("asc" | "desc")
3774
+ sortBy?: ("name" | "value")
3775
+
3776
+ elementNamePattern?: (({
3777
+
3778
+ pattern: string
3779
+
3780
+ flags?: string
3781
+ } | string)[] | ({
3782
+
3783
+ pattern: string
3784
+
3785
+ flags?: string
3786
+ } | string))
3787
+
3788
+ modifiers?: ("multiline")[]
3789
+
3790
+ selector?: ("member" | "method" | "property")
3791
+
3792
+ elementValuePattern?: (({
3793
+
3794
+ pattern: string
3795
+
3796
+ flags?: string
3797
+ } | string)[] | ({
3798
+
3799
+ pattern: string
3800
+
3801
+ flags?: string
3802
+ } | string))
3803
+ })[]
3804
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
3805
+
3806
+ groups?: (string | [string, ...(string)[]] | {
3807
+ newlinesBetween: ("ignore" | number)
3808
+ } | {
3809
+ group: (string | [string, ...(string)[]])
3810
+
3811
+ fallbackSort?: {
3812
+
3813
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3814
+
3815
+ order?: ("asc" | "desc")
3816
+ sortBy?: ("name" | "value")
3817
+ }
3818
+
3819
+ commentAbove?: string
3820
+
3821
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3822
+ newlinesInside?: ("ignore" | number)
3823
+
3824
+ order?: ("asc" | "desc")
3825
+ sortBy?: ("name" | "value")
3826
+ })[]
3827
+ newlinesBetween?: ("ignore" | number)
3828
+
3829
+ useConfigurationIf?: {
3830
+
3831
+ allNamesMatchPattern?: (({
3832
+
3833
+ pattern: string
3834
+
3835
+ flags?: string
3836
+ } | string)[] | ({
3837
+
3838
+ pattern: string
3839
+
3840
+ flags?: string
3841
+ } | string))
3842
+
3843
+ objectType?: ("destructured" | "non-destructured")
3844
+
3845
+ hasNumericKeysOnly?: boolean
3846
+
3847
+ declarationCommentMatchesPattern?: (({
3848
+ scope?: ("shallow" | "deep")
3849
+
3850
+ pattern: string
3851
+
3852
+ flags?: string
3853
+ } | string)[] | ({
3854
+ scope?: ("shallow" | "deep")
3855
+
3856
+ pattern: string
3857
+
3858
+ flags?: string
3859
+ } | string))
3860
+
3861
+ callingFunctionNamePattern?: (({
3862
+ scope?: ("shallow" | "deep")
3863
+
3864
+ pattern: string
3865
+
3866
+ flags?: string
3867
+ } | string)[] | ({
3868
+ scope?: ("shallow" | "deep")
3869
+
3870
+ pattern: string
3871
+
3872
+ flags?: string
3873
+ } | string))
3874
+
3875
+ matchesAstSelector?: string
3876
+
3877
+ declarationMatchesPattern?: (({
3878
+ scope?: ("shallow" | "deep")
3879
+
3880
+ pattern: string
3881
+
3882
+ flags?: string
3883
+ } | string)[] | ({
3884
+ scope?: ("shallow" | "deep")
3885
+
3886
+ pattern: string
3887
+
3888
+ flags?: string
3889
+ } | string))
3890
+ }
3891
+
3892
+ partitionByComputedKey?: boolean
3893
+
3894
+ styledComponents?: boolean
3895
+
3896
+ useExperimentalDependencyDetection?: boolean
3897
+
3898
+ partitionByComment?: (boolean | (({
3899
+
3900
+ pattern: string
3901
+
3902
+ flags?: string
3903
+ } | string)[] | ({
3904
+
3905
+ pattern: string
3906
+
3907
+ flags?: string
3908
+ } | string)) | {
3909
+
3910
+ block?: (boolean | (({
3911
+
3912
+ pattern: string
3913
+
3914
+ flags?: string
3915
+ } | string)[] | ({
3916
+
3917
+ pattern: string
3918
+
3919
+ flags?: string
3920
+ } | string)))
3921
+
3922
+ line?: (boolean | (({
3923
+
3924
+ pattern: string
3925
+
3926
+ flags?: string
3927
+ } | string)[] | ({
3928
+
3929
+ pattern: string
3930
+
3931
+ flags?: string
3932
+ } | string)))
3933
+ })
3934
+
3935
+ partitionByNewLine?: boolean
3936
+ }[]
3937
+ // ----- perfectionist/sort-sets -----
3938
+ type PerfectionistSortSets = {
3939
+
3940
+ fallbackSort?: {
3941
+
3942
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3943
+
3944
+ order?: ("asc" | "desc")
3945
+ }
3946
+
3947
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3948
+
3949
+ specialCharacters?: ("remove" | "trim" | "keep")
3950
+
3951
+ ignoreCase?: boolean
3952
+
3953
+ alphabet?: string
3954
+
3955
+ locales?: (string | string[])
3956
+
3957
+ order?: ("asc" | "desc")
3958
+
3959
+ customGroups?: ({
3960
+
3961
+ fallbackSort?: {
3962
+
3963
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3964
+
3965
+ order?: ("asc" | "desc")
3966
+ }
3967
+
3968
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
3969
+
3970
+ groupName: string
3971
+ newlinesInside?: ("ignore" | number)
3972
+
3973
+ order?: ("asc" | "desc")
3974
+
3975
+ anyOf: [{
3976
+
3977
+ elementNamePattern?: (({
3978
+
3979
+ pattern: string
3980
+
3981
+ flags?: string
3982
+ } | string)[] | ({
3983
+
3984
+ pattern: string
3985
+
3986
+ flags?: string
3987
+ } | string))
3988
+
3989
+ selector?: "literal"
3990
+ }, ...({
3991
+
3992
+ elementNamePattern?: (({
3993
+
3994
+ pattern: string
3995
+
3996
+ flags?: string
3997
+ } | string)[] | ({
3998
+
3999
+ pattern: string
4000
+
4001
+ flags?: string
4002
+ } | string))
4003
+
4004
+ selector?: "literal"
4005
+ })[]]
4006
+ } | {
4007
+
4008
+ fallbackSort?: {
4009
+
4010
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4011
+
4012
+ order?: ("asc" | "desc")
4013
+ }
4014
+
4015
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4016
+
4017
+ groupName: string
4018
+ newlinesInside?: ("ignore" | number)
4019
+
4020
+ order?: ("asc" | "desc")
4021
+
4022
+ elementNamePattern?: (({
4023
+
4024
+ pattern: string
4025
+
4026
+ flags?: string
4027
+ } | string)[] | ({
4028
+
4029
+ pattern: string
4030
+
4031
+ flags?: string
4032
+ } | string))
4033
+
4034
+ selector?: "literal"
4035
+ })[]
4036
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
4037
+
4038
+ groups?: (string | [string, ...(string)[]] | {
4039
+ newlinesBetween: ("ignore" | number)
4040
+ } | {
4041
+ group: (string | [string, ...(string)[]])
4042
+
4043
+ fallbackSort?: {
4044
+
4045
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4046
+
4047
+ order?: ("asc" | "desc")
4048
+ }
4049
+
4050
+ commentAbove?: string
4051
+
4052
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4053
+ newlinesInside?: ("ignore" | number)
4054
+
4055
+ order?: ("asc" | "desc")
4056
+ })[]
4057
+ newlinesBetween?: ("ignore" | number)
4058
+
4059
+ useConfigurationIf?: {
4060
+
4061
+ allNamesMatchPattern?: (({
4062
+
4063
+ pattern: string
4064
+
4065
+ flags?: string
4066
+ } | string)[] | ({
4067
+
4068
+ pattern: string
4069
+
4070
+ flags?: string
4071
+ } | string))
4072
+
4073
+ matchesAstSelector?: string
4074
+ }
4075
+
4076
+ partitionByComment?: (boolean | (({
4077
+
4078
+ pattern: string
4079
+
4080
+ flags?: string
4081
+ } | string)[] | ({
4082
+
4083
+ pattern: string
4084
+
4085
+ flags?: string
4086
+ } | string)) | {
4087
+
4088
+ block?: (boolean | (({
4089
+
4090
+ pattern: string
4091
+
4092
+ flags?: string
4093
+ } | string)[] | ({
4094
+
4095
+ pattern: string
4096
+
4097
+ flags?: string
4098
+ } | string)))
4099
+
4100
+ line?: (boolean | (({
4101
+
4102
+ pattern: string
4103
+
4104
+ flags?: string
4105
+ } | string)[] | ({
4106
+
4107
+ pattern: string
4108
+
4109
+ flags?: string
4110
+ } | string)))
4111
+ })
4112
+
4113
+ partitionByNewLine?: boolean
4114
+ }[]
4115
+ // ----- perfectionist/sort-switch-case -----
4116
+ type PerfectionistSortSwitchCase = []|[{
4117
+
4118
+ fallbackSort?: {
4119
+
4120
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4121
+
4122
+ order?: ("asc" | "desc")
4123
+ }
4124
+
4125
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4126
+
4127
+ specialCharacters?: ("remove" | "trim" | "keep")
4128
+
4129
+ ignoreCase?: boolean
4130
+
4131
+ alphabet?: string
4132
+
4133
+ locales?: (string | string[])
4134
+
4135
+ order?: ("asc" | "desc")
4136
+ }]
4137
+ // ----- perfectionist/sort-union-types -----
4138
+ type PerfectionistSortUnionTypes = {
4139
+
4140
+ fallbackSort?: {
4141
+
4142
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4143
+
4144
+ order?: ("asc" | "desc")
4145
+ }
4146
+
4147
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4148
+
4149
+ specialCharacters?: ("remove" | "trim" | "keep")
4150
+
4151
+ ignoreCase?: boolean
4152
+
4153
+ alphabet?: string
4154
+
4155
+ locales?: (string | string[])
4156
+
4157
+ order?: ("asc" | "desc")
4158
+
4159
+ customGroups?: ({
4160
+
4161
+ fallbackSort?: {
4162
+
4163
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4164
+
4165
+ order?: ("asc" | "desc")
4166
+ }
4167
+
4168
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4169
+
4170
+ groupName: string
4171
+ newlinesInside?: ("ignore" | number)
4172
+
4173
+ order?: ("asc" | "desc")
4174
+
4175
+ anyOf: [{
4176
+
4177
+ elementNamePattern?: (({
4178
+
4179
+ pattern: string
4180
+
4181
+ flags?: string
4182
+ } | string)[] | ({
4183
+
4184
+ pattern: string
4185
+
4186
+ flags?: string
4187
+ } | string))
4188
+
4189
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union")
4190
+ }, ...({
4191
+
4192
+ elementNamePattern?: (({
4193
+
4194
+ pattern: string
4195
+
4196
+ flags?: string
4197
+ } | string)[] | ({
4198
+
4199
+ pattern: string
4200
+
4201
+ flags?: string
4202
+ } | string))
4203
+
4204
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union")
4205
+ })[]]
4206
+ } | {
4207
+
4208
+ fallbackSort?: {
4209
+
4210
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4211
+
4212
+ order?: ("asc" | "desc")
4213
+ }
4214
+
4215
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4216
+
4217
+ groupName: string
4218
+ newlinesInside?: ("ignore" | number)
4219
+
4220
+ order?: ("asc" | "desc")
4221
+
4222
+ elementNamePattern?: (({
4223
+
4224
+ pattern: string
4225
+
4226
+ flags?: string
4227
+ } | string)[] | ({
4228
+
4229
+ pattern: string
4230
+
4231
+ flags?: string
4232
+ } | string))
4233
+
4234
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union")
4235
+ })[]
4236
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
4237
+
4238
+ groups?: (string | [string, ...(string)[]] | {
4239
+ newlinesBetween: ("ignore" | number)
4240
+ } | {
4241
+ group: (string | [string, ...(string)[]])
4242
+
4243
+ fallbackSort?: {
4244
+
4245
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4246
+
4247
+ order?: ("asc" | "desc")
4248
+ }
4249
+
4250
+ commentAbove?: string
4251
+
4252
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4253
+ newlinesInside?: ("ignore" | number)
4254
+
4255
+ order?: ("asc" | "desc")
4256
+ })[]
4257
+ newlinesBetween?: ("ignore" | number)
4258
+
4259
+ useConfigurationIf?: {
4260
+
4261
+ allNamesMatchPattern?: (({
4262
+
4263
+ pattern: string
4264
+
4265
+ flags?: string
4266
+ } | string)[] | ({
4267
+
4268
+ pattern: string
4269
+
4270
+ flags?: string
4271
+ } | string))
4272
+
4273
+ matchesAstSelector?: string
4274
+ }
4275
+
4276
+ partitionByComment?: (boolean | (({
4277
+
4278
+ pattern: string
4279
+
4280
+ flags?: string
4281
+ } | string)[] | ({
4282
+
4283
+ pattern: string
4284
+
4285
+ flags?: string
4286
+ } | string)) | {
4287
+
4288
+ block?: (boolean | (({
4289
+
4290
+ pattern: string
4291
+
4292
+ flags?: string
4293
+ } | string)[] | ({
4294
+
4295
+ pattern: string
4296
+
4297
+ flags?: string
4298
+ } | string)))
4299
+
4300
+ line?: (boolean | (({
4301
+
4302
+ pattern: string
4303
+
4304
+ flags?: string
4305
+ } | string)[] | ({
4306
+
4307
+ pattern: string
4308
+
4309
+ flags?: string
4310
+ } | string)))
4311
+ })
4312
+
4313
+ partitionByNewLine?: boolean
4314
+ }[]
4315
+ // ----- perfectionist/sort-variable-declarations -----
4316
+ type PerfectionistSortVariableDeclarations = {
4317
+
4318
+ fallbackSort?: {
4319
+
4320
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4321
+
4322
+ order?: ("asc" | "desc")
4323
+ }
4324
+
4325
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4326
+
4327
+ specialCharacters?: ("remove" | "trim" | "keep")
4328
+
4329
+ ignoreCase?: boolean
4330
+
4331
+ alphabet?: string
4332
+
4333
+ locales?: (string | string[])
4334
+
4335
+ order?: ("asc" | "desc")
4336
+
4337
+ customGroups?: ({
4338
+
4339
+ fallbackSort?: {
4340
+
4341
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4342
+
4343
+ order?: ("asc" | "desc")
4344
+ }
4345
+
4346
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4347
+
4348
+ groupName: string
4349
+ newlinesInside?: ("ignore" | number)
4350
+
4351
+ order?: ("asc" | "desc")
4352
+
4353
+ anyOf: [{
4354
+
4355
+ elementNamePattern?: (({
4356
+
4357
+ pattern: string
4358
+
4359
+ flags?: string
4360
+ } | string)[] | ({
4361
+
4362
+ pattern: string
4363
+
4364
+ flags?: string
4365
+ } | string))
4366
+
4367
+ selector?: ("initialized" | "uninitialized")
4368
+ }, ...({
4369
+
4370
+ elementNamePattern?: (({
4371
+
4372
+ pattern: string
4373
+
4374
+ flags?: string
4375
+ } | string)[] | ({
4376
+
4377
+ pattern: string
4378
+
4379
+ flags?: string
4380
+ } | string))
4381
+
4382
+ selector?: ("initialized" | "uninitialized")
4383
+ })[]]
4384
+ } | {
4385
+
4386
+ fallbackSort?: {
4387
+
4388
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4389
+
4390
+ order?: ("asc" | "desc")
4391
+ }
4392
+
4393
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4394
+
4395
+ groupName: string
4396
+ newlinesInside?: ("ignore" | number)
4397
+
4398
+ order?: ("asc" | "desc")
4399
+
4400
+ elementNamePattern?: (({
4401
+
4402
+ pattern: string
4403
+
4404
+ flags?: string
4405
+ } | string)[] | ({
4406
+
4407
+ pattern: string
4408
+
4409
+ flags?: string
4410
+ } | string))
4411
+
4412
+ selector?: ("initialized" | "uninitialized")
4413
+ })[]
4414
+ newlinesInside?: (("ignore" | number) | "newlinesBetween")
4415
+
4416
+ groups?: (string | [string, ...(string)[]] | {
4417
+ newlinesBetween: ("ignore" | number)
4418
+ } | {
4419
+ group: (string | [string, ...(string)[]])
4420
+
4421
+ fallbackSort?: {
4422
+
4423
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4424
+
4425
+ order?: ("asc" | "desc")
4426
+ }
4427
+
4428
+ commentAbove?: string
4429
+
4430
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order")
4431
+ newlinesInside?: ("ignore" | number)
4432
+
4433
+ order?: ("asc" | "desc")
4434
+ })[]
4435
+ newlinesBetween?: ("ignore" | number)
4436
+
4437
+ useConfigurationIf?: {
4438
+
4439
+ allNamesMatchPattern?: (({
4440
+
4441
+ pattern: string
4442
+
4443
+ flags?: string
4444
+ } | string)[] | ({
4445
+
4446
+ pattern: string
4447
+
4448
+ flags?: string
4449
+ } | string))
4450
+
4451
+ matchesAstSelector?: string
4452
+ }
4453
+
4454
+ useExperimentalDependencyDetection?: boolean
4455
+
4456
+ partitionByComment?: (boolean | (({
4457
+
4458
+ pattern: string
4459
+
4460
+ flags?: string
4461
+ } | string)[] | ({
4462
+
4463
+ pattern: string
4464
+
4465
+ flags?: string
4466
+ } | string)) | {
4467
+
4468
+ block?: (boolean | (({
4469
+
4470
+ pattern: string
4471
+
4472
+ flags?: string
4473
+ } | string)[] | ({
4474
+
4475
+ pattern: string
4476
+
4477
+ flags?: string
4478
+ } | string)))
4479
+
4480
+ line?: (boolean | (({
4481
+
4482
+ pattern: string
4483
+
4484
+ flags?: string
4485
+ } | string)[] | ({
4486
+
4487
+ pattern: string
4488
+
4489
+ flags?: string
4490
+ } | string)))
4491
+ })
4492
+
4493
+ partitionByNewLine?: boolean
4494
+ }[]