@jimmy.codes/eslint-config 3.14.2 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3290,17 +3290,16 @@ interface RuleOptions {
3290
3290
  * @see https://perfectionist.dev/rules/sort-array-includes
3291
3291
  */
3292
3292
  'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>
3293
- /**
3294
- * Enforce sorted Astro attributes.
3295
- * @see https://perfectionist.dev/rules/sort-astro-attributes
3296
- * @deprecated
3297
- */
3298
- 'perfectionist/sort-astro-attributes'?: Linter.RuleEntry<PerfectionistSortAstroAttributes>
3299
3293
  /**
3300
3294
  * Enforce sorted classes.
3301
3295
  * @see https://perfectionist.dev/rules/sort-classes
3302
3296
  */
3303
3297
  'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>
3298
+ /**
3299
+ * Enforce sorted decorators.
3300
+ * @see https://perfectionist.dev/rules/sort-decorators
3301
+ */
3302
+ 'perfectionist/sort-decorators'?: Linter.RuleEntry<PerfectionistSortDecorators>
3304
3303
  /**
3305
3304
  * Enforce sorted TypeScript enums.
3306
3305
  * @see https://perfectionist.dev/rules/sort-enums
@@ -3311,6 +3310,11 @@ interface RuleOptions {
3311
3310
  * @see https://perfectionist.dev/rules/sort-exports
3312
3311
  */
3313
3312
  'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>
3313
+ /**
3314
+ * Enforce sorted heritage clauses.
3315
+ * @see https://perfectionist.dev/rules/sort-heritage-clauses
3316
+ */
3317
+ 'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>
3314
3318
  /**
3315
3319
  * Enforce sorted imports.
3316
3320
  * @see https://perfectionist.dev/rules/sort-imports
@@ -3336,6 +3340,11 @@ interface RuleOptions {
3336
3340
  * @see https://perfectionist.dev/rules/sort-maps
3337
3341
  */
3338
3342
  'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>
3343
+ /**
3344
+ * Enforce sorted modules.
3345
+ * @see https://perfectionist.dev/rules/sort-modules
3346
+ */
3347
+ 'perfectionist/sort-modules'?: Linter.RuleEntry<PerfectionistSortModules>
3339
3348
  /**
3340
3349
  * Enforce sorted named exports.
3341
3350
  * @see https://perfectionist.dev/rules/sort-named-exports
@@ -3361,12 +3370,6 @@ interface RuleOptions {
3361
3370
  * @see https://perfectionist.dev/rules/sort-sets
3362
3371
  */
3363
3372
  'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>
3364
- /**
3365
- * Enforce sorted Svelte attributes.
3366
- * @see https://perfectionist.dev/rules/sort-svelte-attributes
3367
- * @deprecated
3368
- */
3369
- 'perfectionist/sort-svelte-attributes'?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>
3370
3373
  /**
3371
3374
  * Enforce sorted switch cases.
3372
3375
  * @see https://perfectionist.dev/rules/sort-switch-case
@@ -3382,12 +3385,6 @@ interface RuleOptions {
3382
3385
  * @see https://perfectionist.dev/rules/sort-variable-declarations
3383
3386
  */
3384
3387
  'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>
3385
- /**
3386
- * Enforce sorted Vue attributes.
3387
- * @see https://perfectionist.dev/rules/sort-vue-attributes
3388
- * @deprecated
3389
- */
3390
- 'perfectionist/sort-vue-attributes'?: Linter.RuleEntry<PerfectionistSortVueAttributes>
3391
3388
  /**
3392
3389
  * Require using arrow functions for callbacks
3393
3390
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
@@ -8412,61 +8409,26 @@ type PaddingLineBetweenStatements = {
8412
8409
  // ----- perfectionist/sort-array-includes -----
8413
8410
  type PerfectionistSortArrayIncludes = []|[{
8414
8411
 
8415
- type?: ("alphabetical" | "natural" | "line-length")
8416
-
8417
- order?: ("asc" | "desc")
8418
-
8419
- matcher?: ("minimatch" | "regex")
8420
-
8421
- ignoreCase?: boolean
8422
-
8423
- specialCharacters?: ("remove" | "trim" | "keep")
8412
+ partitionByComment?: (string[] | boolean | string)
8424
8413
 
8425
8414
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
8426
8415
 
8427
- partitionByComment?: (string[] | boolean | string)
8428
-
8429
8416
  partitionByNewLine?: boolean
8430
- }]
8431
- // ----- perfectionist/sort-astro-attributes -----
8432
- type PerfectionistSortAstroAttributes = []|[{
8433
-
8434
- type?: ("alphabetical" | "natural" | "line-length")
8435
8417
 
8436
- order?: ("asc" | "desc")
8437
-
8438
- matcher?: ("minimatch" | "regex")
8418
+ specialCharacters?: ("remove" | "trim" | "keep")
8439
8419
 
8440
8420
  ignoreCase?: boolean
8441
8421
 
8442
- specialCharacters?: ("remove" | "trim" | "keep")
8422
+ locales?: (string | string[])
8443
8423
 
8444
- groups?: (string | string[])[]
8424
+ order?: ("asc" | "desc")
8445
8425
 
8446
- customGroups?: {
8447
- [k: string]: (string | string[]) | undefined
8448
- }
8426
+ type?: ("alphabetical" | "natural" | "line-length")
8449
8427
  }]
8450
8428
  // ----- perfectionist/sort-classes -----
8451
8429
  type PerfectionistSortClasses = []|[{
8452
8430
 
8453
- type?: ("alphabetical" | "natural" | "line-length")
8454
-
8455
- order?: ("asc" | "desc")
8456
-
8457
- matcher?: ("minimatch" | "regex")
8458
-
8459
- ignoreCase?: boolean
8460
-
8461
- specialCharacters?: ("remove" | "trim" | "keep")
8462
-
8463
- partitionByComment?: (string[] | boolean | string)
8464
-
8465
- groups?: (string | string[])[]
8466
-
8467
8431
  customGroups?: ({
8468
- [k: string]: (string | string[]) | undefined
8469
- } | ({
8470
8432
 
8471
8433
  groupName?: string
8472
8434
 
@@ -8475,15 +8437,15 @@ type PerfectionistSortClasses = []|[{
8475
8437
  order?: ("desc" | "asc")
8476
8438
  anyOf?: {
8477
8439
 
8478
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8479
-
8480
- modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8481
-
8482
- elementNamePattern?: string
8440
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8483
8441
 
8484
8442
  elementValuePattern?: string
8485
8443
 
8486
8444
  decoratorNamePattern?: string
8445
+
8446
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8447
+
8448
+ elementNamePattern?: string
8487
8449
  }[]
8488
8450
  } | {
8489
8451
 
@@ -8493,91 +8455,169 @@ type PerfectionistSortClasses = []|[{
8493
8455
 
8494
8456
  order?: ("desc" | "asc")
8495
8457
 
8496
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8497
-
8498
- modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8499
-
8500
- elementNamePattern?: string
8458
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8501
8459
 
8502
8460
  elementValuePattern?: string
8503
8461
 
8504
8462
  decoratorNamePattern?: string
8505
- })[])
8506
- }]
8507
- // ----- perfectionist/sort-enums -----
8508
- type PerfectionistSortEnums = []|[{
8463
+
8464
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8465
+
8466
+ elementNamePattern?: string
8467
+ })[]
8509
8468
 
8510
- type?: ("alphabetical" | "natural" | "line-length")
8469
+ ignoreCallbackDependenciesPatterns?: string[]
8511
8470
 
8512
- order?: ("asc" | "desc")
8471
+ partitionByComment?: (string[] | boolean | string)
8513
8472
 
8514
- matcher?: ("minimatch" | "regex")
8473
+ partitionByNewLine?: boolean
8474
+
8475
+ specialCharacters?: ("remove" | "trim" | "keep")
8476
+
8477
+ newlinesBetween?: ("ignore" | "always" | "never")
8515
8478
 
8516
8479
  ignoreCase?: boolean
8517
8480
 
8518
- specialCharacters?: ("remove" | "trim" | "keep")
8481
+ locales?: (string | string[])
8519
8482
 
8520
- sortByValue?: boolean
8483
+ groups?: (string | string[])[]
8521
8484
 
8522
- forceNumericSort?: boolean
8485
+ order?: ("asc" | "desc")
8486
+
8487
+ type?: ("alphabetical" | "natural" | "line-length")
8488
+ }]
8489
+ // ----- perfectionist/sort-decorators -----
8490
+ type PerfectionistSortDecorators = []|[{
8523
8491
 
8524
8492
  partitionByComment?: (string[] | boolean | string)
8525
8493
 
8526
- partitionByNewLine?: boolean
8527
- }]
8528
- // ----- perfectionist/sort-exports -----
8529
- type PerfectionistSortExports = []|[{
8494
+ sortOnParameters?: boolean
8530
8495
 
8531
- type?: ("alphabetical" | "natural" | "line-length")
8496
+ sortOnProperties?: boolean
8532
8497
 
8533
- order?: ("asc" | "desc")
8498
+ sortOnAccessors?: boolean
8534
8499
 
8535
- matcher?: ("minimatch" | "regex")
8500
+ sortOnMethods?: boolean
8536
8501
 
8537
- ignoreCase?: boolean
8502
+ sortOnClasses?: boolean
8538
8503
 
8539
8504
  specialCharacters?: ("remove" | "trim" | "keep")
8540
8505
 
8506
+ customGroups?: {
8507
+ [k: string]: (string | string[]) | undefined
8508
+ }
8509
+
8510
+ ignoreCase?: boolean
8511
+
8512
+ locales?: (string | string[])
8513
+
8514
+ groups?: (string | string[])[]
8515
+
8516
+ order?: ("asc" | "desc")
8517
+
8518
+ type?: ("alphabetical" | "natural" | "line-length")
8519
+ }]
8520
+ // ----- perfectionist/sort-enums -----
8521
+ type PerfectionistSortEnums = []|[{
8522
+
8541
8523
  partitionByComment?: (string[] | boolean | string)
8542
8524
 
8525
+ forceNumericSort?: boolean
8526
+
8527
+ sortByValue?: boolean
8528
+
8543
8529
  partitionByNewLine?: boolean
8544
8530
 
8545
- groupKind?: ("mixed" | "values-first" | "types-first")
8546
- }]
8547
- // ----- perfectionist/sort-imports -----
8548
- type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8549
- type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8531
+ specialCharacters?: ("remove" | "trim" | "keep")
8550
8532
 
8551
- type?: ("alphabetical" | "natural" | "line-length")
8533
+ ignoreCase?: boolean
8534
+
8535
+ locales?: (string | string[])
8552
8536
 
8553
8537
  order?: ("asc" | "desc")
8554
8538
 
8555
- matcher?: ("minimatch" | "regex")
8539
+ type?: ("alphabetical" | "natural" | "line-length")
8540
+ }]
8541
+ // ----- perfectionist/sort-exports -----
8542
+ type PerfectionistSortExports = []|[{
8556
8543
 
8557
- ignoreCase?: boolean
8544
+ partitionByComment?: (string[] | boolean | string)
8545
+
8546
+ groupKind?: ("mixed" | "values-first" | "types-first")
8547
+
8548
+ partitionByNewLine?: boolean
8558
8549
 
8559
8550
  specialCharacters?: ("remove" | "trim" | "keep")
8560
8551
 
8561
- internalPattern?: string[]
8552
+ ignoreCase?: boolean
8562
8553
 
8563
- sortSideEffects?: boolean
8554
+ locales?: (string | string[])
8564
8555
 
8565
- newlinesBetween?: ("ignore" | "always" | "never")
8556
+ order?: ("asc" | "desc")
8566
8557
 
8567
- maxLineLength?: number
8558
+ type?: ("alphabetical" | "natural" | "line-length")
8559
+ }]
8560
+ // ----- perfectionist/sort-heritage-clauses -----
8561
+ type PerfectionistSortHeritageClauses = []|[{
8562
+
8563
+ specialCharacters?: ("remove" | "trim" | "keep")
8564
+
8565
+ customGroups?: {
8566
+ [k: string]: (string | string[]) | undefined
8567
+ }
8568
+
8569
+ ignoreCase?: boolean
8570
+
8571
+ locales?: (string | string[])
8568
8572
 
8569
8573
  groups?: (string | string[])[]
8570
8574
 
8575
+ order?: ("asc" | "desc")
8576
+
8577
+ type?: ("alphabetical" | "natural" | "line-length")
8578
+ }]
8579
+ // ----- perfectionist/sort-imports -----
8580
+ type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8581
+ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8582
+
8571
8583
  customGroups?: {
8572
- type?: {
8584
+
8585
+ value?: {
8573
8586
  [k: string]: unknown | undefined
8574
8587
  }
8575
- value?: {
8588
+
8589
+ type?: {
8576
8590
  [k: string]: unknown | undefined
8577
8591
  }
8578
8592
  }
8579
8593
 
8594
+ partitionByComment?: (string[] | boolean | string)
8595
+
8596
+ internalPattern?: string[]
8597
+
8598
+ maxLineLength?: number
8599
+
8600
+ sortSideEffects?: boolean
8601
+
8580
8602
  environment?: ("node" | "bun")
8603
+
8604
+ tsconfigRootDir?: string
8605
+
8606
+ partitionByNewLine?: boolean
8607
+
8608
+ specialCharacters?: ("remove" | "trim" | "keep")
8609
+
8610
+ newlinesBetween?: ("ignore" | "always" | "never")
8611
+
8612
+ ignoreCase?: boolean
8613
+
8614
+ locales?: (string | string[])
8615
+
8616
+ groups?: (string | string[])[]
8617
+
8618
+ order?: ("asc" | "desc")
8619
+
8620
+ type?: ("alphabetical" | "natural" | "line-length")
8581
8621
  })
8582
8622
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
8583
8623
  [k: string]: unknown | undefined
@@ -8589,284 +8629,317 @@ interface _PerfectionistSortImports_IsLineLength {
8589
8629
  // ----- perfectionist/sort-interfaces -----
8590
8630
  type PerfectionistSortInterfaces = []|[{
8591
8631
 
8592
- type?: ("alphabetical" | "natural" | "line-length")
8632
+ ignorePattern?: string[]
8593
8633
 
8594
- order?: ("asc" | "desc")
8634
+ partitionByComment?: (string[] | boolean | string)
8595
8635
 
8596
- matcher?: ("minimatch" | "regex")
8636
+ groupKind?: ("mixed" | "optional-first" | "required-first")
8597
8637
 
8598
- ignoreCase?: boolean
8638
+ partitionByNewLine?: boolean
8599
8639
 
8600
8640
  specialCharacters?: ("remove" | "trim" | "keep")
8601
8641
 
8602
- ignorePattern?: string[]
8642
+ newlinesBetween?: ("ignore" | "always" | "never")
8603
8643
 
8604
- partitionByComment?: (boolean | string | string[])
8644
+ customGroups?: {
8645
+ [k: string]: (string | string[]) | undefined
8646
+ }
8605
8647
 
8606
- partitionByNewLine?: boolean
8648
+ ignoreCase?: boolean
8607
8649
 
8608
- groupKind?: ("mixed" | "optional-first" | "required-first")
8650
+ locales?: (string | string[])
8609
8651
 
8610
8652
  groups?: (string | string[])[]
8611
8653
 
8612
- customGroups?: {
8613
- [k: string]: (string | string[]) | undefined
8614
- }
8654
+ order?: ("asc" | "desc")
8655
+
8656
+ type?: ("alphabetical" | "natural" | "line-length")
8615
8657
  }]
8616
8658
  // ----- perfectionist/sort-intersection-types -----
8617
8659
  type PerfectionistSortIntersectionTypes = []|[{
8618
8660
 
8619
- type?: ("alphabetical" | "natural" | "line-length")
8661
+ partitionByComment?: (string[] | boolean | string)
8620
8662
 
8621
- order?: ("asc" | "desc")
8663
+ partitionByNewLine?: boolean
8664
+
8665
+ specialCharacters?: ("remove" | "trim" | "keep")
8622
8666
 
8623
- matcher?: ("minimatch" | "regex")
8667
+ newlinesBetween?: ("ignore" | "always" | "never")
8624
8668
 
8625
8669
  ignoreCase?: boolean
8626
8670
 
8627
- specialCharacters?: ("remove" | "trim" | "keep")
8671
+ locales?: (string | string[])
8628
8672
 
8629
8673
  groups?: (string | string[])[]
8630
8674
 
8631
- partitionByComment?: (string[] | boolean | string)
8675
+ order?: ("asc" | "desc")
8632
8676
 
8633
- partitionByNewLine?: boolean
8677
+ type?: ("alphabetical" | "natural" | "line-length")
8634
8678
  }]
8635
8679
  // ----- perfectionist/sort-jsx-props -----
8636
8680
  type PerfectionistSortJsxProps = []|[{
8637
8681
 
8638
- type?: ("alphabetical" | "natural" | "line-length")
8682
+ ignorePattern?: string[]
8639
8683
 
8640
- order?: ("asc" | "desc")
8684
+ specialCharacters?: ("remove" | "trim" | "keep")
8641
8685
 
8642
- matcher?: ("minimatch" | "regex")
8686
+ customGroups?: {
8687
+ [k: string]: (string | string[]) | undefined
8688
+ }
8643
8689
 
8644
8690
  ignoreCase?: boolean
8645
8691
 
8646
- specialCharacters?: ("remove" | "trim" | "keep")
8647
-
8648
- ignorePattern?: string[]
8692
+ locales?: (string | string[])
8649
8693
 
8650
8694
  groups?: (string | string[])[]
8651
8695
 
8652
- customGroups?: {
8653
- [k: string]: (string | string[]) | undefined
8654
- }
8696
+ order?: ("asc" | "desc")
8697
+
8698
+ type?: ("alphabetical" | "natural" | "line-length")
8655
8699
  }]
8656
8700
  // ----- perfectionist/sort-maps -----
8657
8701
  type PerfectionistSortMaps = []|[{
8658
8702
 
8659
- type?: ("alphabetical" | "natural" | "line-length")
8703
+ partitionByComment?: (string[] | boolean | string)
8660
8704
 
8661
- order?: ("asc" | "desc")
8705
+ partitionByNewLine?: boolean
8662
8706
 
8663
- matcher?: ("minimatch" | "regex")
8707
+ specialCharacters?: ("remove" | "trim" | "keep")
8664
8708
 
8665
8709
  ignoreCase?: boolean
8666
8710
 
8667
- specialCharacters?: ("remove" | "trim" | "keep")
8711
+ locales?: (string | string[])
8712
+
8713
+ order?: ("asc" | "desc")
8714
+
8715
+ type?: ("alphabetical" | "natural" | "line-length")
8716
+ }]
8717
+ // ----- perfectionist/sort-modules -----
8718
+ type PerfectionistSortModules = []|[{
8719
+
8720
+ customGroups?: ({
8721
+
8722
+ groupName?: string
8723
+
8724
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8725
+
8726
+ order?: ("desc" | "asc")
8727
+ anyOf?: {
8728
+
8729
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
8730
+
8731
+ elementValuePattern?: string
8732
+
8733
+ decoratorNamePattern?: string
8734
+
8735
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
8736
+
8737
+ elementNamePattern?: string
8738
+ }[]
8739
+ } | {
8740
+
8741
+ groupName?: string
8742
+
8743
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8744
+
8745
+ order?: ("desc" | "asc")
8746
+
8747
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
8748
+
8749
+ elementValuePattern?: string
8750
+
8751
+ decoratorNamePattern?: string
8752
+
8753
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
8754
+
8755
+ elementNamePattern?: string
8756
+ })[]
8668
8757
 
8669
8758
  partitionByComment?: (string[] | boolean | string)
8670
8759
 
8671
8760
  partitionByNewLine?: boolean
8761
+
8762
+ specialCharacters?: ("remove" | "trim" | "keep")
8763
+
8764
+ newlinesBetween?: ("ignore" | "always" | "never")
8765
+
8766
+ ignoreCase?: boolean
8767
+
8768
+ locales?: (string | string[])
8769
+
8770
+ groups?: (string | string[])[]
8771
+
8772
+ order?: ("asc" | "desc")
8773
+
8774
+ type?: ("alphabetical" | "natural" | "line-length")
8672
8775
  }]
8673
8776
  // ----- perfectionist/sort-named-exports -----
8674
8777
  type PerfectionistSortNamedExports = []|[{
8675
8778
 
8676
- type?: ("alphabetical" | "natural" | "line-length")
8677
-
8678
- order?: ("asc" | "desc")
8779
+ partitionByComment?: (string[] | boolean | string)
8679
8780
 
8680
- matcher?: ("minimatch" | "regex")
8781
+ groupKind?: ("mixed" | "values-first" | "types-first")
8681
8782
 
8682
- ignoreCase?: boolean
8783
+ partitionByNewLine?: boolean
8683
8784
 
8684
8785
  specialCharacters?: ("remove" | "trim" | "keep")
8685
8786
 
8686
- groupKind?: ("mixed" | "values-first" | "types-first")
8787
+ ignoreCase?: boolean
8687
8788
 
8688
- partitionByComment?: (string[] | boolean | string)
8789
+ locales?: (string | string[])
8689
8790
 
8690
- partitionByNewLine?: boolean
8791
+ order?: ("asc" | "desc")
8792
+
8793
+ type?: ("alphabetical" | "natural" | "line-length")
8691
8794
  }]
8692
8795
  // ----- perfectionist/sort-named-imports -----
8693
8796
  type PerfectionistSortNamedImports = []|[{
8694
8797
 
8695
- type?: ("alphabetical" | "natural" | "line-length")
8798
+ partitionByComment?: (string[] | boolean | string)
8696
8799
 
8697
- order?: ("asc" | "desc")
8800
+ groupKind?: ("mixed" | "values-first" | "types-first")
8698
8801
 
8699
- matcher?: ("minimatch" | "regex")
8802
+ ignoreAlias?: boolean
8700
8803
 
8701
- ignoreCase?: boolean
8804
+ partitionByNewLine?: boolean
8702
8805
 
8703
8806
  specialCharacters?: ("remove" | "trim" | "keep")
8704
8807
 
8705
- ignoreAlias?: boolean
8808
+ ignoreCase?: boolean
8706
8809
 
8707
- groupKind?: ("mixed" | "values-first" | "types-first")
8810
+ locales?: (string | string[])
8708
8811
 
8709
- partitionByComment?: (string[] | boolean | string)
8812
+ order?: ("asc" | "desc")
8710
8813
 
8711
- partitionByNewLine?: boolean
8814
+ type?: ("alphabetical" | "natural" | "line-length")
8712
8815
  }]
8713
8816
  // ----- perfectionist/sort-object-types -----
8714
8817
  type PerfectionistSortObjectTypes = []|[{
8715
8818
 
8716
- type?: ("alphabetical" | "natural" | "line-length")
8717
-
8718
- order?: ("asc" | "desc")
8719
-
8720
- matcher?: ("minimatch" | "regex")
8721
-
8722
- ignoreCase?: boolean
8723
-
8724
- specialCharacters?: ("remove" | "trim" | "keep")
8725
-
8726
8819
  partitionByComment?: (string[] | boolean | string)
8727
8820
 
8821
+ groupKind?: ("mixed" | "required-first" | "optional-first")
8822
+
8728
8823
  partitionByNewLine?: boolean
8729
8824
 
8730
- groupKind?: ("mixed" | "required-first" | "optional-first")
8825
+ specialCharacters?: ("remove" | "trim" | "keep")
8731
8826
 
8732
- groups?: (string | string[])[]
8827
+ newlinesBetween?: ("ignore" | "always" | "never")
8733
8828
 
8734
8829
  customGroups?: {
8735
8830
  [k: string]: (string | string[]) | undefined
8736
8831
  }
8737
- }]
8738
- // ----- perfectionist/sort-objects -----
8739
- type PerfectionistSortObjects = []|[{
8740
8832
 
8741
- type?: ("alphabetical" | "natural" | "line-length")
8833
+ ignoreCase?: boolean
8742
8834
 
8743
- order?: ("asc" | "desc")
8835
+ locales?: (string | string[])
8744
8836
 
8745
- matcher?: ("minimatch" | "regex")
8837
+ groups?: (string | string[])[]
8746
8838
 
8747
- ignoreCase?: boolean
8839
+ order?: ("asc" | "desc")
8748
8840
 
8749
- specialCharacters?: ("remove" | "trim" | "keep")
8841
+ type?: ("alphabetical" | "natural" | "line-length")
8842
+ }]
8843
+ // ----- perfectionist/sort-objects -----
8844
+ type PerfectionistSortObjects = []|[{
8845
+
8846
+ ignorePattern?: string[]
8750
8847
 
8751
8848
  partitionByComment?: (string[] | boolean | string)
8752
8849
 
8753
- partitionByNewLine?: boolean
8850
+ destructureOnly?: boolean
8754
8851
 
8755
8852
  styledComponents?: boolean
8756
8853
 
8757
- destructureOnly?: boolean
8854
+ partitionByNewLine?: boolean
8758
8855
 
8759
- ignorePattern?: string[]
8856
+ specialCharacters?: ("remove" | "trim" | "keep")
8760
8857
 
8761
- groups?: (string | string[])[]
8858
+ newlinesBetween?: ("ignore" | "always" | "never")
8762
8859
 
8763
8860
  customGroups?: {
8764
8861
  [k: string]: (string | string[]) | undefined
8765
8862
  }
8766
- }]
8767
- // ----- perfectionist/sort-sets -----
8768
- type PerfectionistSortSets = []|[{
8769
-
8770
- type?: ("alphabetical" | "natural" | "line-length")
8771
-
8772
- order?: ("asc" | "desc")
8773
-
8774
- matcher?: ("minimatch" | "regex")
8775
8863
 
8776
8864
  ignoreCase?: boolean
8777
8865
 
8778
- specialCharacters?: ("remove" | "trim" | "keep")
8866
+ locales?: (string | string[])
8779
8867
 
8780
- groupKind?: ("mixed" | "literals-first" | "spreads-first")
8868
+ groups?: (string | string[])[]
8781
8869
 
8782
- partitionByComment?: (string[] | boolean | string)
8870
+ order?: ("asc" | "desc")
8783
8871
 
8784
- partitionByNewLine?: boolean
8872
+ type?: ("alphabetical" | "natural" | "line-length")
8785
8873
  }]
8786
- // ----- perfectionist/sort-svelte-attributes -----
8787
- type PerfectionistSortSvelteAttributes = []|[{
8874
+ // ----- perfectionist/sort-sets -----
8875
+ type PerfectionistSortSets = []|[{
8788
8876
 
8789
- type?: ("alphabetical" | "natural" | "line-length")
8877
+ partitionByComment?: (string[] | boolean | string)
8790
8878
 
8791
- order?: ("asc" | "desc")
8879
+ groupKind?: ("mixed" | "literals-first" | "spreads-first")
8792
8880
 
8793
- matcher?: ("minimatch" | "regex")
8881
+ partitionByNewLine?: boolean
8882
+
8883
+ specialCharacters?: ("remove" | "trim" | "keep")
8794
8884
 
8795
8885
  ignoreCase?: boolean
8796
8886
 
8797
- specialCharacters?: ("remove" | "trim" | "keep")
8887
+ locales?: (string | string[])
8798
8888
 
8799
- groups?: (string | string[])[]
8889
+ order?: ("asc" | "desc")
8800
8890
 
8801
- customGroups?: {
8802
- [k: string]: (string | string[]) | undefined
8803
- }
8891
+ type?: ("alphabetical" | "natural" | "line-length")
8804
8892
  }]
8805
8893
  // ----- perfectionist/sort-switch-case -----
8806
8894
  type PerfectionistSortSwitchCase = []|[{
8807
8895
 
8808
- type?: ("alphabetical" | "natural" | "line-length")
8809
-
8810
- order?: ("asc" | "desc")
8896
+ specialCharacters?: ("remove" | "trim" | "keep")
8811
8897
 
8812
8898
  ignoreCase?: boolean
8813
8899
 
8814
- specialCharacters?: ("remove" | "trim" | "keep")
8900
+ locales?: (string | string[])
8901
+
8902
+ order?: ("asc" | "desc")
8903
+
8904
+ type?: ("alphabetical" | "natural" | "line-length")
8815
8905
  }]
8816
8906
  // ----- perfectionist/sort-union-types -----
8817
8907
  type PerfectionistSortUnionTypes = []|[{
8818
8908
 
8819
- type?: ("alphabetical" | "natural" | "line-length")
8909
+ partitionByComment?: (string[] | boolean | string)
8820
8910
 
8821
- order?: ("asc" | "desc")
8911
+ partitionByNewLine?: boolean
8822
8912
 
8823
- matcher?: ("minimatch" | "regex")
8913
+ specialCharacters?: ("remove" | "trim" | "keep")
8914
+
8915
+ newlinesBetween?: ("ignore" | "always" | "never")
8824
8916
 
8825
8917
  ignoreCase?: boolean
8826
8918
 
8827
- specialCharacters?: ("remove" | "trim" | "keep")
8919
+ locales?: (string | string[])
8828
8920
 
8829
8921
  groups?: (string | string[])[]
8830
8922
 
8831
- partitionByComment?: (string[] | boolean | string)
8923
+ order?: ("asc" | "desc")
8832
8924
 
8833
- partitionByNewLine?: boolean
8925
+ type?: ("alphabetical" | "natural" | "line-length")
8834
8926
  }]
8835
8927
  // ----- perfectionist/sort-variable-declarations -----
8836
8928
  type PerfectionistSortVariableDeclarations = []|[{
8837
8929
 
8838
- type?: ("alphabetical" | "natural" | "line-length")
8839
-
8840
- order?: ("asc" | "desc")
8841
-
8842
- matcher?: ("minimatch" | "regex")
8843
-
8844
- ignoreCase?: boolean
8845
-
8846
- specialCharacters?: ("remove" | "trim" | "keep")
8847
-
8848
8930
  partitionByComment?: (string[] | boolean | string)
8849
8931
 
8850
8932
  partitionByNewLine?: boolean
8851
- }]
8852
- // ----- perfectionist/sort-vue-attributes -----
8853
- type PerfectionistSortVueAttributes = []|[{
8854
-
8855
- type?: ("alphabetical" | "natural" | "line-length")
8856
-
8857
- order?: ("asc" | "desc")
8858
8933
 
8859
- matcher?: ("minimatch" | "regex")
8934
+ specialCharacters?: ("remove" | "trim" | "keep")
8860
8935
 
8861
8936
  ignoreCase?: boolean
8862
8937
 
8863
- specialCharacters?: ("remove" | "trim" | "keep")
8938
+ locales?: (string | string[])
8864
8939
 
8865
- groups?: (string | string[])[]
8940
+ order?: ("asc" | "desc")
8866
8941
 
8867
- customGroups?: {
8868
- [k: string]: (string | string[]) | undefined
8869
- }
8942
+ type?: ("alphabetical" | "natural" | "line-length")
8870
8943
  }]
8871
8944
  // ----- prefer-arrow-callback -----
8872
8945
  type PreferArrowCallback = []|[{
@@ -9823,14 +9896,14 @@ interface ReactOptions {
9823
9896
  */
9824
9897
  utilities?: ReactUtilities[];
9825
9898
  }
