@zayne-labs/eslint-config 0.11.4 → 0.11.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.
package/dist/index.d.ts CHANGED
@@ -276,6 +276,11 @@ interface Rules {
276
276
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
277
277
  */
278
278
  'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
279
+ /**
280
+ * disallow inline `<script>` without `src` to encourage CSP-safe patterns
281
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
282
+ */
283
+ 'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
279
284
  /**
280
285
  * disallow selectors defined in `style` tag that don't use in HTML
281
286
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
@@ -1136,6 +1141,11 @@ interface Rules {
1136
1141
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
1137
1142
  */
1138
1143
  'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
1144
+ /**
1145
+ * Requires that Promise rejections are documented with `@rejects` tags.
1146
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
1147
+ */
1148
+ 'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>;
1139
1149
  /**
1140
1150
  * Requires that returns are documented with `@returns`.
1141
1151
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
@@ -1926,7 +1936,7 @@ interface Rules {
1926
1936
  */
1927
1937
  'nextjs/inline-script-id'?: Linter.RuleEntry<[]>;
1928
1938
  /**
1929
- * Prefer `next/script` component when using the inline script for Google Analytics.
1939
+ * Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
1930
1940
  * @see https://nextjs.org/docs/messages/next-script-for-ga
1931
1941
  */
1932
1942
  'nextjs/next-script-for-ga'?: Linter.RuleEntry<[]>;
@@ -3110,6 +3120,11 @@ interface Rules {
3110
3120
  * @see https://perfectionist.dev/rules/sort-enums
3111
3121
  */
3112
3122
  'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
3123
+ /**
3124
+ * Enforce sorted export attributes.
3125
+ * @see https://perfectionist.dev/rules/sort-export-attributes
3126
+ */
3127
+ 'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
3113
3128
  /**
3114
3129
  * Enforce sorted exports.
3115
3130
  * @see https://perfectionist.dev/rules/sort-exports
@@ -3120,6 +3135,11 @@ interface Rules {
3120
3135
  * @see https://perfectionist.dev/rules/sort-heritage-clauses
3121
3136
  */
3122
3137
  'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
3138
+ /**
3139
+ * Enforce sorted import attributes.
3140
+ * @see https://perfectionist.dev/rules/sort-import-attributes
3141
+ */
3142
+ 'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
3123
3143
  /**
3124
3144
  * Enforce sorted imports.
3125
3145
  * @see https://perfectionist.dev/rules/sort-imports
@@ -3205,6 +3225,11 @@ interface Rules {
3205
3225
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
3206
3226
  */
3207
3227
  'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
3228
+ /**
3229
+ * Enforce settings in `pnpm-workspace.yaml`
3230
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
3231
+ */
3232
+ 'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
3208
3233
  /**
3209
3234
  * Disallow duplicate catalog items in `pnpm-workspace.yaml`
3210
3235
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
@@ -3523,7 +3548,7 @@ interface Rules {
3523
3548
  */
3524
3549
  'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
3525
3550
  /**
3526
- * Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
3551
+ * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
3527
3552
  */
3528
3553
  'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
3529
3554
  /**
@@ -3572,6 +3597,11 @@ interface Rules {
3572
3597
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3573
3598
  */
3574
3599
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
3600
+ /**
3601
+ * Prevents dollar signs from being inserted as text nodes before expressions.
3602
+ * @see https://eslint-react.xyz/docs/rules/jsx-dollar
3603
+ */
3604
+ 'react-x/jsx-dollar'?: Linter.RuleEntry<[]>;
3575
3605
  /**
3576
3606
  * Enforces that the 'key' prop is placed before the spread prop in JSX elements.
3577
3607
  * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
@@ -3710,6 +3740,7 @@ interface Rules {
3710
3740
  /**
3711
3741
  * Disallow certain props on components.
3712
3742
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
3743
+ * @deprecated
3713
3744
  */
3714
3745
  'react-x/no-forbidden-props'?: Linter.RuleEntry<ReactXNoForbiddenProps>;
3715
3746
  /**
@@ -3831,7 +3862,7 @@ interface Rules {
3831
3862
  * Prevents using referential-type values as default props in object destructuring.
3832
3863
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
3833
3864
  */
3834
- 'react-x/no-unstable-default-props'?: Linter.RuleEntry<[]>;
3865
+ 'react-x/no-unstable-default-props'?: Linter.RuleEntry<ReactXNoUnstableDefaultProps>;
3835
3866
  /**
3836
3867
  * Warns unused class component methods and properties.
3837
3868
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
@@ -3911,10 +3942,6 @@ interface Rules {
3911
3942
  * @see https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store
3912
3943
  */
3913
3944
  'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>;
3914
- /**
3915
- * Disallow effects that only use props.
3916
- */
3917
- 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>;
3918
3945
  /**
3919
3946
  * Disallow passing data to parents in an effect.
3920
3947
  * @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
@@ -3925,6 +3952,11 @@ interface Rules {
3925
3952
  * @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
3926
3953
  */
3927
3954
  'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>;
3955
+ /**
3956
+ * Disallow passing refs, or data from callbacks registered on them, to parents in an effect. Use `forwardRef` instead.
3957
+ * @see https://react.dev/reference/react/forwardRef
3958
+ */
3959
+ 'react-you-might-not-need-an-effect/no-pass-ref-to-parent'?: Linter.RuleEntry<[]>;
3928
3960
  /**
3929
3961
  * Disallow resetting all state in an effect when a prop changes.
3930
3962
  * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
@@ -4706,7 +4738,7 @@ interface Rules {
4706
4738
  'tailwindcss-better/enforce-consistent-important-position'?: Linter.RuleEntry<TailwindcssBetterEnforceConsistentImportantPosition>;
4707
4739
  /**
4708
4740
  * Enforce consistent line wrapping for tailwind classes.
4709
- * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
4741
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-line-wrapping.md
4710
4742
  */
4711
4743
  'tailwindcss-better/enforce-consistent-line-wrapping'?: Linter.RuleEntry<TailwindcssBetterEnforceConsistentLineWrapping>;
4712
4744
  /**
@@ -4721,7 +4753,7 @@ interface Rules {
4721
4753
  'tailwindcss-better/enforce-shorthand-classes'?: Linter.RuleEntry<TailwindcssBetterEnforceShorthandClasses>;
4722
4754
  /**
4723
4755
  * Enforce consistent line wrapping for tailwind classes.
4724
- * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
4756
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-line-wrapping.md
4725
4757
  * @deprecated
4726
4758
  */
4727
4759
  'tailwindcss-better/multiline'?: Linter.RuleEntry<TailwindcssBetterMultiline>;
@@ -5367,6 +5399,11 @@ interface Rules {
5367
5399
  * @see https://typescript-eslint.io/rules/no-unused-expressions
5368
5400
  */
5369
5401
  'ts-eslint/no-unused-expressions'?: Linter.RuleEntry<TsEslintNoUnusedExpressions>;
5402
+ /**
5403
+ * Disallow unused private class members
5404
+ * @see https://typescript-eslint.io/rules/no-unused-private-class-members
5405
+ */
5406
+ 'ts-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
5370
5407
  /**
5371
5408
  * Disallow unused variables
5372
5409
  * @see https://typescript-eslint.io/rules/no-unused-vars
@@ -5382,6 +5419,11 @@ interface Rules {
5382
5419
  * @see https://typescript-eslint.io/rules/no-useless-constructor
5383
5420
  */
5384
5421
  'ts-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>;
5422
+ /**
5423
+ * Disallow default values that will never be used
5424
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
5425
+ */
5426
+ 'ts-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
5385
5427
  /**
5386
5428
  * Disallow empty exports that don't change anything in a module file
5387
5429
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -5593,710 +5635,725 @@ interface Rules {
5593
5635
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
5594
5636
  /**
5595
5637
  * Improve regexes by making them shorter, consistent, and safer.
5596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
5638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
5597
5639
  */
5598
5640
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
5599
5641
  /**
5600
5642
  * Enforce a specific parameter name in catch clauses.
5601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
5643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5602
5644
  */
5603
5645
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5604
5646
  /**
5605
5647
  * Enforce consistent assertion style with `node:assert`.
5606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
5648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5607
5649
  */
5608
5650
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5609
5651
  /**
5610
5652
  * Prefer passing `Date` directly to the constructor when cloning.
5611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
5653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5612
5654
  */
5613
5655
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5614
5656
  /**
5615
5657
  * Use destructured variables over properties.
5616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
5658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5617
5659
  */
5618
5660
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5619
5661
  /**
5620
5662
  * Prefer consistent types when spreading a ternary in an array literal.
5621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
5663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5622
5664
  */
5623
5665
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5624
5666
  /**
5625
5667
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
5668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5627
5669
  */
5628
5670
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5629
5671
  /**
5630
5672
  * Move function definitions to the highest possible scope.
5631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
5673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5632
5674
  */
5633
5675
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5634
5676
  /**
5635
5677
  * Enforce correct `Error` subclassing.
5636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
5678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5637
5679
  */
5638
5680
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5639
5681
  /**
5640
5682
  * Enforce no spaces between braces.
5641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
5683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5642
5684
  */
5643
5685
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5644
5686
  /**
5645
5687
  * Enforce passing a `message` value when creating a built-in error.
5646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
5688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5647
5689
  */
5648
5690
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5649
5691
  /**
5650
5692
  * Require escape sequences to use uppercase or lowercase values.
5651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
5693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5652
5694
  */
5653
5695
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5654
5696
  /**
5655
5697
  * Add expiration conditions to TODO comments.
5656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
5698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5657
5699
  */
5658
5700
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5659
5701
  /**
5660
5702
  * Enforce explicitly comparing the `length` or `size` property of a value.
5661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
5703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5662
5704
  */
5663
5705
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5664
5706
  /**
5665
5707
  * Enforce a case style for filenames.
5666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
5708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5667
5709
  */
5668
5710
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5669
5711
  /**
5670
5712
  * Enforce specific import styles per module.
5671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
5713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5672
5714
  */
5673
5715
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5674
5716
  /**
5675
5717
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
5718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5677
5719
  */
5678
5720
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5679
5721
  /**
5680
5722
  * Enforce specifying rules to disable in `eslint-disable` comments.
5681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
5723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5682
5724
  */
5683
5725
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5684
5726
  /**
5685
5727
  * Disallow recursive access to `this` within getters and setters.
5686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
5728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5687
5729
  */
5688
5730
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5689
5731
  /**
5690
5732
  * Disallow anonymous functions and classes as the default export.
5691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
5733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5692
5734
  */
5693
5735
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5694
5736
  /**
5695
5737
  * Prevent passing a function reference directly to iterator methods.
5696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
5738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5697
5739
  */
5698
5740
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5699
5741
  /**
5700
5742
  * Prefer `for…of` over the `forEach` method.
5701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
5743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5702
5744
  */
5703
5745
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5704
5746
  /**
5705
5747
  * Disallow using the `this` argument in array methods.
5706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
5748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5707
5749
  */
5708
5750
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5709
5751
  /**
5710
5752
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
5753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5712
5754
  * @deprecated
5713
5755
  */
5714
5756
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5715
5757
  /**
5716
5758
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
5759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5718
5760
  */
5719
5761
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5720
5762
  /**
5721
5763
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
5764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5723
5765
  */
5724
5766
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5725
5767
  /**
5726
5768
  * Prefer `Array#toSorted()` over `Array#sort()`.
5727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
5769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5728
5770
  */
5729
5771
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5730
5772
  /**
5731
5773
  * Disallow member access from await expression.
5732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
5774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5733
5775
  */
5734
5776
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5735
5777
  /**
5736
5778
  * Disallow using `await` in `Promise` method parameters.
5737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
5779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5738
5780
  */
5739
5781
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5740
5782
  /**
5741
5783
  * Do not use leading/trailing space between `console.log` parameters.
5742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
5784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5743
5785
  */
5744
5786
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5745
5787
  /**
5746
5788
  * Do not use `document.cookie` directly.
5747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
5789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5748
5790
  */
5749
5791
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5750
5792
  /**
5751
5793
  * Disallow empty files.
5752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
5794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5753
5795
  */
5754
5796
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5755
5797
  /**
5756
5798
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
5799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5758
5800
  */
5759
5801
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5760
5802
  /**
5761
5803
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
5804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5763
5805
  */
5764
5806
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5807
+ /**
5808
+ * Disallow immediate mutation after variable assignment.
5809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5810
+ */
5811
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5765
5812
  /**
5766
5813
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
5814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5768
5815
  * @deprecated
5769
5816
  */
5770
5817
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5771
5818
  /**
5772
5819
  * Disallow `instanceof` with built-in objects
5773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
5820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5774
5821
  */
5775
5822
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5776
5823
  /**
5777
5824
  * Disallow invalid options in `fetch()` and `new Request()`.
5778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
5825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5779
5826
  */
5780
5827
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5781
5828
  /**
5782
5829
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5784
5831
  */
5785
5832
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5786
5833
  /**
5787
5834
  * Disallow identifiers starting with `new` or `class`.
5788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
5835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5789
5836
  */
5790
5837
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5791
5838
  /**
5792
5839
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
5840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5794
5841
  * @deprecated
5795
5842
  */
5796
5843
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5797
5844
  /**
5798
5845
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
5846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5800
5847
  */
5801
5848
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5802
5849
  /**
5803
5850
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
5851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5805
5852
  */
5806
5853
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5807
5854
  /**
5808
5855
  * Disallow named usage of default import and export.
5809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
5856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5810
5857
  */
5811
5858
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5812
5859
  /**
5813
5860
  * Disallow negated conditions.
5814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
5861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5815
5862
  */
5816
5863
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5817
5864
  /**
5818
5865
  * Disallow negated expression in equality check.
5819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
5866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5820
5867
  */
5821
5868
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5822
5869
  /**
5823
5870
  * Disallow nested ternary expressions.
5824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
5871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5825
5872
  */
5826
5873
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5827
5874
  /**
5828
5875
  * Disallow `new Array()`.
5829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
5876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5830
5877
  */
5831
5878
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5832
5879
  /**
5833
5880
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
5881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5835
5882
  */
5836
5883
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5837
5884
  /**
5838
5885
  * Disallow the use of the `null` literal.
5839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
5886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5840
5887
  */
5841
5888
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5842
5889
  /**
5843
5890
  * Disallow the use of objects as default parameters.
5844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
5891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5845
5892
  */
5846
5893
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5847
5894
  /**
5848
5895
  * Disallow `process.exit()`.
5849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
5896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5850
5897
  */
5851
5898
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5852
5899
  /**
5853
5900
  * Disallow passing single-element arrays to `Promise` methods.
5854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
5901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5855
5902
  */
5856
5903
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5857
5904
  /**
5858
5905
  * Disallow classes that only have static members.
5859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
5906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5860
5907
  */
5861
5908
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5862
5909
  /**
5863
5910
  * Disallow `then` property.
5864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
5911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5865
5912
  */
5866
5913
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5867
5914
  /**
5868
5915
  * Disallow assigning `this` to a variable.
5869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
5916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5870
5917
  */
5871
5918
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5872
5919
  /**
5873
5920
  * Disallow comparing `undefined` using `typeof`.
5874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
5921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5875
5922
  */
5876
5923
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5877
5924
  /**
5878
5925
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
5926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5880
5927
  */
5881
5928
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5882
5929
  /**
5883
5930
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
5931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5885
5932
  */
5886
5933
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5887
5934
  /**
5888
5935
  * Disallow awaiting non-promise values.
5889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
5936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5890
5937
  */
5891
5938
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5892
5939
  /**
5893
5940
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
5941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5895
5942
  */
5896
5943
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5897
5944
  /**
5898
5945
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
5946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5900
5947
  */
5901
5948
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5902
5949
  /**
5903
5950
  * Disallow unreadable array destructuring.
5904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
5951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5905
5952
  */
5906
5953
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
5907
5954
  /**
5908
5955
  * Disallow unreadable IIFEs.
5909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
5956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5910
5957
  */
5911
5958
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5912
5959
  /**
5913
5960
  * Disallow unused object properties.
5914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
5961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5915
5962
  */
5916
5963
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5964
+ /**
5965
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5967
+ */
5968
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5917
5969
  /**
5918
5970
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
5971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5920
5972
  */
5921
5973
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5922
5974
  /**
5923
5975
  * Disallow useless fallback when spreading in object literals.
5924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
5976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5925
5977
  */
5926
5978
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5927
5979
  /**
5928
5980
  * Disallow useless array length check.
5929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
5981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5930
5982
  */
5931
5983
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5932
5984
  /**
5933
5985
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
5986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5935
5987
  */
5936
5988
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5937
5989
  /**
5938
5990
  * Disallow unnecessary spread.
5939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
5991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5940
5992
  */
5941
5993
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5942
5994
  /**
5943
5995
  * Disallow useless case in switch statements.
5944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5945
5997
  */
5946
5998
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5947
5999
  /**
5948
6000
  * Disallow useless `undefined`.
5949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5950
6002
  */
5951
6003
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5952
6004
  /**
5953
6005
  * Disallow number literals with zero fractions or dangling dots.
5954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5955
6007
  */
5956
6008
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5957
6009
  /**
5958
6010
  * Enforce proper case for numeric literals.
5959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
6011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5960
6012
  */
5961
6013
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5962
6014
  /**
5963
6015
  * Enforce the style of numeric separators by correctly grouping digits.
5964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5965
6017
  */
5966
6018
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5967
6019
  /**
5968
6020
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
6021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5970
6022
  */
5971
6023
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5972
6024
  /**
5973
6025
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
6026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5975
6027
  */
5976
6028
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5977
6029
  /**
5978
6030
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
6031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5980
6032
  */
5981
6033
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5982
6034
  /**
5983
6035
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
6036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5985
6037
  */
5986
6038
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5987
6039
  /**
5988
6040
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
6041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5990
6042
  */
5991
6043
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5992
6044
  /**
5993
6045
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
6046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5995
6047
  */
5996
6048
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5997
6049
  /**
5998
6050
  * Prefer `.at()` method for index access and `String#charAt()`.
5999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
6051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
6000
6052
  */
6001
6053
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6002
6054
  /**
6003
6055
  * Prefer `BigInt` literals over the constructor.
6004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
6056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
6005
6057
  */
6006
6058
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
6007
6059
  /**
6008
6060
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
6061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
6010
6062
  */
6011
6063
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6012
6064
  /**
6013
6065
  * Prefer class field declarations over `this` assignments in constructors.
6014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
6066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
6015
6067
  */
6016
6068
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
6017
6069
  /**
6018
6070
  * Prefer using `Element#classList.toggle()` to toggle class names.
6019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
6071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
6020
6072
  */
6021
6073
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
6022
6074
  /**
6023
6075
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
6076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
6025
6077
  */
6026
6078
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6027
6079
  /**
6028
6080
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
6081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
6030
6082
  */
6031
6083
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
6032
6084
  /**
6033
6085
  * Prefer default parameters over reassignment.
6034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
6086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
6035
6087
  */
6036
6088
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
6037
6089
  /**
6038
6090
  * Prefer `Node#append()` over `Node#appendChild()`.
6039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
6091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
6040
6092
  */
6041
6093
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
6042
6094
  /**
6043
6095
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
6096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
6045
6097
  */
6046
6098
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6047
6099
  /**
6048
6100
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
6101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
6050
6102
  */
6051
6103
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6052
6104
  /**
6053
6105
  * Prefer `.textContent` over `.innerText`.
6054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
6106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
6055
6107
  */
6056
6108
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6057
6109
  /**
6058
6110
  * Prefer `EventTarget` over `EventEmitter`.
6059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
6111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
6060
6112
  */
6061
6113
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6062
6114
  /**
6063
6115
  * Prefer `export…from` when re-exporting.
6064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
6116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
6065
6117
  */
6066
6118
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6067
6119
  /**
6068
6120
  * Prefer `globalThis` over `window`, `self`, and `global`.
6069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
6121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
6070
6122
  */
6071
6123
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6072
6124
  /**
6073
6125
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
6126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
6075
6127
  */
6076
6128
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6077
6129
  /**
6078
6130
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
6131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
6080
6132
  */
6081
6133
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6082
6134
  /**
6083
6135
  * Prefer reading a JSON file as a buffer.
6084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
6136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
6085
6137
  */
6086
6138
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6087
6139
  /**
6088
6140
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
6141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
6090
6142
  */
6091
6143
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6092
6144
  /**
6093
6145
  * Prefer using a logical operator over a ternary.
6094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
6146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6095
6147
  */
6096
6148
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6097
6149
  /**
6098
6150
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
6151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
6100
6152
  */
6101
6153
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6102
6154
  /**
6103
6155
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
6156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
6105
6157
  */
6106
6158
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6107
6159
  /**
6108
6160
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
6161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
6110
6162
  */
6111
6163
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6112
6164
  /**
6113
6165
  * Prefer modern `Math` APIs over legacy patterns.
6114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
6166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
6115
6167
  */
6116
6168
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6117
6169
  /**
6118
6170
  * Prefer JavaScript modules (ESM) over CommonJS.
6119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
6171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
6120
6172
  */
6121
6173
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6122
6174
  /**
6123
6175
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
6176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
6125
6177
  */
6126
6178
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6127
6179
  /**
6128
6180
  * Prefer negative index over `.length - index` when possible.
6129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
6181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
6130
6182
  */
6131
6183
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6132
6184
  /**
6133
6185
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
6186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
6135
6187
  */
6136
6188
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6137
6189
  /**
6138
6190
  * Prefer `Number` static properties over global ones.
6139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
6191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
6140
6192
  */
6141
6193
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6142
6194
  /**
6143
6195
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
6196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
6145
6197
  */
6146
6198
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6147
6199
  /**
6148
6200
  * Prefer omitting the `catch` binding parameter.
6149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
6201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
6150
6202
  */
6151
6203
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6152
6204
  /**
6153
6205
  * Prefer borrowing methods from the prototype instead of the instance.
6154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
6206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
6155
6207
  */
6156
6208
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6157
6209
  /**
6158
6210
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
6211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
6160
6212
  */
6161
6213
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6162
6214
  /**
6163
6215
  * Prefer `Reflect.apply()` over `Function#apply()`.
6164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
6216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
6165
6217
  */
6166
6218
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6167
6219
  /**
6168
6220
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
6221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
6170
6222
  */
6171
6223
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6224
+ /**
6225
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
6226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
6227
+ */
6228
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
6172
6229
  /**
6173
6230
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
6231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
6175
6232
  */
6176
6233
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6177
6234
  /**
6178
6235
  * Prefer using `Set#size` instead of `Array#length`.
6179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
6236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
6180
6237
  */
6181
6238
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6182
6239
  /**
6183
6240
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
6185
6242
  */
6186
6243
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6187
6244
  /**
6188
6245
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
6246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
6190
6247
  */
6191
6248
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6192
6249
  /**
6193
6250
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
6195
6252
  */
6196
6253
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6197
6254
  /**
6198
6255
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
6200
6257
  */
6201
6258
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6202
6259
  /**
6203
6260
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
6205
6262
  */
6206
6263
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6207
6264
  /**
6208
6265
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
6210
6267
  */
6211
6268
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6212
6269
  /**
6213
6270
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
6215
6272
  */
6216
6273
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6217
6274
  /**
6218
6275
  * Prefer using `structuredClone` to create a deep clone.
6219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
6276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
6220
6277
  */
6221
6278
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6222
6279
  /**
6223
6280
  * Prefer `switch` over multiple `else-if`.
6224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
6225
6282
  */
6226
6283
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6227
6284
  /**
6228
6285
  * Prefer ternary expressions over simple `if-else` statements.
6229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
6230
6287
  */
6231
6288
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6232
6289
  /**
6233
6290
  * Prefer top-level await over top-level promises and async function calls.
6234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
6235
6292
  */
6236
6293
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6237
6294
  /**
6238
6295
  * Enforce throwing `TypeError` in type checking conditions.
6239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
6296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
6240
6297
  */
6241
6298
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6242
6299
  /**
6243
6300
  * Prevent abbreviations.
6244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
6301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
6245
6302
  */
6246
6303
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6247
6304
  /**
6248
6305
  * Enforce consistent relative URL style.
6249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
6306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
6250
6307
  */
6251
6308
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6252
6309
  /**
6253
6310
  * Enforce using the separator argument with `Array#join()`.
6254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
6311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
6255
6312
  */
6256
6313
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6257
6314
  /**
6258
6315
  * Require non-empty module attributes for imports and exports
6259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
6316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
6260
6317
  */
6261
6318
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6262
6319
  /**
6263
6320
  * Require non-empty specifier list in import and export statements.
6264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
6321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
6265
6322
  */
6266
6323
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6267
6324
  /**
6268
6325
  * Enforce using the digits argument with `Number#toFixed()`.
6269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
6326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6270
6327
  */
6271
6328
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6272
6329
  /**
6273
6330
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
6331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
6275
6332
  */
6276
6333
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6277
6334
  /**
6278
6335
  * Enforce better string content.
6279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
6336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
6280
6337
  */
6281
6338
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6282
6339
  /**
6283
6340
  * Enforce consistent brace style for `case` clauses.
6284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
6341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
6285
6342
  */
6286
6343
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6287
6344
  /**
6288
6345
  * Fix whitespace-insensitive template indentation.
6289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
6346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
6290
6347
  */
6291
6348
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6292
6349
  /**
6293
6350
  * Enforce consistent case for text encoding identifiers.
6294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
6351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
6295
6352
  */
6296
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
6353
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6297
6354
  /**
6298
6355
  * Require `new` when creating an error.
6299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
6356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
6300
6357
  */
6301
6358
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6302
6359
  /**
@@ -6769,6 +6826,11 @@ interface Rules {
6769
6826
  * @see https://eslint.vuejs.org/rules/no-duplicate-attributes.html
6770
6827
  */
6771
6828
  'vue/no-duplicate-attributes'?: Linter.RuleEntry<VueNoDuplicateAttributes>;
6829
+ /**
6830
+ * disallow duplication of class names in class attributes
6831
+ * @see https://eslint.vuejs.org/rules/no-duplicate-class-names.html
6832
+ */
6833
+ 'vue/no-duplicate-class-names'?: Linter.RuleEntry<[]>;
6772
6834
  /**
6773
6835
  * disallow the `<template>` `<script>` `<style>` block to be empty
6774
6836
  * @see https://eslint.vuejs.org/rules/no-empty-component-block.html
@@ -7946,6 +8008,13 @@ type AstroJsxA11YScope = [] | [{
7946
8008
  type AstroJsxA11YTabindexNoPositive = [] | [{
7947
8009
  [k: string]: unknown | undefined;
7948
8010
  }];
8011
+ // ----- astro/no-unsafe-inline-scripts -----
8012
+ type AstroNoUnsafeInlineScripts = [] | [{
8013
+ allowDefineVars?: boolean;
8014
+ allowModuleScripts?: boolean;
8015
+ allowNonExecutingTypes?: string[];
8016
+ allowNonce?: boolean;
8017
+ }];
7949
8018
  // ----- astro/prefer-split-class-list -----
7950
8019
  type AstroPreferSplitClassList = [] | [{
7951
8020
  splitLiteral?: boolean;
@@ -8495,6 +8564,7 @@ type JsdocCheckExamples = [] | [{
8495
8564
  }];
8496
8565
  // ----- jsdoc/check-indentation -----
8497
8566
  type JsdocCheckIndentation = [] | [{
8567
+ allowIndentedSections?: boolean;
8498
8568
  excludeTags?: string[];
8499
8569
  }];
8500
8570
  // ----- jsdoc/check-line-alignment -----
@@ -8841,6 +8911,14 @@ type JsdocRequireParamType = [] | [{
8841
8911
  defaultDestructuredRootType?: string;
8842
8912
  setDefaultDestructuredRootType?: boolean;
8843
8913
  }];
8914
+ // ----- jsdoc/require-rejects -----
8915
+ type JsdocRequireRejects = [] | [{
8916
+ contexts?: (string | {
8917
+ comment?: string;
8918
+ context?: string;
8919
+ })[];
8920
+ exemptedBy?: string[];
8921
+ }];
8844
8922
  // ----- jsdoc/require-returns -----
8845
8923
  type JsdocRequireReturns = [] | [{
8846
8924
  checkConstructors?: boolean;
@@ -8931,6 +9009,9 @@ type JsdocSortTags = [] | [{
8931
9009
  linesBetween?: number;
8932
9010
  reportIntraTagGroupSpacing?: boolean;
8933
9011
  reportTagGroupSpacing?: boolean;
9012
+ tagExceptions?: {
9013
+ [k: string]: number;
9014
+ };
8934
9015
  tagSequence?: {
8935
9016
  tags?: string[];
8936
9017
  }[];
@@ -10807,27 +10888,25 @@ type PaddingLineBetweenStatements = {
10807
10888
  // ----- perfectionist/sort-array-includes -----
10808
10889
  type PerfectionistSortArrayIncludes = {
10809
10890
  fallbackSort?: {
10891
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10810
10892
  order?: ("asc" | "desc");
10811
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10812
10893
  };
10894
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10813
10895
  specialCharacters?: ("remove" | "trim" | "keep");
10814
10896
  ignoreCase?: boolean;
10815
10897
  alphabet?: string;
10816
10898
  locales?: (string | string[]);
10817
10899
  order?: ("asc" | "desc");
10818
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10819
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
10820
10900
  customGroups?: ({
10821
- newlinesInside?: (("always" | "never") | number);
10822
10901
  fallbackSort?: {
10902
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10823
10903
  order?: ("asc" | "desc");
10824
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10825
10904
  };
10905
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10826
10906
  groupName: string;
10907
+ newlinesInside?: number;
10827
10908
  order?: ("asc" | "desc");
10828
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10829
- anyOf?: {
10830
- selector?: ("literal" | "spread");
10909
+ anyOf: {
10831
10910
  elementNamePattern?: (({
10832
10911
  pattern: string;
10833
10912
  flags?: string;
@@ -10835,17 +10914,17 @@ type PerfectionistSortArrayIncludes = {
10835
10914
  pattern: string;
10836
10915
  flags?: string;
10837
10916
  } | string));
10917
+ selector?: ("literal" | "spread");
10838
10918
  }[];
10839
10919
  } | {
10840
- newlinesInside?: (("always" | "never") | number);
10841
10920
  fallbackSort?: {
10921
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10842
10922
  order?: ("asc" | "desc");
10843
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10844
10923
  };
10924
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10845
10925
  groupName: string;
10926
+ newlinesInside?: number;
10846
10927
  order?: ("asc" | "desc");
10847
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10848
- selector?: ("literal" | "spread");
10849
10928
  elementNamePattern?: (({
10850
10929
  pattern: string;
10851
10930
  flags?: string;
@@ -10853,7 +10932,18 @@ type PerfectionistSortArrayIncludes = {
10853
10932
  pattern: string;
10854
10933
  flags?: string;
10855
10934
  } | string));
10935
+ selector?: ("literal" | "spread");
10936
+ })[];
10937
+ groups?: (string | [string, ...(string)[]] | {
10938
+ newlinesBetween: ("ignore" | number);
10939
+ } | {
10940
+ group: (string | [string, ...(string)[]]);
10941
+ commentAbove?: string;
10942
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10943
+ newlinesInside?: number;
10944
+ order?: ("asc" | "desc");
10856
10945
  })[];
10946
+ newlinesBetween?: ("ignore" | number);
10857
10947
  useConfigurationIf?: {
10858
10948
  allNamesMatchPattern?: (({
10859
10949
  pattern: string;
@@ -10886,51 +10976,46 @@ type PerfectionistSortArrayIncludes = {
10886
10976
  } | string)));
10887
10977
  });
10888
10978
  partitionByNewLine?: boolean;
10889
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10890
- groups?: (string | string[] | {
10891
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10892
- commentAbove?: string;
10893
- })[];
10894
10979
  }[];
10895
10980
  // ----- perfectionist/sort-classes -----
10896
10981
  type PerfectionistSortClasses = [] | [{
10897
10982
  fallbackSort?: {
10983
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10898
10984
  order?: ("asc" | "desc");
10899
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10900
10985
  };
10986
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10901
10987
  specialCharacters?: ("remove" | "trim" | "keep");
10902
10988
  ignoreCase?: boolean;
10903
10989
  alphabet?: string;
10904
10990
  locales?: (string | string[]);
10905
10991
  order?: ("asc" | "desc");
10906
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10907
10992
  customGroups?: ({
10908
- newlinesInside?: (("always" | "never") | number);
10909
10993
  fallbackSort?: {
10994
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10910
10995
  order?: ("asc" | "desc");
10911
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10912
10996
  };
10997
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10913
10998
  groupName: string;
10999
+ newlinesInside?: number;
10914
11000
  order?: ("asc" | "desc");
10915
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10916
- anyOf?: {
10917
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10918
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10919
- decoratorNamePattern?: (({
11001
+ anyOf: {
11002
+ elementNamePattern?: (({
10920
11003
  pattern: string;
10921
11004
  flags?: string;
10922
11005
  } | string)[] | ({
10923
11006
  pattern: string;
10924
11007
  flags?: string;
10925
11008
  } | string));
10926
- elementValuePattern?: (({
11009
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
11010
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
11011
+ decoratorNamePattern?: (({
10927
11012
  pattern: string;
10928
11013
  flags?: string;
10929
11014
  } | string)[] | ({
10930
11015
  pattern: string;
10931
11016
  flags?: string;
10932
11017
  } | string));
10933
- elementNamePattern?: (({
11018
+ elementValuePattern?: (({
10934
11019
  pattern: string;
10935
11020
  flags?: string;
10936
11021
  } | string)[] | ({
@@ -10939,31 +11024,31 @@ type PerfectionistSortClasses = [] | [{
10939
11024
  } | string));
10940
11025
  }[];
10941
11026
  } | {
10942
- newlinesInside?: (("always" | "never") | number);
10943
11027
  fallbackSort?: {
11028
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10944
11029
  order?: ("asc" | "desc");
10945
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10946
11030
  };
11031
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10947
11032
  groupName: string;
11033
+ newlinesInside?: number;
10948
11034
  order?: ("asc" | "desc");
10949
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10950
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10951
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10952
- decoratorNamePattern?: (({
11035
+ elementNamePattern?: (({
10953
11036
  pattern: string;
10954
11037
  flags?: string;
10955
11038
  } | string)[] | ({
10956
11039
  pattern: string;
10957
11040
  flags?: string;
10958
11041
  } | string));
10959
- elementValuePattern?: (({
11042
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
11043
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
11044
+ decoratorNamePattern?: (({
10960
11045
  pattern: string;
10961
11046
  flags?: string;
10962
11047
  } | string)[] | ({
10963
11048
  pattern: string;
10964
11049
  flags?: string;
10965
11050
  } | string));
10966
- elementNamePattern?: (({
11051
+ elementValuePattern?: (({
10967
11052
  pattern: string;
10968
11053
  flags?: string;
10969
11054
  } | string)[] | ({
@@ -10971,6 +11056,16 @@ type PerfectionistSortClasses = [] | [{
10971
11056
  flags?: string;
10972
11057
  } | string));
10973
11058
  })[];
11059
+ groups?: (string | [string, ...(string)[]] | {
11060
+ newlinesBetween: ("ignore" | number);
11061
+ } | {
11062
+ group: (string | [string, ...(string)[]]);
11063
+ commentAbove?: string;
11064
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11065
+ newlinesInside?: number;
11066
+ order?: ("asc" | "desc");
11067
+ })[];
11068
+ newlinesBetween?: ("ignore" | number);
10974
11069
  ignoreCallbackDependenciesPatterns?: (({
10975
11070
  pattern: string;
10976
11071
  flags?: string;
@@ -11001,24 +11096,64 @@ type PerfectionistSortClasses = [] | [{
11001
11096
  } | string)));
11002
11097
  });
11003
11098
  partitionByNewLine?: boolean;
11004
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11005
- groups?: (string | string[] | {
11006
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11007
- commentAbove?: string;
11008
- })[];
11009
11099
  }];
11010
11100
  // ----- perfectionist/sort-decorators -----
11011
- type PerfectionistSortDecorators = [] | [{
11101
+ type PerfectionistSortDecorators = {
11012
11102
  fallbackSort?: {
11103
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11013
11104
  order?: ("asc" | "desc");
11014
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11015
11105
  };
11106
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11016
11107
  specialCharacters?: ("remove" | "trim" | "keep");
11017
11108
  ignoreCase?: boolean;
11018
11109
  alphabet?: string;
11019
11110
  locales?: (string | string[]);
11020
11111
  order?: ("asc" | "desc");
11021
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11112
+ customGroups?: ({
11113
+ fallbackSort?: {
11114
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11115
+ order?: ("asc" | "desc");
11116
+ };
11117
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11118
+ groupName: string;
11119
+ newlinesInside?: number;
11120
+ order?: ("asc" | "desc");
11121
+ anyOf: {
11122
+ elementNamePattern?: (({
11123
+ pattern: string;
11124
+ flags?: string;
11125
+ } | string)[] | ({
11126
+ pattern: string;
11127
+ flags?: string;
11128
+ } | string));
11129
+ }[];
11130
+ } | {
11131
+ fallbackSort?: {
11132
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11133
+ order?: ("asc" | "desc");
11134
+ };
11135
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11136
+ groupName: string;
11137
+ newlinesInside?: number;
11138
+ order?: ("asc" | "desc");
11139
+ elementNamePattern?: (({
11140
+ pattern: string;
11141
+ flags?: string;
11142
+ } | string)[] | ({
11143
+ pattern: string;
11144
+ flags?: string;
11145
+ } | string));
11146
+ })[];
11147
+ groups?: (string | [string, ...(string)[]] | {
11148
+ newlinesBetween: ("ignore" | number);
11149
+ } | {
11150
+ group: (string | [string, ...(string)[]]);
11151
+ commentAbove?: string;
11152
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11153
+ newlinesInside?: number;
11154
+ order?: ("asc" | "desc");
11155
+ })[];
11156
+ newlinesBetween?: ("ignore" | number);
11022
11157
  sortOnParameters?: boolean;
11023
11158
  sortOnProperties?: boolean;
11024
11159
  sortOnAccessors?: boolean;
@@ -11046,46 +11181,38 @@ type PerfectionistSortDecorators = [] | [{
11046
11181
  flags?: string;
11047
11182
  } | string)));
11048
11183
  });
11049
- customGroups?: {
11050
- [k: string]: (string | string[]) | undefined;
11051
- };
11052
- groups?: (string | string[] | {
11053
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11054
- commentAbove?: string;
11055
- })[];
11056
- }];
11184
+ partitionByNewLine?: boolean;
11185
+ }[];
11057
11186
  // ----- perfectionist/sort-enums -----
11058
11187
  type PerfectionistSortEnums = [] | [{
11059
11188
  fallbackSort?: {
11189
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11060
11190
  order?: ("asc" | "desc");
11061
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11062
11191
  };
11192
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11063
11193
  specialCharacters?: ("remove" | "trim" | "keep");
11064
11194
  ignoreCase?: boolean;
11065
11195
  alphabet?: string;
11066
11196
  locales?: (string | string[]);
11067
11197
  order?: ("asc" | "desc");
11068
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11069
11198
  customGroups?: ({
11070
- [k: string]: (string | string[]) | undefined;
11071
- } | ({
11072
- newlinesInside?: (("always" | "never") | number);
11073
11199
  fallbackSort?: {
11200
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11074
11201
  order?: ("asc" | "desc");
11075
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11076
11202
  };
11203
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11077
11204
  groupName: string;
11205
+ newlinesInside?: number;
11078
11206
  order?: ("asc" | "desc");
11079
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11080
- anyOf?: {
11081
- elementValuePattern?: (({
11207
+ anyOf: {
11208
+ elementNamePattern?: (({
11082
11209
  pattern: string;
11083
11210
  flags?: string;
11084
11211
  } | string)[] | ({
11085
11212
  pattern: string;
11086
11213
  flags?: string;
11087
11214
  } | string));
11088
- elementNamePattern?: (({
11215
+ elementValuePattern?: (({
11089
11216
  pattern: string;
11090
11217
  flags?: string;
11091
11218
  } | string)[] | ({
@@ -11094,31 +11221,40 @@ type PerfectionistSortEnums = [] | [{
11094
11221
  } | string));
11095
11222
  }[];
11096
11223
  } | {
11097
- newlinesInside?: (("always" | "never") | number);
11098
11224
  fallbackSort?: {
11225
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11099
11226
  order?: ("asc" | "desc");
11100
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11101
11227
  };
11228
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11102
11229
  groupName: string;
11230
+ newlinesInside?: number;
11103
11231
  order?: ("asc" | "desc");
11104
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11105
- elementValuePattern?: (({
11232
+ elementNamePattern?: (({
11106
11233
  pattern: string;
11107
11234
  flags?: string;
11108
11235
  } | string)[] | ({
11109
11236
  pattern: string;
11110
11237
  flags?: string;
11111
11238
  } | string));
11112
- elementNamePattern?: (({
11239
+ elementValuePattern?: (({
11113
11240
  pattern: string;
11114
11241
  flags?: string;
11115
11242
  } | string)[] | ({
11116
11243
  pattern: string;
11117
11244
  flags?: string;
11118
11245
  } | string));
11119
- })[]);
11120
- forceNumericSort?: boolean;
11121
- sortByValue?: boolean;
11246
+ })[];
11247
+ groups?: (string | [string, ...(string)[]] | {
11248
+ newlinesBetween: ("ignore" | number);
11249
+ } | {
11250
+ group: (string | [string, ...(string)[]]);
11251
+ commentAbove?: string;
11252
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11253
+ newlinesInside?: number;
11254
+ order?: ("asc" | "desc");
11255
+ })[];
11256
+ newlinesBetween?: ("ignore" | number);
11257
+ sortByValue?: ("always" | "ifNumericEnum" | "never");
11122
11258
  partitionByComment?: (boolean | (({
11123
11259
  pattern: string;
11124
11260
  flags?: string;
@@ -11142,37 +11278,29 @@ type PerfectionistSortEnums = [] | [{
11142
11278
  } | string)));
11143
11279
  });
11144
11280
  partitionByNewLine?: boolean;
11145
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11146
- groups?: (string | string[] | {
11147
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11148
- commentAbove?: string;
11149
- })[];
11150
11281
  }];
11151
- // ----- perfectionist/sort-exports -----
11152
- type PerfectionistSortExports = {
11282
+ // ----- perfectionist/sort-export-attributes -----
11283
+ type PerfectionistSortExportAttributes = {
11153
11284
  fallbackSort?: {
11285
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11154
11286
  order?: ("asc" | "desc");
11155
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11156
11287
  };
11288
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11157
11289
  specialCharacters?: ("remove" | "trim" | "keep");
11158
11290
  ignoreCase?: boolean;
11159
11291
  alphabet?: string;
11160
11292
  locales?: (string | string[]);
11161
11293
  order?: ("asc" | "desc");
11162
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11163
- groupKind?: ("mixed" | "values-first" | "types-first");
11164
11294
  customGroups?: ({
11165
- newlinesInside?: (("always" | "never") | number);
11166
11295
  fallbackSort?: {
11296
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11167
11297
  order?: ("asc" | "desc");
11168
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11169
11298
  };
11299
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11170
11300
  groupName: string;
11301
+ newlinesInside?: number;
11171
11302
  order?: ("asc" | "desc");
11172
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11173
- anyOf?: {
11174
- modifiers?: ("value" | "type")[];
11175
- selector?: "export";
11303
+ anyOf: {
11176
11304
  elementNamePattern?: (({
11177
11305
  pattern: string;
11178
11306
  flags?: string;
@@ -11182,16 +11310,14 @@ type PerfectionistSortExports = {
11182
11310
  } | string));
11183
11311
  }[];
11184
11312
  } | {
11185
- newlinesInside?: (("always" | "never") | number);
11186
11313
  fallbackSort?: {
11314
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11187
11315
  order?: ("asc" | "desc");
11188
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11189
11316
  };
11317
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11190
11318
  groupName: string;
11319
+ newlinesInside?: number;
11191
11320
  order?: ("asc" | "desc");
11192
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11193
- modifiers?: ("value" | "type")[];
11194
- selector?: "export";
11195
11321
  elementNamePattern?: (({
11196
11322
  pattern: string;
11197
11323
  flags?: string;
@@ -11200,6 +11326,16 @@ type PerfectionistSortExports = {
11200
11326
  flags?: string;
11201
11327
  } | string));
11202
11328
  })[];
11329
+ groups?: (string | [string, ...(string)[]] | {
11330
+ newlinesBetween: ("ignore" | number);
11331
+ } | {
11332
+ group: (string | [string, ...(string)[]]);
11333
+ commentAbove?: string;
11334
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11335
+ newlinesInside?: number;
11336
+ order?: ("asc" | "desc");
11337
+ })[];
11338
+ newlinesBetween?: ("ignore" | number);
11203
11339
  partitionByComment?: (boolean | (({
11204
11340
  pattern: string;
11205
11341
  flags?: string;
@@ -11223,70 +11359,29 @@ type PerfectionistSortExports = {
11223
11359
  } | string)));
11224
11360
  });
11225
11361
  partitionByNewLine?: boolean;
11226
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11227
- groups?: (string | string[] | {
11228
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11229
- commentAbove?: string;
11230
- })[];
11231
11362
  }[];
11232
- // ----- perfectionist/sort-heritage-clauses -----
11233
- type PerfectionistSortHeritageClauses = [] | [{
11363
+ // ----- perfectionist/sort-exports -----
11364
+ type PerfectionistSortExports = {
11234
11365
  fallbackSort?: {
11366
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11235
11367
  order?: ("asc" | "desc");
11236
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11237
11368
  };
11238
- specialCharacters?: ("remove" | "trim" | "keep");
11239
- ignoreCase?: boolean;
11240
- alphabet?: string;
11241
- locales?: (string | string[]);
11242
- order?: ("asc" | "desc");
11243
11369
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11244
- customGroups?: {
11245
- [k: string]: (string | string[]) | undefined;
11246
- };
11247
- groups?: (string | string[] | {
11248
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11249
- commentAbove?: string;
11250
- })[];
11251
- }];
11252
- // ----- perfectionist/sort-imports -----
11253
- type PerfectionistSortImports = {
11254
- fallbackSort?: {
11255
- order?: ("asc" | "desc");
11256
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11257
- };
11258
11370
  specialCharacters?: ("remove" | "trim" | "keep");
11259
11371
  ignoreCase?: boolean;
11260
11372
  alphabet?: string;
11261
11373
  locales?: (string | string[]);
11262
11374
  order?: ("asc" | "desc");
11263
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11264
11375
  customGroups?: ({
11265
- value?: {
11266
- [k: string]: (string | string[]) | undefined;
11267
- };
11268
- type?: {
11269
- [k: string]: (string | string[]) | undefined;
11270
- };
11271
- } | ({
11272
- newlinesInside?: (("always" | "never") | number);
11273
11376
  fallbackSort?: {
11377
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11274
11378
  order?: ("asc" | "desc");
11275
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11276
11379
  };
11380
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11277
11381
  groupName: string;
11382
+ newlinesInside?: number;
11278
11383
  order?: ("asc" | "desc");
11279
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11280
- anyOf?: {
11281
- modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
11282
- selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
11283
- elementValuePattern?: (({
11284
- pattern: string;
11285
- flags?: string;
11286
- } | string)[] | ({
11287
- pattern: string;
11288
- flags?: string;
11289
- } | string));
11384
+ anyOf: {
11290
11385
  elementNamePattern?: (({
11291
11386
  pattern: string;
11292
11387
  flags?: string;
@@ -11294,25 +11389,18 @@ type PerfectionistSortImports = {
11294
11389
  pattern: string;
11295
11390
  flags?: string;
11296
11391
  } | string));
11392
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
11393
+ selector?: "export";
11297
11394
  }[];
11298
11395
  } | {
11299
- newlinesInside?: (("always" | "never") | number);
11300
11396
  fallbackSort?: {
11397
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11301
11398
  order?: ("asc" | "desc");
11302
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11303
11399
  };
11400
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11304
11401
  groupName: string;
11402
+ newlinesInside?: number;
11305
11403
  order?: ("asc" | "desc");
11306
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11307
- modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
11308
- selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
11309
- elementValuePattern?: (({
11310
- pattern: string;
11311
- flags?: string;
11312
- } | string)[] | ({
11313
- pattern: string;
11314
- flags?: string;
11315
- } | string));
11316
11404
  elementNamePattern?: (({
11317
11405
  pattern: string;
11318
11406
  flags?: string;
@@ -11320,15 +11408,19 @@ type PerfectionistSortImports = {
11320
11408
  pattern: string;
11321
11409
  flags?: string;
11322
11410
  } | string));
11323
- })[]);
11324
- tsconfig?: {
11325
- rootDir: string;
11326
- filename?: string;
11327
- };
11328
- maxLineLength?: number;
11329
- sortSideEffects?: boolean;
11330
- environment?: ("node" | "bun");
11331
- tsconfigRootDir?: string;
11411
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
11412
+ selector?: "export";
11413
+ })[];
11414
+ groups?: (string | [string, ...(string)[]] | {
11415
+ newlinesBetween: ("ignore" | number);
11416
+ } | {
11417
+ group: (string | [string, ...(string)[]]);
11418
+ commentAbove?: string;
11419
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11420
+ newlinesInside?: number;
11421
+ order?: ("asc" | "desc");
11422
+ })[];
11423
+ newlinesBetween?: ("ignore" | number);
11332
11424
  partitionByComment?: (boolean | (({
11333
11425
  pattern: string;
11334
11426
  flags?: string;
@@ -11352,54 +11444,110 @@ type PerfectionistSortImports = {
11352
11444
  } | string)));
11353
11445
  });
11354
11446
  partitionByNewLine?: boolean;
11355
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11356
- internalPattern?: (({
11357
- pattern: string;
11358
- flags?: string;
11359
- } | string)[] | ({
11360
- pattern: string;
11361
- flags?: string;
11362
- } | string));
11363
- groups?: (string | string[] | {
11364
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11365
- commentAbove?: string;
11366
- })[];
11367
11447
  }[];
11368
- // ----- perfectionist/sort-interfaces -----
11369
- type PerfectionistSortInterfaces = {
11448
+ // ----- perfectionist/sort-heritage-clauses -----
11449
+ type PerfectionistSortHeritageClauses = {
11370
11450
  fallbackSort?: {
11451
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11371
11452
  order?: ("asc" | "desc");
11372
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11373
- sortBy?: ("name" | "value");
11374
11453
  };
11454
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11375
11455
  specialCharacters?: ("remove" | "trim" | "keep");
11376
11456
  ignoreCase?: boolean;
11377
11457
  alphabet?: string;
11378
11458
  locales?: (string | string[]);
11379
11459
  order?: ("asc" | "desc");
11380
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11381
11460
  customGroups?: ({
11382
- [k: string]: (string | string[]) | undefined;
11383
- } | ({
11384
- newlinesInside?: (("always" | "never") | number);
11385
11461
  fallbackSort?: {
11462
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11386
11463
  order?: ("asc" | "desc");
11387
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11388
- sortBy?: ("name" | "value");
11389
11464
  };
11465
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11390
11466
  groupName: string;
11467
+ newlinesInside?: number;
11391
11468
  order?: ("asc" | "desc");
11392
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11393
- anyOf?: {
11394
- modifiers?: ("optional" | "required" | "multiline")[];
11395
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
11396
- elementValuePattern?: (({
11469
+ anyOf: {
11470
+ elementNamePattern?: (({
11397
11471
  pattern: string;
11398
11472
  flags?: string;
11399
11473
  } | string)[] | ({
11400
11474
  pattern: string;
11401
11475
  flags?: string;
11402
11476
  } | string));
11477
+ }[];
11478
+ } | {
11479
+ fallbackSort?: {
11480
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11481
+ order?: ("asc" | "desc");
11482
+ };
11483
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11484
+ groupName: string;
11485
+ newlinesInside?: number;
11486
+ order?: ("asc" | "desc");
11487
+ elementNamePattern?: (({
11488
+ pattern: string;
11489
+ flags?: string;
11490
+ } | string)[] | ({
11491
+ pattern: string;
11492
+ flags?: string;
11493
+ } | string));
11494
+ })[];
11495
+ groups?: (string | [string, ...(string)[]] | {
11496
+ newlinesBetween: ("ignore" | number);
11497
+ } | {
11498
+ group: (string | [string, ...(string)[]]);
11499
+ commentAbove?: string;
11500
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11501
+ newlinesInside?: number;
11502
+ order?: ("asc" | "desc");
11503
+ })[];
11504
+ newlinesBetween?: ("ignore" | number);
11505
+ partitionByNewLine?: boolean;
11506
+ partitionByComment?: (boolean | (({
11507
+ pattern: string;
11508
+ flags?: string;
11509
+ } | string)[] | ({
11510
+ pattern: string;
11511
+ flags?: string;
11512
+ } | string)) | {
11513
+ block?: (boolean | (({
11514
+ pattern: string;
11515
+ flags?: string;
11516
+ } | string)[] | ({
11517
+ pattern: string;
11518
+ flags?: string;
11519
+ } | string)));
11520
+ line?: (boolean | (({
11521
+ pattern: string;
11522
+ flags?: string;
11523
+ } | string)[] | ({
11524
+ pattern: string;
11525
+ flags?: string;
11526
+ } | string)));
11527
+ });
11528
+ }[];
11529
+ // ----- perfectionist/sort-import-attributes -----
11530
+ type PerfectionistSortImportAttributes = {
11531
+ fallbackSort?: {
11532
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11533
+ order?: ("asc" | "desc");
11534
+ };
11535
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11536
+ specialCharacters?: ("remove" | "trim" | "keep");
11537
+ ignoreCase?: boolean;
11538
+ alphabet?: string;
11539
+ locales?: (string | string[]);
11540
+ order?: ("asc" | "desc");
11541
+ customGroups?: ({
11542
+ fallbackSort?: {
11543
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11544
+ order?: ("asc" | "desc");
11545
+ };
11546
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11547
+ groupName: string;
11548
+ newlinesInside?: number;
11549
+ order?: ("asc" | "desc");
11550
+ anyOf: {
11403
11551
  elementNamePattern?: (({
11404
11552
  pattern: string;
11405
11553
  flags?: string;
@@ -11407,27 +11555,209 @@ type PerfectionistSortInterfaces = {
11407
11555
  pattern: string;
11408
11556
  flags?: string;
11409
11557
  } | string));
11410
- sortBy?: ("name" | "value");
11411
11558
  }[];
11412
11559
  } | {
11413
- newlinesInside?: (("always" | "never") | number);
11414
11560
  fallbackSort?: {
11561
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11415
11562
  order?: ("asc" | "desc");
11416
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11417
- sortBy?: ("name" | "value");
11418
11563
  };
11564
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11419
11565
  groupName: string;
11566
+ newlinesInside?: number;
11420
11567
  order?: ("asc" | "desc");
11568
+ elementNamePattern?: (({
11569
+ pattern: string;
11570
+ flags?: string;
11571
+ } | string)[] | ({
11572
+ pattern: string;
11573
+ flags?: string;
11574
+ } | string));
11575
+ })[];
11576
+ groups?: (string | [string, ...(string)[]] | {
11577
+ newlinesBetween: ("ignore" | number);
11578
+ } | {
11579
+ group: (string | [string, ...(string)[]]);
11580
+ commentAbove?: string;
11421
11581
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11422
- modifiers?: ("optional" | "required" | "multiline")[];
11423
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
11424
- elementValuePattern?: (({
11582
+ newlinesInside?: number;
11583
+ order?: ("asc" | "desc");
11584
+ })[];
11585
+ newlinesBetween?: ("ignore" | number);
11586
+ partitionByComment?: (boolean | (({
11587
+ pattern: string;
11588
+ flags?: string;
11589
+ } | string)[] | ({
11590
+ pattern: string;
11591
+ flags?: string;
11592
+ } | string)) | {
11593
+ block?: (boolean | (({
11594
+ pattern: string;
11595
+ flags?: string;
11596
+ } | string)[] | ({
11597
+ pattern: string;
11598
+ flags?: string;
11599
+ } | string)));
11600
+ line?: (boolean | (({
11601
+ pattern: string;
11602
+ flags?: string;
11603
+ } | string)[] | ({
11604
+ pattern: string;
11605
+ flags?: string;
11606
+ } | string)));
11607
+ });
11608
+ partitionByNewLine?: boolean;
11609
+ }[];
11610
+ // ----- perfectionist/sort-imports -----
11611
+ type PerfectionistSortImports = {
11612
+ fallbackSort?: {
11613
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11614
+ order?: ("asc" | "desc");
11615
+ };
11616
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11617
+ specialCharacters?: ("remove" | "trim" | "keep");
11618
+ ignoreCase?: boolean;
11619
+ alphabet?: string;
11620
+ locales?: (string | string[]);
11621
+ order?: ("asc" | "desc");
11622
+ customGroups?: ({
11623
+ fallbackSort?: {
11624
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11625
+ order?: ("asc" | "desc");
11626
+ };
11627
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11628
+ groupName: string;
11629
+ newlinesInside?: number;
11630
+ order?: ("asc" | "desc");
11631
+ anyOf: {
11632
+ elementNamePattern?: (({
11633
+ pattern: string;
11634
+ flags?: string;
11635
+ } | string)[] | ({
11636
+ pattern: string;
11637
+ flags?: string;
11638
+ } | string));
11639
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
11640
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
11641
+ }[];
11642
+ } | {
11643
+ fallbackSort?: {
11644
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11645
+ order?: ("asc" | "desc");
11646
+ };
11647
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11648
+ groupName: string;
11649
+ newlinesInside?: number;
11650
+ order?: ("asc" | "desc");
11651
+ elementNamePattern?: (({
11425
11652
  pattern: string;
11426
11653
  flags?: string;
11427
11654
  } | string)[] | ({
11428
11655
  pattern: string;
11429
11656
  flags?: string;
11430
11657
  } | string));
11658
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
11659
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
11660
+ })[];
11661
+ groups?: (string | [string, ...(string)[]] | {
11662
+ newlinesBetween: ("ignore" | number);
11663
+ } | {
11664
+ group: (string | [string, ...(string)[]]);
11665
+ commentAbove?: string;
11666
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11667
+ newlinesInside?: number;
11668
+ order?: ("asc" | "desc");
11669
+ })[];
11670
+ newlinesBetween?: ("ignore" | number);
11671
+ tsconfig?: {
11672
+ rootDir: string;
11673
+ filename?: string;
11674
+ };
11675
+ maxLineLength?: number;
11676
+ sortSideEffects?: boolean;
11677
+ environment?: ("node" | "bun");
11678
+ partitionByComment?: (boolean | (({
11679
+ pattern: string;
11680
+ flags?: string;
11681
+ } | string)[] | ({
11682
+ pattern: string;
11683
+ flags?: string;
11684
+ } | string)) | {
11685
+ block?: (boolean | (({
11686
+ pattern: string;
11687
+ flags?: string;
11688
+ } | string)[] | ({
11689
+ pattern: string;
11690
+ flags?: string;
11691
+ } | string)));
11692
+ line?: (boolean | (({
11693
+ pattern: string;
11694
+ flags?: string;
11695
+ } | string)[] | ({
11696
+ pattern: string;
11697
+ flags?: string;
11698
+ } | string)));
11699
+ });
11700
+ partitionByNewLine?: boolean;
11701
+ internalPattern?: (({
11702
+ pattern: string;
11703
+ flags?: string;
11704
+ } | string)[] | ({
11705
+ pattern: string;
11706
+ flags?: string;
11707
+ } | string));
11708
+ }[];
11709
+ // ----- perfectionist/sort-interfaces -----
11710
+ type PerfectionistSortInterfaces = {
11711
+ fallbackSort?: {
11712
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11713
+ order?: ("asc" | "desc");
11714
+ sortBy?: ("name" | "value");
11715
+ };
11716
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11717
+ specialCharacters?: ("remove" | "trim" | "keep");
11718
+ ignoreCase?: boolean;
11719
+ alphabet?: string;
11720
+ locales?: (string | string[]);
11721
+ order?: ("asc" | "desc");
11722
+ customGroups?: ({
11723
+ fallbackSort?: {
11724
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11725
+ order?: ("asc" | "desc");
11726
+ sortBy?: ("name" | "value");
11727
+ };
11728
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11729
+ groupName: string;
11730
+ newlinesInside?: number;
11731
+ order?: ("asc" | "desc");
11732
+ anyOf: {
11733
+ elementNamePattern?: (({
11734
+ pattern: string;
11735
+ flags?: string;
11736
+ } | string)[] | ({
11737
+ pattern: string;
11738
+ flags?: string;
11739
+ } | string));
11740
+ modifiers?: ("optional" | "required" | "multiline")[];
11741
+ selector?: ("index-signature" | "member" | "method" | "property");
11742
+ elementValuePattern?: (({
11743
+ pattern: string;
11744
+ flags?: string;
11745
+ } | string)[] | ({
11746
+ pattern: string;
11747
+ flags?: string;
11748
+ } | string));
11749
+ sortBy?: ("name" | "value");
11750
+ }[];
11751
+ } | {
11752
+ fallbackSort?: {
11753
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11754
+ order?: ("asc" | "desc");
11755
+ sortBy?: ("name" | "value");
11756
+ };
11757
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11758
+ groupName: string;
11759
+ newlinesInside?: number;
11760
+ order?: ("asc" | "desc");
11431
11761
  elementNamePattern?: (({
11432
11762
  pattern: string;
11433
11763
  flags?: string;
@@ -11435,9 +11765,27 @@ type PerfectionistSortInterfaces = {
11435
11765
  pattern: string;
11436
11766
  flags?: string;
11437
11767
  } | string));
11768
+ modifiers?: ("optional" | "required" | "multiline")[];
11769
+ selector?: ("index-signature" | "member" | "method" | "property");
11770
+ elementValuePattern?: (({
11771
+ pattern: string;
11772
+ flags?: string;
11773
+ } | string)[] | ({
11774
+ pattern: string;
11775
+ flags?: string;
11776
+ } | string));
11438
11777
  sortBy?: ("name" | "value");
11439
- })[]);
11440
- groupKind?: ("mixed" | "required-first" | "optional-first");
11778
+ })[];
11779
+ groups?: (string | [string, ...(string)[]] | {
11780
+ newlinesBetween: ("ignore" | number);
11781
+ } | {
11782
+ group: (string | [string, ...(string)[]]);
11783
+ commentAbove?: string;
11784
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11785
+ newlinesInside?: number;
11786
+ order?: ("asc" | "desc");
11787
+ })[];
11788
+ newlinesBetween?: ("ignore" | number);
11441
11789
  useConfigurationIf?: {
11442
11790
  allNamesMatchPattern?: (({
11443
11791
  pattern: string;
@@ -11446,10 +11794,22 @@ type PerfectionistSortInterfaces = {
11446
11794
  pattern: string;
11447
11795
  flags?: string;
11448
11796
  } | string));
11797
+ hasNumericKeysOnly?: boolean;
11798
+ declarationCommentMatchesPattern?: (({
11799
+ scope?: ("shallow" | "deep");
11800
+ pattern: string;
11801
+ flags?: string;
11802
+ } | string)[] | ({
11803
+ scope?: ("shallow" | "deep");
11804
+ pattern: string;
11805
+ flags?: string;
11806
+ } | string));
11449
11807
  declarationMatchesPattern?: (({
11808
+ scope?: ("shallow" | "deep");
11450
11809
  pattern: string;
11451
11810
  flags?: string;
11452
11811
  } | string)[] | ({
11812
+ scope?: ("shallow" | "deep");
11453
11813
  pattern: string;
11454
11814
  flags?: string;
11455
11815
  } | string));
@@ -11477,43 +11837,30 @@ type PerfectionistSortInterfaces = {
11477
11837
  } | string)));
11478
11838
  });
11479
11839
  partitionByNewLine?: boolean;
11480
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11481
- ignorePattern?: (({
11482
- pattern: string;
11483
- flags?: string;
11484
- } | string)[] | ({
11485
- pattern: string;
11486
- flags?: string;
11487
- } | string));
11488
11840
  sortBy?: ("name" | "value");
11489
- groups?: (string | string[] | {
11490
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11491
- commentAbove?: string;
11492
- })[];
11493
11841
  }[];
11494
11842
  // ----- perfectionist/sort-intersection-types -----
11495
11843
  type PerfectionistSortIntersectionTypes = {
11496
11844
  fallbackSort?: {
11845
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11497
11846
  order?: ("asc" | "desc");
11498
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11499
11847
  };
11848
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11500
11849
  specialCharacters?: ("remove" | "trim" | "keep");
11501
11850
  ignoreCase?: boolean;
11502
11851
  alphabet?: string;
11503
11852
  locales?: (string | string[]);
11504
11853
  order?: ("asc" | "desc");
11505
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11506
11854
  customGroups?: ({
11507
- newlinesInside?: (("always" | "never") | number);
11508
11855
  fallbackSort?: {
11856
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11509
11857
  order?: ("asc" | "desc");
11510
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11511
11858
  };
11859
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11512
11860
  groupName: string;
11861
+ newlinesInside?: number;
11513
11862
  order?: ("asc" | "desc");
11514
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11515
- anyOf?: {
11516
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11863
+ anyOf: {
11517
11864
  elementNamePattern?: (({
11518
11865
  pattern: string;
11519
11866
  flags?: string;
@@ -11521,17 +11868,17 @@ type PerfectionistSortIntersectionTypes = {
11521
11868
  pattern: string;
11522
11869
  flags?: string;
11523
11870
  } | string));
11871
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11524
11872
  }[];
11525
11873
  } | {
11526
- newlinesInside?: (("always" | "never") | number);
11527
11874
  fallbackSort?: {
11875
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11528
11876
  order?: ("asc" | "desc");
11529
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11530
11877
  };
11878
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11531
11879
  groupName: string;
11880
+ newlinesInside?: number;
11532
11881
  order?: ("asc" | "desc");
11533
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11534
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11535
11882
  elementNamePattern?: (({
11536
11883
  pattern: string;
11537
11884
  flags?: string;
@@ -11539,7 +11886,18 @@ type PerfectionistSortIntersectionTypes = {
11539
11886
  pattern: string;
11540
11887
  flags?: string;
11541
11888
  } | string));
11889
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11890
+ })[];
11891
+ groups?: (string | [string, ...(string)[]] | {
11892
+ newlinesBetween: ("ignore" | number);
11893
+ } | {
11894
+ group: (string | [string, ...(string)[]]);
11895
+ commentAbove?: string;
11896
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11897
+ newlinesInside?: number;
11898
+ order?: ("asc" | "desc");
11542
11899
  })[];
11900
+ newlinesBetween?: ("ignore" | number);
11543
11901
  partitionByComment?: (boolean | (({
11544
11902
  pattern: string;
11545
11903
  flags?: string;
@@ -11563,46 +11921,39 @@ type PerfectionistSortIntersectionTypes = {
11563
11921
  } | string)));
11564
11922
  });
11565
11923
  partitionByNewLine?: boolean;
11566
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11567
- groups?: (string | string[] | {
11568
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11569
- commentAbove?: string;
11570
- })[];
11571
11924
  }[];
11572
11925
  // ----- perfectionist/sort-jsx-props -----
11573
11926
  type PerfectionistSortJsxProps = {
11574
11927
  fallbackSort?: {
11928
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11575
11929
  order?: ("asc" | "desc");
11576
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11577
11930
  };
11931
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11578
11932
  specialCharacters?: ("remove" | "trim" | "keep");
11579
11933
  ignoreCase?: boolean;
11580
11934
  alphabet?: string;
11581
11935
  locales?: (string | string[]);
11582
11936
  order?: ("asc" | "desc");
11583
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11584
11937
  customGroups?: ({
11585
- [k: string]: (string | string[]) | undefined;
11586
- } | ({
11587
- newlinesInside?: (("always" | "never") | number);
11588
11938
  fallbackSort?: {
11939
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11589
11940
  order?: ("asc" | "desc");
11590
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11591
11941
  };
11942
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11592
11943
  groupName: string;
11944
+ newlinesInside?: number;
11593
11945
  order?: ("asc" | "desc");
11594
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11595
- anyOf?: {
11596
- modifiers?: ("shorthand" | "multiline")[];
11597
- selector?: ("multiline" | "prop" | "shorthand");
11598
- elementValuePattern?: (({
11946
+ anyOf: {
11947
+ elementNamePattern?: (({
11599
11948
  pattern: string;
11600
11949
  flags?: string;
11601
11950
  } | string)[] | ({
11602
11951
  pattern: string;
11603
11952
  flags?: string;
11604
11953
  } | string));
11605
- elementNamePattern?: (({
11954
+ modifiers?: ("shorthand" | "multiline")[];
11955
+ selector?: "prop";
11956
+ elementValuePattern?: (({
11606
11957
  pattern: string;
11607
11958
  flags?: string;
11608
11959
  } | string)[] | ({
@@ -11611,31 +11962,41 @@ type PerfectionistSortJsxProps = {
11611
11962
  } | string));
11612
11963
  }[];
11613
11964
  } | {
11614
- newlinesInside?: (("always" | "never") | number);
11615
11965
  fallbackSort?: {
11966
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11616
11967
  order?: ("asc" | "desc");
11617
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11618
11968
  };
11969
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11619
11970
  groupName: string;
11971
+ newlinesInside?: number;
11620
11972
  order?: ("asc" | "desc");
11621
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11622
- modifiers?: ("shorthand" | "multiline")[];
11623
- selector?: ("multiline" | "prop" | "shorthand");
11624
- elementValuePattern?: (({
11973
+ elementNamePattern?: (({
11625
11974
  pattern: string;
11626
11975
  flags?: string;
11627
11976
  } | string)[] | ({
11628
11977
  pattern: string;
11629
11978
  flags?: string;
11630
11979
  } | string));
11631
- elementNamePattern?: (({
11980
+ modifiers?: ("shorthand" | "multiline")[];
11981
+ selector?: "prop";
11982
+ elementValuePattern?: (({
11632
11983
  pattern: string;
11633
11984
  flags?: string;
11634
11985
  } | string)[] | ({
11635
11986
  pattern: string;
11636
11987
  flags?: string;
11637
11988
  } | string));
11638
- })[]);
11989
+ })[];
11990
+ groups?: (string | [string, ...(string)[]] | {
11991
+ newlinesBetween: ("ignore" | number);
11992
+ } | {
11993
+ group: (string | [string, ...(string)[]]);
11994
+ commentAbove?: string;
11995
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11996
+ newlinesInside?: number;
11997
+ order?: ("asc" | "desc");
11998
+ })[];
11999
+ newlinesBetween?: ("ignore" | number);
11639
12000
  useConfigurationIf?: {
11640
12001
  allNamesMatchPattern?: (({
11641
12002
  pattern: string;
@@ -11653,41 +12014,29 @@ type PerfectionistSortJsxProps = {
11653
12014
  } | string));
11654
12015
  };
11655
12016
  partitionByNewLine?: boolean;
11656
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11657
- ignorePattern?: (({
11658
- pattern: string;
11659
- flags?: string;
11660
- } | string)[] | ({
11661
- pattern: string;
11662
- flags?: string;
11663
- } | string));
11664
- groups?: (string | string[] | {
11665
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11666
- commentAbove?: string;
11667
- })[];
11668
12017
  }[];
11669
12018
  // ----- perfectionist/sort-maps -----
11670
12019
  type PerfectionistSortMaps = {
11671
12020
  fallbackSort?: {
12021
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11672
12022
  order?: ("asc" | "desc");
11673
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11674
12023
  };
12024
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11675
12025
  specialCharacters?: ("remove" | "trim" | "keep");
11676
12026
  ignoreCase?: boolean;
11677
12027
  alphabet?: string;
11678
12028
  locales?: (string | string[]);
11679
12029
  order?: ("asc" | "desc");
11680
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11681
12030
  customGroups?: ({
11682
- newlinesInside?: (("always" | "never") | number);
11683
12031
  fallbackSort?: {
12032
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11684
12033
  order?: ("asc" | "desc");
11685
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11686
12034
  };
12035
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11687
12036
  groupName: string;
12037
+ newlinesInside?: number;
11688
12038
  order?: ("asc" | "desc");
11689
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11690
- anyOf?: {
12039
+ anyOf: {
11691
12040
  elementNamePattern?: (({
11692
12041
  pattern: string;
11693
12042
  flags?: string;
@@ -11697,14 +12046,14 @@ type PerfectionistSortMaps = {
11697
12046
  } | string));
11698
12047
  }[];
11699
12048
  } | {
11700
- newlinesInside?: (("always" | "never") | number);
11701
12049
  fallbackSort?: {
12050
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11702
12051
  order?: ("asc" | "desc");
11703
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11704
12052
  };
12053
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11705
12054
  groupName: string;
12055
+ newlinesInside?: number;
11706
12056
  order?: ("asc" | "desc");
11707
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11708
12057
  elementNamePattern?: (({
11709
12058
  pattern: string;
11710
12059
  flags?: string;
@@ -11713,6 +12062,16 @@ type PerfectionistSortMaps = {
11713
12062
  flags?: string;
11714
12063
  } | string));
11715
12064
  })[];
12065
+ groups?: (string | [string, ...(string)[]] | {
12066
+ newlinesBetween: ("ignore" | number);
12067
+ } | {
12068
+ group: (string | [string, ...(string)[]]);
12069
+ commentAbove?: string;
12070
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12071
+ newlinesInside?: number;
12072
+ order?: ("asc" | "desc");
12073
+ })[];
12074
+ newlinesBetween?: ("ignore" | number);
11716
12075
  useConfigurationIf?: {
11717
12076
  allNamesMatchPattern?: (({
11718
12077
  pattern: string;
@@ -11745,44 +12104,39 @@ type PerfectionistSortMaps = {
11745
12104
  } | string)));
11746
12105
  });
11747
12106
  partitionByNewLine?: boolean;
11748
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11749
- groups?: (string | string[] | {
11750
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11751
- commentAbove?: string;
11752
- })[];
11753
12107
  }[];
11754
12108
  // ----- perfectionist/sort-modules -----
11755
12109
  type PerfectionistSortModules = [] | [{
11756
12110
  fallbackSort?: {
12111
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11757
12112
  order?: ("asc" | "desc");
11758
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11759
12113
  };
12114
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11760
12115
  specialCharacters?: ("remove" | "trim" | "keep");
11761
12116
  ignoreCase?: boolean;
11762
12117
  alphabet?: string;
11763
12118
  locales?: (string | string[]);
11764
12119
  order?: ("asc" | "desc");
11765
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11766
12120
  customGroups?: ({
11767
- newlinesInside?: (("always" | "never") | number);
11768
12121
  fallbackSort?: {
12122
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11769
12123
  order?: ("asc" | "desc");
11770
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11771
12124
  };
12125
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11772
12126
  groupName: string;
12127
+ newlinesInside?: number;
11773
12128
  order?: ("asc" | "desc");
11774
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11775
- anyOf?: {
11776
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
11777
- selector?: ("enum" | "function" | "interface" | "type" | "class");
11778
- decoratorNamePattern?: (({
12129
+ anyOf: {
12130
+ elementNamePattern?: (({
11779
12131
  pattern: string;
11780
12132
  flags?: string;
11781
12133
  } | string)[] | ({
11782
12134
  pattern: string;
11783
12135
  flags?: string;
11784
12136
  } | string));
11785
- elementNamePattern?: (({
12137
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
12138
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
12139
+ decoratorNamePattern?: (({
11786
12140
  pattern: string;
11787
12141
  flags?: string;
11788
12142
  } | string)[] | ({
@@ -11791,24 +12145,24 @@ type PerfectionistSortModules = [] | [{
11791
12145
  } | string));
11792
12146
  }[];
11793
12147
  } | {
11794
- newlinesInside?: (("always" | "never") | number);
11795
12148
  fallbackSort?: {
12149
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11796
12150
  order?: ("asc" | "desc");
11797
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11798
12151
  };
12152
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11799
12153
  groupName: string;
12154
+ newlinesInside?: number;
11800
12155
  order?: ("asc" | "desc");
11801
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11802
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
11803
- selector?: ("enum" | "function" | "interface" | "type" | "class");
11804
- decoratorNamePattern?: (({
12156
+ elementNamePattern?: (({
11805
12157
  pattern: string;
11806
12158
  flags?: string;
11807
12159
  } | string)[] | ({
11808
12160
  pattern: string;
11809
12161
  flags?: string;
11810
12162
  } | string));
11811
- elementNamePattern?: (({
12163
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
12164
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
12165
+ decoratorNamePattern?: (({
11812
12166
  pattern: string;
11813
12167
  flags?: string;
11814
12168
  } | string)[] | ({
@@ -11816,6 +12170,16 @@ type PerfectionistSortModules = [] | [{
11816
12170
  flags?: string;
11817
12171
  } | string));
11818
12172
  })[];
12173
+ groups?: (string | [string, ...(string)[]] | {
12174
+ newlinesBetween: ("ignore" | number);
12175
+ } | {
12176
+ group: (string | [string, ...(string)[]]);
12177
+ commentAbove?: string;
12178
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12179
+ newlinesInside?: number;
12180
+ order?: ("asc" | "desc");
12181
+ })[];
12182
+ newlinesBetween?: ("ignore" | number);
11819
12183
  partitionByComment?: (boolean | (({
11820
12184
  pattern: string;
11821
12185
  flags?: string;
@@ -11839,38 +12203,29 @@ type PerfectionistSortModules = [] | [{
11839
12203
  } | string)));
11840
12204
  });
11841
12205
  partitionByNewLine?: boolean;
11842
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11843
- groups?: (string | string[] | {
11844
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11845
- commentAbove?: string;
11846
- })[];
11847
12206
  }];
11848
12207
  // ----- perfectionist/sort-named-exports -----
11849
12208
  type PerfectionistSortNamedExports = {
11850
12209
  fallbackSort?: {
12210
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11851
12211
  order?: ("asc" | "desc");
11852
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11853
12212
  };
12213
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11854
12214
  specialCharacters?: ("remove" | "trim" | "keep");
11855
12215
  ignoreCase?: boolean;
11856
12216
  alphabet?: string;
11857
12217
  locales?: (string | string[]);
11858
12218
  order?: ("asc" | "desc");
11859
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11860
- groupKind?: ("mixed" | "values-first" | "types-first");
11861
- ignoreAlias?: boolean;
11862
12219
  customGroups?: ({
11863
- newlinesInside?: (("always" | "never") | number);
11864
12220
  fallbackSort?: {
12221
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11865
12222
  order?: ("asc" | "desc");
11866
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11867
12223
  };
12224
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11868
12225
  groupName: string;
12226
+ newlinesInside?: number;
11869
12227
  order?: ("asc" | "desc");
11870
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11871
- anyOf?: {
11872
- modifiers?: ("value" | "type")[];
11873
- selector?: "export";
12228
+ anyOf: {
11874
12229
  elementNamePattern?: (({
11875
12230
  pattern: string;
11876
12231
  flags?: string;
@@ -11878,18 +12233,18 @@ type PerfectionistSortNamedExports = {
11878
12233
  pattern: string;
11879
12234
  flags?: string;
11880
12235
  } | string));
12236
+ modifiers?: ("value" | "type")[];
12237
+ selector?: "export";
11881
12238
  }[];
11882
12239
  } | {
11883
- newlinesInside?: (("always" | "never") | number);
11884
12240
  fallbackSort?: {
12241
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11885
12242
  order?: ("asc" | "desc");
11886
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11887
12243
  };
12244
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11888
12245
  groupName: string;
12246
+ newlinesInside?: number;
11889
12247
  order?: ("asc" | "desc");
11890
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11891
- modifiers?: ("value" | "type")[];
11892
- selector?: "export";
11893
12248
  elementNamePattern?: (({
11894
12249
  pattern: string;
11895
12250
  flags?: string;
@@ -11897,7 +12252,20 @@ type PerfectionistSortNamedExports = {
11897
12252
  pattern: string;
11898
12253
  flags?: string;
11899
12254
  } | string));
12255
+ modifiers?: ("value" | "type")[];
12256
+ selector?: "export";
12257
+ })[];
12258
+ groups?: (string | [string, ...(string)[]] | {
12259
+ newlinesBetween: ("ignore" | number);
12260
+ } | {
12261
+ group: (string | [string, ...(string)[]]);
12262
+ commentAbove?: string;
12263
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12264
+ newlinesInside?: number;
12265
+ order?: ("asc" | "desc");
11900
12266
  })[];
12267
+ newlinesBetween?: ("ignore" | number);
12268
+ ignoreAlias?: boolean;
11901
12269
  partitionByComment?: (boolean | (({
11902
12270
  pattern: string;
11903
12271
  flags?: string;
@@ -11921,38 +12289,29 @@ type PerfectionistSortNamedExports = {
11921
12289
  } | string)));
11922
12290
  });
11923
12291
  partitionByNewLine?: boolean;
11924
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11925
- groups?: (string | string[] | {
11926
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11927
- commentAbove?: string;
11928
- })[];
11929
12292
  }[];
11930
12293
  // ----- perfectionist/sort-named-imports -----
11931
12294
  type PerfectionistSortNamedImports = {
11932
12295
  fallbackSort?: {
12296
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11933
12297
  order?: ("asc" | "desc");
11934
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11935
12298
  };
12299
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11936
12300
  specialCharacters?: ("remove" | "trim" | "keep");
11937
12301
  ignoreCase?: boolean;
11938
12302
  alphabet?: string;
11939
12303
  locales?: (string | string[]);
11940
12304
  order?: ("asc" | "desc");
11941
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11942
- groupKind?: ("mixed" | "values-first" | "types-first");
11943
- ignoreAlias?: boolean;
11944
12305
  customGroups?: ({
11945
- newlinesInside?: (("always" | "never") | number);
11946
12306
  fallbackSort?: {
12307
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11947
12308
  order?: ("asc" | "desc");
11948
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11949
12309
  };
12310
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11950
12311
  groupName: string;
12312
+ newlinesInside?: number;
11951
12313
  order?: ("asc" | "desc");
11952
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11953
- anyOf?: {
11954
- modifiers?: ("value" | "type")[];
11955
- selector?: "import";
12314
+ anyOf: {
11956
12315
  elementNamePattern?: (({
11957
12316
  pattern: string;
11958
12317
  flags?: string;
@@ -11960,18 +12319,18 @@ type PerfectionistSortNamedImports = {
11960
12319
  pattern: string;
11961
12320
  flags?: string;
11962
12321
  } | string));
12322
+ modifiers?: ("value" | "type")[];
12323
+ selector?: "import";
11963
12324
  }[];
11964
12325
  } | {
11965
- newlinesInside?: (("always" | "never") | number);
11966
12326
  fallbackSort?: {
12327
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11967
12328
  order?: ("asc" | "desc");
11968
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11969
12329
  };
12330
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11970
12331
  groupName: string;
12332
+ newlinesInside?: number;
11971
12333
  order?: ("asc" | "desc");
11972
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11973
- modifiers?: ("value" | "type")[];
11974
- selector?: "import";
11975
12334
  elementNamePattern?: (({
11976
12335
  pattern: string;
11977
12336
  flags?: string;
@@ -11979,7 +12338,20 @@ type PerfectionistSortNamedImports = {
11979
12338
  pattern: string;
11980
12339
  flags?: string;
11981
12340
  } | string));
12341
+ modifiers?: ("value" | "type")[];
12342
+ selector?: "import";
12343
+ })[];
12344
+ groups?: (string | [string, ...(string)[]] | {
12345
+ newlinesBetween: ("ignore" | number);
12346
+ } | {
12347
+ group: (string | [string, ...(string)[]]);
12348
+ commentAbove?: string;
12349
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12350
+ newlinesInside?: number;
12351
+ order?: ("asc" | "desc");
11982
12352
  })[];
12353
+ newlinesBetween?: ("ignore" | number);
12354
+ ignoreAlias?: boolean;
11983
12355
  partitionByComment?: (boolean | (({
11984
12356
  pattern: string;
11985
12357
  flags?: string;
@@ -12003,48 +12375,41 @@ type PerfectionistSortNamedImports = {
12003
12375
  } | string)));
12004
12376
  });
12005
12377
  partitionByNewLine?: boolean;
12006
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12007
- groups?: (string | string[] | {
12008
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12009
- commentAbove?: string;
12010
- })[];
12011
12378
  }[];
12012
12379
  // ----- perfectionist/sort-object-types -----
12013
12380
  type PerfectionistSortObjectTypes = {
12014
12381
  fallbackSort?: {
12382
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12015
12383
  order?: ("asc" | "desc");
12016
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12017
12384
  sortBy?: ("name" | "value");
12018
12385
  };
12386
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12019
12387
  specialCharacters?: ("remove" | "trim" | "keep");
12020
12388
  ignoreCase?: boolean;
12021
12389
  alphabet?: string;
12022
12390
  locales?: (string | string[]);
12023
12391
  order?: ("asc" | "desc");
12024
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12025
12392
  customGroups?: ({
12026
- [k: string]: (string | string[]) | undefined;
12027
- } | ({
12028
- newlinesInside?: (("always" | "never") | number);
12029
12393
  fallbackSort?: {
12394
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12030
12395
  order?: ("asc" | "desc");
12031
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12032
12396
  sortBy?: ("name" | "value");
12033
12397
  };
12398
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12034
12399
  groupName: string;
12400
+ newlinesInside?: number;
12035
12401
  order?: ("asc" | "desc");
12036
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12037
- anyOf?: {
12038
- modifiers?: ("optional" | "required" | "multiline")[];
12039
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12040
- elementValuePattern?: (({
12402
+ anyOf: {
12403
+ elementNamePattern?: (({
12041
12404
  pattern: string;
12042
12405
  flags?: string;
12043
12406
  } | string)[] | ({
12044
12407
  pattern: string;
12045
12408
  flags?: string;
12046
12409
  } | string));
12047
- elementNamePattern?: (({
12410
+ modifiers?: ("optional" | "required" | "multiline")[];
12411
+ selector?: ("index-signature" | "member" | "method" | "property");
12412
+ elementValuePattern?: (({
12048
12413
  pattern: string;
12049
12414
  flags?: string;
12050
12415
  } | string)[] | ({
@@ -12054,25 +12419,25 @@ type PerfectionistSortObjectTypes = {
12054
12419
  sortBy?: ("name" | "value");
12055
12420
  }[];
12056
12421
  } | {
12057
- newlinesInside?: (("always" | "never") | number);
12058
12422
  fallbackSort?: {
12423
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12059
12424
  order?: ("asc" | "desc");
12060
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12061
12425
  sortBy?: ("name" | "value");
12062
12426
  };
12427
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12063
12428
  groupName: string;
12429
+ newlinesInside?: number;
12064
12430
  order?: ("asc" | "desc");
12065
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12066
- modifiers?: ("optional" | "required" | "multiline")[];
12067
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
12068
- elementValuePattern?: (({
12431
+ elementNamePattern?: (({
12069
12432
  pattern: string;
12070
12433
  flags?: string;
12071
12434
  } | string)[] | ({
12072
12435
  pattern: string;
12073
12436
  flags?: string;
12074
12437
  } | string));
12075
- elementNamePattern?: (({
12438
+ modifiers?: ("optional" | "required" | "multiline")[];
12439
+ selector?: ("index-signature" | "member" | "method" | "property");
12440
+ elementValuePattern?: (({
12076
12441
  pattern: string;
12077
12442
  flags?: string;
12078
12443
  } | string)[] | ({
@@ -12080,8 +12445,17 @@ type PerfectionistSortObjectTypes = {
12080
12445
  flags?: string;
12081
12446
  } | string));
12082
12447
  sortBy?: ("name" | "value");
12083
- })[]);
12084
- groupKind?: ("mixed" | "required-first" | "optional-first");
12448
+ })[];
12449
+ groups?: (string | [string, ...(string)[]] | {
12450
+ newlinesBetween: ("ignore" | number);
12451
+ } | {
12452
+ group: (string | [string, ...(string)[]]);
12453
+ commentAbove?: string;
12454
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12455
+ newlinesInside?: number;
12456
+ order?: ("asc" | "desc");
12457
+ })[];
12458
+ newlinesBetween?: ("ignore" | number);
12085
12459
  useConfigurationIf?: {
12086
12460
  allNamesMatchPattern?: (({
12087
12461
  pattern: string;
@@ -12090,10 +12464,22 @@ type PerfectionistSortObjectTypes = {
12090
12464
  pattern: string;
12091
12465
  flags?: string;
12092
12466
  } | string));
12467
+ hasNumericKeysOnly?: boolean;
12468
+ declarationCommentMatchesPattern?: (({
12469
+ scope?: ("shallow" | "deep");
12470
+ pattern: string;
12471
+ flags?: string;
12472
+ } | string)[] | ({
12473
+ scope?: ("shallow" | "deep");
12474
+ pattern: string;
12475
+ flags?: string;
12476
+ } | string));
12093
12477
  declarationMatchesPattern?: (({
12478
+ scope?: ("shallow" | "deep");
12094
12479
  pattern: string;
12095
12480
  flags?: string;
12096
12481
  } | string)[] | ({
12482
+ scope?: ("shallow" | "deep");
12097
12483
  pattern: string;
12098
12484
  flags?: string;
12099
12485
  } | string));
@@ -12121,57 +12507,40 @@ type PerfectionistSortObjectTypes = {
12121
12507
  } | string)));
12122
12508
  });
12123
12509
  partitionByNewLine?: boolean;
12124
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12125
- ignorePattern?: (({
12126
- pattern: string;
12127
- flags?: string;
12128
- } | string)[] | ({
12129
- pattern: string;
12130
- flags?: string;
12131
- } | string));
12132
12510
  sortBy?: ("name" | "value");
12133
- groups?: (string | string[] | {
12134
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12135
- commentAbove?: string;
12136
- })[];
12137
12511
  }[];
12138
12512
  // ----- perfectionist/sort-objects -----
12139
12513
  type PerfectionistSortObjects = {
12140
12514
  fallbackSort?: {
12515
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12141
12516
  order?: ("asc" | "desc");
12142
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12143
12517
  };
12518
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12144
12519
  specialCharacters?: ("remove" | "trim" | "keep");
12145
12520
  ignoreCase?: boolean;
12146
12521
  alphabet?: string;
12147
12522
  locales?: (string | string[]);
12148
12523
  order?: ("asc" | "desc");
12149
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12150
- destructuredObjects?: (boolean | {
12151
- groups?: boolean;
12152
- });
12153
12524
  customGroups?: ({
12154
- [k: string]: (string | string[]) | undefined;
12155
- } | ({
12156
- newlinesInside?: (("always" | "never") | number);
12157
12525
  fallbackSort?: {
12526
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12158
12527
  order?: ("asc" | "desc");
12159
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12160
12528
  };
12529
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12161
12530
  groupName: string;
12531
+ newlinesInside?: number;
12162
12532
  order?: ("asc" | "desc");
12163
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12164
- anyOf?: {
12165
- modifiers?: ("optional" | "required" | "multiline")[];
12166
- selector?: ("member" | "method" | "multiline" | "property");
12167
- elementValuePattern?: (({
12533
+ anyOf: {
12534
+ elementNamePattern?: (({
12168
12535
  pattern: string;
12169
12536
  flags?: string;
12170
12537
  } | string)[] | ({
12171
12538
  pattern: string;
12172
12539
  flags?: string;
12173
12540
  } | string));
12174
- elementNamePattern?: (({
12541
+ modifiers?: ("optional" | "required" | "multiline")[];
12542
+ selector?: ("member" | "method" | "property");
12543
+ elementValuePattern?: (({
12175
12544
  pattern: string;
12176
12545
  flags?: string;
12177
12546
  } | string)[] | ({
@@ -12180,31 +12549,41 @@ type PerfectionistSortObjects = {
12180
12549
  } | string));
12181
12550
  }[];
12182
12551
  } | {
12183
- newlinesInside?: (("always" | "never") | number);
12184
12552
  fallbackSort?: {
12553
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12185
12554
  order?: ("asc" | "desc");
12186
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12187
12555
  };
12556
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12188
12557
  groupName: string;
12558
+ newlinesInside?: number;
12189
12559
  order?: ("asc" | "desc");
12190
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12191
- modifiers?: ("optional" | "required" | "multiline")[];
12192
- selector?: ("member" | "method" | "multiline" | "property");
12193
- elementValuePattern?: (({
12560
+ elementNamePattern?: (({
12194
12561
  pattern: string;
12195
12562
  flags?: string;
12196
12563
  } | string)[] | ({
12197
12564
  pattern: string;
12198
12565
  flags?: string;
12199
12566
  } | string));
12200
- elementNamePattern?: (({
12567
+ modifiers?: ("optional" | "required" | "multiline")[];
12568
+ selector?: ("member" | "method" | "property");
12569
+ elementValuePattern?: (({
12201
12570
  pattern: string;
12202
12571
  flags?: string;
12203
12572
  } | string)[] | ({
12204
12573
  pattern: string;
12205
12574
  flags?: string;
12206
12575
  } | string));
12207
- })[]);
12576
+ })[];
12577
+ groups?: (string | [string, ...(string)[]] | {
12578
+ newlinesBetween: ("ignore" | number);
12579
+ } | {
12580
+ group: (string | [string, ...(string)[]]);
12581
+ commentAbove?: string;
12582
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12583
+ newlinesInside?: number;
12584
+ order?: ("asc" | "desc");
12585
+ })[];
12586
+ newlinesBetween?: ("ignore" | number);
12208
12587
  useConfigurationIf?: {
12209
12588
  allNamesMatchPattern?: (({
12210
12589
  pattern: string;
@@ -12213,16 +12592,36 @@ type PerfectionistSortObjects = {
12213
12592
  pattern: string;
12214
12593
  flags?: string;
12215
12594
  } | string));
12595
+ objectType?: ("destructured" | "non-destructured");
12596
+ hasNumericKeysOnly?: boolean;
12597
+ declarationCommentMatchesPattern?: (({
12598
+ scope?: ("shallow" | "deep");
12599
+ pattern: string;
12600
+ flags?: string;
12601
+ } | string)[] | ({
12602
+ scope?: ("shallow" | "deep");
12603
+ pattern: string;
12604
+ flags?: string;
12605
+ } | string));
12216
12606
  callingFunctionNamePattern?: (({
12607
+ scope?: ("shallow" | "deep");
12608
+ pattern: string;
12609
+ flags?: string;
12610
+ } | string)[] | ({
12611
+ scope?: ("shallow" | "deep");
12612
+ pattern: string;
12613
+ flags?: string;
12614
+ } | string));
12615
+ declarationMatchesPattern?: (({
12616
+ scope?: ("shallow" | "deep");
12217
12617
  pattern: string;
12218
12618
  flags?: string;
12219
12619
  } | string)[] | ({
12620
+ scope?: ("shallow" | "deep");
12220
12621
  pattern: string;
12221
12622
  flags?: string;
12222
12623
  } | string));
12223
12624
  };
12224
- destructureOnly?: boolean;
12225
- objectDeclarations?: boolean;
12226
12625
  styledComponents?: boolean;
12227
12626
  partitionByComment?: (boolean | (({
12228
12627
  pattern: string;
@@ -12247,43 +12646,29 @@ type PerfectionistSortObjects = {
12247
12646
  } | string)));
12248
12647
  });
12249
12648
  partitionByNewLine?: boolean;
12250
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12251
- ignorePattern?: (({
12252
- pattern: string;
12253
- flags?: string;
12254
- } | string)[] | ({
12255
- pattern: string;
12256
- flags?: string;
12257
- } | string));
12258
- groups?: (string | string[] | {
12259
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12260
- commentAbove?: string;
12261
- })[];
12262
12649
  }[];
12263
12650
  // ----- perfectionist/sort-sets -----
12264
12651
  type PerfectionistSortSets = {
12265
12652
  fallbackSort?: {
12653
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12266
12654
  order?: ("asc" | "desc");
12267
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12268
12655
  };
12656
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12269
12657
  specialCharacters?: ("remove" | "trim" | "keep");
12270
12658
  ignoreCase?: boolean;
12271
12659
  alphabet?: string;
12272
12660
  locales?: (string | string[]);
12273
12661
  order?: ("asc" | "desc");
12274
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12275
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
12276
12662
  customGroups?: ({
12277
- newlinesInside?: (("always" | "never") | number);
12278
12663
  fallbackSort?: {
12664
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12279
12665
  order?: ("asc" | "desc");
12280
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12281
12666
  };
12667
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12282
12668
  groupName: string;
12669
+ newlinesInside?: number;
12283
12670
  order?: ("asc" | "desc");
12284
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12285
- anyOf?: {
12286
- selector?: ("literal" | "spread");
12671
+ anyOf: {
12287
12672
  elementNamePattern?: (({
12288
12673
  pattern: string;
12289
12674
  flags?: string;
@@ -12291,17 +12676,17 @@ type PerfectionistSortSets = {
12291
12676
  pattern: string;
12292
12677
  flags?: string;
12293
12678
  } | string));
12679
+ selector?: ("literal" | "spread");
12294
12680
  }[];
12295
12681
  } | {
12296
- newlinesInside?: (("always" | "never") | number);
12297
12682
  fallbackSort?: {
12683
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12298
12684
  order?: ("asc" | "desc");
12299
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12300
12685
  };
12686
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12301
12687
  groupName: string;
12688
+ newlinesInside?: number;
12302
12689
  order?: ("asc" | "desc");
12303
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12304
- selector?: ("literal" | "spread");
12305
12690
  elementNamePattern?: (({
12306
12691
  pattern: string;
12307
12692
  flags?: string;
@@ -12309,7 +12694,18 @@ type PerfectionistSortSets = {
12309
12694
  pattern: string;
12310
12695
  flags?: string;
12311
12696
  } | string));
12697
+ selector?: ("literal" | "spread");
12698
+ })[];
12699
+ groups?: (string | [string, ...(string)[]] | {
12700
+ newlinesBetween: ("ignore" | number);
12701
+ } | {
12702
+ group: (string | [string, ...(string)[]]);
12703
+ commentAbove?: string;
12704
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12705
+ newlinesInside?: number;
12706
+ order?: ("asc" | "desc");
12312
12707
  })[];
12708
+ newlinesBetween?: ("ignore" | number);
12313
12709
  useConfigurationIf?: {
12314
12710
  allNamesMatchPattern?: (({
12315
12711
  pattern: string;
@@ -12342,48 +12738,42 @@ type PerfectionistSortSets = {
12342
12738
  } | string)));
12343
12739
  });
12344
12740
  partitionByNewLine?: boolean;
12345
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12346
- groups?: (string | string[] | {
12347
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12348
- commentAbove?: string;
12349
- })[];
12350
12741
  }[];
12351
12742
  // ----- perfectionist/sort-switch-case -----
12352
12743
  type PerfectionistSortSwitchCase = [] | [{
12353
12744
  fallbackSort?: {
12745
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12354
12746
  order?: ("asc" | "desc");
12355
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12356
12747
  };
12748
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12357
12749
  specialCharacters?: ("remove" | "trim" | "keep");
12358
12750
  ignoreCase?: boolean;
12359
12751
  alphabet?: string;
12360
12752
  locales?: (string | string[]);
12361
12753
  order?: ("asc" | "desc");
12362
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12363
12754
  }];
12364
12755
  // ----- perfectionist/sort-union-types -----
12365
12756
  type PerfectionistSortUnionTypes = {
12366
12757
  fallbackSort?: {
12758
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12367
12759
  order?: ("asc" | "desc");
12368
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12369
12760
  };
12761
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12370
12762
  specialCharacters?: ("remove" | "trim" | "keep");
12371
12763
  ignoreCase?: boolean;
12372
12764
  alphabet?: string;
12373
12765
  locales?: (string | string[]);
12374
12766
  order?: ("asc" | "desc");
12375
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12376
12767
  customGroups?: ({
12377
- newlinesInside?: (("always" | "never") | number);
12378
12768
  fallbackSort?: {
12769
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12379
12770
  order?: ("asc" | "desc");
12380
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12381
12771
  };
12772
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12382
12773
  groupName: string;
12774
+ newlinesInside?: number;
12383
12775
  order?: ("asc" | "desc");
12384
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12385
- anyOf?: {
12386
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
12776
+ anyOf: {
12387
12777
  elementNamePattern?: (({
12388
12778
  pattern: string;
12389
12779
  flags?: string;
@@ -12391,17 +12781,17 @@ type PerfectionistSortUnionTypes = {
12391
12781
  pattern: string;
12392
12782
  flags?: string;
12393
12783
  } | string));
12784
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
12394
12785
  }[];
12395
12786
  } | {
12396
- newlinesInside?: (("always" | "never") | number);
12397
12787
  fallbackSort?: {
12788
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12398
12789
  order?: ("asc" | "desc");
12399
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12400
12790
  };
12791
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12401
12792
  groupName: string;
12793
+ newlinesInside?: number;
12402
12794
  order?: ("asc" | "desc");
12403
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12404
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
12405
12795
  elementNamePattern?: (({
12406
12796
  pattern: string;
12407
12797
  flags?: string;
@@ -12409,7 +12799,18 @@ type PerfectionistSortUnionTypes = {
12409
12799
  pattern: string;
12410
12800
  flags?: string;
12411
12801
  } | string));
12802
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
12803
+ })[];
12804
+ groups?: (string | [string, ...(string)[]] | {
12805
+ newlinesBetween: ("ignore" | number);
12806
+ } | {
12807
+ group: (string | [string, ...(string)[]]);
12808
+ commentAbove?: string;
12809
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12810
+ newlinesInside?: number;
12811
+ order?: ("asc" | "desc");
12412
12812
  })[];
12813
+ newlinesBetween?: ("ignore" | number);
12413
12814
  partitionByComment?: (boolean | (({
12414
12815
  pattern: string;
12415
12816
  flags?: string;
@@ -12433,35 +12834,29 @@ type PerfectionistSortUnionTypes = {
12433
12834
  } | string)));
12434
12835
  });
12435
12836
  partitionByNewLine?: boolean;
12436
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12437
- groups?: (string | string[] | {
12438
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12439
- commentAbove?: string;
12440
- })[];
12441
12837
  }[];
12442
12838
  // ----- perfectionist/sort-variable-declarations -----
12443
12839
  type PerfectionistSortVariableDeclarations = [] | [{
12444
12840
  fallbackSort?: {
12841
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12445
12842
  order?: ("asc" | "desc");
12446
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12447
12843
  };
12844
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12448
12845
  specialCharacters?: ("remove" | "trim" | "keep");
12449
12846
  ignoreCase?: boolean;
12450
12847
  alphabet?: string;
12451
12848
  locales?: (string | string[]);
12452
12849
  order?: ("asc" | "desc");
12453
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12454
12850
  customGroups?: ({
12455
- newlinesInside?: (("always" | "never") | number);
12456
12851
  fallbackSort?: {
12852
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12457
12853
  order?: ("asc" | "desc");
12458
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12459
12854
  };
12855
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12460
12856
  groupName: string;
12857
+ newlinesInside?: number;
12461
12858
  order?: ("asc" | "desc");
12462
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12463
- anyOf?: {
12464
- selector?: ("initialized" | "uninitialized");
12859
+ anyOf: {
12465
12860
  elementNamePattern?: (({
12466
12861
  pattern: string;
12467
12862
  flags?: string;
@@ -12469,17 +12864,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
12469
12864
  pattern: string;
12470
12865
  flags?: string;
12471
12866
  } | string));
12867
+ selector?: ("initialized" | "uninitialized");
12472
12868
  }[];
12473
12869
  } | {
12474
- newlinesInside?: (("always" | "never") | number);
12475
12870
  fallbackSort?: {
12871
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12476
12872
  order?: ("asc" | "desc");
12477
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12478
12873
  };
12874
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12479
12875
  groupName: string;
12876
+ newlinesInside?: number;
12480
12877
  order?: ("asc" | "desc");
12481
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12482
- selector?: ("initialized" | "uninitialized");
12483
12878
  elementNamePattern?: (({
12484
12879
  pattern: string;
12485
12880
  flags?: string;
@@ -12487,7 +12882,18 @@ type PerfectionistSortVariableDeclarations = [] | [{
12487
12882
  pattern: string;
12488
12883
  flags?: string;
12489
12884
  } | string));
12885
+ selector?: ("initialized" | "uninitialized");
12886
+ })[];
12887
+ groups?: (string | [string, ...(string)[]] | {
12888
+ newlinesBetween: ("ignore" | number);
12889
+ } | {
12890
+ group: (string | [string, ...(string)[]]);
12891
+ commentAbove?: string;
12892
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12893
+ newlinesInside?: number;
12894
+ order?: ("asc" | "desc");
12490
12895
  })[];
12896
+ newlinesBetween?: ("ignore" | number);
12491
12897
  partitionByComment?: (boolean | (({
12492
12898
  pattern: string;
12493
12899
  flags?: string;
@@ -12511,11 +12917,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
12511
12917
  } | string)));
12512
12918
  });
12513
12919
  partitionByNewLine?: boolean;
12514
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12515
- groups?: (string | string[] | {
12516
- newlinesBetween?: (("ignore" | "always" | "never") | number);
12517
- commentAbove?: string;
12518
- })[];
12519
12920
  }];
12520
12921
  // ----- pnpm/json-enforce-catalog -----
12521
12922
  type PnpmJsonEnforceCatalog = [] | [{
@@ -12539,6 +12940,15 @@ type PnpmJsonValidCatalog = [] | [{
12539
12940
  enforceNoConflict?: boolean;
12540
12941
  fields?: unknown[];
12541
12942
  }];
12943
+ // ----- pnpm/yaml-enforce-settings -----
12944
+ type PnpmYamlEnforceSettings = [] | [{
12945
+ autofix?: boolean;
12946
+ settings?: {
12947
+ [k: string]: unknown | undefined;
12948
+ };
12949
+ requiredFields?: string[];
12950
+ forbiddenFields?: string[];
12951
+ }];
12542
12952
  // ----- pnpm/yaml-no-duplicate-catalog-item -----
12543
12953
  type PnpmYamlNoDuplicateCatalogItem = [] | [{
12544
12954
  allow?: string[];
@@ -12774,8 +13184,13 @@ type ReactXNoForbiddenProps = [] | [{
12774
13184
  prop: string;
12775
13185
  })[];
12776
13186
  }];
13187
+ // ----- react-x/no-unstable-default-props -----
13188
+ type ReactXNoUnstableDefaultProps = [] | [{
13189
+ safeDefaultProps?: string[];
13190
+ }];
12777
13191
  // ----- react-x/no-useless-fragment -----
12778
13192
  type ReactXNoUselessFragment = [] | [{
13193
+ allowEmptyFragment?: boolean;
12779
13194
  allowExpressions?: boolean;
12780
13195
  }];
12781
13196
  // ----- require-atomic-updates -----
@@ -16010,6 +16425,10 @@ type UnicornTemplateIndent = [] | [{
16010
16425
  selectors?: string[];
16011
16426
  comments?: string[];
16012
16427
  }];
16428
+ // ----- unicorn/text-encoding-identifier-case -----
16429
+ type UnicornTextEncodingIdentifierCase = [] | [{
16430
+ withDash?: boolean;
16431
+ }];
16013
16432
  // ----- use-isnan -----
16014
16433
  type UseIsnan = [] | [{
16015
16434
  enforceForSwitchCase?: boolean;
@@ -17429,7 +17848,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
17429
17848
  }];
17430
17849
 
17431
17850
  // Names of all the configs
17432
- type ConfigNames = "zayne/js-eslint/setup" | "zayne/js-eslint/recommended" | "zayne/js-eslint/rules" | "zayne/unicorn/recommended" | "zayne/unicorn/rules" | "zayne/ts-eslint/setup" | "zayne/typescript/parser" | "zayne/typescript/parser-type-aware" | "zayne/ts-eslint/recommended-strict-type-checked" | "zayne/ts-eslint/recommended-stylistic-type-checked" | "zayne/typescript/erasable-syntax-only/recommended" | "zayne/ts-eslint/rules-type-checked" | "zayne/perfectionist/rules" | "zayne/stylistic/rules" | "zayne/import/setup" | "zayne/import/recommended" | "zayne/import/rules" | "zayne/jsdoc/rules" | "zayne/jsonc/setup" | "zayne/jsonc/parser" | "zayne/jsonc/rules" | "zayne/react/setup" | "zayne/react/official/rules" | "zayne/react/unofficial/strict-type-checked" | "zayne/react/unofficial/rules" | "zayne/react/official/compiler/rules" | "zayne/react/refresh/rules" | "zayne/react/you-might-not-need-an-effect/recommended" | "zayne/react/you-might-not-need-an-effect/rules" | "zayne/react/nextjs/recommended" | "zayne/react/nextjs/rules" | "zayne/node/recommended" | "zayne/node/rules" | "zayne/node/security/recommended" | "zayne/tanstack-query/recommended" | "zayne/tanstack-query/rules" | "zayne/tanstack-router/recommended" | "zayne/tanstack-router/rules" | "zayne/eslint-comments/rules" | "zayne/toml/setup" | "zayne/toml/parser" | "zayne/toml/rules" | "zayne/yaml/setup" | "zayne/yaml/parser" | "zayne/yaml/rules" | "zayne/yaml/disables" | "zayne/vue/setup" | "zayne/vue/parser" | "zayne/vue/recommended" | "zayne/vue/rules" | "zayne/vue/disables" | "zayne/solid/setup" | "zayne/solid/recommended" | "zayne/solid/rules" | "zayne/pnpm/setup" | "zayne/pnpm/package-json/rules" | "zayne/pnpm/pnpm-workspace-yaml/rules" | "zayne/astro/setup" | "zayne/astro/parser" | "zayne/astro/recommended" | "zayne/astro/rules" | "zayne/depend/setup" | "zayne/depend/recommended" | "zayne/depend/recommended/package-json" | "zayne/tailwindcss-better/setup" | "zayne/tailwindcss-better/recommended" | "zayne/tailwindcss-better/rules" | "zayne/expo/recommended" | "zayne/expo/recommended" | "zayne/expo/rules" | "zayne/jsx/setup" | "zayne/jsx/a11y/setup" | "zayne/jsx/a11y/recommended" | "zayne/jsx/a11y/rules" | "zayne/markdown/setup" | "zayne/markdown/parser" | "zayne/markdown/processor" | "zayne/markdown/recommended" | "zayne/markdown/rules" | "zayne/markdown/disables";
17851
+ type ConfigNames = "zayne/defaults/ignores" | "zayne/js-eslint/setup" | "zayne/js-eslint/recommended" | "zayne/js-eslint/rules" | "zayne/gitignore/setup" | "zayne/jsx/setup" | "zayne/jsx/a11y/setup" | "zayne/jsx/a11y/recommended" | "zayne/jsx/a11y/rules" | "zayne/ts-eslint/setup" | "zayne/typescript/parser" | "zayne/ts-eslint/recommended-strict" | "zayne/ts-eslint/recommended-stylistic" | "zayne/typescript/erasable-syntax-only/recommended" | "zayne/ts-eslint/rules" | "zayne/stylistic/rules" | "zayne/eslint-comments/rules" | "zayne/import/setup" | "zayne/import/recommended" | "zayne/import/rules" | "zayne/pnpm/package-json/rules" | "zayne/pnpm/pnpm-workspace-yaml/rules" | "zayne/pnpm/sort/pnpm-workspace-yaml" | "zayne/node/recommended" | "zayne/node/rules" | "zayne/node/security/recommended" | "zayne/perfectionist/rules" | "zayne/unicorn/recommended" | "zayne/unicorn/rules" | "zayne/jsonc/setup" | "zayne/jsonc/parser" | "zayne/jsonc/rules" | "zayne/sort/package.json" | "zayne/sort/tsconfig.json" | "zayne/jsdoc/rules" | "zayne/toml/setup" | "zayne/toml/parser" | "zayne/toml/rules" | "zayne/yaml/setup" | "zayne/yaml/parser" | "zayne/yaml/rules" | "zayne/yaml/disables" | "zayne/markdown/setup" | "zayne/markdown/parser" | "zayne/markdown/processor" | "zayne/markdown/recommended" | "zayne/markdown/disables" | "zayne/react/setup" | "zayne/react/official/rules" | "zayne/react/unofficial/strict" | "zayne/react/unofficial/rules" | "zayne/react/official/compiler/rules" | "zayne/react/refresh/rules" | "zayne/react/you-might-not-need-an-effect/recommended" | "zayne/react/you-might-not-need-an-effect/rules" | "zayne/react/nextjs/recommended" | "zayne/react/nextjs/rules" | "zayne/vue/setup" | "zayne/vue/parser" | "zayne/vue/recommended" | "zayne/vue/rules" | "zayne/vue/disables" | "zayne/solid/setup" | "zayne/solid/recommended" | "zayne/solid/rules" | "zayne/astro/setup" | "zayne/astro/parser" | "zayne/astro/recommended" | "zayne/astro/rules" | "zayne/expo/recommended" | "zayne/expo/recommended" | "zayne/expo/rules" | "zayne/tailwindcss-better/setup" | "zayne/tailwindcss-better/recommended" | "zayne/tailwindcss-better/rules" | "zayne/tanstack-query/recommended" | "zayne/tanstack-query/rules" | "zayne/tanstack-router/recommended" | "zayne/tanstack-router/rules" | "zayne/depend/setup" | "zayne/depend/recommended" | "zayne/depend/recommended/package-json";
17433
17852
  //#endregion
17434
17853
  //#region src/types/eslint-config-types/parser-options.d.ts
17435
17854
  // Some types copied from `@types/eslint` `Linter.ParserOptions`
@@ -17769,7 +18188,7 @@ interface OptionsHasTypeScript {
17769
18188
  interface OptionsReact {
17770
18189
  /**
17771
18190
  * Enable react compiler rules.
17772
- * @default false
18191
+ * @default true
17773
18192
  */
17774
18193
  compiler?: boolean | OptionsOverrides;
17775
18194
  /**
@@ -17887,6 +18306,32 @@ interface OptionsNode {
17887
18306
  */
17888
18307
  security?: boolean | OptionsOverrides;
17889
18308
  }
18309
+ interface OptionsPnpm {
18310
+ /**
18311
+ * Requires catalogs usage
18312
+ *
18313
+ * Detects automatically based if `catalogs` is used in the pnpm-workspace.yaml file
18314
+ */
18315
+ catalogs?: boolean;
18316
+ /**
18317
+ * Enable linting for package.json, will install the jsonc parser
18318
+ *
18319
+ * @default true
18320
+ */
18321
+ json?: boolean;
18322
+ /**
18323
+ * Sort entries in pnpm-workspace.yaml
18324
+ *
18325
+ * @default false
18326
+ */
18327
+ sort?: boolean;
18328
+ /**
18329
+ * Enable linting for pnpm-workspace.yaml, will install the yaml parser
18330
+ *
18331
+ * @default true
18332
+ */
18333
+ yaml?: boolean;
18334
+ }
17890
18335
  interface OptionsConfig extends OptionsComponentExts, OptionsComponentExtsTypeAware {
17891
18336
  /**
17892
18337
  * Enable ASTRO support.
@@ -17934,6 +18379,15 @@ interface OptionsConfig extends OptionsComponentExts, OptionsComponentExtsTypeAw
17934
18379
  * @default true
17935
18380
  */
17936
18381
  gitignore?: boolean | FlatGitignoreOptions;
18382
+ /**
18383
+ * Extend the global ignores.
18384
+ *
18385
+ * Passing an array to extends the ignores.
18386
+ * Passing a function to modify the default ignores.
18387
+ *
18388
+ * @default []
18389
+ */
18390
+ ignores?: string[] | ((originals: string[]) => string[]);
17937
18391
  /**
17938
18392
  * Enable linting rules for imports.
17939
18393
  * @default true
@@ -17990,7 +18444,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsComponentExtsTypeAw
17990
18444
  * @experimental
17991
18445
  * @default false
17992
18446
  */
17993
- pnpm?: boolean | OptionsOverridesMultiple<["json", "yaml"]>;
18447
+ pnpm?: (OptionsOverridesMultiple<["json", "yaml"]> & OptionsPnpm) | boolean;
17994
18448
  /**
17995
18449
  * Enable react rules.
17996
18450
  *
@@ -18108,7 +18562,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsComponentExtsTypeAw
18108
18562
  //#region src/types/utils.d.ts
18109
18563
  type Awaitable<T> = Promise<T> | T;
18110
18564
  type ExtractOptions<TUnion> = Extract<TUnion, object>;
18111
- type Prettify<TObject$1> = NonNullable<unknown> & { [Key in keyof TObject$1]: TObject$1[Key] };
18565
+ type Prettify<TObject> = NonNullable<unknown> & { [Key in keyof TObject]: TObject[Key] };
18112
18566
  //#endregion
18113
18567
  //#region src/configs/astro.d.ts
18114
18568
  declare const astro: (options?: ExtractOptions<OptionsConfig["astro"]>) => Promise<TypedFlatConfigItem[]>;
@@ -18123,7 +18577,7 @@ declare const depend: (options?: ExtractOptions<OptionsConfig["depend"]>) => Pro
18123
18577
  declare const expo: (options?: ExtractOptions<OptionsConfig["expo"]>) => Promise<TypedFlatConfigItem[]>;
18124
18578
  //#endregion
18125
18579
  //#region src/configs/ignores.d.ts
18126
- declare const ignores: (userIgnores?: string[]) => TypedFlatConfigItem[];
18580
+ declare const ignores: (userIgnores?: OptionsConfig["ignores"]) => TypedFlatConfigItem[];
18127
18581
  declare const gitIgnores: (options?: ExtractOptions<OptionsConfig["gitignore"]>) => Promise<TypedFlatConfigItem[]>;
18128
18582
  //#endregion
18129
18583
  //#region src/configs/imports.d.ts
@@ -18246,8 +18700,8 @@ declare const GLOB_SCSS = "**/*.scss";
18246
18700
  declare const GLOB_JSON = "**/*.json";
18247
18701
  declare const GLOB_JSON5 = "**/*.json5";
18248
18702
  declare const GLOB_JSONC = "**/*.jsonc";
18249
- declare const GLOB_MARKDOWN = "**/*.md";
18250
- declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
18703
+ declare const GLOB_MARKDOWN = "**/*.md?(x)";
18704
+ declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md?(x)/*.md?(x)";
18251
18705
  declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
18252
18706
  declare const GLOB_VUE = "**/*.vue";
18253
18707
  declare const GLOB_YAML = "**/*.y?(a)ml";
@@ -18258,8 +18712,8 @@ declare const GLOB_HTML = "**/*.htm?(l)";
18258
18712
  declare const GLOB_ASTRO = "**/*.astro";
18259
18713
  declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
18260
18714
  declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
18261
- declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
18262
- declare const GLOB_MARKDOWN_JSON = "**/*.md/**/*.json?({c,5})";
18715
+ declare const GLOB_MARKDOWN_CODE = "**/*.md?(x)/**/*.?([cm])[jt]s?(x)";
18716
+ declare const GLOB_MARKDOWN_JSON = "**/*.md?(x)/**/*.json?({c,5})";
18263
18717
  declare const GLOB_TESTS: ["**/__tests__/**/*.?([cm])[jt]s?(x)", "**/*.spec.?([cm])[jt]s?(x)", "**/*.test.?([cm])[jt]s?(x)", "**/*.bench.?([cm])[jt]s?(x)", "**/*.benchmark.?([cm])[jt]s?(x)"] & {
18264
18718
  $inferUnion: "**/__tests__/**/*.?([cm])[jt]s?(x)" | "**/*.spec.?([cm])[jt]s?(x)" | "**/*.test.?([cm])[jt]s?(x)" | "**/*.bench.?([cm])[jt]s?(x)" | "**/*.benchmark.?([cm])[jt]s?(x)";
18265
18719
  };
@@ -18402,5 +18856,5 @@ declare const parserPlain: {
18402
18856
  };
18403
18857
  };
18404
18858
  //#endregion
18405
- export { Awaitable, type ConfigNames, ExtractOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MARKDOWN_JSON, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLES, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsAppType, OptionsComponentExts, OptionsComponentExtsTypeAware, OptionsConfig, OptionsFiles, OptionsHasJsx, OptionsHasTypeScript, OptionsJSX, OptionsNode, OptionsOverrides, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTailwindCSS, OptionsTailwindCSSBetter, OptionsTanstack, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVue, Prettify, type Rules, TypedFlatConfigItem, allowedNextJsExportNames, allowedReactRouterExportNames, astro, combine, comments, defaultPluginRenameMap, depend, ensurePackages, expo, gitIgnores, ignores, imports, interopDefault, isObject, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, overrideConfigs, parserPlain, perfectionist, pnpm, react, renamePluginInConfigs, renamePlugins, renameRules, resolveOptions, solid, sortPackageJson, sortTsconfig, stylistic, tailwindcssBetter, tanstack, toml, typescript, unicorn, vue, yaml, zayne };
18859
+ export { Awaitable, type ConfigNames, ExtractOptions, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MARKDOWN_JSON, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLES, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsAppType, OptionsComponentExts, OptionsComponentExtsTypeAware, OptionsConfig, OptionsFiles, OptionsHasJsx, OptionsHasTypeScript, OptionsJSX, OptionsNode, OptionsOverrides, OptionsPnpm, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTailwindCSS, OptionsTailwindCSSBetter, OptionsTanstack, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVue, Prettify, type Rules, TypedFlatConfigItem, allowedNextJsExportNames, allowedReactRouterExportNames, astro, combine, comments, defaultPluginRenameMap, depend, ensurePackages, expo, gitIgnores, ignores, imports, interopDefault, isObject, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, overrideConfigs, parserPlain, perfectionist, pnpm, react, renamePluginInConfigs, renamePlugins, renameRules, resolveOptions, solid, sortPackageJson, sortTsconfig, stylistic, tailwindcssBetter, tanstack, toml, typescript, unicorn, vue, yaml, zayne };
18406
18860
  //# sourceMappingURL=index.d.ts.map