@kitschpatrol/eslint-config 5.0.4 → 5.0.6

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.
Files changed (4) hide show
  1. package/bin/cli.js +17 -12
  2. package/dist/index.d.ts +1981 -437
  3. package/dist/index.js +33 -19
  4. package/package.json +20 -20
package/dist/index.d.ts CHANGED
@@ -1326,6 +1326,18 @@ interface RuleOptions {
1326
1326
  * Requires the `author` property to be present.
1327
1327
  */
1328
1328
  'json-package/require-author'?: Linter.RuleEntry<[]>
1329
+ /**
1330
+ * Requires the `files` property to be present.
1331
+ */
1332
+ 'json-package/require-files'?: Linter.RuleEntry<[]>
1333
+ /**
1334
+ * Requires the `keywords` property to be present.
1335
+ */
1336
+ 'json-package/require-keywords'?: Linter.RuleEntry<[]>
1337
+ /**
1338
+ * Requires the `name` property to be present.
1339
+ */
1340
+ 'json-package/require-name'?: Linter.RuleEntry<[]>
1329
1341
  /**
1330
1342
  * Requires the `version` property to be present.
1331
1343
  */
@@ -3336,7 +3348,7 @@ interface RuleOptions {
3336
3348
  */
3337
3349
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3338
3350
  /**
3339
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
3351
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
3340
3352
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3341
3353
  */
3342
3354
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
@@ -3381,7 +3393,7 @@ interface RuleOptions {
3381
3393
  */
3382
3394
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
3383
3395
  /**
3384
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3396
+ * marks variables used in JSX as used
3385
3397
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3386
3398
  */
3387
3399
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -3515,6 +3527,11 @@ interface RuleOptions {
3515
3527
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
3516
3528
  */
3517
3529
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
3530
+ /**
3531
+ * require 'displayName' for contexts.
3532
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
3533
+ */
3534
+ 'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
3518
3535
  /**
3519
3536
  * require 'key' when rendering list
3520
3537
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -3596,7 +3613,7 @@ interface RuleOptions {
3596
3613
  */
3597
3614
  'react/no-use-context'?: Linter.RuleEntry<[]>
3598
3615
  /**
3599
- * disallow unnecessary fragments
3616
+ * disallow useless fragments
3600
3617
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3601
3618
  */
3602
3619
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
@@ -3626,7 +3643,7 @@ interface RuleOptions {
3626
3643
  */
3627
3644
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3628
3645
  /**
3629
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3646
+ * marks variables used in JSX as used
3630
3647
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3631
3648
  */
3632
3649
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -4720,6 +4737,11 @@ interface RuleOptions {
4720
4737
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
4721
4738
  */
4722
4739
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
4740
+ /**
4741
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
4742
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
4743
+ */
4744
+ 'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
4723
4745
  /**
4724
4746
  * enforce strict equal over equal
4725
4747
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -4775,6 +4797,11 @@ interface RuleOptions {
4775
4797
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
4776
4798
  */
4777
4799
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
4800
+ /**
4801
+ * enforce using type parameters with vitest mock functions
4802
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
4803
+ */
4804
+ 'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
4778
4805
  /**
4779
4806
  * require toThrow() to be called with an error message
4780
4807
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -5128,7 +5155,7 @@ interface RuleOptions {
5128
5155
  */
5129
5156
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
5130
5157
  /**
5131
- * Disallow the use of `eval()`-like methods
5158
+ * Disallow the use of `eval()`-like functions
5132
5159
  * @see https://typescript-eslint.io/rules/no-implied-eval
5133
5160
  */
5134
5161
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -5579,702 +5606,642 @@ interface RuleOptions {
5579
5606
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5580
5607
  /**
5581
5608
  * Improve regexes by making them shorter, consistent, and safer.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
5609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
5583
5610
  */
5584
5611
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5585
5612
  /**
5586
5613
  * Enforce a specific parameter name in catch clauses.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
5614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
5588
5615
  */
5589
5616
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5617
+ /**
5618
+ * Enforce consistent assertion style with `node:assert`.
5619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
5620
+ */
5621
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5622
+ /**
5623
+ * Prefer passing `Date` directly to the constructor when cloning.
5624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
5625
+ */
5626
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5590
5627
  /**
5591
5628
  * Use destructured variables over properties.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
5629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
5593
5630
  */
5594
5631
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5595
5632
  /**
5596
5633
  * Prefer consistent types when spreading a ternary in an array literal.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
5634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
5598
5635
  */
5599
5636
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5600
5637
  /**
5601
5638
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
5639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
5603
5640
  */
5604
5641
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5605
5642
  /**
5606
5643
  * Move function definitions to the highest possible scope.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
5644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
5608
5645
  */
5609
5646
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5610
5647
  /**
5611
5648
  * Enforce correct `Error` subclassing.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
5649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5613
5650
  */
5614
5651
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5615
5652
  /**
5616
5653
  * Enforce no spaces between braces.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
5654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5618
5655
  */
5619
5656
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5620
5657
  /**
5621
5658
  * Enforce passing a `message` value when creating a built-in error.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
5659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
5623
5660
  */
5624
5661
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5625
5662
  /**
5626
5663
  * Require escape sequences to use uppercase values.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
5664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
5628
5665
  */
5629
5666
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
5630
5667
  /**
5631
5668
  * Add expiration conditions to TODO comments.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
5669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
5633
5670
  */
5634
5671
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5635
5672
  /**
5636
5673
  * Enforce explicitly comparing the `length` or `size` property of a value.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
5674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
5638
5675
  */
5639
5676
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5640
5677
  /**
5641
5678
  * Enforce a case style for filenames.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
5679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5643
5680
  */
5644
5681
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5645
- /**
5646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
5647
- * @deprecated
5648
- */
5649
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
5650
5682
  /**
5651
5683
  * Enforce specific import styles per module.
5652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
5684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5653
5685
  */
5654
5686
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5655
5687
  /**
5656
5688
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
5689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
5658
5690
  */
5659
5691
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5660
5692
  /**
5661
5693
  * Enforce specifying rules to disable in `eslint-disable` comments.
5662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
5694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
5663
5695
  */
5664
5696
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5697
+ /**
5698
+ * Disallow recursive access to `this` within getters and setters.
5699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5700
+ */
5701
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5665
5702
  /**
5666
5703
  * Disallow anonymous functions and classes as the default export.
5667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
5704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
5668
5705
  */
5669
5706
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5670
5707
  /**
5671
5708
  * Prevent passing a function reference directly to iterator methods.
5672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
5709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
5673
5710
  */
5674
5711
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5675
5712
  /**
5676
5713
  * Prefer `for…of` over the `forEach` method.
5677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
5714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
5678
5715
  */
5679
5716
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5680
- /**
5681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
5682
- * @deprecated
5683
- */
5684
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
5685
5717
  /**
5686
5718
  * Disallow using the `this` argument in array methods.
5687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
5719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
5688
5720
  */
5689
5721
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5690
5722
  /**
5691
5723
  * Enforce combining multiple `Array#push()` into one call.
5692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
5724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
5693
5725
  */
5694
5726
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5695
5727
  /**
5696
5728
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
5729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
5698
5730
  */
5699
5731
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5700
5732
  /**
5701
5733
  * Disallow member access from await expression.
5702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
5734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
5703
5735
  */
5704
5736
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5705
5737
  /**
5706
5738
  * Disallow using `await` in `Promise` method parameters.
5707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
5739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
5708
5740
  */
5709
5741
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5710
5742
  /**
5711
5743
  * Do not use leading/trailing space between `console.log` parameters.
5712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
5744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
5713
5745
  */
5714
5746
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5715
5747
  /**
5716
5748
  * Do not use `document.cookie` directly.
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
5749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
5718
5750
  */
5719
5751
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5720
5752
  /**
5721
5753
  * Disallow empty files.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
5754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5723
5755
  */
5724
5756
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5725
- /**
5726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
5727
- * @deprecated
5728
- */
5729
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
5730
5757
  /**
5731
5758
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
5759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
5733
5760
  */
5734
5761
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5735
5762
  /**
5736
5763
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
5764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5738
5765
  */
5739
5766
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5740
5767
  /**
5741
- * Require `Array.isArray()` instead of `instanceof Array`.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
5768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5769
+ * @deprecated
5743
5770
  */
5744
5771
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5772
+ /**
5773
+ * Disallow `instanceof` with built-in objects
5774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5775
+ */
5776
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5745
5777
  /**
5746
5778
  * Disallow invalid options in `fetch()` and `new Request()`.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
5779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5748
5780
  */
5749
5781
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5750
5782
  /**
5751
5783
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
5784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5753
5785
  */
5754
5786
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5755
5787
  /**
5756
5788
  * Disallow identifiers starting with `new` or `class`.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
5789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5758
5790
  */
5759
5791
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5760
5792
  /**
5761
5793
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
5794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5763
5795
  */
5764
5796
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5765
5797
  /**
5766
5798
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
5799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5768
5800
  */
5769
5801
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5770
5802
  /**
5771
5803
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
5804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5773
5805
  */
5774
5806
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5807
+ /**
5808
+ * Disallow named usage of default import and export.
5809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5810
+ */
5811
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5775
5812
  /**
5776
5813
  * Disallow negated conditions.
5777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
5814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5778
5815
  */
5779
5816
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5780
5817
  /**
5781
5818
  * Disallow negated expression in equality check.
5782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
5819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5783
5820
  */
5784
5821
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5785
5822
  /**
5786
5823
  * Disallow nested ternary expressions.
5787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
5824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5788
5825
  */
5789
5826
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5790
5827
  /**
5791
5828
  * Disallow `new Array()`.
5792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
5829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5793
5830
  */
5794
5831
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5795
5832
  /**
5796
5833
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
5834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5798
5835
  */
5799
5836
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5800
5837
  /**
5801
5838
  * Disallow the use of the `null` literal.
5802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
5839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5803
5840
  */
5804
5841
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5805
5842
  /**
5806
5843
  * Disallow the use of objects as default parameters.
5807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
5844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5808
5845
  */
5809
5846
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5810
5847
  /**
5811
5848
  * Disallow `process.exit()`.
5812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
5849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5813
5850
  */
5814
5851
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5815
- /**
5816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
5817
- * @deprecated
5818
- */
5819
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5820
5852
  /**
5821
5853
  * Disallow passing single-element arrays to `Promise` methods.
5822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
5854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5823
5855
  */
5824
5856
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5825
5857
  /**
5826
5858
  * Disallow classes that only have static members.
5827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
5859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5828
5860
  */
5829
5861
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5830
5862
  /**
5831
5863
  * Disallow `then` property.
5832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
5864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5833
5865
  */
5834
5866
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5835
5867
  /**
5836
5868
  * Disallow assigning `this` to a variable.
5837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
5869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5838
5870
  */
5839
5871
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5840
5872
  /**
5841
5873
  * Disallow comparing `undefined` using `typeof`.
5842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
5874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5843
5875
  */
5844
5876
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5845
5877
  /**
5846
5878
  * Disallow awaiting non-promise values.
5847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
5879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5848
5880
  */
5849
5881
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5850
5882
  /**
5851
5883
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
5884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5853
5885
  */
5854
5886
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5855
5887
  /**
5856
5888
  * Disallow unreadable array destructuring.
5857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
5889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5858
5890
  */
5859
5891
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5860
5892
  /**
5861
5893
  * Disallow unreadable IIFEs.
5862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
5894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5863
5895
  */
5864
5896
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5865
- /**
5866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
5867
- * @deprecated
5868
- */
5869
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5870
5897
  /**
5871
5898
  * Disallow unused object properties.
5872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
5899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5873
5900
  */
5874
5901
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5875
5902
  /**
5876
5903
  * Disallow useless fallback when spreading in object literals.
5877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
5904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
5878
5905
  */
5879
5906
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5880
5907
  /**
5881
5908
  * Disallow useless array length check.
5882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
5909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
5883
5910
  */
5884
5911
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5885
5912
  /**
5886
5913
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
5914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
5888
5915
  */
5889
5916
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5890
5917
  /**
5891
5918
  * Disallow unnecessary spread.
5892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
5919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
5893
5920
  */
5894
5921
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5895
5922
  /**
5896
5923
  * Disallow useless case in switch statements.
5897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
5924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
5898
5925
  */
5899
5926
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5900
5927
  /**
5901
5928
  * Disallow useless `undefined`.
5902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
5929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
5903
5930
  */
5904
5931
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5905
5932
  /**
5906
5933
  * Disallow number literals with zero fractions or dangling dots.
5907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
5934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
5908
5935
  */
5909
5936
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5910
5937
  /**
5911
5938
  * Enforce proper case for numeric literals.
5912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
5939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
5913
5940
  */
5914
5941
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5915
5942
  /**
5916
5943
  * Enforce the style of numeric separators by correctly grouping digits.
5917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
5944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
5918
5945
  */
5919
5946
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5920
5947
  /**
5921
5948
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
5949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
5923
5950
  */
5924
5951
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5925
5952
  /**
5926
5953
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
5954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
5928
5955
  */
5929
5956
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5930
5957
  /**
5931
5958
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
5959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
5933
5960
  */
5934
5961
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5935
5962
  /**
5936
5963
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
5964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
5938
5965
  */
5939
5966
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5940
5967
  /**
5941
5968
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
5969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
5943
5970
  */
5944
5971
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5945
5972
  /**
5946
5973
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
5974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
5948
5975
  */
5949
5976
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5950
5977
  /**
5951
5978
  * Prefer `.at()` method for index access and `String#charAt()`.
5952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
5979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
5953
5980
  */
5954
5981
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5955
5982
  /**
5956
5983
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
5984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
5958
5985
  */
5959
5986
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5960
5987
  /**
5961
5988
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
5989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
5963
5990
  */
5964
5991
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5965
- /**
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
5967
- * @deprecated
5968
- */
5969
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5970
5992
  /**
5971
5993
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
5994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
5973
5995
  */
5974
5996
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5975
5997
  /**
5976
5998
  * Prefer default parameters over reassignment.
5977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
5999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
5978
6000
  */
5979
6001
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5980
6002
  /**
5981
6003
  * Prefer `Node#append()` over `Node#appendChild()`.
5982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
6004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
5983
6005
  */
5984
6006
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5985
6007
  /**
5986
6008
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
6009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
5988
6010
  */
5989
6011
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5990
6012
  /**
5991
6013
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
6014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
5993
6015
  */
5994
6016
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5995
6017
  /**
5996
6018
  * Prefer `.textContent` over `.innerText`.
5997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
6019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
5998
6020
  */
5999
6021
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6000
- /**
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
6002
- * @deprecated
6003
- */
6004
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
6005
6022
  /**
6006
6023
  * Prefer `EventTarget` over `EventEmitter`.
6007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
6024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6008
6025
  */
6009
6026
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6010
- /**
6011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
6012
- * @deprecated
6013
- */
6014
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
6015
6027
  /**
6016
6028
  * Prefer `export…from` when re-exporting.
6017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
6029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6018
6030
  */
6019
6031
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6020
- /**
6021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
6022
- * @deprecated
6023
- */
6024
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
6025
6032
  /**
6026
6033
  * Prefer `globalThis` over `window`, `self`, and `global`.
6027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
6034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6028
6035
  */
6029
6036
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6030
6037
  /**
6031
6038
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
6039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6033
6040
  */
6034
6041
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6035
6042
  /**
6036
6043
  * Prefer reading a JSON file as a buffer.
6037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
6044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6038
6045
  */
6039
6046
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6040
6047
  /**
6041
6048
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
6049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6043
6050
  */
6044
6051
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6045
6052
  /**
6046
6053
  * Prefer using a logical operator over a ternary.
6047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6048
6055
  */
6049
6056
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6050
6057
  /**
6051
6058
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
6059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6053
6060
  */
6054
6061
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6055
6062
  /**
6056
6063
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
6064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6058
6065
  */
6059
6066
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6060
6067
  /**
6061
6068
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
6069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6063
6070
  */
6064
6071
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6065
6072
  /**
6066
6073
  * Prefer modern `Math` APIs over legacy patterns.
6067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
6074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6068
6075
  */
6069
6076
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6070
6077
  /**
6071
6078
  * Prefer JavaScript modules (ESM) over CommonJS.
6072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
6079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6073
6080
  */
6074
6081
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6075
6082
  /**
6076
6083
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
6084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6078
6085
  */
6079
6086
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6080
6087
  /**
6081
6088
  * Prefer negative index over `.length - index` when possible.
6082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
6089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6083
6090
  */
6084
6091
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6085
- /**
6086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
6087
- * @deprecated
6088
- */
6089
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
6090
6092
  /**
6091
6093
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
6094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6093
6095
  */
6094
6096
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6095
- /**
6096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
6097
- * @deprecated
6098
- */
6099
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
6100
6097
  /**
6101
6098
  * Prefer `Number` static properties over global ones.
6102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
6099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6103
6100
  */
6104
6101
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6105
6102
  /**
6106
6103
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
6104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6108
6105
  */
6109
6106
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6110
- /**
6111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
6112
- * @deprecated
6113
- */
6114
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
6115
6107
  /**
6116
6108
  * Prefer omitting the `catch` binding parameter.
6117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
6109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6118
6110
  */
6119
6111
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6120
6112
  /**
6121
6113
  * Prefer borrowing methods from the prototype instead of the instance.
6122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
6114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6123
6115
  */
6124
6116
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6125
6117
  /**
6126
6118
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
6119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6128
6120
  */
6129
6121
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6130
6122
  /**
6131
6123
  * Prefer `Reflect.apply()` over `Function#apply()`.
6132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
6124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6133
6125
  */
6134
6126
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6135
6127
  /**
6136
6128
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
6129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6138
6130
  */
6139
6131
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6140
- /**
6141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
6142
- * @deprecated
6143
- */
6144
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
6145
6132
  /**
6146
6133
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
6134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6148
6135
  */
6149
6136
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6150
6137
  /**
6151
6138
  * Prefer using `Set#size` instead of `Array#length`.
6152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
6139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6153
6140
  */
6154
6141
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6155
6142
  /**
6156
6143
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
6144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6158
6145
  */
6159
6146
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6160
- /**
6161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
6162
- * @deprecated
6163
- */
6164
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
6165
6147
  /**
6166
6148
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
6149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
6168
6150
  */
6169
6151
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6170
6152
  /**
6171
6153
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
6154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
6173
6155
  */
6174
6156
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6175
6157
  /**
6176
6158
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
6159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
6178
6160
  */
6179
6161
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6180
6162
  /**
6181
6163
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
6164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
6183
6165
  */
6184
6166
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6185
6167
  /**
6186
6168
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
6169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
6188
6170
  */
6189
6171
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6190
6172
  /**
6191
6173
  * Prefer using `structuredClone` to create a deep clone.
6192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
6174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
6193
6175
  */
6194
6176
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6195
6177
  /**
6196
6178
  * Prefer `switch` over multiple `else-if`.
6197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
6179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6198
6180
  */
6199
6181
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6200
6182
  /**
6201
6183
  * Prefer ternary expressions over simple `if-else` statements.
6202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
6184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
6203
6185
  */
6204
6186
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6205
- /**
6206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
6207
- * @deprecated
6208
- */
6209
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
6210
6187
  /**
6211
6188
  * Prefer top-level await over top-level promises and async function calls.
6212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
6189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
6213
6190
  */
6214
6191
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6215
- /**
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
6217
- * @deprecated
6218
- */
6219
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
6220
6192
  /**
6221
6193
  * Enforce throwing `TypeError` in type checking conditions.
6222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
6194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
6223
6195
  */
6224
6196
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6225
6197
  /**
6226
6198
  * Prevent abbreviations.
6227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
6199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
6228
6200
  */
6229
6201
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6230
- /**
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
6232
- * @deprecated
6233
- */
6234
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
6235
6202
  /**
6236
6203
  * Enforce consistent relative URL style.
6237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
6204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
6238
6205
  */
6239
6206
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6240
6207
  /**
6241
6208
  * Enforce using the separator argument with `Array#join()`.
6242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
6209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
6243
6210
  */
6244
6211
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6245
6212
  /**
6246
6213
  * Enforce using the digits argument with `Number#toFixed()`.
6247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6248
6215
  */
6249
6216
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6250
6217
  /**
6251
6218
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
6219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
6253
6220
  */
6254
6221
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6255
6222
  /**
6256
6223
  * Enforce better string content.
6257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
6224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
6258
6225
  */
6259
6226
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6260
6227
  /**
6261
6228
  * Enforce consistent brace style for `case` clauses.
6262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
6229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
6263
6230
  */
6264
6231
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6265
6232
  /**
6266
6233
  * Fix whitespace-insensitive template indentation.
6267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
6234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
6268
6235
  */
6269
6236
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6270
6237
  /**
6271
6238
  * Enforce consistent case for text encoding identifiers.
6272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
6239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
6273
6240
  */
6274
6241
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6275
6242
  /**
6276
6243
  * Require `new` when creating an error.
6277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
6244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
6278
6245
  */
6279
6246
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6280
6247
  /**
@@ -14067,6 +14034,13 @@ type PaddingLineBetweenStatements = {
14067
14034
  type PerfectionistSortArrayIncludes = {
14068
14035
  specialCharacters?: 'remove' | 'trim' | 'keep'
14069
14036
 
14037
+ fallbackSort?: {
14038
+ order?: 'asc' | 'desc'
14039
+
14040
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14041
+ [k: string]: unknown | undefined
14042
+ }
14043
+
14070
14044
  ignoreCase?: boolean
14071
14045
 
14072
14046
  alphabet?: string
@@ -14075,6 +14049,8 @@ type PerfectionistSortArrayIncludes = {
14075
14049
 
14076
14050
  order?: 'asc' | 'desc'
14077
14051
 
14052
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14053
+
14078
14054
  groupKind?: 'mixed' | 'literals-first' | 'spreads-first'
14079
14055
 
14080
14056
  customGroups?: (
@@ -14089,7 +14065,21 @@ type PerfectionistSortArrayIncludes = {
14089
14065
  anyOf?: {
14090
14066
  selector?: 'literal' | 'spread'
14091
14067
 
14092
- elementNamePattern?: string
14068
+ elementNamePattern?:
14069
+ | (
14070
+ | {
14071
+ pattern?: string
14072
+ flags?: string
14073
+ }
14074
+ | string
14075
+ )[]
14076
+ | (
14077
+ | {
14078
+ pattern?: string
14079
+ flags?: string
14080
+ }
14081
+ | string
14082
+ )
14093
14083
  }[]
14094
14084
  }
14095
14085
  | {
@@ -14103,23 +14093,96 @@ type PerfectionistSortArrayIncludes = {
14103
14093
 
14104
14094
  selector?: 'literal' | 'spread'
14105
14095
 
14106
- elementNamePattern?: string
14096
+ elementNamePattern?:
14097
+ | (
14098
+ | {
14099
+ pattern?: string
14100
+ flags?: string
14101
+ }
14102
+ | string
14103
+ )[]
14104
+ | (
14105
+ | {
14106
+ pattern?: string
14107
+ flags?: string
14108
+ }
14109
+ | string
14110
+ )
14107
14111
  }
14108
14112
  )[]
14109
14113
  useConfigurationIf?: {
14110
- allNamesMatchPattern?: string
14114
+ allNamesMatchPattern?:
14115
+ | (
14116
+ | {
14117
+ pattern?: string
14118
+ flags?: string
14119
+ }
14120
+ | string
14121
+ )[]
14122
+ | (
14123
+ | {
14124
+ pattern?: string
14125
+ flags?: string
14126
+ }
14127
+ | string
14128
+ )
14111
14129
  }
14112
14130
 
14113
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14114
-
14115
14131
  partitionByComment?:
14116
- | string[]
14117
14132
  | boolean
14118
- | string
14133
+ | (
14134
+ | (
14135
+ | {
14136
+ pattern?: string
14137
+ flags?: string
14138
+ }
14139
+ | string
14140
+ )[]
14141
+ | (
14142
+ | {
14143
+ pattern?: string
14144
+ flags?: string
14145
+ }
14146
+ | string
14147
+ )
14148
+ )
14119
14149
  | {
14120
- block?: string[] | boolean | string
14121
- line?: string[] | boolean | string
14122
- [k: string]: unknown | undefined
14150
+ block?:
14151
+ | boolean
14152
+ | (
14153
+ | (
14154
+ | {
14155
+ pattern?: string
14156
+ flags?: string
14157
+ }
14158
+ | string
14159
+ )[]
14160
+ | (
14161
+ | {
14162
+ pattern?: string
14163
+ flags?: string
14164
+ }
14165
+ | string
14166
+ )
14167
+ )
14168
+ line?:
14169
+ | boolean
14170
+ | (
14171
+ | (
14172
+ | {
14173
+ pattern?: string
14174
+ flags?: string
14175
+ }
14176
+ | string
14177
+ )[]
14178
+ | (
14179
+ | {
14180
+ pattern?: string
14181
+ flags?: string
14182
+ }
14183
+ | string
14184
+ )
14185
+ )
14123
14186
  }
14124
14187
 
14125
14188
  partitionByNewLine?: boolean
@@ -14131,7 +14194,6 @@ type PerfectionistSortArrayIncludes = {
14131
14194
  | string[]
14132
14195
  | {
14133
14196
  newlinesBetween?: 'ignore' | 'always' | 'never'
14134
- [k: string]: unknown | undefined
14135
14197
  }
14136
14198
  )[]
14137
14199
  }[]
@@ -14142,6 +14204,13 @@ type PerfectionistSortClasses =
14142
14204
  {
14143
14205
  specialCharacters?: 'remove' | 'trim' | 'keep'
14144
14206
 
14207
+ fallbackSort?: {
14208
+ order?: 'asc' | 'desc'
14209
+
14210
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14211
+ [k: string]: unknown | undefined
14212
+ }
14213
+
14145
14214
  ignoreCase?: boolean
14146
14215
 
14147
14216
  alphabet?: string
@@ -14150,7 +14219,7 @@ type PerfectionistSortClasses =
14150
14219
 
14151
14220
  order?: 'asc' | 'desc'
14152
14221
 
14153
- ignoreCallbackDependenciesPatterns?: string[]
14222
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14154
14223
 
14155
14224
  customGroups?: (
14156
14225
  | {
@@ -14162,8 +14231,6 @@ type PerfectionistSortClasses =
14162
14231
 
14163
14232
  newlinesInside?: 'always' | 'never'
14164
14233
  anyOf?: {
14165
- decoratorNamePattern?: string
14166
-
14167
14234
  modifiers?: (
14168
14235
  | 'async'
14169
14236
  | 'protected'
@@ -14189,9 +14256,53 @@ type PerfectionistSortClasses =
14189
14256
  | 'property'
14190
14257
  | 'method'
14191
14258
 
14192
- elementValuePattern?: string
14193
-
14194
- elementNamePattern?: string
14259
+ decoratorNamePattern?:
14260
+ | (
14261
+ | {
14262
+ pattern?: string
14263
+ flags?: string
14264
+ }
14265
+ | string
14266
+ )[]
14267
+ | (
14268
+ | {
14269
+ pattern?: string
14270
+ flags?: string
14271
+ }
14272
+ | string
14273
+ )
14274
+
14275
+ elementValuePattern?:
14276
+ | (
14277
+ | {
14278
+ pattern?: string
14279
+ flags?: string
14280
+ }
14281
+ | string
14282
+ )[]
14283
+ | (
14284
+ | {
14285
+ pattern?: string
14286
+ flags?: string
14287
+ }
14288
+ | string
14289
+ )
14290
+
14291
+ elementNamePattern?:
14292
+ | (
14293
+ | {
14294
+ pattern?: string
14295
+ flags?: string
14296
+ }
14297
+ | string
14298
+ )[]
14299
+ | (
14300
+ | {
14301
+ pattern?: string
14302
+ flags?: string
14303
+ }
14304
+ | string
14305
+ )
14195
14306
  }[]
14196
14307
  }
14197
14308
  | {
@@ -14203,8 +14314,6 @@ type PerfectionistSortClasses =
14203
14314
 
14204
14315
  newlinesInside?: 'always' | 'never'
14205
14316
 
14206
- decoratorNamePattern?: string
14207
-
14208
14317
  modifiers?: (
14209
14318
  | 'async'
14210
14319
  | 'protected'
@@ -14230,34 +14339,138 @@ type PerfectionistSortClasses =
14230
14339
  | 'property'
14231
14340
  | 'method'
14232
14341
 
14233
- elementValuePattern?: string
14234
-
14235
- elementNamePattern?: string
14342
+ decoratorNamePattern?:
14343
+ | (
14344
+ | {
14345
+ pattern?: string
14346
+ flags?: string
14347
+ }
14348
+ | string
14349
+ )[]
14350
+ | (
14351
+ | {
14352
+ pattern?: string
14353
+ flags?: string
14354
+ }
14355
+ | string
14356
+ )
14357
+
14358
+ elementValuePattern?:
14359
+ | (
14360
+ | {
14361
+ pattern?: string
14362
+ flags?: string
14363
+ }
14364
+ | string
14365
+ )[]
14366
+ | (
14367
+ | {
14368
+ pattern?: string
14369
+ flags?: string
14370
+ }
14371
+ | string
14372
+ )
14373
+
14374
+ elementNamePattern?:
14375
+ | (
14376
+ | {
14377
+ pattern?: string
14378
+ flags?: string
14379
+ }
14380
+ | string
14381
+ )[]
14382
+ | (
14383
+ | {
14384
+ pattern?: string
14385
+ flags?: string
14386
+ }
14387
+ | string
14388
+ )
14236
14389
  }
14237
14390
  )[]
14238
14391
 
14392
+ ignoreCallbackDependenciesPatterns?:
14393
+ | (
14394
+ | {
14395
+ pattern?: string
14396
+ flags?: string
14397
+ }
14398
+ | string
14399
+ )[]
14400
+ | (
14401
+ | {
14402
+ pattern?: string
14403
+ flags?: string
14404
+ }
14405
+ | string
14406
+ )
14407
+
14239
14408
  partitionByComment?:
14240
- | string[]
14241
14409
  | boolean
14242
- | string
14410
+ | (
14411
+ | (
14412
+ | {
14413
+ pattern?: string
14414
+ flags?: string
14415
+ }
14416
+ | string
14417
+ )[]
14418
+ | (
14419
+ | {
14420
+ pattern?: string
14421
+ flags?: string
14422
+ }
14423
+ | string
14424
+ )
14425
+ )
14243
14426
  | {
14244
- block?: string[] | boolean | string
14245
- line?: string[] | boolean | string
14246
- [k: string]: unknown | undefined
14427
+ block?:
14428
+ | boolean
14429
+ | (
14430
+ | (
14431
+ | {
14432
+ pattern?: string
14433
+ flags?: string
14434
+ }
14435
+ | string
14436
+ )[]
14437
+ | (
14438
+ | {
14439
+ pattern?: string
14440
+ flags?: string
14441
+ }
14442
+ | string
14443
+ )
14444
+ )
14445
+ line?:
14446
+ | boolean
14447
+ | (
14448
+ | (
14449
+ | {
14450
+ pattern?: string
14451
+ flags?: string
14452
+ }
14453
+ | string
14454
+ )[]
14455
+ | (
14456
+ | {
14457
+ pattern?: string
14458
+ flags?: string
14459
+ }
14460
+ | string
14461
+ )
14462
+ )
14247
14463
  }
14248
14464
 
14249
14465
  partitionByNewLine?: boolean
14250
14466
 
14251
14467
  newlinesBetween?: 'ignore' | 'always' | 'never'
14252
14468
 
14253
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14254
-
14255
14469
  groups?: (
14256
14470
  | string
14257
14471
  | string[]
14258
14472
  | {
14259
14473
  newlinesBetween?: 'ignore' | 'always' | 'never'
14260
- [k: string]: unknown | undefined
14261
14474
  }
14262
14475
  )[]
14263
14476
  },
@@ -14269,6 +14482,13 @@ type PerfectionistSortDecorators =
14269
14482
  {
14270
14483
  specialCharacters?: 'remove' | 'trim' | 'keep'
14271
14484
 
14485
+ fallbackSort?: {
14486
+ order?: 'asc' | 'desc'
14487
+
14488
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14489
+ [k: string]: unknown | undefined
14490
+ }
14491
+
14272
14492
  ignoreCase?: boolean
14273
14493
 
14274
14494
  alphabet?: string
@@ -14277,6 +14497,8 @@ type PerfectionistSortDecorators =
14277
14497
 
14278
14498
  order?: 'asc' | 'desc'
14279
14499
 
14500
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14501
+
14280
14502
  sortOnParameters?: boolean
14281
14503
 
14282
14504
  sortOnProperties?: boolean
@@ -14288,27 +14510,71 @@ type PerfectionistSortDecorators =
14288
14510
  sortOnClasses?: boolean
14289
14511
 
14290
14512
  partitionByComment?:
14291
- | string[]
14292
14513
  | boolean
14293
- | string
14514
+ | (
14515
+ | (
14516
+ | {
14517
+ pattern?: string
14518
+ flags?: string
14519
+ }
14520
+ | string
14521
+ )[]
14522
+ | (
14523
+ | {
14524
+ pattern?: string
14525
+ flags?: string
14526
+ }
14527
+ | string
14528
+ )
14529
+ )
14294
14530
  | {
14295
- block?: string[] | boolean | string
14296
- line?: string[] | boolean | string
14297
- [k: string]: unknown | undefined
14531
+ block?:
14532
+ | boolean
14533
+ | (
14534
+ | (
14535
+ | {
14536
+ pattern?: string
14537
+ flags?: string
14538
+ }
14539
+ | string
14540
+ )[]
14541
+ | (
14542
+ | {
14543
+ pattern?: string
14544
+ flags?: string
14545
+ }
14546
+ | string
14547
+ )
14548
+ )
14549
+ line?:
14550
+ | boolean
14551
+ | (
14552
+ | (
14553
+ | {
14554
+ pattern?: string
14555
+ flags?: string
14556
+ }
14557
+ | string
14558
+ )[]
14559
+ | (
14560
+ | {
14561
+ pattern?: string
14562
+ flags?: string
14563
+ }
14564
+ | string
14565
+ )
14566
+ )
14298
14567
  }
14299
14568
 
14300
14569
  customGroups?: {
14301
14570
  [k: string]: (string | string[]) | undefined
14302
14571
  }
14303
14572
 
14304
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14305
-
14306
14573
  groups?: (
14307
14574
  | string
14308
14575
  | string[]
14309
14576
  | {
14310
14577
  newlinesBetween?: 'ignore' | 'always' | 'never'
14311
- [k: string]: unknown | undefined
14312
14578
  }
14313
14579
  )[]
14314
14580
  },
@@ -14320,6 +14586,13 @@ type PerfectionistSortEnums =
14320
14586
  {
14321
14587
  specialCharacters?: 'remove' | 'trim' | 'keep'
14322
14588
 
14589
+ fallbackSort?: {
14590
+ order?: 'asc' | 'desc'
14591
+
14592
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14593
+ [k: string]: unknown | undefined
14594
+ }
14595
+
14323
14596
  ignoreCase?: boolean
14324
14597
 
14325
14598
  alphabet?: string
@@ -14328,6 +14601,8 @@ type PerfectionistSortEnums =
14328
14601
 
14329
14602
  order?: 'asc' | 'desc'
14330
14603
 
14604
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14605
+
14331
14606
  forceNumericSort?: boolean
14332
14607
  customGroups?:
14333
14608
  | {
@@ -14343,9 +14618,37 @@ type PerfectionistSortEnums =
14343
14618
 
14344
14619
  newlinesInside?: 'always' | 'never'
14345
14620
  anyOf?: {
14346
- elementValuePattern?: string
14347
-
14348
- elementNamePattern?: string
14621
+ elementValuePattern?:
14622
+ | (
14623
+ | {
14624
+ pattern?: string
14625
+ flags?: string
14626
+ }
14627
+ | string
14628
+ )[]
14629
+ | (
14630
+ | {
14631
+ pattern?: string
14632
+ flags?: string
14633
+ }
14634
+ | string
14635
+ )
14636
+
14637
+ elementNamePattern?:
14638
+ | (
14639
+ | {
14640
+ pattern?: string
14641
+ flags?: string
14642
+ }
14643
+ | string
14644
+ )[]
14645
+ | (
14646
+ | {
14647
+ pattern?: string
14648
+ flags?: string
14649
+ }
14650
+ | string
14651
+ )
14349
14652
  }[]
14350
14653
  }
14351
14654
  | {
@@ -14357,36 +14660,108 @@ type PerfectionistSortEnums =
14357
14660
 
14358
14661
  newlinesInside?: 'always' | 'never'
14359
14662
 
14360
- elementValuePattern?: string
14663
+ elementValuePattern?:
14664
+ | (
14665
+ | {
14666
+ pattern?: string
14667
+ flags?: string
14668
+ }
14669
+ | string
14670
+ )[]
14671
+ | (
14672
+ | {
14673
+ pattern?: string
14674
+ flags?: string
14675
+ }
14676
+ | string
14677
+ )
14361
14678
 
14362
- elementNamePattern?: string
14679
+ elementNamePattern?:
14680
+ | (
14681
+ | {
14682
+ pattern?: string
14683
+ flags?: string
14684
+ }
14685
+ | string
14686
+ )[]
14687
+ | (
14688
+ | {
14689
+ pattern?: string
14690
+ flags?: string
14691
+ }
14692
+ | string
14693
+ )
14363
14694
  }
14364
14695
  )[]
14365
14696
 
14366
14697
  sortByValue?: boolean
14367
14698
 
14368
14699
  partitionByComment?:
14369
- | string[]
14370
14700
  | boolean
14371
- | string
14701
+ | (
14702
+ | (
14703
+ | {
14704
+ pattern?: string
14705
+ flags?: string
14706
+ }
14707
+ | string
14708
+ )[]
14709
+ | (
14710
+ | {
14711
+ pattern?: string
14712
+ flags?: string
14713
+ }
14714
+ | string
14715
+ )
14716
+ )
14372
14717
  | {
14373
- block?: string[] | boolean | string
14374
- line?: string[] | boolean | string
14375
- [k: string]: unknown | undefined
14718
+ block?:
14719
+ | boolean
14720
+ | (
14721
+ | (
14722
+ | {
14723
+ pattern?: string
14724
+ flags?: string
14725
+ }
14726
+ | string
14727
+ )[]
14728
+ | (
14729
+ | {
14730
+ pattern?: string
14731
+ flags?: string
14732
+ }
14733
+ | string
14734
+ )
14735
+ )
14736
+ line?:
14737
+ | boolean
14738
+ | (
14739
+ | (
14740
+ | {
14741
+ pattern?: string
14742
+ flags?: string
14743
+ }
14744
+ | string
14745
+ )[]
14746
+ | (
14747
+ | {
14748
+ pattern?: string
14749
+ flags?: string
14750
+ }
14751
+ | string
14752
+ )
14753
+ )
14376
14754
  }
14377
14755
 
14378
14756
  partitionByNewLine?: boolean
14379
14757
 
14380
14758
  newlinesBetween?: 'ignore' | 'always' | 'never'
14381
14759
 
14382
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14383
-
14384
14760
  groups?: (
14385
14761
  | string
14386
14762
  | string[]
14387
14763
  | {
14388
14764
  newlinesBetween?: 'ignore' | 'always' | 'never'
14389
- [k: string]: unknown | undefined
14390
14765
  }
14391
14766
  )[]
14392
14767
  },
@@ -14398,6 +14773,13 @@ type PerfectionistSortExports =
14398
14773
  {
14399
14774
  specialCharacters?: 'remove' | 'trim' | 'keep'
14400
14775
 
14776
+ fallbackSort?: {
14777
+ order?: 'asc' | 'desc'
14778
+
14779
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14780
+ [k: string]: unknown | undefined
14781
+ }
14782
+
14401
14783
  ignoreCase?: boolean
14402
14784
 
14403
14785
  alphabet?: string
@@ -14406,21 +14788,68 @@ type PerfectionistSortExports =
14406
14788
 
14407
14789
  order?: 'asc' | 'desc'
14408
14790
 
14791
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14792
+
14409
14793
  groupKind?: 'mixed' | 'values-first' | 'types-first'
14410
14794
 
14411
14795
  partitionByComment?:
14412
- | string[]
14413
14796
  | boolean
14414
- | string
14797
+ | (
14798
+ | (
14799
+ | {
14800
+ pattern?: string
14801
+ flags?: string
14802
+ }
14803
+ | string
14804
+ )[]
14805
+ | (
14806
+ | {
14807
+ pattern?: string
14808
+ flags?: string
14809
+ }
14810
+ | string
14811
+ )
14812
+ )
14415
14813
  | {
14416
- block?: string[] | boolean | string
14417
- line?: string[] | boolean | string
14418
- [k: string]: unknown | undefined
14419
- }
14420
-
14421
- partitionByNewLine?: boolean
14814
+ block?:
14815
+ | boolean
14816
+ | (
14817
+ | (
14818
+ | {
14819
+ pattern?: string
14820
+ flags?: string
14821
+ }
14822
+ | string
14823
+ )[]
14824
+ | (
14825
+ | {
14826
+ pattern?: string
14827
+ flags?: string
14828
+ }
14829
+ | string
14830
+ )
14831
+ )
14832
+ line?:
14833
+ | boolean
14834
+ | (
14835
+ | (
14836
+ | {
14837
+ pattern?: string
14838
+ flags?: string
14839
+ }
14840
+ | string
14841
+ )[]
14842
+ | (
14843
+ | {
14844
+ pattern?: string
14845
+ flags?: string
14846
+ }
14847
+ | string
14848
+ )
14849
+ )
14850
+ }
14422
14851
 
14423
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14852
+ partitionByNewLine?: boolean
14424
14853
  },
14425
14854
  ]
14426
14855
  // ----- perfectionist/sort-heritage-clauses -----
@@ -14430,6 +14859,13 @@ type PerfectionistSortHeritageClauses =
14430
14859
  {
14431
14860
  specialCharacters?: 'remove' | 'trim' | 'keep'
14432
14861
 
14862
+ fallbackSort?: {
14863
+ order?: 'asc' | 'desc'
14864
+
14865
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14866
+ [k: string]: unknown | undefined
14867
+ }
14868
+
14433
14869
  ignoreCase?: boolean
14434
14870
 
14435
14871
  alphabet?: string
@@ -14438,18 +14874,17 @@ type PerfectionistSortHeritageClauses =
14438
14874
 
14439
14875
  order?: 'asc' | 'desc'
14440
14876
 
14877
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14878
+
14441
14879
  customGroups?: {
14442
14880
  [k: string]: (string | string[]) | undefined
14443
14881
  }
14444
14882
 
14445
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14446
-
14447
14883
  groups?: (
14448
14884
  | string
14449
14885
  | string[]
14450
14886
  | {
14451
14887
  newlinesBetween?: 'ignore' | 'always' | 'never'
14452
- [k: string]: unknown | undefined
14453
14888
  }
14454
14889
  )[]
14455
14890
  },
@@ -14460,6 +14895,13 @@ type _PerfectionistSortImportsSortImports =
14460
14895
  _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
14461
14896
  specialCharacters?: 'remove' | 'trim' | 'keep'
14462
14897
 
14898
+ fallbackSort?: {
14899
+ order?: 'asc' | 'desc'
14900
+
14901
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14902
+ [k: string]: unknown | undefined
14903
+ }
14904
+
14463
14905
  ignoreCase?: boolean
14464
14906
 
14465
14907
  alphabet?: string
@@ -14468,6 +14910,8 @@ type _PerfectionistSortImportsSortImports =
14468
14910
 
14469
14911
  order?: 'asc' | 'desc'
14470
14912
 
14913
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14914
+
14471
14915
  customGroups?: {
14472
14916
  value?: {
14473
14917
  [k: string]: unknown | undefined
@@ -14478,8 +14922,6 @@ type _PerfectionistSortImportsSortImports =
14478
14922
  }
14479
14923
  }
14480
14924
 
14481
- internalPattern?: string[]
14482
-
14483
14925
  maxLineLength?: number
14484
14926
 
14485
14927
  sortSideEffects?: boolean
@@ -14489,27 +14931,87 @@ type _PerfectionistSortImportsSortImports =
14489
14931
  tsconfigRootDir?: string
14490
14932
 
14491
14933
  partitionByComment?:
14492
- | string[]
14493
14934
  | boolean
14494
- | string
14935
+ | (
14936
+ | (
14937
+ | {
14938
+ pattern?: string
14939
+ flags?: string
14940
+ }
14941
+ | string
14942
+ )[]
14943
+ | (
14944
+ | {
14945
+ pattern?: string
14946
+ flags?: string
14947
+ }
14948
+ | string
14949
+ )
14950
+ )
14495
14951
  | {
14496
- block?: string[] | boolean | string
14497
- line?: string[] | boolean | string
14498
- [k: string]: unknown | undefined
14952
+ block?:
14953
+ | boolean
14954
+ | (
14955
+ | (
14956
+ | {
14957
+ pattern?: string
14958
+ flags?: string
14959
+ }
14960
+ | string
14961
+ )[]
14962
+ | (
14963
+ | {
14964
+ pattern?: string
14965
+ flags?: string
14966
+ }
14967
+ | string
14968
+ )
14969
+ )
14970
+ line?:
14971
+ | boolean
14972
+ | (
14973
+ | (
14974
+ | {
14975
+ pattern?: string
14976
+ flags?: string
14977
+ }
14978
+ | string
14979
+ )[]
14980
+ | (
14981
+ | {
14982
+ pattern?: string
14983
+ flags?: string
14984
+ }
14985
+ | string
14986
+ )
14987
+ )
14499
14988
  }
14500
14989
 
14501
14990
  partitionByNewLine?: boolean
14502
14991
 
14503
14992
  newlinesBetween?: 'ignore' | 'always' | 'never'
14504
14993
 
14505
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14994
+ internalPattern?:
14995
+ | (
14996
+ | {
14997
+ pattern?: string
14998
+ flags?: string
14999
+ }
15000
+ | string
15001
+ )[]
15002
+ | (
15003
+ | {
15004
+ pattern?: string
15005
+ flags?: string
15006
+ }
15007
+ | string
15008
+ )
14506
15009
 
14507
15010
  groups?: (
14508
15011
  | string
14509
15012
  | string[]
14510
15013
  | {
14511
15014
  newlinesBetween?: 'ignore' | 'always' | 'never'
14512
- [k: string]: unknown | undefined
14513
15015
  }
14514
15016
  )[]
14515
15017
  }
@@ -14526,6 +15028,13 @@ interface _PerfectionistSortImports_IsLineLength {
14526
15028
  type PerfectionistSortInterfaces = {
14527
15029
  specialCharacters?: 'remove' | 'trim' | 'keep'
14528
15030
 
15031
+ fallbackSort?: {
15032
+ order?: 'asc' | 'desc'
15033
+
15034
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15035
+ [k: string]: unknown | undefined
15036
+ }
15037
+
14529
15038
  ignoreCase?: boolean
14530
15039
 
14531
15040
  alphabet?: string
@@ -14534,11 +15043,7 @@ type PerfectionistSortInterfaces = {
14534
15043
 
14535
15044
  order?: 'asc' | 'desc'
14536
15045
 
14537
- ignorePattern?: string[]
14538
- useConfigurationIf?: {
14539
- allNamesMatchPattern?: string
14540
- declarationMatchesPattern?: string
14541
- }
15046
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14542
15047
  customGroups?:
14543
15048
  | {
14544
15049
  [k: string]: (string | string[]) | undefined
@@ -14557,7 +15062,21 @@ type PerfectionistSortInterfaces = {
14557
15062
 
14558
15063
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
14559
15064
 
14560
- elementNamePattern?: string
15065
+ elementNamePattern?:
15066
+ | (
15067
+ | {
15068
+ pattern?: string
15069
+ flags?: string
15070
+ }
15071
+ | string
15072
+ )[]
15073
+ | (
15074
+ | {
15075
+ pattern?: string
15076
+ flags?: string
15077
+ }
15078
+ | string
15079
+ )
14561
15080
  }[]
14562
15081
  }
14563
15082
  | {
@@ -14573,34 +15092,141 @@ type PerfectionistSortInterfaces = {
14573
15092
 
14574
15093
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
14575
15094
 
14576
- elementNamePattern?: string
15095
+ elementNamePattern?:
15096
+ | (
15097
+ | {
15098
+ pattern?: string
15099
+ flags?: string
15100
+ }
15101
+ | string
15102
+ )[]
15103
+ | (
15104
+ | {
15105
+ pattern?: string
15106
+ flags?: string
15107
+ }
15108
+ | string
15109
+ )
14577
15110
  }
14578
15111
  )[]
15112
+ useConfigurationIf?: {
15113
+ allNamesMatchPattern?:
15114
+ | (
15115
+ | {
15116
+ pattern?: string
15117
+ flags?: string
15118
+ }
15119
+ | string
15120
+ )[]
15121
+ | (
15122
+ | {
15123
+ pattern?: string
15124
+ flags?: string
15125
+ }
15126
+ | string
15127
+ )
14579
15128
 
14580
- groupKind?: 'mixed' | 'required-first' | 'optional-first'
15129
+ declarationMatchesPattern?:
15130
+ | (
15131
+ | {
15132
+ pattern?: string
15133
+ flags?: string
15134
+ }
15135
+ | string
15136
+ )[]
15137
+ | (
15138
+ | {
15139
+ pattern?: string
15140
+ flags?: string
15141
+ }
15142
+ | string
15143
+ )
15144
+ }
14581
15145
 
14582
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15146
+ groupKind?: 'mixed' | 'required-first' | 'optional-first'
14583
15147
 
14584
15148
  partitionByComment?:
14585
- | string[]
14586
15149
  | boolean
14587
- | string
15150
+ | (
15151
+ | (
15152
+ | {
15153
+ pattern?: string
15154
+ flags?: string
15155
+ }
15156
+ | string
15157
+ )[]
15158
+ | (
15159
+ | {
15160
+ pattern?: string
15161
+ flags?: string
15162
+ }
15163
+ | string
15164
+ )
15165
+ )
14588
15166
  | {
14589
- block?: string[] | boolean | string
14590
- line?: string[] | boolean | string
14591
- [k: string]: unknown | undefined
15167
+ block?:
15168
+ | boolean
15169
+ | (
15170
+ | (
15171
+ | {
15172
+ pattern?: string
15173
+ flags?: string
15174
+ }
15175
+ | string
15176
+ )[]
15177
+ | (
15178
+ | {
15179
+ pattern?: string
15180
+ flags?: string
15181
+ }
15182
+ | string
15183
+ )
15184
+ )
15185
+ line?:
15186
+ | boolean
15187
+ | (
15188
+ | (
15189
+ | {
15190
+ pattern?: string
15191
+ flags?: string
15192
+ }
15193
+ | string
15194
+ )[]
15195
+ | (
15196
+ | {
15197
+ pattern?: string
15198
+ flags?: string
15199
+ }
15200
+ | string
15201
+ )
15202
+ )
14592
15203
  }
14593
15204
 
14594
15205
  partitionByNewLine?: boolean
14595
15206
 
14596
15207
  newlinesBetween?: 'ignore' | 'always' | 'never'
14597
15208
 
15209
+ ignorePattern?:
15210
+ | (
15211
+ | {
15212
+ pattern?: string
15213
+ flags?: string
15214
+ }
15215
+ | string
15216
+ )[]
15217
+ | (
15218
+ | {
15219
+ pattern?: string
15220
+ flags?: string
15221
+ }
15222
+ | string
15223
+ )
15224
+
14598
15225
  groups?: (
14599
15226
  | string
14600
15227
  | string[]
14601
15228
  | {
14602
15229
  newlinesBetween?: 'ignore' | 'always' | 'never'
14603
- [k: string]: unknown | undefined
14604
15230
  }
14605
15231
  )[]
14606
15232
  }[]
@@ -14611,6 +15237,13 @@ type PerfectionistSortIntersectionTypes =
14611
15237
  {
14612
15238
  specialCharacters?: 'remove' | 'trim' | 'keep'
14613
15239
 
15240
+ fallbackSort?: {
15241
+ order?: 'asc' | 'desc'
15242
+
15243
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15244
+ [k: string]: unknown | undefined
15245
+ }
15246
+
14614
15247
  ignoreCase?: boolean
14615
15248
 
14616
15249
  alphabet?: string
@@ -14619,73 +15252,175 @@ type PerfectionistSortIntersectionTypes =
14619
15252
 
14620
15253
  order?: 'asc' | 'desc'
14621
15254
 
15255
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15256
+
14622
15257
  partitionByComment?:
14623
- | string[]
14624
15258
  | boolean
14625
- | string
15259
+ | (
15260
+ | (
15261
+ | {
15262
+ pattern?: string
15263
+ flags?: string
15264
+ }
15265
+ | string
15266
+ )[]
15267
+ | (
15268
+ | {
15269
+ pattern?: string
15270
+ flags?: string
15271
+ }
15272
+ | string
15273
+ )
15274
+ )
14626
15275
  | {
14627
- block?: string[] | boolean | string
14628
- line?: string[] | boolean | string
14629
- [k: string]: unknown | undefined
15276
+ block?:
15277
+ | boolean
15278
+ | (
15279
+ | (
15280
+ | {
15281
+ pattern?: string
15282
+ flags?: string
15283
+ }
15284
+ | string
15285
+ )[]
15286
+ | (
15287
+ | {
15288
+ pattern?: string
15289
+ flags?: string
15290
+ }
15291
+ | string
15292
+ )
15293
+ )
15294
+ line?:
15295
+ | boolean
15296
+ | (
15297
+ | (
15298
+ | {
15299
+ pattern?: string
15300
+ flags?: string
15301
+ }
15302
+ | string
15303
+ )[]
15304
+ | (
15305
+ | {
15306
+ pattern?: string
15307
+ flags?: string
15308
+ }
15309
+ | string
15310
+ )
15311
+ )
14630
15312
  }
14631
15313
 
14632
15314
  partitionByNewLine?: boolean
14633
15315
 
14634
15316
  newlinesBetween?: 'ignore' | 'always' | 'never'
14635
15317
 
14636
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14637
-
14638
15318
  groups?: (
14639
15319
  | string
14640
15320
  | string[]
14641
15321
  | {
14642
15322
  newlinesBetween?: 'ignore' | 'always' | 'never'
14643
- [k: string]: unknown | undefined
14644
15323
  }
14645
15324
  )[]
14646
15325
  },
14647
15326
  ]
14648
15327
  // ----- perfectionist/sort-jsx-props -----
14649
- type PerfectionistSortJsxProps =
14650
- | []
14651
- | [
14652
- {
14653
- specialCharacters?: 'remove' | 'trim' | 'keep'
14654
-
14655
- ignoreCase?: boolean
14656
-
14657
- alphabet?: string
15328
+ type PerfectionistSortJsxProps = {
15329
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14658
15330
 
14659
- locales?: string | string[]
15331
+ fallbackSort?: {
15332
+ order?: 'asc' | 'desc'
14660
15333
 
14661
- order?: 'asc' | 'desc'
15334
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15335
+ [k: string]: unknown | undefined
15336
+ }
14662
15337
 
14663
- ignorePattern?: string[]
15338
+ ignoreCase?: boolean
14664
15339
 
14665
- partitionByNewLine?: boolean
15340
+ alphabet?: string
14666
15341
 
14667
- newlinesBetween?: 'ignore' | 'always' | 'never'
15342
+ locales?: string | string[]
14668
15343
 
14669
- customGroups?: {
14670
- [k: string]: (string | string[]) | undefined
14671
- }
15344
+ order?: 'asc' | 'desc'
14672
15345
 
14673
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
15346
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15347
+ useConfigurationIf?: {
15348
+ allNamesMatchPattern?:
15349
+ | (
15350
+ | {
15351
+ pattern?: string
15352
+ flags?: string
15353
+ }
15354
+ | string
15355
+ )[]
15356
+ | (
15357
+ | {
15358
+ pattern?: string
15359
+ flags?: string
15360
+ }
15361
+ | string
15362
+ )
14674
15363
 
14675
- groups?: (
15364
+ tagMatchesPattern?:
15365
+ | (
15366
+ | {
15367
+ pattern?: string
15368
+ flags?: string
15369
+ }
14676
15370
  | string
14677
- | string[]
15371
+ )[]
15372
+ | (
14678
15373
  | {
14679
- newlinesBetween?: 'ignore' | 'always' | 'never'
14680
- [k: string]: unknown | undefined
15374
+ pattern?: string
15375
+ flags?: string
14681
15376
  }
14682
- )[]
14683
- },
14684
- ]
15377
+ | string
15378
+ )
15379
+ }
15380
+
15381
+ partitionByNewLine?: boolean
15382
+
15383
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15384
+
15385
+ customGroups?: {
15386
+ [k: string]: (string | string[]) | undefined
15387
+ }
15388
+
15389
+ ignorePattern?:
15390
+ | (
15391
+ | {
15392
+ pattern?: string
15393
+ flags?: string
15394
+ }
15395
+ | string
15396
+ )[]
15397
+ | (
15398
+ | {
15399
+ pattern?: string
15400
+ flags?: string
15401
+ }
15402
+ | string
15403
+ )
15404
+
15405
+ groups?: (
15406
+ | string
15407
+ | string[]
15408
+ | {
15409
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15410
+ }
15411
+ )[]
15412
+ }[]
14685
15413
  // ----- perfectionist/sort-maps -----
14686
15414
  type PerfectionistSortMaps = {
14687
15415
  specialCharacters?: 'remove' | 'trim' | 'keep'
14688
15416
 
15417
+ fallbackSort?: {
15418
+ order?: 'asc' | 'desc'
15419
+
15420
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15421
+ [k: string]: unknown | undefined
15422
+ }
15423
+
14689
15424
  ignoreCase?: boolean
14690
15425
 
14691
15426
  alphabet?: string
@@ -14694,6 +15429,8 @@ type PerfectionistSortMaps = {
14694
15429
 
14695
15430
  order?: 'asc' | 'desc'
14696
15431
 
15432
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15433
+
14697
15434
  customGroups?: (
14698
15435
  | {
14699
15436
  groupName?: string
@@ -14704,7 +15441,21 @@ type PerfectionistSortMaps = {
14704
15441
 
14705
15442
  newlinesInside?: 'always' | 'never'
14706
15443
  anyOf?: {
14707
- elementNamePattern?: string
15444
+ elementNamePattern?:
15445
+ | (
15446
+ | {
15447
+ pattern?: string
15448
+ flags?: string
15449
+ }
15450
+ | string
15451
+ )[]
15452
+ | (
15453
+ | {
15454
+ pattern?: string
15455
+ flags?: string
15456
+ }
15457
+ | string
15458
+ )
14708
15459
  }[]
14709
15460
  }
14710
15461
  | {
@@ -14716,35 +15467,107 @@ type PerfectionistSortMaps = {
14716
15467
 
14717
15468
  newlinesInside?: 'always' | 'never'
14718
15469
 
14719
- elementNamePattern?: string
15470
+ elementNamePattern?:
15471
+ | (
15472
+ | {
15473
+ pattern?: string
15474
+ flags?: string
15475
+ }
15476
+ | string
15477
+ )[]
15478
+ | (
15479
+ | {
15480
+ pattern?: string
15481
+ flags?: string
15482
+ }
15483
+ | string
15484
+ )
14720
15485
  }
14721
15486
  )[]
14722
15487
  useConfigurationIf?: {
14723
- allNamesMatchPattern?: string
15488
+ allNamesMatchPattern?:
15489
+ | (
15490
+ | {
15491
+ pattern?: string
15492
+ flags?: string
15493
+ }
15494
+ | string
15495
+ )[]
15496
+ | (
15497
+ | {
15498
+ pattern?: string
15499
+ flags?: string
15500
+ }
15501
+ | string
15502
+ )
14724
15503
  }
14725
15504
 
14726
15505
  partitionByComment?:
14727
- | string[]
14728
15506
  | boolean
14729
- | string
15507
+ | (
15508
+ | (
15509
+ | {
15510
+ pattern?: string
15511
+ flags?: string
15512
+ }
15513
+ | string
15514
+ )[]
15515
+ | (
15516
+ | {
15517
+ pattern?: string
15518
+ flags?: string
15519
+ }
15520
+ | string
15521
+ )
15522
+ )
14730
15523
  | {
14731
- block?: string[] | boolean | string
14732
- line?: string[] | boolean | string
14733
- [k: string]: unknown | undefined
15524
+ block?:
15525
+ | boolean
15526
+ | (
15527
+ | (
15528
+ | {
15529
+ pattern?: string
15530
+ flags?: string
15531
+ }
15532
+ | string
15533
+ )[]
15534
+ | (
15535
+ | {
15536
+ pattern?: string
15537
+ flags?: string
15538
+ }
15539
+ | string
15540
+ )
15541
+ )
15542
+ line?:
15543
+ | boolean
15544
+ | (
15545
+ | (
15546
+ | {
15547
+ pattern?: string
15548
+ flags?: string
15549
+ }
15550
+ | string
15551
+ )[]
15552
+ | (
15553
+ | {
15554
+ pattern?: string
15555
+ flags?: string
15556
+ }
15557
+ | string
15558
+ )
15559
+ )
14734
15560
  }
14735
15561
 
14736
15562
  partitionByNewLine?: boolean
14737
15563
 
14738
15564
  newlinesBetween?: 'ignore' | 'always' | 'never'
14739
15565
 
14740
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14741
-
14742
15566
  groups?: (
14743
15567
  | string
14744
15568
  | string[]
14745
15569
  | {
14746
15570
  newlinesBetween?: 'ignore' | 'always' | 'never'
14747
- [k: string]: unknown | undefined
14748
15571
  }
14749
15572
  )[]
14750
15573
  }[]
@@ -14755,6 +15578,13 @@ type PerfectionistSortModules =
14755
15578
  {
14756
15579
  specialCharacters?: 'remove' | 'trim' | 'keep'
14757
15580
 
15581
+ fallbackSort?: {
15582
+ order?: 'asc' | 'desc'
15583
+
15584
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15585
+ [k: string]: unknown | undefined
15586
+ }
15587
+
14758
15588
  ignoreCase?: boolean
14759
15589
 
14760
15590
  alphabet?: string
@@ -14763,6 +15593,8 @@ type PerfectionistSortModules =
14763
15593
 
14764
15594
  order?: 'asc' | 'desc'
14765
15595
 
15596
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15597
+
14766
15598
  customGroups?: (
14767
15599
  | {
14768
15600
  groupName?: string
@@ -14773,13 +15605,41 @@ type PerfectionistSortModules =
14773
15605
 
14774
15606
  newlinesInside?: 'always' | 'never'
14775
15607
  anyOf?: {
14776
- decoratorNamePattern?: string
14777
-
14778
15608
  modifiers?: ('async' | 'declare' | 'decorated' | 'default' | 'export')[]
14779
15609
 
14780
15610
  selector?: 'enum' | 'function' | 'interface' | 'type' | 'class'
14781
15611
 
14782
- elementNamePattern?: string
15612
+ decoratorNamePattern?:
15613
+ | (
15614
+ | {
15615
+ pattern?: string
15616
+ flags?: string
15617
+ }
15618
+ | string
15619
+ )[]
15620
+ | (
15621
+ | {
15622
+ pattern?: string
15623
+ flags?: string
15624
+ }
15625
+ | string
15626
+ )
15627
+
15628
+ elementNamePattern?:
15629
+ | (
15630
+ | {
15631
+ pattern?: string
15632
+ flags?: string
15633
+ }
15634
+ | string
15635
+ )[]
15636
+ | (
15637
+ | {
15638
+ pattern?: string
15639
+ flags?: string
15640
+ }
15641
+ | string
15642
+ )
14783
15643
  }[]
14784
15644
  }
14785
15645
  | {
@@ -14791,38 +15651,110 @@ type PerfectionistSortModules =
14791
15651
 
14792
15652
  newlinesInside?: 'always' | 'never'
14793
15653
 
14794
- decoratorNamePattern?: string
14795
-
14796
15654
  modifiers?: ('async' | 'declare' | 'decorated' | 'default' | 'export')[]
14797
15655
 
14798
15656
  selector?: 'enum' | 'function' | 'interface' | 'type' | 'class'
14799
15657
 
14800
- elementNamePattern?: string
15658
+ decoratorNamePattern?:
15659
+ | (
15660
+ | {
15661
+ pattern?: string
15662
+ flags?: string
15663
+ }
15664
+ | string
15665
+ )[]
15666
+ | (
15667
+ | {
15668
+ pattern?: string
15669
+ flags?: string
15670
+ }
15671
+ | string
15672
+ )
15673
+
15674
+ elementNamePattern?:
15675
+ | (
15676
+ | {
15677
+ pattern?: string
15678
+ flags?: string
15679
+ }
15680
+ | string
15681
+ )[]
15682
+ | (
15683
+ | {
15684
+ pattern?: string
15685
+ flags?: string
15686
+ }
15687
+ | string
15688
+ )
14801
15689
  }
14802
15690
  )[]
14803
15691
 
14804
15692
  partitionByComment?:
14805
- | string[]
14806
15693
  | boolean
14807
- | string
15694
+ | (
15695
+ | (
15696
+ | {
15697
+ pattern?: string
15698
+ flags?: string
15699
+ }
15700
+ | string
15701
+ )[]
15702
+ | (
15703
+ | {
15704
+ pattern?: string
15705
+ flags?: string
15706
+ }
15707
+ | string
15708
+ )
15709
+ )
14808
15710
  | {
14809
- block?: string[] | boolean | string
14810
- line?: string[] | boolean | string
14811
- [k: string]: unknown | undefined
15711
+ block?:
15712
+ | boolean
15713
+ | (
15714
+ | (
15715
+ | {
15716
+ pattern?: string
15717
+ flags?: string
15718
+ }
15719
+ | string
15720
+ )[]
15721
+ | (
15722
+ | {
15723
+ pattern?: string
15724
+ flags?: string
15725
+ }
15726
+ | string
15727
+ )
15728
+ )
15729
+ line?:
15730
+ | boolean
15731
+ | (
15732
+ | (
15733
+ | {
15734
+ pattern?: string
15735
+ flags?: string
15736
+ }
15737
+ | string
15738
+ )[]
15739
+ | (
15740
+ | {
15741
+ pattern?: string
15742
+ flags?: string
15743
+ }
15744
+ | string
15745
+ )
15746
+ )
14812
15747
  }
14813
15748
 
14814
15749
  partitionByNewLine?: boolean
14815
15750
 
14816
15751
  newlinesBetween?: 'ignore' | 'always' | 'never'
14817
15752
 
14818
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14819
-
14820
15753
  groups?: (
14821
15754
  | string
14822
15755
  | string[]
14823
15756
  | {
14824
15757
  newlinesBetween?: 'ignore' | 'always' | 'never'
14825
- [k: string]: unknown | undefined
14826
15758
  }
14827
15759
  )[]
14828
15760
  },
@@ -14834,6 +15766,13 @@ type PerfectionistSortNamedExports =
14834
15766
  {
14835
15767
  specialCharacters?: 'remove' | 'trim' | 'keep'
14836
15768
 
15769
+ fallbackSort?: {
15770
+ order?: 'asc' | 'desc'
15771
+
15772
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15773
+ [k: string]: unknown | undefined
15774
+ }
15775
+
14837
15776
  ignoreCase?: boolean
14838
15777
 
14839
15778
  alphabet?: string
@@ -14842,23 +15781,70 @@ type PerfectionistSortNamedExports =
14842
15781
 
14843
15782
  order?: 'asc' | 'desc'
14844
15783
 
15784
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15785
+
14845
15786
  groupKind?: 'mixed' | 'values-first' | 'types-first'
14846
15787
 
14847
15788
  ignoreAlias?: boolean
14848
15789
 
14849
15790
  partitionByComment?:
14850
- | string[]
14851
15791
  | boolean
14852
- | string
15792
+ | (
15793
+ | (
15794
+ | {
15795
+ pattern?: string
15796
+ flags?: string
15797
+ }
15798
+ | string
15799
+ )[]
15800
+ | (
15801
+ | {
15802
+ pattern?: string
15803
+ flags?: string
15804
+ }
15805
+ | string
15806
+ )
15807
+ )
14853
15808
  | {
14854
- block?: string[] | boolean | string
14855
- line?: string[] | boolean | string
14856
- [k: string]: unknown | undefined
15809
+ block?:
15810
+ | boolean
15811
+ | (
15812
+ | (
15813
+ | {
15814
+ pattern?: string
15815
+ flags?: string
15816
+ }
15817
+ | string
15818
+ )[]
15819
+ | (
15820
+ | {
15821
+ pattern?: string
15822
+ flags?: string
15823
+ }
15824
+ | string
15825
+ )
15826
+ )
15827
+ line?:
15828
+ | boolean
15829
+ | (
15830
+ | (
15831
+ | {
15832
+ pattern?: string
15833
+ flags?: string
15834
+ }
15835
+ | string
15836
+ )[]
15837
+ | (
15838
+ | {
15839
+ pattern?: string
15840
+ flags?: string
15841
+ }
15842
+ | string
15843
+ )
15844
+ )
14857
15845
  }
14858
15846
 
14859
15847
  partitionByNewLine?: boolean
14860
-
14861
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14862
15848
  },
14863
15849
  ]
14864
15850
  // ----- perfectionist/sort-named-imports -----
@@ -14868,6 +15854,13 @@ type PerfectionistSortNamedImports =
14868
15854
  {
14869
15855
  specialCharacters?: 'remove' | 'trim' | 'keep'
14870
15856
 
15857
+ fallbackSort?: {
15858
+ order?: 'asc' | 'desc'
15859
+
15860
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15861
+ [k: string]: unknown | undefined
15862
+ }
15863
+
14871
15864
  ignoreCase?: boolean
14872
15865
 
14873
15866
  alphabet?: string
@@ -14876,29 +15869,83 @@ type PerfectionistSortNamedImports =
14876
15869
 
14877
15870
  order?: 'asc' | 'desc'
14878
15871
 
15872
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15873
+
14879
15874
  groupKind?: 'mixed' | 'values-first' | 'types-first'
14880
15875
 
14881
15876
  ignoreAlias?: boolean
14882
15877
 
14883
15878
  partitionByComment?:
14884
- | string[]
14885
15879
  | boolean
14886
- | string
15880
+ | (
15881
+ | (
15882
+ | {
15883
+ pattern?: string
15884
+ flags?: string
15885
+ }
15886
+ | string
15887
+ )[]
15888
+ | (
15889
+ | {
15890
+ pattern?: string
15891
+ flags?: string
15892
+ }
15893
+ | string
15894
+ )
15895
+ )
14887
15896
  | {
14888
- block?: string[] | boolean | string
14889
- line?: string[] | boolean | string
14890
- [k: string]: unknown | undefined
15897
+ block?:
15898
+ | boolean
15899
+ | (
15900
+ | (
15901
+ | {
15902
+ pattern?: string
15903
+ flags?: string
15904
+ }
15905
+ | string
15906
+ )[]
15907
+ | (
15908
+ | {
15909
+ pattern?: string
15910
+ flags?: string
15911
+ }
15912
+ | string
15913
+ )
15914
+ )
15915
+ line?:
15916
+ | boolean
15917
+ | (
15918
+ | (
15919
+ | {
15920
+ pattern?: string
15921
+ flags?: string
15922
+ }
15923
+ | string
15924
+ )[]
15925
+ | (
15926
+ | {
15927
+ pattern?: string
15928
+ flags?: string
15929
+ }
15930
+ | string
15931
+ )
15932
+ )
14891
15933
  }
14892
15934
 
14893
15935
  partitionByNewLine?: boolean
14894
-
14895
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
14896
15936
  },
14897
15937
  ]
14898
15938
  // ----- perfectionist/sort-object-types -----
14899
15939
  type PerfectionistSortObjectTypes = {
14900
15940
  specialCharacters?: 'remove' | 'trim' | 'keep'
14901
15941
 
15942
+ fallbackSort?: {
15943
+ order?: 'asc' | 'desc'
15944
+
15945
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15946
+ [k: string]: unknown | undefined
15947
+ }
15948
+
14902
15949
  ignoreCase?: boolean
14903
15950
 
14904
15951
  alphabet?: string
@@ -14907,11 +15954,7 @@ type PerfectionistSortObjectTypes = {
14907
15954
 
14908
15955
  order?: 'asc' | 'desc'
14909
15956
 
14910
- ignorePattern?: string[]
14911
- useConfigurationIf?: {
14912
- allNamesMatchPattern?: string
14913
- declarationMatchesPattern?: string
14914
- }
15957
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14915
15958
  customGroups?:
14916
15959
  | {
14917
15960
  [k: string]: (string | string[]) | undefined
@@ -14930,7 +15973,21 @@ type PerfectionistSortObjectTypes = {
14930
15973
 
14931
15974
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
14932
15975
 
14933
- elementNamePattern?: string
15976
+ elementNamePattern?:
15977
+ | (
15978
+ | {
15979
+ pattern?: string
15980
+ flags?: string
15981
+ }
15982
+ | string
15983
+ )[]
15984
+ | (
15985
+ | {
15986
+ pattern?: string
15987
+ flags?: string
15988
+ }
15989
+ | string
15990
+ )
14934
15991
  }[]
14935
15992
  }
14936
15993
  | {
@@ -14946,34 +16003,141 @@ type PerfectionistSortObjectTypes = {
14946
16003
 
14947
16004
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
14948
16005
 
14949
- elementNamePattern?: string
14950
- }
14951
- )[]
16006
+ elementNamePattern?:
16007
+ | (
16008
+ | {
16009
+ pattern?: string
16010
+ flags?: string
16011
+ }
16012
+ | string
16013
+ )[]
16014
+ | (
16015
+ | {
16016
+ pattern?: string
16017
+ flags?: string
16018
+ }
16019
+ | string
16020
+ )
16021
+ }
16022
+ )[]
16023
+ useConfigurationIf?: {
16024
+ allNamesMatchPattern?:
16025
+ | (
16026
+ | {
16027
+ pattern?: string
16028
+ flags?: string
16029
+ }
16030
+ | string
16031
+ )[]
16032
+ | (
16033
+ | {
16034
+ pattern?: string
16035
+ flags?: string
16036
+ }
16037
+ | string
16038
+ )
16039
+
16040
+ declarationMatchesPattern?:
16041
+ | (
16042
+ | {
16043
+ pattern?: string
16044
+ flags?: string
16045
+ }
16046
+ | string
16047
+ )[]
16048
+ | (
16049
+ | {
16050
+ pattern?: string
16051
+ flags?: string
16052
+ }
16053
+ | string
16054
+ )
16055
+ }
14952
16056
 
14953
16057
  groupKind?: 'mixed' | 'required-first' | 'optional-first'
14954
16058
 
14955
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14956
-
14957
16059
  partitionByComment?:
14958
- | string[]
14959
16060
  | boolean
14960
- | string
16061
+ | (
16062
+ | (
16063
+ | {
16064
+ pattern?: string
16065
+ flags?: string
16066
+ }
16067
+ | string
16068
+ )[]
16069
+ | (
16070
+ | {
16071
+ pattern?: string
16072
+ flags?: string
16073
+ }
16074
+ | string
16075
+ )
16076
+ )
14961
16077
  | {
14962
- block?: string[] | boolean | string
14963
- line?: string[] | boolean | string
14964
- [k: string]: unknown | undefined
16078
+ block?:
16079
+ | boolean
16080
+ | (
16081
+ | (
16082
+ | {
16083
+ pattern?: string
16084
+ flags?: string
16085
+ }
16086
+ | string
16087
+ )[]
16088
+ | (
16089
+ | {
16090
+ pattern?: string
16091
+ flags?: string
16092
+ }
16093
+ | string
16094
+ )
16095
+ )
16096
+ line?:
16097
+ | boolean
16098
+ | (
16099
+ | (
16100
+ | {
16101
+ pattern?: string
16102
+ flags?: string
16103
+ }
16104
+ | string
16105
+ )[]
16106
+ | (
16107
+ | {
16108
+ pattern?: string
16109
+ flags?: string
16110
+ }
16111
+ | string
16112
+ )
16113
+ )
14965
16114
  }
14966
16115
 
14967
16116
  partitionByNewLine?: boolean
14968
16117
 
14969
16118
  newlinesBetween?: 'ignore' | 'always' | 'never'
14970
16119
 
16120
+ ignorePattern?:
16121
+ | (
16122
+ | {
16123
+ pattern?: string
16124
+ flags?: string
16125
+ }
16126
+ | string
16127
+ )[]
16128
+ | (
16129
+ | {
16130
+ pattern?: string
16131
+ flags?: string
16132
+ }
16133
+ | string
16134
+ )
16135
+
14971
16136
  groups?: (
14972
16137
  | string
14973
16138
  | string[]
14974
16139
  | {
14975
16140
  newlinesBetween?: 'ignore' | 'always' | 'never'
14976
- [k: string]: unknown | undefined
14977
16141
  }
14978
16142
  )[]
14979
16143
  }[]
@@ -14981,6 +16145,13 @@ type PerfectionistSortObjectTypes = {
14981
16145
  type PerfectionistSortObjects = {
14982
16146
  specialCharacters?: 'remove' | 'trim' | 'keep'
14983
16147
 
16148
+ fallbackSort?: {
16149
+ order?: 'asc' | 'desc'
16150
+
16151
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16152
+ [k: string]: unknown | undefined
16153
+ }
16154
+
14984
16155
  ignoreCase?: boolean
14985
16156
 
14986
16157
  alphabet?: string
@@ -14989,17 +16160,13 @@ type PerfectionistSortObjects = {
14989
16160
 
14990
16161
  order?: 'asc' | 'desc'
14991
16162
 
16163
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16164
+
14992
16165
  destructuredObjects?:
14993
16166
  | boolean
14994
16167
  | {
14995
16168
  groups?: boolean
14996
16169
  }
14997
-
14998
- ignorePattern?: string[]
14999
- useConfigurationIf?: {
15000
- allNamesMatchPattern?: string
15001
- callingFunctionNamePattern?: string
15002
- }
15003
16170
  customGroups?:
15004
16171
  | {
15005
16172
  [k: string]: (string | string[]) | undefined
@@ -15018,9 +16185,37 @@ type PerfectionistSortObjects = {
15018
16185
 
15019
16186
  selector?: 'member' | 'method' | 'multiline' | 'property'
15020
16187
 
15021
- elementValuePattern?: string
15022
-
15023
- elementNamePattern?: string
16188
+ elementValuePattern?:
16189
+ | (
16190
+ | {
16191
+ pattern?: string
16192
+ flags?: string
16193
+ }
16194
+ | string
16195
+ )[]
16196
+ | (
16197
+ | {
16198
+ pattern?: string
16199
+ flags?: string
16200
+ }
16201
+ | string
16202
+ )
16203
+
16204
+ elementNamePattern?:
16205
+ | (
16206
+ | {
16207
+ pattern?: string
16208
+ flags?: string
16209
+ }
16210
+ | string
16211
+ )[]
16212
+ | (
16213
+ | {
16214
+ pattern?: string
16215
+ flags?: string
16216
+ }
16217
+ | string
16218
+ )
15024
16219
  }[]
15025
16220
  }
15026
16221
  | {
@@ -15036,11 +16231,72 @@ type PerfectionistSortObjects = {
15036
16231
 
15037
16232
  selector?: 'member' | 'method' | 'multiline' | 'property'
15038
16233
 
15039
- elementValuePattern?: string
16234
+ elementValuePattern?:
16235
+ | (
16236
+ | {
16237
+ pattern?: string
16238
+ flags?: string
16239
+ }
16240
+ | string
16241
+ )[]
16242
+ | (
16243
+ | {
16244
+ pattern?: string
16245
+ flags?: string
16246
+ }
16247
+ | string
16248
+ )
15040
16249
 
15041
- elementNamePattern?: string
16250
+ elementNamePattern?:
16251
+ | (
16252
+ | {
16253
+ pattern?: string
16254
+ flags?: string
16255
+ }
16256
+ | string
16257
+ )[]
16258
+ | (
16259
+ | {
16260
+ pattern?: string
16261
+ flags?: string
16262
+ }
16263
+ | string
16264
+ )
15042
16265
  }
15043
16266
  )[]
16267
+ useConfigurationIf?: {
16268
+ allNamesMatchPattern?:
16269
+ | (
16270
+ | {
16271
+ pattern?: string
16272
+ flags?: string
16273
+ }
16274
+ | string
16275
+ )[]
16276
+ | (
16277
+ | {
16278
+ pattern?: string
16279
+ flags?: string
16280
+ }
16281
+ | string
16282
+ )
16283
+
16284
+ callingFunctionNamePattern?:
16285
+ | (
16286
+ | {
16287
+ pattern?: string
16288
+ flags?: string
16289
+ }
16290
+ | string
16291
+ )[]
16292
+ | (
16293
+ | {
16294
+ pattern?: string
16295
+ flags?: string
16296
+ }
16297
+ | string
16298
+ )
16299
+ }
15044
16300
 
15045
16301
  destructureOnly?: boolean
15046
16302
 
@@ -15048,28 +16304,88 @@ type PerfectionistSortObjects = {
15048
16304
 
15049
16305
  styledComponents?: boolean
15050
16306
 
15051
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15052
-
15053
16307
  partitionByComment?:
15054
- | string[]
15055
16308
  | boolean
15056
- | string
16309
+ | (
16310
+ | (
16311
+ | {
16312
+ pattern?: string
16313
+ flags?: string
16314
+ }
16315
+ | string
16316
+ )[]
16317
+ | (
16318
+ | {
16319
+ pattern?: string
16320
+ flags?: string
16321
+ }
16322
+ | string
16323
+ )
16324
+ )
15057
16325
  | {
15058
- block?: string[] | boolean | string
15059
- line?: string[] | boolean | string
15060
- [k: string]: unknown | undefined
16326
+ block?:
16327
+ | boolean
16328
+ | (
16329
+ | (
16330
+ | {
16331
+ pattern?: string
16332
+ flags?: string
16333
+ }
16334
+ | string
16335
+ )[]
16336
+ | (
16337
+ | {
16338
+ pattern?: string
16339
+ flags?: string
16340
+ }
16341
+ | string
16342
+ )
16343
+ )
16344
+ line?:
16345
+ | boolean
16346
+ | (
16347
+ | (
16348
+ | {
16349
+ pattern?: string
16350
+ flags?: string
16351
+ }
16352
+ | string
16353
+ )[]
16354
+ | (
16355
+ | {
16356
+ pattern?: string
16357
+ flags?: string
16358
+ }
16359
+ | string
16360
+ )
16361
+ )
15061
16362
  }
15062
16363
 
15063
16364
  partitionByNewLine?: boolean
15064
16365
 
15065
16366
  newlinesBetween?: 'ignore' | 'always' | 'never'
15066
16367
 
16368
+ ignorePattern?:
16369
+ | (
16370
+ | {
16371
+ pattern?: string
16372
+ flags?: string
16373
+ }
16374
+ | string
16375
+ )[]
16376
+ | (
16377
+ | {
16378
+ pattern?: string
16379
+ flags?: string
16380
+ }
16381
+ | string
16382
+ )
16383
+
15067
16384
  groups?: (
15068
16385
  | string
15069
16386
  | string[]
15070
16387
  | {
15071
16388
  newlinesBetween?: 'ignore' | 'always' | 'never'
15072
- [k: string]: unknown | undefined
15073
16389
  }
15074
16390
  )[]
15075
16391
  }[]
@@ -15077,6 +16393,13 @@ type PerfectionistSortObjects = {
15077
16393
  type PerfectionistSortSets = {
15078
16394
  specialCharacters?: 'remove' | 'trim' | 'keep'
15079
16395
 
16396
+ fallbackSort?: {
16397
+ order?: 'asc' | 'desc'
16398
+
16399
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16400
+ [k: string]: unknown | undefined
16401
+ }
16402
+
15080
16403
  ignoreCase?: boolean
15081
16404
 
15082
16405
  alphabet?: string
@@ -15085,6 +16408,8 @@ type PerfectionistSortSets = {
15085
16408
 
15086
16409
  order?: 'asc' | 'desc'
15087
16410
 
16411
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16412
+
15088
16413
  groupKind?: 'mixed' | 'literals-first' | 'spreads-first'
15089
16414
 
15090
16415
  customGroups?: (
@@ -15099,7 +16424,21 @@ type PerfectionistSortSets = {
15099
16424
  anyOf?: {
15100
16425
  selector?: 'literal' | 'spread'
15101
16426
 
15102
- elementNamePattern?: string
16427
+ elementNamePattern?:
16428
+ | (
16429
+ | {
16430
+ pattern?: string
16431
+ flags?: string
16432
+ }
16433
+ | string
16434
+ )[]
16435
+ | (
16436
+ | {
16437
+ pattern?: string
16438
+ flags?: string
16439
+ }
16440
+ | string
16441
+ )
15103
16442
  }[]
15104
16443
  }
15105
16444
  | {
@@ -15113,23 +16452,96 @@ type PerfectionistSortSets = {
15113
16452
 
15114
16453
  selector?: 'literal' | 'spread'
15115
16454
 
15116
- elementNamePattern?: string
16455
+ elementNamePattern?:
16456
+ | (
16457
+ | {
16458
+ pattern?: string
16459
+ flags?: string
16460
+ }
16461
+ | string
16462
+ )[]
16463
+ | (
16464
+ | {
16465
+ pattern?: string
16466
+ flags?: string
16467
+ }
16468
+ | string
16469
+ )
15117
16470
  }
15118
16471
  )[]
15119
16472
  useConfigurationIf?: {
15120
- allNamesMatchPattern?: string
16473
+ allNamesMatchPattern?:
16474
+ | (
16475
+ | {
16476
+ pattern?: string
16477
+ flags?: string
16478
+ }
16479
+ | string
16480
+ )[]
16481
+ | (
16482
+ | {
16483
+ pattern?: string
16484
+ flags?: string
16485
+ }
16486
+ | string
16487
+ )
15121
16488
  }
15122
16489
 
15123
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15124
-
15125
16490
  partitionByComment?:
15126
- | string[]
15127
16491
  | boolean
15128
- | string
16492
+ | (
16493
+ | (
16494
+ | {
16495
+ pattern?: string
16496
+ flags?: string
16497
+ }
16498
+ | string
16499
+ )[]
16500
+ | (
16501
+ | {
16502
+ pattern?: string
16503
+ flags?: string
16504
+ }
16505
+ | string
16506
+ )
16507
+ )
15129
16508
  | {
15130
- block?: string[] | boolean | string
15131
- line?: string[] | boolean | string
15132
- [k: string]: unknown | undefined
16509
+ block?:
16510
+ | boolean
16511
+ | (
16512
+ | (
16513
+ | {
16514
+ pattern?: string
16515
+ flags?: string
16516
+ }
16517
+ | string
16518
+ )[]
16519
+ | (
16520
+ | {
16521
+ pattern?: string
16522
+ flags?: string
16523
+ }
16524
+ | string
16525
+ )
16526
+ )
16527
+ line?:
16528
+ | boolean
16529
+ | (
16530
+ | (
16531
+ | {
16532
+ pattern?: string
16533
+ flags?: string
16534
+ }
16535
+ | string
16536
+ )[]
16537
+ | (
16538
+ | {
16539
+ pattern?: string
16540
+ flags?: string
16541
+ }
16542
+ | string
16543
+ )
16544
+ )
15133
16545
  }
15134
16546
 
15135
16547
  partitionByNewLine?: boolean
@@ -15141,7 +16553,6 @@ type PerfectionistSortSets = {
15141
16553
  | string[]
15142
16554
  | {
15143
16555
  newlinesBetween?: 'ignore' | 'always' | 'never'
15144
- [k: string]: unknown | undefined
15145
16556
  }
15146
16557
  )[]
15147
16558
  }[]
@@ -15152,6 +16563,13 @@ type PerfectionistSortSwitchCase =
15152
16563
  {
15153
16564
  specialCharacters?: 'remove' | 'trim' | 'keep'
15154
16565
 
16566
+ fallbackSort?: {
16567
+ order?: 'asc' | 'desc'
16568
+
16569
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16570
+ [k: string]: unknown | undefined
16571
+ }
16572
+
15155
16573
  ignoreCase?: boolean
15156
16574
 
15157
16575
  alphabet?: string
@@ -15160,7 +16578,7 @@ type PerfectionistSortSwitchCase =
15160
16578
 
15161
16579
  order?: 'asc' | 'desc'
15162
16580
 
15163
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
16581
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15164
16582
  },
15165
16583
  ]
15166
16584
  // ----- perfectionist/sort-union-types -----
@@ -15170,6 +16588,13 @@ type PerfectionistSortUnionTypes =
15170
16588
  {
15171
16589
  specialCharacters?: 'remove' | 'trim' | 'keep'
15172
16590
 
16591
+ fallbackSort?: {
16592
+ order?: 'asc' | 'desc'
16593
+
16594
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16595
+ [k: string]: unknown | undefined
16596
+ }
16597
+
15173
16598
  ignoreCase?: boolean
15174
16599
 
15175
16600
  alphabet?: string
@@ -15178,28 +16603,74 @@ type PerfectionistSortUnionTypes =
15178
16603
 
15179
16604
  order?: 'asc' | 'desc'
15180
16605
 
16606
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16607
+
15181
16608
  partitionByComment?:
15182
- | string[]
15183
16609
  | boolean
15184
- | string
16610
+ | (
16611
+ | (
16612
+ | {
16613
+ pattern?: string
16614
+ flags?: string
16615
+ }
16616
+ | string
16617
+ )[]
16618
+ | (
16619
+ | {
16620
+ pattern?: string
16621
+ flags?: string
16622
+ }
16623
+ | string
16624
+ )
16625
+ )
15185
16626
  | {
15186
- block?: string[] | boolean | string
15187
- line?: string[] | boolean | string
15188
- [k: string]: unknown | undefined
16627
+ block?:
16628
+ | boolean
16629
+ | (
16630
+ | (
16631
+ | {
16632
+ pattern?: string
16633
+ flags?: string
16634
+ }
16635
+ | string
16636
+ )[]
16637
+ | (
16638
+ | {
16639
+ pattern?: string
16640
+ flags?: string
16641
+ }
16642
+ | string
16643
+ )
16644
+ )
16645
+ line?:
16646
+ | boolean
16647
+ | (
16648
+ | (
16649
+ | {
16650
+ pattern?: string
16651
+ flags?: string
16652
+ }
16653
+ | string
16654
+ )[]
16655
+ | (
16656
+ | {
16657
+ pattern?: string
16658
+ flags?: string
16659
+ }
16660
+ | string
16661
+ )
16662
+ )
15189
16663
  }
15190
16664
 
15191
16665
  partitionByNewLine?: boolean
15192
16666
 
15193
16667
  newlinesBetween?: 'ignore' | 'always' | 'never'
15194
16668
 
15195
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
15196
-
15197
16669
  groups?: (
15198
16670
  | string
15199
16671
  | string[]
15200
16672
  | {
15201
16673
  newlinesBetween?: 'ignore' | 'always' | 'never'
15202
- [k: string]: unknown | undefined
15203
16674
  }
15204
16675
  )[]
15205
16676
  },
@@ -15211,6 +16682,13 @@ type PerfectionistSortVariableDeclarations =
15211
16682
  {
15212
16683
  specialCharacters?: 'remove' | 'trim' | 'keep'
15213
16684
 
16685
+ fallbackSort?: {
16686
+ order?: 'asc' | 'desc'
16687
+
16688
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16689
+ [k: string]: unknown | undefined
16690
+ }
16691
+
15214
16692
  ignoreCase?: boolean
15215
16693
 
15216
16694
  alphabet?: string
@@ -15219,19 +16697,66 @@ type PerfectionistSortVariableDeclarations =
15219
16697
 
15220
16698
  order?: 'asc' | 'desc'
15221
16699
 
16700
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16701
+
15222
16702
  partitionByComment?:
15223
- | string[]
15224
16703
  | boolean
15225
- | string
16704
+ | (
16705
+ | (
16706
+ | {
16707
+ pattern?: string
16708
+ flags?: string
16709
+ }
16710
+ | string
16711
+ )[]
16712
+ | (
16713
+ | {
16714
+ pattern?: string
16715
+ flags?: string
16716
+ }
16717
+ | string
16718
+ )
16719
+ )
15226
16720
  | {
15227
- block?: string[] | boolean | string
15228
- line?: string[] | boolean | string
15229
- [k: string]: unknown | undefined
16721
+ block?:
16722
+ | boolean
16723
+ | (
16724
+ | (
16725
+ | {
16726
+ pattern?: string
16727
+ flags?: string
16728
+ }
16729
+ | string
16730
+ )[]
16731
+ | (
16732
+ | {
16733
+ pattern?: string
16734
+ flags?: string
16735
+ }
16736
+ | string
16737
+ )
16738
+ )
16739
+ line?:
16740
+ | boolean
16741
+ | (
16742
+ | (
16743
+ | {
16744
+ pattern?: string
16745
+ flags?: string
16746
+ }
16747
+ | string
16748
+ )[]
16749
+ | (
16750
+ | {
16751
+ pattern?: string
16752
+ flags?: string
16753
+ }
16754
+ | string
16755
+ )
16756
+ )
15230
16757
  }
15231
16758
 
15232
16759
  partitionByNewLine?: boolean
15233
-
15234
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom'
15235
16760
  },
15236
16761
  ]
15237
16762
  // ----- prefer-arrow-callback -----
@@ -16237,6 +17762,14 @@ type TestRequireHook =
16237
17762
  allowedFunctionCalls?: string[]
16238
17763
  },
16239
17764
  ]
17765
+ // ----- test/require-mock-type-parameters -----
17766
+ type TestRequireMockTypeParameters =
17767
+ | []
17768
+ | [
17769
+ {
17770
+ checkImportFunctions?: boolean
17771
+ },
17772
+ ]
16240
17773
  // ----- test/require-top-level-describe -----
16241
17774
  type TestRequireTopLevelDescribe =
16242
17775
  | []
@@ -19648,7 +21181,7 @@ type TsNoUnnecessaryCondition =
19648
21181
  | []
19649
21182
  | [
19650
21183
  {
19651
- allowConstantLoopConditions?: boolean
21184
+ allowConstantLoopConditions?: boolean | ('always' | 'never' | 'only-allowed-literals')
19652
21185
 
19653
21186
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
19654
21187
 
@@ -20240,6 +21773,17 @@ type UnicornNoArrayReduce =
20240
21773
  allowSimpleOperations?: boolean
20241
21774
  },
20242
21775
  ]
21776
+ // ----- unicorn/no-instanceof-builtins -----
21777
+ type UnicornNoInstanceofBuiltins =
21778
+ | []
21779
+ | [
21780
+ {
21781
+ useErrorIsError?: boolean
21782
+ strategy?: 'loose' | 'strict'
21783
+ include?: string[]
21784
+ exclude?: string[]
21785
+ },
21786
+ ]
20243
21787
  // ----- unicorn/no-keyword-prefix -----
20244
21788
  type UnicornNoKeywordPrefix =
20245
21789
  | []