9826
- type TypedConfigItem = {
9899
+ type TypedConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
9827
9900
  /**
9828
9901
  * An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
9829
9902
  *
9830
9903
  * @see [Using plugins in your configuration](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
9831
9904
  */
9832
9905
  plugins?: Record<string, unknown>;
9833
- } & Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins">;
9906
+ };
9834
9907
  interface Options {
9835
9908
  /**
9836
9909
  * Are astro rules enabled?
@@ -10547,6 +10620,7 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
10547
10620
  order: "asc";
10548
10621
  type: "natural";
10549
10622
  }];
10623
+ "perfectionist/sort-modules": "off";
10550
10624
  };
10551
10625
  } | {
10552
10626
  rules: Linter.RulesRecord;
@@ -12095,6 +12169,11 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
12095
12169
  "react-refresh": typeof eslint_plugin_react_refresh;
12096
12170
  };
12097
12171
  rules: {
12172
+ "react-hooks/exhaustive-deps": "error";
12173
+ "react-hooks/rules-of-hooks": "error";
12174
+ "react-refresh/only-export-components": ["warn", {
12175
+ allowConstantExport: true;
12176
+ }];
12098
12177
  "react/boolean-prop-naming": "off";
12099
12178
  "react/button-has-type": "error";
12100
12179
  "react/checked-requires-onchange-or-readonly": "error";
@@ -12163,11 +12242,6 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
12163
12242
  "react/static-property-placement": "off";
12164
12243
  "react/style-prop-object": "error";
12165
12244
  "react/void-dom-elements-no-children": "error";
12166
- "react-hooks/exhaustive-deps": "error";
12167
- "react-hooks/rules-of-hooks": "error";
12168
- "react-refresh/only-export-components": ["warn", {
12169
- allowConstantExport: true;
12170
- }];
12171
12245
  };
12172
12246
  settings: {
12173
12247
  react: {