@lichthagel/eslint-config 1.0.2 → 1.0.3

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
@@ -904,6 +904,11 @@ interface RuleOptions {
904
904
  * @see https://typescript-eslint.io/rules/no-unsafe-return
905
905
  */
906
906
  '@typescript-eslint/no-unsafe-return'?: Linter.RuleEntry<[]>
907
+ /**
908
+ * Disallow type assertions that narrow a type
909
+ * @see https://typescript-eslint.io/rules/no-unsafe-type-assertion
910
+ */
911
+ '@typescript-eslint/no-unsafe-type-assertion'?: Linter.RuleEntry<[]>
907
912
  /**
908
913
  * Require unary negation to take a number
909
914
  * @see https://typescript-eslint.io/rules/no-unsafe-unary-minus
@@ -1061,6 +1066,11 @@ interface RuleOptions {
1061
1066
  * @see https://typescript-eslint.io/rules/promise-function-async
1062
1067
  */
1063
1068
  '@typescript-eslint/promise-function-async'?: Linter.RuleEntry<TypescriptEslintPromiseFunctionAsync>
1069
+ /**
1070
+ * Enforce that `get()` types should be assignable to their equivalent `set()` type
1071
+ * @see https://typescript-eslint.io/rules/related-getter-setter-pairs
1072
+ */
1073
+ '@typescript-eslint/related-getter-setter-pairs'?: Linter.RuleEntry<[]>
1064
1074
  /**
1065
1075
  * Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`
1066
1076
  * @see https://typescript-eslint.io/rules/require-array-sort-compare
@@ -2623,17 +2633,16 @@ interface RuleOptions {
2623
2633
  * @see https://perfectionist.dev/rules/sort-array-includes
2624
2634
  */
2625
2635
  'perfectionist/sort-array-includes'?: Linter.RuleEntry<PerfectionistSortArrayIncludes>
2626
- /**
2627
- * Enforce sorted Astro attributes.
2628
- * @see https://perfectionist.dev/rules/sort-astro-attributes
2629
- * @deprecated
2630
- */
2631
- 'perfectionist/sort-astro-attributes'?: Linter.RuleEntry<PerfectionistSortAstroAttributes>
2632
2636
  /**
2633
2637
  * Enforce sorted classes.
2634
2638
  * @see https://perfectionist.dev/rules/sort-classes
2635
2639
  */
2636
2640
  'perfectionist/sort-classes'?: Linter.RuleEntry<PerfectionistSortClasses>
2641
+ /**
2642
+ * Enforce sorted decorators.
2643
+ * @see https://perfectionist.dev/rules/sort-decorators
2644
+ */
2645
+ 'perfectionist/sort-decorators'?: Linter.RuleEntry<PerfectionistSortDecorators>
2637
2646
  /**
2638
2647
  * Enforce sorted TypeScript enums.
2639
2648
  * @see https://perfectionist.dev/rules/sort-enums
@@ -2644,6 +2653,11 @@ interface RuleOptions {
2644
2653
  * @see https://perfectionist.dev/rules/sort-exports
2645
2654
  */
2646
2655
  'perfectionist/sort-exports'?: Linter.RuleEntry<PerfectionistSortExports>
2656
+ /**
2657
+ * Enforce sorted heritage clauses.
2658
+ * @see https://perfectionist.dev/rules/sort-heritage-clauses
2659
+ */
2660
+ 'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>
2647
2661
  /**
2648
2662
  * Enforce sorted imports.
2649
2663
  * @see https://perfectionist.dev/rules/sort-imports
@@ -2669,6 +2683,11 @@ interface RuleOptions {
2669
2683
  * @see https://perfectionist.dev/rules/sort-maps
2670
2684
  */
2671
2685
  'perfectionist/sort-maps'?: Linter.RuleEntry<PerfectionistSortMaps>
2686
+ /**
2687
+ * Enforce sorted modules.
2688
+ * @see https://perfectionist.dev/rules/sort-modules
2689
+ */
2690
+ 'perfectionist/sort-modules'?: Linter.RuleEntry<PerfectionistSortModules>
2672
2691
  /**
2673
2692
  * Enforce sorted named exports.
2674
2693
  * @see https://perfectionist.dev/rules/sort-named-exports
@@ -2694,12 +2713,6 @@ interface RuleOptions {
2694
2713
  * @see https://perfectionist.dev/rules/sort-sets
2695
2714
  */
2696
2715
  'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>
2697
- /**
2698
- * Enforce sorted Svelte attributes.
2699
- * @see https://perfectionist.dev/rules/sort-svelte-attributes
2700
- * @deprecated
2701
- */
2702
- 'perfectionist/sort-svelte-attributes'?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>
2703
2716
  /**
2704
2717
  * Enforce sorted switch cases.
2705
2718
  * @see https://perfectionist.dev/rules/sort-switch-case
@@ -2715,12 +2728,6 @@ interface RuleOptions {
2715
2728
  * @see https://perfectionist.dev/rules/sort-variable-declarations
2716
2729
  */
2717
2730
  'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>
2718
- /**
2719
- * Enforce sorted Vue attributes.
2720
- * @see https://perfectionist.dev/rules/sort-vue-attributes
2721
- * @deprecated
2722
- */
2723
- 'perfectionist/sort-vue-attributes'?: Linter.RuleEntry<PerfectionistSortVueAttributes>
2724
2731
  /**
2725
2732
  * Require using arrow functions for callbacks
2726
2733
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
@@ -3406,702 +3413,702 @@ interface RuleOptions {
3406
3413
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
3407
3414
  /**
3408
3415
  * Improve regexes by making them shorter, consistent, and safer.
3409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
3416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
3410
3417
  */
3411
3418
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
3412
3419
  /**
3413
3420
  * Enforce a specific parameter name in catch clauses.
3414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
3421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
3415
3422
  */
3416
3423
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
3417
3424
  /**
3418
3425
  * Use destructured variables over properties.
3419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
3426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
3420
3427
  */
3421
3428
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
3422
3429
  /**
3423
3430
  * Prefer consistent types when spreading a ternary in an array literal.
3424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
3431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
3425
3432
  */
3426
3433
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
3427
3434
  /**
3428
3435
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
3429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
3436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
3430
3437
  */
3431
3438
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
3432
3439
  /**
3433
3440
  * Move function definitions to the highest possible scope.
3434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
3441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
3435
3442
  */
3436
3443
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
3437
3444
  /**
3438
3445
  * Enforce correct `Error` subclassing.
3439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
3446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
3440
3447
  */
3441
3448
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
3442
3449
  /**
3443
3450
  * Enforce no spaces between braces.
3444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
3451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
3445
3452
  */
3446
3453
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
3447
3454
  /**
3448
3455
  * Enforce passing a `message` value when creating a built-in error.
3449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
3456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
3450
3457
  */
3451
3458
  'unicorn/error-message'?: Linter.RuleEntry<[]>
3452
3459
  /**
3453
3460
  * Require escape sequences to use uppercase values.
3454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
3461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
3455
3462
  */
3456
3463
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
3457
3464
  /**
3458
3465
  * Add expiration conditions to TODO comments.
3459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
3466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
3460
3467
  */
3461
3468
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
3462
3469
  /**
3463
3470
  * Enforce explicitly comparing the `length` or `size` property of a value.
3464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
3471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
3465
3472
  */
3466
3473
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
3467
3474
  /**
3468
3475
  * Enforce a case style for filenames.
3469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
3476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
3470
3477
  */
3471
3478
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
3472
3479
  /**
3473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
3480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
3474
3481
  * @deprecated
3475
3482
  */
3476
3483
  'unicorn/import-index'?: Linter.RuleEntry<[]>
3477
3484
  /**
3478
3485
  * Enforce specific import styles per module.
3479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
3486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
3480
3487
  */
3481
3488
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
3482
3489
  /**
3483
3490
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
3484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
3491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
3485
3492
  */
3486
3493
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
3487
3494
  /**
3488
3495
  * Enforce specifying rules to disable in `eslint-disable` comments.
3489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
3496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
3490
3497
  */
3491
3498
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
3492
3499
  /**
3493
3500
  * Disallow anonymous functions and classes as the default export.
3494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
3501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
3495
3502
  */
3496
3503
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
3497
3504
  /**
3498
3505
  * Prevent passing a function reference directly to iterator methods.
3499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
3506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
3500
3507
  */
3501
3508
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
3502
3509
  /**
3503
3510
  * Prefer `for…of` over the `forEach` method.
3504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
3511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
3505
3512
  */
3506
3513
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
3507
3514
  /**
3508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
3515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
3509
3516
  * @deprecated
3510
3517
  */
3511
3518
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
3512
3519
  /**
3513
3520
  * Disallow using the `this` argument in array methods.
3514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
3521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
3515
3522
  */
3516
3523
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
3517
3524
  /**
3518
3525
  * Enforce combining multiple `Array#push()` into one call.
3519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
3526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
3520
3527
  */
3521
3528
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
3522
3529
  /**
3523
3530
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
3524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
3531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
3525
3532
  */
3526
3533
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
3527
3534
  /**
3528
3535
  * Disallow member access from await expression.
3529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
3536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
3530
3537
  */
3531
3538
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
3532
3539
  /**
3533
3540
  * Disallow using `await` in `Promise` method parameters.
3534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
3541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
3535
3542
  */
3536
3543
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
3537
3544
  /**
3538
3545
  * Do not use leading/trailing space between `console.log` parameters.
3539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
3546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
3540
3547
  */
3541
3548
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
3542
3549
  /**
3543
3550
  * Do not use `document.cookie` directly.
3544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
3551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
3545
3552
  */
3546
3553
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
3547
3554
  /**
3548
3555
  * Disallow empty files.
3549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
3556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
3550
3557
  */
3551
3558
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
3552
3559
  /**
3553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
3560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
3554
3561
  * @deprecated
3555
3562
  */
3556
3563
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
3557
3564
  /**
3558
3565
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
3559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
3566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
3560
3567
  */
3561
3568
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
3562
3569
  /**
3563
3570
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
3564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
3571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
3565
3572
  */
3566
3573
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
3567
3574
  /**
3568
3575
  * Require `Array.isArray()` instead of `instanceof Array`.
3569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
3576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
3570
3577
  */
3571
3578
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
3572
3579
  /**
3573
3580
  * Disallow invalid options in `fetch()` and `new Request()`.
3574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
3581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
3575
3582
  */
3576
3583
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
3577
3584
  /**
3578
3585
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
3579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
3586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
3580
3587
  */
3581
3588
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
3582
3589
  /**
3583
3590
  * Disallow identifiers starting with `new` or `class`.
3584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
3591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
3585
3592
  */
3586
3593
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
3587
3594
  /**
3588
3595
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
3589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
3596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
3590
3597
  */
3591
3598
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
3592
3599
  /**
3593
3600
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
3594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
3601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
3595
3602
  */
3596
3603
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
3597
3604
  /**
3598
3605
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
3599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
3606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
3600
3607
  */
3601
3608
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
3602
3609
  /**
3603
3610
  * Disallow negated conditions.
3604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
3611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
3605
3612
  */
3606
3613
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
3607
3614
  /**
3608
3615
  * Disallow negated expression in equality check.
3609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
3616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
3610
3617
  */
3611
3618
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
3612
3619
  /**
3613
3620
  * Disallow nested ternary expressions.
3614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
3621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
3615
3622
  */
3616
3623
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
3617
3624
  /**
3618
3625
  * Disallow `new Array()`.
3619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
3626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
3620
3627
  */
3621
3628
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
3622
3629
  /**
3623
3630
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
3624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
3631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
3625
3632
  */
3626
3633
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
3627
3634
  /**
3628
3635
  * Disallow the use of the `null` literal.
3629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
3636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
3630
3637
  */
3631
3638
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
3632
3639
  /**
3633
3640
  * Disallow the use of objects as default parameters.
3634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
3641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
3635
3642
  */
3636
3643
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
3637
3644
  /**
3638
3645
  * Disallow `process.exit()`.
3639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
3646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
3640
3647
  */
3641
3648
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
3642
3649
  /**
3643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
3650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
3644
3651
  * @deprecated
3645
3652
  */
3646
3653
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
3647
3654
  /**
3648
3655
  * Disallow passing single-element arrays to `Promise` methods.
3649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
3656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
3650
3657
  */
3651
3658
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
3652
3659
  /**
3653
3660
  * Disallow classes that only have static members.
3654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
3661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
3655
3662
  */
3656
3663
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
3657
3664
  /**
3658
3665
  * Disallow `then` property.
3659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
3666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
3660
3667
  */
3661
3668
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
3662
3669
  /**
3663
3670
  * Disallow assigning `this` to a variable.
3664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
3671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
3665
3672
  */
3666
3673
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
3667
3674
  /**
3668
3675
  * Disallow comparing `undefined` using `typeof`.
3669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
3676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
3670
3677
  */
3671
3678
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
3672
3679
  /**
3673
3680
  * Disallow awaiting non-promise values.
3674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
3681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
3675
3682
  */
3676
3683
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
3677
3684
  /**
3678
3685
  * Enforce the use of built-in methods instead of unnecessary polyfills.
3679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
3686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
3680
3687
  */
3681
3688
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
3682
3689
  /**
3683
3690
  * Disallow unreadable array destructuring.
3684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
3691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
3685
3692
  */
3686
3693
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
3687
3694
  /**
3688
3695
  * Disallow unreadable IIFEs.
3689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
3696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
3690
3697
  */
3691
3698
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
3692
3699
  /**
3693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
3700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
3694
3701
  * @deprecated
3695
3702
  */
3696
3703
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
3697
3704
  /**
3698
3705
  * Disallow unused object properties.
3699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
3706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
3700
3707
  */
3701
3708
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
3702
3709
  /**
3703
3710
  * Disallow useless fallback when spreading in object literals.
3704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
3711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
3705
3712
  */
3706
3713
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
3707
3714
  /**
3708
3715
  * Disallow useless array length check.
3709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
3716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
3710
3717
  */
3711
3718
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
3712
3719
  /**
3713
3720
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
3714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
3721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
3715
3722
  */
3716
3723
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
3717
3724
  /**
3718
3725
  * Disallow unnecessary spread.
3719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
3726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
3720
3727
  */
3721
3728
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
3722
3729
  /**
3723
3730
  * Disallow useless case in switch statements.
3724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
3731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
3725
3732
  */
3726
3733
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
3727
3734
  /**
3728
3735
  * Disallow useless `undefined`.
3729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
3736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
3730
3737
  */
3731
3738
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
3732
3739
  /**
3733
3740
  * Disallow number literals with zero fractions or dangling dots.
3734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
3741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
3735
3742
  */
3736
3743
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
3737
3744
  /**
3738
3745
  * Enforce proper case for numeric literals.
3739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
3746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
3740
3747
  */
3741
3748
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
3742
3749
  /**
3743
3750
  * Enforce the style of numeric separators by correctly grouping digits.
3744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
3751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
3745
3752
  */
3746
3753
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
3747
3754
  /**
3748
3755
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
3749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
3756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
3750
3757
  */
3751
3758
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
3752
3759
  /**
3753
3760
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
3754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
3761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
3755
3762
  */
3756
3763
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
3757
3764
  /**
3758
3765
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
3759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
3766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
3760
3767
  */
3761
3768
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
3762
3769
  /**
3763
3770
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
3764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
3771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
3765
3772
  */
3766
3773
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
3767
3774
  /**
3768
3775
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
3769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
3776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
3770
3777
  */
3771
3778
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
3772
3779
  /**
3773
3780
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
3774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
3781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
3775
3782
  */
3776
3783
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
3777
3784
  /**
3778
3785
  * Prefer `.at()` method for index access and `String#charAt()`.
3779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
3786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
3780
3787
  */
3781
3788
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
3782
3789
  /**
3783
3790
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
3784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
3791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
3785
3792
  */
3786
3793
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
3787
3794
  /**
3788
3795
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
3789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
3796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
3790
3797
  */
3791
3798
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
3792
3799
  /**
3793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
3800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
3794
3801
  * @deprecated
3795
3802
  */
3796
3803
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
3797
3804
  /**
3798
3805
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
3799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
3806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
3800
3807
  */
3801
3808
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
3802
3809
  /**
3803
3810
  * Prefer default parameters over reassignment.
3804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
3811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
3805
3812
  */
3806
3813
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
3807
3814
  /**
3808
3815
  * Prefer `Node#append()` over `Node#appendChild()`.
3809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
3816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
3810
3817
  */
3811
3818
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
3812
3819
  /**
3813
3820
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
3814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
3821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
3815
3822
  */
3816
3823
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
3817
3824
  /**
3818
3825
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
3819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
3826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
3820
3827
  */
3821
3828
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
3822
3829
  /**
3823
3830
  * Prefer `.textContent` over `.innerText`.
3824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
3831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
3825
3832
  */
3826
3833
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
3827
3834
  /**
3828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
3835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
3829
3836
  * @deprecated
3830
3837
  */
3831
3838
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
3832
3839
  /**
3833
3840
  * Prefer `EventTarget` over `EventEmitter`.
3834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
3841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
3835
3842
  */
3836
3843
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
3837
3844
  /**
3838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
3845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
3839
3846
  * @deprecated
3840
3847
  */
3841
3848
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
3842
3849
  /**
3843
3850
  * Prefer `export…from` when re-exporting.
3844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
3851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
3845
3852
  */
3846
3853
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
3847
3854
  /**
3848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
3855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
3849
3856
  * @deprecated
3850
3857
  */
3851
3858
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
3852
3859
  /**
3853
3860
  * Prefer `globalThis` over `window`, `self`, and `global`.
3854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
3861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
3855
3862
  */
3856
3863
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
3857
3864
  /**
3858
3865
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
3859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
3866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
3860
3867
  */
3861
3868
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
3862
3869
  /**
3863
3870
  * Prefer reading a JSON file as a buffer.
3864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
3871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
3865
3872
  */
3866
3873
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
3867
3874
  /**
3868
3875
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
3869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
3876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
3870
3877
  */
3871
3878
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
3872
3879
  /**
3873
3880
  * Prefer using a logical operator over a ternary.
3874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
3881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
3875
3882
  */
3876
3883
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
3877
3884
  /**
3878
3885
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
3879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
3886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
3880
3887
  */
3881
3888
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
3882
3889
  /**
3883
3890
  * Enforce the use of `Math.trunc` instead of bitwise operators.
3884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
3891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
3885
3892
  */
3886
3893
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
3887
3894
  /**
3888
3895
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
3889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
3896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
3890
3897
  */
3891
3898
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
3892
3899
  /**
3893
3900
  * Prefer modern `Math` APIs over legacy patterns.
3894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
3901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
3895
3902
  */
3896
3903
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
3897
3904
  /**
3898
3905
  * Prefer JavaScript modules (ESM) over CommonJS.
3899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
3906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
3900
3907
  */
3901
3908
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
3902
3909
  /**
3903
3910
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
3904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
3911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
3905
3912
  */
3906
3913
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
3907
3914
  /**
3908
3915
  * Prefer negative index over `.length - index` when possible.
3909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
3916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
3910
3917
  */
3911
3918
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
3912
3919
  /**
3913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
3920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
3914
3921
  * @deprecated
3915
3922
  */
3916
3923
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
3917
3924
  /**
3918
3925
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
3919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
3926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
3920
3927
  */
3921
3928
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
3922
3929
  /**
3923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
3930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
3924
3931
  * @deprecated
3925
3932
  */
3926
3933
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
3927
3934
  /**
3928
3935
  * Prefer `Number` static properties over global ones.
3929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
3936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
3930
3937
  */
3931
3938
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
3932
3939
  /**
3933
3940
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
3934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
3941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
3935
3942
  */
3936
3943
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
3937
3944
  /**
3938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
3945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
3939
3946
  * @deprecated
3940
3947
  */
3941
3948
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
3942
3949
  /**
3943
3950
  * Prefer omitting the `catch` binding parameter.
3944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
3951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
3945
3952
  */
3946
3953
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
3947
3954
  /**
3948
3955
  * Prefer borrowing methods from the prototype instead of the instance.
3949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
3956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
3950
3957
  */
3951
3958
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
3952
3959
  /**
3953
3960
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
3954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
3961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
3955
3962
  */
3956
3963
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
3957
3964
  /**
3958
3965
  * Prefer `Reflect.apply()` over `Function#apply()`.
3959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
3966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
3960
3967
  */
3961
3968
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
3962
3969
  /**
3963
3970
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
3964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
3971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
3965
3972
  */
3966
3973
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
3967
3974
  /**
3968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
3975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
3969
3976
  * @deprecated
3970
3977
  */
3971
3978
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
3972
3979
  /**
3973
3980
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
3974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
3981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
3975
3982
  */
3976
3983
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
3977
3984
  /**
3978
3985
  * Prefer using `Set#size` instead of `Array#length`.
3979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
3986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
3980
3987
  */
3981
3988
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
3982
3989
  /**
3983
3990
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
3984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
3991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
3985
3992
  */
3986
3993
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
3987
3994
  /**
3988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
3995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
3989
3996
  * @deprecated
3990
3997
  */
3991
3998
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
3992
3999
  /**
3993
4000
  * Prefer using the `String.raw` tag to avoid escaping `\`.
3994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
4001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
3995
4002
  */
3996
4003
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
3997
4004
  /**
3998
4005
  * Prefer `String#replaceAll()` over regex searches with the global flag.
3999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
4006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
4000
4007
  */
4001
4008
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
4002
4009
  /**
4003
4010
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
4011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
4005
4012
  */
4006
4013
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
4007
4014
  /**
4008
4015
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
4016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
4010
4017
  */
4011
4018
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
4012
4019
  /**
4013
4020
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
4021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
4015
4022
  */
4016
4023
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
4017
4024
  /**
4018
4025
  * Prefer using `structuredClone` to create a deep clone.
4019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
4026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
4020
4027
  */
4021
4028
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
4022
4029
  /**
4023
4030
  * Prefer `switch` over multiple `else-if`.
4024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
4031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
4025
4032
  */
4026
4033
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
4027
4034
  /**
4028
4035
  * Prefer ternary expressions over simple `if-else` statements.
4029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
4036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
4030
4037
  */
4031
4038
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
4032
4039
  /**
4033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
4040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
4034
4041
  * @deprecated
4035
4042
  */
4036
4043
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
4037
4044
  /**
4038
4045
  * Prefer top-level await over top-level promises and async function calls.
4039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
4046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
4040
4047
  */
4041
4048
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
4042
4049
  /**
4043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
4050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
4044
4051
  * @deprecated
4045
4052
  */
4046
4053
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
4047
4054
  /**
4048
4055
  * Enforce throwing `TypeError` in type checking conditions.
4049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
4056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
4050
4057
  */
4051
4058
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
4052
4059
  /**
4053
4060
  * Prevent abbreviations.
4054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
4061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
4055
4062
  */
4056
4063
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
4057
4064
  /**
4058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
4065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
4059
4066
  * @deprecated
4060
4067
  */
4061
4068
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
4062
4069
  /**
4063
4070
  * Enforce consistent relative URL style.
4064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
4071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
4065
4072
  */
4066
4073
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
4067
4074
  /**
4068
4075
  * Enforce using the separator argument with `Array#join()`.
4069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
4076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
4070
4077
  */
4071
4078
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
4072
4079
  /**
4073
4080
  * Enforce using the digits argument with `Number#toFixed()`.
4074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
4075
4082
  */
4076
4083
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
4077
4084
  /**
4078
4085
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
4086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
4080
4087
  */
4081
4088
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
4082
4089
  /**
4083
4090
  * Enforce better string content.
4084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
4091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
4085
4092
  */
4086
4093
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
4087
4094
  /**
4088
4095
  * Enforce consistent brace style for `case` clauses.
4089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
4096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
4090
4097
  */
4091
4098
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
4092
4099
  /**
4093
4100
  * Fix whitespace-insensitive template indentation.
4094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
4101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
4095
4102
  */
4096
4103
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
4097
4104
  /**
4098
4105
  * Enforce consistent case for text encoding identifiers.
4099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
4106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
4100
4107
  */
4101
4108
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
4102
4109
  /**
4103
4110
  * Require `new` when creating an error.
4104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
4111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
4105
4112
  */
4106
4113
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
4107
4114
  /**
@@ -4188,6 +4195,8 @@ type StylisticCommaDangle = []|[(_StylisticCommaDangleValue | {
4188
4195
  imports?: _StylisticCommaDangleValueWithIgnore
4189
4196
  exports?: _StylisticCommaDangleValueWithIgnore
4190
4197
  functions?: _StylisticCommaDangleValueWithIgnore
4198
+ importAttributes?: _StylisticCommaDangleValueWithIgnore
4199
+ dynamicImports?: _StylisticCommaDangleValueWithIgnore
4191
4200
  enums?: _StylisticCommaDangleValueWithIgnore
4192
4201
  generics?: _StylisticCommaDangleValueWithIgnore
4193
4202
  tuples?: _StylisticCommaDangleValueWithIgnore
@@ -4337,12 +4346,20 @@ type StylisticEolLast = []|[("always" | "never" | "unix" | "windows")]
4337
4346
  // ----- @stylistic/func-call-spacing -----
4338
4347
  type StylisticFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
4339
4348
  allowNewlines?: boolean
4349
+ optionalChain?: {
4350
+ before?: boolean
4351
+ after?: boolean
4352
+ }
4340
4353
  }])
4341
4354
  // ----- @stylistic/function-call-argument-newline -----
4342
4355
  type StylisticFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
4343
4356
  // ----- @stylistic/function-call-spacing -----
4344
4357
  type StylisticFunctionCallSpacing = ([]|["never"] | []|["always"]|["always", {
4345
4358
  allowNewlines?: boolean
4359
+ optionalChain?: {
4360
+ before?: boolean
4361
+ after?: boolean
4362
+ }
4346
4363
  }])
4347
4364
  // ----- @stylistic/function-paren-newline -----
4348
4365
  type StylisticFunctionParenNewline = []|[(("always" | "never" | "consistent" | "multiline" | "multiline-arguments") | {
@@ -7919,61 +7936,26 @@ type PaddingLineBetweenStatements = {
7919
7936
  // ----- perfectionist/sort-array-includes -----
7920
7937
  type PerfectionistSortArrayIncludes = []|[{
7921
7938
 
7922
- type?: ("alphabetical" | "natural" | "line-length")
7923
-
7924
- order?: ("asc" | "desc")
7925
-
7926
- matcher?: ("minimatch" | "regex")
7927
-
7928
- ignoreCase?: boolean
7929
-
7930
- specialCharacters?: ("remove" | "trim" | "keep")
7939
+ partitionByComment?: (string[] | boolean | string)
7931
7940
 
7932
7941
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
7933
7942
 
7934
- partitionByComment?: (string[] | boolean | string)
7935
-
7936
7943
  partitionByNewLine?: boolean
7937
- }]
7938
- // ----- perfectionist/sort-astro-attributes -----
7939
- type PerfectionistSortAstroAttributes = []|[{
7940
-
7941
- type?: ("alphabetical" | "natural" | "line-length")
7942
7944
 
7943
- order?: ("asc" | "desc")
7944
-
7945
- matcher?: ("minimatch" | "regex")
7945
+ specialCharacters?: ("remove" | "trim" | "keep")
7946
7946
 
7947
7947
  ignoreCase?: boolean
7948
7948
 
7949
- specialCharacters?: ("remove" | "trim" | "keep")
7949
+ locales?: (string | string[])
7950
7950
 
7951
- groups?: (string | string[])[]
7951
+ order?: ("asc" | "desc")
7952
7952
 
7953
- customGroups?: {
7954
- [k: string]: (string | string[]) | undefined
7955
- }
7953
+ type?: ("alphabetical" | "natural" | "line-length")
7956
7954
  }]
7957
7955
  // ----- perfectionist/sort-classes -----
7958
7956
  type PerfectionistSortClasses = []|[{
7959
7957
 
7960
- type?: ("alphabetical" | "natural" | "line-length")
7961
-
7962
- order?: ("asc" | "desc")
7963
-
7964
- matcher?: ("minimatch" | "regex")
7965
-
7966
- ignoreCase?: boolean
7967
-
7968
- specialCharacters?: ("remove" | "trim" | "keep")
7969
-
7970
- partitionByComment?: (string[] | boolean | string)
7971
-
7972
- groups?: (string | string[])[]
7973
-
7974
7958
  customGroups?: ({
7975
- [k: string]: (string | string[]) | undefined
7976
- } | ({
7977
7959
 
7978
7960
  groupName?: string
7979
7961
 
@@ -7982,15 +7964,15 @@ type PerfectionistSortClasses = []|[{
7982
7964
  order?: ("desc" | "asc")
7983
7965
  anyOf?: {
7984
7966
 
7985
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
7986
-
7987
- modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
7988
-
7989
- elementNamePattern?: string
7967
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
7990
7968
 
7991
7969
  elementValuePattern?: string
7992
7970
 
7993
7971
  decoratorNamePattern?: string
7972
+
7973
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
7974
+
7975
+ elementNamePattern?: string
7994
7976
  }[]
7995
7977
  } | {
7996
7978
 
@@ -8000,91 +7982,169 @@ type PerfectionistSortClasses = []|[{
8000
7982
 
8001
7983
  order?: ("desc" | "asc")
8002
7984
 
8003
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
8004
-
8005
- modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8006
-
8007
- elementNamePattern?: string
7985
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
8008
7986
 
8009
7987
  elementValuePattern?: string
8010
7988
 
8011
7989
  decoratorNamePattern?: string
8012
- })[])
8013
- }]
8014
- // ----- perfectionist/sort-enums -----
8015
- type PerfectionistSortEnums = []|[{
7990
+
7991
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
7992
+
7993
+ elementNamePattern?: string
7994
+ })[]
8016
7995
 
8017
- type?: ("alphabetical" | "natural" | "line-length")
7996
+ ignoreCallbackDependenciesPatterns?: string[]
8018
7997
 
8019
- order?: ("asc" | "desc")
7998
+ partitionByComment?: (string[] | boolean | string)
7999
+
8000
+ partitionByNewLine?: boolean
8020
8001
 
8021
- matcher?: ("minimatch" | "regex")
8002
+ specialCharacters?: ("remove" | "trim" | "keep")
8003
+
8004
+ newlinesBetween?: ("ignore" | "always" | "never")
8022
8005
 
8023
8006
  ignoreCase?: boolean
8024
8007
 
8025
- specialCharacters?: ("remove" | "trim" | "keep")
8008
+ locales?: (string | string[])
8026
8009
 
8027
- sortByValue?: boolean
8010
+ groups?: (string | string[])[]
8028
8011
 
8029
- forceNumericSort?: boolean
8012
+ order?: ("asc" | "desc")
8013
+
8014
+ type?: ("alphabetical" | "natural" | "line-length")
8015
+ }]
8016
+ // ----- perfectionist/sort-decorators -----
8017
+ type PerfectionistSortDecorators = []|[{
8030
8018
 
8031
8019
  partitionByComment?: (string[] | boolean | string)
8032
8020
 
8033
- partitionByNewLine?: boolean
8034
- }]
8035
- // ----- perfectionist/sort-exports -----
8036
- type PerfectionistSortExports = []|[{
8021
+ sortOnParameters?: boolean
8037
8022
 
8038
- type?: ("alphabetical" | "natural" | "line-length")
8023
+ sortOnProperties?: boolean
8039
8024
 
8040
- order?: ("asc" | "desc")
8025
+ sortOnAccessors?: boolean
8041
8026
 
8042
- matcher?: ("minimatch" | "regex")
8027
+ sortOnMethods?: boolean
8043
8028
 
8044
- ignoreCase?: boolean
8029
+ sortOnClasses?: boolean
8045
8030
 
8046
8031
  specialCharacters?: ("remove" | "trim" | "keep")
8047
8032
 
8033
+ customGroups?: {
8034
+ [k: string]: (string | string[]) | undefined
8035
+ }
8036
+
8037
+ ignoreCase?: boolean
8038
+
8039
+ locales?: (string | string[])
8040
+
8041
+ groups?: (string | string[])[]
8042
+
8043
+ order?: ("asc" | "desc")
8044
+
8045
+ type?: ("alphabetical" | "natural" | "line-length")
8046
+ }]
8047
+ // ----- perfectionist/sort-enums -----
8048
+ type PerfectionistSortEnums = []|[{
8049
+
8048
8050
  partitionByComment?: (string[] | boolean | string)
8049
8051
 
8052
+ forceNumericSort?: boolean
8053
+
8054
+ sortByValue?: boolean
8055
+
8050
8056
  partitionByNewLine?: boolean
8051
8057
 
8052
- groupKind?: ("mixed" | "values-first" | "types-first")
8053
- }]
8054
- // ----- perfectionist/sort-imports -----
8055
- type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8056
- type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8058
+ specialCharacters?: ("remove" | "trim" | "keep")
8057
8059
 
8058
- type?: ("alphabetical" | "natural" | "line-length")
8060
+ ignoreCase?: boolean
8061
+
8062
+ locales?: (string | string[])
8059
8063
 
8060
8064
  order?: ("asc" | "desc")
8061
8065
 
8062
- matcher?: ("minimatch" | "regex")
8066
+ type?: ("alphabetical" | "natural" | "line-length")
8067
+ }]
8068
+ // ----- perfectionist/sort-exports -----
8069
+ type PerfectionistSortExports = []|[{
8063
8070
 
8064
- ignoreCase?: boolean
8071
+ partitionByComment?: (string[] | boolean | string)
8072
+
8073
+ groupKind?: ("mixed" | "values-first" | "types-first")
8074
+
8075
+ partitionByNewLine?: boolean
8065
8076
 
8066
8077
  specialCharacters?: ("remove" | "trim" | "keep")
8067
8078
 
8068
- internalPattern?: string[]
8079
+ ignoreCase?: boolean
8069
8080
 
8070
- sortSideEffects?: boolean
8081
+ locales?: (string | string[])
8071
8082
 
8072
- newlinesBetween?: ("ignore" | "always" | "never")
8083
+ order?: ("asc" | "desc")
8073
8084
 
8074
- maxLineLength?: number
8085
+ type?: ("alphabetical" | "natural" | "line-length")
8086
+ }]
8087
+ // ----- perfectionist/sort-heritage-clauses -----
8088
+ type PerfectionistSortHeritageClauses = []|[{
8089
+
8090
+ specialCharacters?: ("remove" | "trim" | "keep")
8091
+
8092
+ customGroups?: {
8093
+ [k: string]: (string | string[]) | undefined
8094
+ }
8095
+
8096
+ ignoreCase?: boolean
8097
+
8098
+ locales?: (string | string[])
8075
8099
 
8076
8100
  groups?: (string | string[])[]
8077
8101
 
8102
+ order?: ("asc" | "desc")
8103
+
8104
+ type?: ("alphabetical" | "natural" | "line-length")
8105
+ }]
8106
+ // ----- perfectionist/sort-imports -----
8107
+ type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8108
+ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8109
+
8078
8110
  customGroups?: {
8079
- type?: {
8111
+
8112
+ value?: {
8080
8113
  [k: string]: unknown | undefined
8081
8114
  }
8082
- value?: {
8115
+
8116
+ type?: {
8083
8117
  [k: string]: unknown | undefined
8084
8118
  }
8085
8119
  }
8086
8120
 
8121
+ partitionByComment?: (string[] | boolean | string)
8122
+
8123
+ internalPattern?: string[]
8124
+
8125
+ maxLineLength?: number
8126
+
8127
+ sortSideEffects?: boolean
8128
+
8087
8129
  environment?: ("node" | "bun")
8130
+
8131
+ tsconfigRootDir?: string
8132
+
8133
+ partitionByNewLine?: boolean
8134
+
8135
+ specialCharacters?: ("remove" | "trim" | "keep")
8136
+
8137
+ newlinesBetween?: ("ignore" | "always" | "never")
8138
+
8139
+ ignoreCase?: boolean
8140
+
8141
+ locales?: (string | string[])
8142
+
8143
+ groups?: (string | string[])[]
8144
+
8145
+ order?: ("asc" | "desc")
8146
+
8147
+ type?: ("alphabetical" | "natural" | "line-length")
8088
8148
  })
8089
8149
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
8090
8150
  [k: string]: unknown | undefined
@@ -8096,284 +8156,317 @@ interface _PerfectionistSortImports_IsLineLength {
8096
8156
  // ----- perfectionist/sort-interfaces -----
8097
8157
  type PerfectionistSortInterfaces = []|[{
8098
8158
 
8099
- type?: ("alphabetical" | "natural" | "line-length")
8159
+ ignorePattern?: string[]
8100
8160
 
8101
- order?: ("asc" | "desc")
8161
+ partitionByComment?: (string[] | boolean | string)
8102
8162
 
8103
- matcher?: ("minimatch" | "regex")
8163
+ groupKind?: ("mixed" | "optional-first" | "required-first")
8104
8164
 
8105
- ignoreCase?: boolean
8165
+ partitionByNewLine?: boolean
8106
8166
 
8107
8167
  specialCharacters?: ("remove" | "trim" | "keep")
8108
8168
 
8109
- ignorePattern?: string[]
8169
+ newlinesBetween?: ("ignore" | "always" | "never")
8110
8170
 
8111
- partitionByComment?: (boolean | string | string[])
8171
+ customGroups?: {
8172
+ [k: string]: (string | string[]) | undefined
8173
+ }
8112
8174
 
8113
- partitionByNewLine?: boolean
8175
+ ignoreCase?: boolean
8114
8176
 
8115
- groupKind?: ("mixed" | "optional-first" | "required-first")
8177
+ locales?: (string | string[])
8116
8178
 
8117
8179
  groups?: (string | string[])[]
8118
8180
 
8119
- customGroups?: {
8120
- [k: string]: (string | string[]) | undefined
8121
- }
8181
+ order?: ("asc" | "desc")
8182
+
8183
+ type?: ("alphabetical" | "natural" | "line-length")
8122
8184
  }]
8123
8185
  // ----- perfectionist/sort-intersection-types -----
8124
8186
  type PerfectionistSortIntersectionTypes = []|[{
8125
8187
 
8126
- type?: ("alphabetical" | "natural" | "line-length")
8188
+ partitionByComment?: (string[] | boolean | string)
8127
8189
 
8128
- order?: ("asc" | "desc")
8190
+ partitionByNewLine?: boolean
8129
8191
 
8130
- matcher?: ("minimatch" | "regex")
8192
+ specialCharacters?: ("remove" | "trim" | "keep")
8193
+
8194
+ newlinesBetween?: ("ignore" | "always" | "never")
8131
8195
 
8132
8196
  ignoreCase?: boolean
8133
8197
 
8134
- specialCharacters?: ("remove" | "trim" | "keep")
8198
+ locales?: (string | string[])
8135
8199
 
8136
8200
  groups?: (string | string[])[]
8137
8201
 
8138
- partitionByComment?: (string[] | boolean | string)
8202
+ order?: ("asc" | "desc")
8139
8203
 
8140
- partitionByNewLine?: boolean
8204
+ type?: ("alphabetical" | "natural" | "line-length")
8141
8205
  }]
8142
8206
  // ----- perfectionist/sort-jsx-props -----
8143
8207
  type PerfectionistSortJsxProps = []|[{
8144
8208
 
8145
- type?: ("alphabetical" | "natural" | "line-length")
8209
+ ignorePattern?: string[]
8146
8210
 
8147
- order?: ("asc" | "desc")
8211
+ specialCharacters?: ("remove" | "trim" | "keep")
8148
8212
 
8149
- matcher?: ("minimatch" | "regex")
8213
+ customGroups?: {
8214
+ [k: string]: (string | string[]) | undefined
8215
+ }
8150
8216
 
8151
8217
  ignoreCase?: boolean
8152
8218
 
8153
- specialCharacters?: ("remove" | "trim" | "keep")
8154
-
8155
- ignorePattern?: string[]
8219
+ locales?: (string | string[])
8156
8220
 
8157
8221
  groups?: (string | string[])[]
8158
8222
 
8159
- customGroups?: {
8160
- [k: string]: (string | string[]) | undefined
8161
- }
8223
+ order?: ("asc" | "desc")
8224
+
8225
+ type?: ("alphabetical" | "natural" | "line-length")
8162
8226
  }]
8163
8227
  // ----- perfectionist/sort-maps -----
8164
8228
  type PerfectionistSortMaps = []|[{
8165
8229
 
8166
- type?: ("alphabetical" | "natural" | "line-length")
8230
+ partitionByComment?: (string[] | boolean | string)
8167
8231
 
8168
- order?: ("asc" | "desc")
8232
+ partitionByNewLine?: boolean
8169
8233
 
8170
- matcher?: ("minimatch" | "regex")
8234
+ specialCharacters?: ("remove" | "trim" | "keep")
8171
8235
 
8172
8236
  ignoreCase?: boolean
8173
8237
 
8174
- specialCharacters?: ("remove" | "trim" | "keep")
8238
+ locales?: (string | string[])
8239
+
8240
+ order?: ("asc" | "desc")
8241
+
8242
+ type?: ("alphabetical" | "natural" | "line-length")
8243
+ }]
8244
+ // ----- perfectionist/sort-modules -----
8245
+ type PerfectionistSortModules = []|[{
8246
+
8247
+ customGroups?: ({
8248
+
8249
+ groupName?: string
8250
+
8251
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8252
+
8253
+ order?: ("desc" | "asc")
8254
+ anyOf?: {
8255
+
8256
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
8257
+
8258
+ elementValuePattern?: string
8259
+
8260
+ decoratorNamePattern?: string
8261
+
8262
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
8263
+
8264
+ elementNamePattern?: string
8265
+ }[]
8266
+ } | {
8267
+
8268
+ groupName?: string
8269
+
8270
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8271
+
8272
+ order?: ("desc" | "asc")
8273
+
8274
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
8275
+
8276
+ elementValuePattern?: string
8277
+
8278
+ decoratorNamePattern?: string
8279
+
8280
+ selector?: ("enum" | "function" | "interface" | "type" | "class")
8281
+
8282
+ elementNamePattern?: string
8283
+ })[]
8175
8284
 
8176
8285
  partitionByComment?: (string[] | boolean | string)
8177
8286
 
8178
8287
  partitionByNewLine?: boolean
8288
+
8289
+ specialCharacters?: ("remove" | "trim" | "keep")
8290
+
8291
+ newlinesBetween?: ("ignore" | "always" | "never")
8292
+
8293
+ ignoreCase?: boolean
8294
+
8295
+ locales?: (string | string[])
8296
+
8297
+ groups?: (string | string[])[]
8298
+
8299
+ order?: ("asc" | "desc")
8300
+
8301
+ type?: ("alphabetical" | "natural" | "line-length")
8179
8302
  }]
8180
8303
  // ----- perfectionist/sort-named-exports -----
8181
8304
  type PerfectionistSortNamedExports = []|[{
8182
8305
 
8183
- type?: ("alphabetical" | "natural" | "line-length")
8184
-
8185
- order?: ("asc" | "desc")
8306
+ partitionByComment?: (string[] | boolean | string)
8186
8307
 
8187
- matcher?: ("minimatch" | "regex")
8308
+ groupKind?: ("mixed" | "values-first" | "types-first")
8188
8309
 
8189
- ignoreCase?: boolean
8310
+ partitionByNewLine?: boolean
8190
8311
 
8191
8312
  specialCharacters?: ("remove" | "trim" | "keep")
8192
8313
 
8193
- groupKind?: ("mixed" | "values-first" | "types-first")
8314
+ ignoreCase?: boolean
8194
8315
 
8195
- partitionByComment?: (string[] | boolean | string)
8316
+ locales?: (string | string[])
8196
8317
 
8197
- partitionByNewLine?: boolean
8318
+ order?: ("asc" | "desc")
8319
+
8320
+ type?: ("alphabetical" | "natural" | "line-length")
8198
8321
  }]
8199
8322
  // ----- perfectionist/sort-named-imports -----
8200
8323
  type PerfectionistSortNamedImports = []|[{
8201
8324
 
8202
- type?: ("alphabetical" | "natural" | "line-length")
8325
+ partitionByComment?: (string[] | boolean | string)
8203
8326
 
8204
- order?: ("asc" | "desc")
8327
+ groupKind?: ("mixed" | "values-first" | "types-first")
8205
8328
 
8206
- matcher?: ("minimatch" | "regex")
8329
+ ignoreAlias?: boolean
8207
8330
 
8208
- ignoreCase?: boolean
8331
+ partitionByNewLine?: boolean
8209
8332
 
8210
8333
  specialCharacters?: ("remove" | "trim" | "keep")
8211
8334
 
8212
- ignoreAlias?: boolean
8335
+ ignoreCase?: boolean
8213
8336
 
8214
- groupKind?: ("mixed" | "values-first" | "types-first")
8337
+ locales?: (string | string[])
8215
8338
 
8216
- partitionByComment?: (string[] | boolean | string)
8339
+ order?: ("asc" | "desc")
8217
8340
 
8218
- partitionByNewLine?: boolean
8341
+ type?: ("alphabetical" | "natural" | "line-length")
8219
8342
  }]
8220
8343
  // ----- perfectionist/sort-object-types -----
8221
8344
  type PerfectionistSortObjectTypes = []|[{
8222
8345
 
8223
- type?: ("alphabetical" | "natural" | "line-length")
8224
-
8225
- order?: ("asc" | "desc")
8226
-
8227
- matcher?: ("minimatch" | "regex")
8228
-
8229
- ignoreCase?: boolean
8230
-
8231
- specialCharacters?: ("remove" | "trim" | "keep")
8232
-
8233
8346
  partitionByComment?: (string[] | boolean | string)
8234
8347
 
8348
+ groupKind?: ("mixed" | "required-first" | "optional-first")
8349
+
8235
8350
  partitionByNewLine?: boolean
8236
8351
 
8237
- groupKind?: ("mixed" | "required-first" | "optional-first")
8352
+ specialCharacters?: ("remove" | "trim" | "keep")
8238
8353
 
8239
- groups?: (string | string[])[]
8354
+ newlinesBetween?: ("ignore" | "always" | "never")
8240
8355
 
8241
8356
  customGroups?: {
8242
8357
  [k: string]: (string | string[]) | undefined
8243
8358
  }
8244
- }]
8245
- // ----- perfectionist/sort-objects -----
8246
- type PerfectionistSortObjects = []|[{
8247
8359
 
8248
- type?: ("alphabetical" | "natural" | "line-length")
8360
+ ignoreCase?: boolean
8249
8361
 
8250
- order?: ("asc" | "desc")
8362
+ locales?: (string | string[])
8251
8363
 
8252
- matcher?: ("minimatch" | "regex")
8364
+ groups?: (string | string[])[]
8253
8365
 
8254
- ignoreCase?: boolean
8366
+ order?: ("asc" | "desc")
8255
8367
 
8256
- specialCharacters?: ("remove" | "trim" | "keep")
8368
+ type?: ("alphabetical" | "natural" | "line-length")
8369
+ }]
8370
+ // ----- perfectionist/sort-objects -----
8371
+ type PerfectionistSortObjects = []|[{
8372
+
8373
+ ignorePattern?: string[]
8257
8374
 
8258
8375
  partitionByComment?: (string[] | boolean | string)
8259
8376
 
8260
- partitionByNewLine?: boolean
8377
+ destructureOnly?: boolean
8261
8378
 
8262
8379
  styledComponents?: boolean
8263
8380
 
8264
- destructureOnly?: boolean
8381
+ partitionByNewLine?: boolean
8265
8382
 
8266
- ignorePattern?: string[]
8383
+ specialCharacters?: ("remove" | "trim" | "keep")
8267
8384
 
8268
- groups?: (string | string[])[]
8385
+ newlinesBetween?: ("ignore" | "always" | "never")
8269
8386
 
8270
8387
  customGroups?: {
8271
8388
  [k: string]: (string | string[]) | undefined
8272
8389
  }
8273
- }]
8274
- // ----- perfectionist/sort-sets -----
8275
- type PerfectionistSortSets = []|[{
8276
-
8277
- type?: ("alphabetical" | "natural" | "line-length")
8278
-
8279
- order?: ("asc" | "desc")
8280
-
8281
- matcher?: ("minimatch" | "regex")
8282
8390
 
8283
8391
  ignoreCase?: boolean
8284
8392
 
8285
- specialCharacters?: ("remove" | "trim" | "keep")
8393
+ locales?: (string | string[])
8286
8394
 
8287
- groupKind?: ("mixed" | "literals-first" | "spreads-first")
8395
+ groups?: (string | string[])[]
8288
8396
 
8289
- partitionByComment?: (string[] | boolean | string)
8397
+ order?: ("asc" | "desc")
8290
8398
 
8291
- partitionByNewLine?: boolean
8399
+ type?: ("alphabetical" | "natural" | "line-length")
8292
8400
  }]
8293
- // ----- perfectionist/sort-svelte-attributes -----
8294
- type PerfectionistSortSvelteAttributes = []|[{
8401
+ // ----- perfectionist/sort-sets -----
8402
+ type PerfectionistSortSets = []|[{
8295
8403
 
8296
- type?: ("alphabetical" | "natural" | "line-length")
8404
+ partitionByComment?: (string[] | boolean | string)
8297
8405
 
8298
- order?: ("asc" | "desc")
8406
+ groupKind?: ("mixed" | "literals-first" | "spreads-first")
8299
8407
 
8300
- matcher?: ("minimatch" | "regex")
8408
+ partitionByNewLine?: boolean
8409
+
8410
+ specialCharacters?: ("remove" | "trim" | "keep")
8301
8411
 
8302
8412
  ignoreCase?: boolean
8303
8413
 
8304
- specialCharacters?: ("remove" | "trim" | "keep")
8414
+ locales?: (string | string[])
8305
8415
 
8306
- groups?: (string | string[])[]
8416
+ order?: ("asc" | "desc")
8307
8417
 
8308
- customGroups?: {
8309
- [k: string]: (string | string[]) | undefined
8310
- }
8418
+ type?: ("alphabetical" | "natural" | "line-length")
8311
8419
  }]
8312
8420
  // ----- perfectionist/sort-switch-case -----
8313
8421
  type PerfectionistSortSwitchCase = []|[{
8314
8422
 
8315
- type?: ("alphabetical" | "natural" | "line-length")
8316
-
8317
- order?: ("asc" | "desc")
8423
+ specialCharacters?: ("remove" | "trim" | "keep")
8318
8424
 
8319
8425
  ignoreCase?: boolean
8320
8426
 
8321
- specialCharacters?: ("remove" | "trim" | "keep")
8427
+ locales?: (string | string[])
8428
+
8429
+ order?: ("asc" | "desc")
8430
+
8431
+ type?: ("alphabetical" | "natural" | "line-length")
8322
8432
  }]
8323
8433
  // ----- perfectionist/sort-union-types -----
8324
8434
  type PerfectionistSortUnionTypes = []|[{
8325
8435
 
8326
- type?: ("alphabetical" | "natural" | "line-length")
8436
+ partitionByComment?: (string[] | boolean | string)
8327
8437
 
8328
- order?: ("asc" | "desc")
8438
+ partitionByNewLine?: boolean
8329
8439
 
8330
- matcher?: ("minimatch" | "regex")
8440
+ specialCharacters?: ("remove" | "trim" | "keep")
8441
+
8442
+ newlinesBetween?: ("ignore" | "always" | "never")
8331
8443
 
8332
8444
  ignoreCase?: boolean
8333
8445
 
8334
- specialCharacters?: ("remove" | "trim" | "keep")
8446
+ locales?: (string | string[])
8335
8447
 
8336
8448
  groups?: (string | string[])[]
8337
8449
 
8338
- partitionByComment?: (string[] | boolean | string)
8450
+ order?: ("asc" | "desc")
8339
8451
 
8340
- partitionByNewLine?: boolean
8452
+ type?: ("alphabetical" | "natural" | "line-length")
8341
8453
  }]
8342
8454
  // ----- perfectionist/sort-variable-declarations -----
8343
8455
  type PerfectionistSortVariableDeclarations = []|[{
8344
8456
 
8345
- type?: ("alphabetical" | "natural" | "line-length")
8346
-
8347
- order?: ("asc" | "desc")
8348
-
8349
- matcher?: ("minimatch" | "regex")
8350
-
8351
- ignoreCase?: boolean
8352
-
8353
- specialCharacters?: ("remove" | "trim" | "keep")
8354
-
8355
8457
  partitionByComment?: (string[] | boolean | string)
8356
8458
 
8357
8459
  partitionByNewLine?: boolean
8358
- }]
8359
- // ----- perfectionist/sort-vue-attributes -----
8360
- type PerfectionistSortVueAttributes = []|[{
8361
-
8362
- type?: ("alphabetical" | "natural" | "line-length")
8363
-
8364
- order?: ("asc" | "desc")
8365
8460
 
8366
- matcher?: ("minimatch" | "regex")
8461
+ specialCharacters?: ("remove" | "trim" | "keep")
8367
8462
 
8368
8463
  ignoreCase?: boolean
8369
8464
 
8370
- specialCharacters?: ("remove" | "trim" | "keep")
8465
+ locales?: (string | string[])
8371
8466
 
8372
- groups?: (string | string[])[]
8467
+ order?: ("asc" | "desc")
8373
8468
 
8374
- customGroups?: {
8375
- [k: string]: (string | string[]) | undefined
8376
- }
8469
+ type?: ("alphabetical" | "natural" | "line-length")
8377
8470
  }]
8378
8471
  // ----- prefer-arrow-callback -----
8379
8472
  type PreferArrowCallback = []|[{
@@ -9059,7 +9152,6 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
9059
9152
  onlyEquality?: boolean
9060
9153
  }]
9061
9154
 
9062
- type Rules = RuleOptions;
9063
9155
  /**
9064
9156
  * A ESLint flat config item with rules defined as obtained from type generation. Allows for rules not defined by one of the used plugins.
9065
9157
  */
@@ -9067,13 +9159,13 @@ type FlatConfigItem = Linter.Config<Linter.RulesRecord & Rules>;
9067
9159
  /**
9068
9160
  * A stricter version of {@linkcode FlatConfigItem} that requires rules to be defined as obtained from type generation.
9069
9161
  */
9070
- type FlatConfigItemStrict = {
9162
+ type FlatConfigItemStrict = Omit<Linter.Config, "rules"> & {
9071
9163
  /**
9072
9164
  * An object containing the configured rules. When files or ignores are specified,
9073
9165
  * these rule configurations are only available to the matching files.
9074
9166
  */
9075
9167
  rules?: Partial<Rules>;
9076
- } & Omit<Linter.Config, "rules">;
9168
+ };
9077
9169
  /**
9078
9170
  * Configuration options for this config's factory function.
9079
9171
  */
@@ -9121,6 +9213,7 @@ type OptionsConfig = {
9121
9213
  */
9122
9214
  typescript?: boolean;
9123
9215
  };
9216
+ type Rules = RuleOptions;
9124
9217
 
9125
9218
  declare const _default$5: FlatConfigItemStrict[];
9126
9219