@coderwyd/eslint-config 4.0.0 → 4.1.1

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
@@ -199,6 +199,16 @@ interface RuleOptions {
199
199
  * @see https://eslint.org/docs/latest/rules/curly
200
200
  */
201
201
  'curly'?: Linter.RuleEntry<Curly>
202
+ /**
203
+ * Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
204
+ * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
205
+ */
206
+ 'de-morgan/no-negated-conjunction'?: Linter.RuleEntry<[]>
207
+ /**
208
+ * Transforms the negation of a disjunction !(A || B) into the equivalent !A && !B according to De Morgan’s law
209
+ * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
210
+ */
211
+ 'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<[]>
202
212
  /**
203
213
  * Require `default` cases in `switch` statements
204
214
  * @see https://eslint.org/docs/latest/rules/default-case
@@ -2551,6 +2561,11 @@ interface RuleOptions {
2551
2561
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
2552
2562
  */
2553
2563
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
2564
+ /**
2565
+ * warns against using `flushSync`
2566
+ * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
2567
+ */
2568
+ 'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
2554
2569
  /**
2555
2570
  * enforce that button component have an explicit 'type' attribute
2556
2571
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
@@ -2661,6 +2676,11 @@ interface RuleOptions {
2661
2676
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
2662
2677
  */
2663
2678
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
2679
+ /**
2680
+ * enforce context name to end with `Context`.
2681
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
2682
+ */
2683
+ 'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
2664
2684
  /**
2665
2685
  * enforce naming convention for JSX filenames
2666
2686
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
@@ -2672,7 +2692,7 @@ interface RuleOptions {
2672
2692
  */
2673
2693
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
2674
2694
  /**
2675
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
2695
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
2676
2696
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
2677
2697
  */
2678
2698
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
@@ -2718,7 +2738,7 @@ interface RuleOptions {
2718
2738
  */
2719
2739
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2720
2740
  /**
2721
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2741
+ * marks variables used in JSX as used
2722
2742
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2723
2743
  */
2724
2744
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -2852,6 +2872,11 @@ interface RuleOptions {
2852
2872
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2853
2873
  */
2854
2874
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2875
+ /**
2876
+ * require 'displayName' for contexts.
2877
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2878
+ */
2879
+ 'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2855
2880
  /**
2856
2881
  * require 'key' when rendering list
2857
2882
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -2933,7 +2958,7 @@ interface RuleOptions {
2933
2958
  */
2934
2959
  'react/no-use-context'?: Linter.RuleEntry<[]>
2935
2960
  /**
2936
- * disallow unnecessary fragments
2961
+ * disallow useless fragments
2937
2962
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
2938
2963
  */
2939
2964
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
@@ -2963,7 +2988,7 @@ interface RuleOptions {
2963
2988
  */
2964
2989
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
2965
2990
  /**
2966
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2991
+ * marks variables used in JSX as used
2967
2992
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2968
2993
  */
2969
2994
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -3498,6 +3523,11 @@ interface RuleOptions {
3498
3523
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/comment-directive/
3499
3524
  */
3500
3525
  'svelte/comment-directive'?: Linter.RuleEntry<SvelteCommentDirective>
3526
+ /**
3527
+ * enforce a consistent style for CSS selectors
3528
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/consistent-selector-style/
3529
+ */
3530
+ 'svelte/consistent-selector-style'?: Linter.RuleEntry<SvelteConsistentSelectorStyle>
3501
3531
  /**
3502
3532
  * derived store should use same variable names between values and callback
3503
3533
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/derived-has-same-inputs-outputs/
@@ -3596,6 +3626,7 @@ interface RuleOptions {
3596
3626
  /**
3597
3627
  * disallow dynamic slot name
3598
3628
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/
3629
+ * @deprecated
3599
3630
  */
3600
3631
  'svelte/no-dynamic-slot-name'?: Linter.RuleEntry<[]>
3601
3632
  /**
@@ -3611,6 +3642,7 @@ interface RuleOptions {
3611
3642
  /**
3612
3643
  * disallow using goto() without the base path
3613
3644
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-goto-without-base/
3645
+ * @deprecated
3614
3646
  */
3615
3647
  'svelte/no-goto-without-base'?: Linter.RuleEntry<[]>
3616
3648
  /**
@@ -3638,6 +3670,11 @@ interface RuleOptions {
3638
3670
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-inspect/
3639
3671
  */
3640
3672
  'svelte/no-inspect'?: Linter.RuleEntry<[]>
3673
+ /**
3674
+ * disallow using navigation (links, goto, pushState, replaceState) without the base path
3675
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/
3676
+ */
3677
+ 'svelte/no-navigation-without-base'?: Linter.RuleEntry<SvelteNoNavigationWithoutBase>
3641
3678
  /**
3642
3679
  * disallow use of not function in event handler
3643
3680
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
@@ -3648,6 +3685,11 @@ interface RuleOptions {
3648
3685
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/
3649
3686
  */
3650
3687
  'svelte/no-object-in-text-mustaches'?: Linter.RuleEntry<[]>
3688
+ /**
3689
+ * Checks for invalid raw HTML elements
3690
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-raw-special-elements/
3691
+ */
3692
+ 'svelte/no-raw-special-elements'?: Linter.RuleEntry<[]>
3651
3693
  /**
3652
3694
  * it's not necessary to define functions in reactive statements
3653
3695
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-functions/
@@ -3713,6 +3755,11 @@ interface RuleOptions {
3713
3755
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/
3714
3756
  */
3715
3757
  'svelte/no-unused-svelte-ignore'?: Linter.RuleEntry<[]>
3758
+ /**
3759
+ * disallow explicit children snippet where it's not needed
3760
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-children-snippet/
3761
+ */
3762
+ 'svelte/no-useless-children-snippet'?: Linter.RuleEntry<[]>
3716
3763
  /**
3717
3764
  * disallow unnecessary mustache interpolations
3718
3765
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
@@ -3723,6 +3770,11 @@ interface RuleOptions {
3723
3770
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
3724
3771
  */
3725
3772
  'svelte/prefer-class-directive'?: Linter.RuleEntry<SveltePreferClassDirective>
3773
+ /**
3774
+ * Require `const` declarations for variables that are never reassigned after declared
3775
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
3776
+ */
3777
+ 'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>
3726
3778
  /**
3727
3779
  * destructure values from object stores for better change tracking & fewer redraws
3728
3780
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
@@ -3803,6 +3855,11 @@ interface RuleOptions {
3803
3855
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/
3804
3856
  */
3805
3857
  'svelte/valid-prop-names-in-kit-pages'?: Linter.RuleEntry<[]>
3858
+ /**
3859
+ * require valid style element parsing
3860
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-style-parse/
3861
+ */
3862
+ 'svelte/valid-style-parse'?: Linter.RuleEntry<[]>
3806
3863
  /**
3807
3864
  * Enforce spacing around colons of switch statements
3808
3865
  * @see https://eslint.org/docs/latest/rules/switch-colon-spacing
@@ -4097,6 +4154,11 @@ interface RuleOptions {
4097
4154
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
4098
4155
  */
4099
4156
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
4157
+ /**
4158
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
4159
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
4160
+ */
4161
+ 'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
4100
4162
  /**
4101
4163
  * enforce strict equal over equal
4102
4164
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -4152,6 +4214,11 @@ interface RuleOptions {
4152
4214
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
4153
4215
  */
4154
4216
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
4217
+ /**
4218
+ * enforce using type parameters with vitest mock functions
4219
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
4220
+ */
4221
+ 'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
4155
4222
  /**
4156
4223
  * require toThrow() to be called with an error message
4157
4224
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -4394,7 +4461,7 @@ interface RuleOptions {
4394
4461
  */
4395
4462
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
4396
4463
  /**
4397
- * Disallow the use of `eval()`-like methods
4464
+ * Disallow the use of `eval()`-like functions
4398
4465
  * @see https://typescript-eslint.io/rules/no-implied-eval
4399
4466
  */
4400
4467
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -4845,702 +4912,642 @@ interface RuleOptions {
4845
4912
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4846
4913
  /**
4847
4914
  * Improve regexes by making them shorter, consistent, and safer.
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
4915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
4849
4916
  */
4850
4917
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4851
4918
  /**
4852
4919
  * Enforce a specific parameter name in catch clauses.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
4920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
4854
4921
  */
4855
4922
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4923
+ /**
4924
+ * Enforce consistent assertion style with `node:assert`.
4925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
4926
+ */
4927
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4928
+ /**
4929
+ * Prefer passing `Date` directly to the constructor when cloning.
4930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
4931
+ */
4932
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4856
4933
  /**
4857
4934
  * Use destructured variables over properties.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
4935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
4859
4936
  */
4860
4937
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4861
4938
  /**
4862
4939
  * Prefer consistent types when spreading a ternary in an array literal.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
4940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
4864
4941
  */
4865
4942
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4866
4943
  /**
4867
4944
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
4945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
4869
4946
  */
4870
4947
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4871
4948
  /**
4872
4949
  * Move function definitions to the highest possible scope.
4873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
4950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
4874
4951
  */
4875
4952
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4876
4953
  /**
4877
4954
  * Enforce correct `Error` subclassing.
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
4955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
4879
4956
  */
4880
4957
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4881
4958
  /**
4882
4959
  * Enforce no spaces between braces.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
4960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
4884
4961
  */
4885
4962
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4886
4963
  /**
4887
4964
  * Enforce passing a `message` value when creating a built-in error.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
4965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
4889
4966
  */
4890
4967
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4891
4968
  /**
4892
4969
  * Require escape sequences to use uppercase values.
4893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
4970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
4894
4971
  */
4895
4972
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4896
4973
  /**
4897
4974
  * Add expiration conditions to TODO comments.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
4975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
4899
4976
  */
4900
4977
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4901
4978
  /**
4902
4979
  * Enforce explicitly comparing the `length` or `size` property of a value.
4903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
4980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
4904
4981
  */
4905
4982
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4906
4983
  /**
4907
4984
  * Enforce a case style for filenames.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
4985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
4909
4986
  */
4910
4987
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4911
- /**
4912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
4913
- * @deprecated
4914
- */
4915
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
4916
4988
  /**
4917
4989
  * Enforce specific import styles per module.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
4990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
4919
4991
  */
4920
4992
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4921
4993
  /**
4922
4994
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
4995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
4924
4996
  */
4925
4997
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4926
4998
  /**
4927
4999
  * Enforce specifying rules to disable in `eslint-disable` comments.
4928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
5000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
4929
5001
  */
4930
5002
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5003
+ /**
5004
+ * Disallow recursive access to `this` within getters and setters.
5005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5006
+ */
5007
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
4931
5008
  /**
4932
5009
  * Disallow anonymous functions and classes as the default export.
4933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
5010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
4934
5011
  */
4935
5012
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4936
5013
  /**
4937
5014
  * Prevent passing a function reference directly to iterator methods.
4938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
5015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
4939
5016
  */
4940
5017
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4941
5018
  /**
4942
5019
  * Prefer `for…of` over the `forEach` method.
4943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
5020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
4944
5021
  */
4945
5022
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4946
- /**
4947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
4948
- * @deprecated
4949
- */
4950
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
4951
5023
  /**
4952
5024
  * Disallow using the `this` argument in array methods.
4953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
5025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
4954
5026
  */
4955
5027
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4956
5028
  /**
4957
5029
  * Enforce combining multiple `Array#push()` into one call.
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
5030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
4959
5031
  */
4960
5032
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4961
5033
  /**
4962
5034
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
5035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
4964
5036
  */
4965
5037
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4966
5038
  /**
4967
5039
  * Disallow member access from await expression.
4968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
5040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
4969
5041
  */
4970
5042
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4971
5043
  /**
4972
5044
  * Disallow using `await` in `Promise` method parameters.
4973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
5045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
4974
5046
  */
4975
5047
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4976
5048
  /**
4977
5049
  * Do not use leading/trailing space between `console.log` parameters.
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
5050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
4979
5051
  */
4980
5052
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4981
5053
  /**
4982
5054
  * Do not use `document.cookie` directly.
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
5055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
4984
5056
  */
4985
5057
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4986
5058
  /**
4987
5059
  * Disallow empty files.
4988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
5060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
4989
5061
  */
4990
5062
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4991
- /**
4992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
4993
- * @deprecated
4994
- */
4995
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
4996
5063
  /**
4997
5064
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
5065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
4999
5066
  */
5000
5067
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5001
5068
  /**
5002
5069
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
5070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5004
5071
  */
5005
5072
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5006
5073
  /**
5007
- * Require `Array.isArray()` instead of `instanceof Array`.
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5075
+ * @deprecated
5009
5076
  */
5010
5077
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5078
+ /**
5079
+ * Disallow `instanceof` with built-in objects
5080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5081
+ */
5082
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5011
5083
  /**
5012
5084
  * Disallow invalid options in `fetch()` and `new Request()`.
5013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
5085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5014
5086
  */
5015
5087
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5016
5088
  /**
5017
5089
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
5090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5019
5091
  */
5020
5092
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5021
5093
  /**
5022
5094
  * Disallow identifiers starting with `new` or `class`.
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
5095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5024
5096
  */
5025
5097
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5026
5098
  /**
5027
5099
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
5100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5029
5101
  */
5030
5102
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5031
5103
  /**
5032
5104
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
5105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5034
5106
  */
5035
5107
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5036
5108
  /**
5037
5109
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
5110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5039
5111
  */
5040
5112
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5113
+ /**
5114
+ * Disallow named usage of default import and export.
5115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5116
+ */
5117
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5041
5118
  /**
5042
5119
  * Disallow negated conditions.
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
5120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5044
5121
  */
5045
5122
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5046
5123
  /**
5047
5124
  * Disallow negated expression in equality check.
5048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
5125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5049
5126
  */
5050
5127
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5051
5128
  /**
5052
5129
  * Disallow nested ternary expressions.
5053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
5130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5054
5131
  */
5055
5132
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5056
5133
  /**
5057
5134
  * Disallow `new Array()`.
5058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
5135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5059
5136
  */
5060
5137
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5061
5138
  /**
5062
5139
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
5140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5064
5141
  */
5065
5142
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5066
5143
  /**
5067
5144
  * Disallow the use of the `null` literal.
5068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
5145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5069
5146
  */
5070
5147
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5071
5148
  /**
5072
5149
  * Disallow the use of objects as default parameters.
5073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
5150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5074
5151
  */
5075
5152
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5076
5153
  /**
5077
5154
  * Disallow `process.exit()`.
5078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
5155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5079
5156
  */
5080
5157
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5081
- /**
5082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
5083
- * @deprecated
5084
- */
5085
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5086
5158
  /**
5087
5159
  * Disallow passing single-element arrays to `Promise` methods.
5088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
5160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5089
5161
  */
5090
5162
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5091
5163
  /**
5092
5164
  * Disallow classes that only have static members.
5093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
5165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5094
5166
  */
5095
5167
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5096
5168
  /**
5097
5169
  * Disallow `then` property.
5098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
5170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5099
5171
  */
5100
5172
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5101
5173
  /**
5102
5174
  * Disallow assigning `this` to a variable.
5103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
5175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5104
5176
  */
5105
5177
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5106
5178
  /**
5107
5179
  * Disallow comparing `undefined` using `typeof`.
5108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
5180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5109
5181
  */
5110
5182
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5111
5183
  /**
5112
5184
  * Disallow awaiting non-promise values.
5113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
5185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5114
5186
  */
5115
5187
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5116
5188
  /**
5117
5189
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
5190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5119
5191
  */
5120
5192
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5121
5193
  /**
5122
5194
  * Disallow unreadable array destructuring.
5123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
5195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5124
5196
  */
5125
5197
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5126
5198
  /**
5127
5199
  * Disallow unreadable IIFEs.
5128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
5200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5129
5201
  */
5130
5202
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5131
- /**
5132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
5133
- * @deprecated
5134
- */
5135
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5136
5203
  /**
5137
5204
  * Disallow unused object properties.
5138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
5205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5139
5206
  */
5140
5207
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5141
5208
  /**
5142
5209
  * Disallow useless fallback when spreading in object literals.
5143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
5210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
5144
5211
  */
5145
5212
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5146
5213
  /**
5147
5214
  * Disallow useless array length check.
5148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
5215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
5149
5216
  */
5150
5217
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5151
5218
  /**
5152
5219
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
5220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
5154
5221
  */
5155
5222
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5156
5223
  /**
5157
5224
  * Disallow unnecessary spread.
5158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
5225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
5159
5226
  */
5160
5227
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5161
5228
  /**
5162
5229
  * Disallow useless case in switch statements.
5163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
5230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
5164
5231
  */
5165
5232
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5166
5233
  /**
5167
5234
  * Disallow useless `undefined`.
5168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
5235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
5169
5236
  */
5170
5237
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5171
5238
  /**
5172
5239
  * Disallow number literals with zero fractions or dangling dots.
5173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
5240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
5174
5241
  */
5175
5242
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5176
5243
  /**
5177
5244
  * Enforce proper case for numeric literals.
5178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
5245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
5179
5246
  */
5180
5247
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5181
5248
  /**
5182
5249
  * Enforce the style of numeric separators by correctly grouping digits.
5183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
5250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
5184
5251
  */
5185
5252
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5186
5253
  /**
5187
5254
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
5255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
5189
5256
  */
5190
5257
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5191
5258
  /**
5192
5259
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
5260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
5194
5261
  */
5195
5262
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5196
5263
  /**
5197
5264
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
5265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
5199
5266
  */
5200
5267
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5201
5268
  /**
5202
5269
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
5270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
5204
5271
  */
5205
5272
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5206
5273
  /**
5207
5274
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
5275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
5209
5276
  */
5210
5277
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5211
5278
  /**
5212
5279
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
5280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
5214
5281
  */
5215
5282
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5216
5283
  /**
5217
5284
  * Prefer `.at()` method for index access and `String#charAt()`.
5218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
5285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
5219
5286
  */
5220
5287
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5221
5288
  /**
5222
5289
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
5290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
5224
5291
  */
5225
5292
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5226
5293
  /**
5227
5294
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
5295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
5229
5296
  */
5230
5297
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5231
- /**
5232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
5233
- * @deprecated
5234
- */
5235
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5236
5298
  /**
5237
5299
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
5300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
5239
5301
  */
5240
5302
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5241
5303
  /**
5242
5304
  * Prefer default parameters over reassignment.
5243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
5305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
5244
5306
  */
5245
5307
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5246
5308
  /**
5247
5309
  * Prefer `Node#append()` over `Node#appendChild()`.
5248
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
5310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
5249
5311
  */
5250
5312
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5251
5313
  /**
5252
5314
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
5315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
5254
5316
  */
5255
5317
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5256
5318
  /**
5257
5319
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5258
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
5320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
5259
5321
  */
5260
5322
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5261
5323
  /**
5262
5324
  * Prefer `.textContent` over `.innerText`.
5263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
5325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
5264
5326
  */
5265
5327
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5266
- /**
5267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
5268
- * @deprecated
5269
- */
5270
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
5271
5328
  /**
5272
5329
  * Prefer `EventTarget` over `EventEmitter`.
5273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
5330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
5274
5331
  */
5275
5332
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5276
- /**
5277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
5278
- * @deprecated
5279
- */
5280
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
5281
5333
  /**
5282
5334
  * Prefer `export…from` when re-exporting.
5283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
5335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
5284
5336
  */
5285
5337
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5286
- /**
5287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
5288
- * @deprecated
5289
- */
5290
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
5291
5338
  /**
5292
5339
  * Prefer `globalThis` over `window`, `self`, and `global`.
5293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
5340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
5294
5341
  */
5295
5342
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5296
5343
  /**
5297
5344
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
5345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
5299
5346
  */
5300
5347
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5301
5348
  /**
5302
5349
  * Prefer reading a JSON file as a buffer.
5303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
5350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
5304
5351
  */
5305
5352
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5306
5353
  /**
5307
5354
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
5355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
5309
5356
  */
5310
5357
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5311
5358
  /**
5312
5359
  * Prefer using a logical operator over a ternary.
5313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
5360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5314
5361
  */
5315
5362
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5316
5363
  /**
5317
5364
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
5365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
5319
5366
  */
5320
5367
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5321
5368
  /**
5322
5369
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
5370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
5324
5371
  */
5325
5372
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5326
5373
  /**
5327
5374
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
5375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
5329
5376
  */
5330
5377
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5331
5378
  /**
5332
5379
  * Prefer modern `Math` APIs over legacy patterns.
5333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
5380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
5334
5381
  */
5335
5382
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5336
5383
  /**
5337
5384
  * Prefer JavaScript modules (ESM) over CommonJS.
5338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
5385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
5339
5386
  */
5340
5387
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5341
5388
  /**
5342
5389
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
5390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
5344
5391
  */
5345
5392
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5346
5393
  /**
5347
5394
  * Prefer negative index over `.length - index` when possible.
5348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
5395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
5349
5396
  */
5350
5397
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5351
- /**
5352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
5353
- * @deprecated
5354
- */
5355
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
5356
5398
  /**
5357
5399
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
5400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
5359
5401
  */
5360
5402
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5361
- /**
5362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
5363
- * @deprecated
5364
- */
5365
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
5366
5403
  /**
5367
5404
  * Prefer `Number` static properties over global ones.
5368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
5405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
5369
5406
  */
5370
5407
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5371
5408
  /**
5372
5409
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
5410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
5374
5411
  */
5375
5412
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5376
- /**
5377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
5378
- * @deprecated
5379
- */
5380
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
5381
5413
  /**
5382
5414
  * Prefer omitting the `catch` binding parameter.
5383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
5415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
5384
5416
  */
5385
5417
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5386
5418
  /**
5387
5419
  * Prefer borrowing methods from the prototype instead of the instance.
5388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
5420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
5389
5421
  */
5390
5422
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5391
5423
  /**
5392
5424
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
5425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
5394
5426
  */
5395
5427
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5396
5428
  /**
5397
5429
  * Prefer `Reflect.apply()` over `Function#apply()`.
5398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
5430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
5399
5431
  */
5400
5432
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5401
5433
  /**
5402
5434
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
5435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
5404
5436
  */
5405
5437
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5406
- /**
5407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
5408
- * @deprecated
5409
- */
5410
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
5411
5438
  /**
5412
5439
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
5440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
5414
5441
  */
5415
5442
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5416
5443
  /**
5417
5444
  * Prefer using `Set#size` instead of `Array#length`.
5418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
5445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
5419
5446
  */
5420
5447
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5421
5448
  /**
5422
5449
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
5450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
5424
5451
  */
5425
5452
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5426
- /**
5427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
5428
- * @deprecated
5429
- */
5430
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
5431
5453
  /**
5432
5454
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
5455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
5434
5456
  */
5435
5457
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5436
5458
  /**
5437
5459
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
5439
5461
  */
5440
5462
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5441
5463
  /**
5442
5464
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
5444
5466
  */
5445
5467
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5446
5468
  /**
5447
5469
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
5449
5471
  */
5450
5472
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5451
5473
  /**
5452
5474
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
5454
5476
  */
5455
5477
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5456
5478
  /**
5457
5479
  * Prefer using `structuredClone` to create a deep clone.
5458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
5459
5481
  */
5460
5482
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5461
5483
  /**
5462
5484
  * Prefer `switch` over multiple `else-if`.
5463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
5464
5486
  */
5465
5487
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5466
5488
  /**
5467
5489
  * Prefer ternary expressions over simple `if-else` statements.
5468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
5490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
5469
5491
  */
5470
5492
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5471
- /**
5472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
5473
- * @deprecated
5474
- */
5475
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
5476
5493
  /**
5477
5494
  * Prefer top-level await over top-level promises and async function calls.
5478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
5479
5496
  */
5480
5497
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5481
- /**
5482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
5483
- * @deprecated
5484
- */
5485
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5486
5498
  /**
5487
5499
  * Enforce throwing `TypeError` in type checking conditions.
5488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
5500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
5489
5501
  */
5490
5502
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5491
5503
  /**
5492
5504
  * Prevent abbreviations.
5493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
5505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
5494
5506
  */
5495
5507
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5496
- /**
5497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
5498
- * @deprecated
5499
- */
5500
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5501
5508
  /**
5502
5509
  * Enforce consistent relative URL style.
5503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
5510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
5504
5511
  */
5505
5512
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5506
5513
  /**
5507
5514
  * Enforce using the separator argument with `Array#join()`.
5508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
5515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
5509
5516
  */
5510
5517
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5511
5518
  /**
5512
5519
  * Enforce using the digits argument with `Number#toFixed()`.
5513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5514
5521
  */
5515
5522
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5516
5523
  /**
5517
5524
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
5525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
5519
5526
  */
5520
5527
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5521
5528
  /**
5522
5529
  * Enforce better string content.
5523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
5530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
5524
5531
  */
5525
5532
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5526
5533
  /**
5527
5534
  * Enforce consistent brace style for `case` clauses.
5528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
5535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
5529
5536
  */
5530
5537
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5531
5538
  /**
5532
5539
  * Fix whitespace-insensitive template indentation.
5533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
5540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
5534
5541
  */
5535
5542
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5536
5543
  /**
5537
5544
  * Enforce consistent case for text encoding identifiers.
5538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
5545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
5539
5546
  */
5540
5547
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5541
5548
  /**
5542
5549
  * Require `new` when creating an error.
5543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
5550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
5544
5551
  */
5545
5552
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5546
5553
  /**
@@ -9171,7 +9178,18 @@ type NodeNoRestrictedRequire = []|[(string | {
9171
9178
  // ----- node/no-sync -----
9172
9179
  type NodeNoSync = []|[{
9173
9180
  allowAtRootLevel?: boolean
9174
- ignores?: string[]
9181
+ ignores?: (string | {
9182
+ from?: "file"
9183
+ path?: string
9184
+ name?: string[]
9185
+ } | {
9186
+ from?: "lib"
9187
+ name?: string[]
9188
+ } | {
9189
+ from?: "package"
9190
+ package?: string
9191
+ name?: string[]
9192
+ })[]
9175
9193
  }]
9176
9194
  // ----- node/no-unpublished-bin -----
9177
9195
  type NodeNoUnpublishedBin = []|[{
@@ -9404,6 +9422,14 @@ type PerfectionistSortArrayIncludes = {
9404
9422
 
9405
9423
  specialCharacters?: ("remove" | "trim" | "keep")
9406
9424
 
9425
+ fallbackSort?: {
9426
+
9427
+ order?: ("asc" | "desc")
9428
+
9429
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9430
+ [k: string]: unknown | undefined
9431
+ }
9432
+
9407
9433
  ignoreCase?: boolean
9408
9434
 
9409
9435
  alphabet?: string
@@ -9412,6 +9438,8 @@ type PerfectionistSortArrayIncludes = {
9412
9438
 
9413
9439
  order?: ("asc" | "desc")
9414
9440
 
9441
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9442
+
9415
9443
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
9416
9444
 
9417
9445
  customGroups?: ({
@@ -9427,7 +9455,13 @@ type PerfectionistSortArrayIncludes = {
9427
9455
 
9428
9456
  selector?: ("literal" | "spread")
9429
9457
 
9430
- elementNamePattern?: string
9458
+ elementNamePattern?: (({
9459
+ pattern?: string
9460
+ flags?: string
9461
+ } | string)[] | ({
9462
+ pattern?: string
9463
+ flags?: string
9464
+ } | string))
9431
9465
  }[]
9432
9466
  } | {
9433
9467
 
@@ -9441,18 +9475,46 @@ type PerfectionistSortArrayIncludes = {
9441
9475
 
9442
9476
  selector?: ("literal" | "spread")
9443
9477
 
9444
- elementNamePattern?: string
9478
+ elementNamePattern?: (({
9479
+ pattern?: string
9480
+ flags?: string
9481
+ } | string)[] | ({
9482
+ pattern?: string
9483
+ flags?: string
9484
+ } | string))
9445
9485
  })[]
9446
9486
  useConfigurationIf?: {
9447
- allNamesMatchPattern?: string
9487
+
9488
+ allNamesMatchPattern?: (({
9489
+ pattern?: string
9490
+ flags?: string
9491
+ } | string)[] | ({
9492
+ pattern?: string
9493
+ flags?: string
9494
+ } | string))
9448
9495
  }
9449
9496
 
9450
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9451
-
9452
- partitionByComment?: (string[] | boolean | string | {
9453
- block?: (string[] | boolean | string)
9454
- line?: (string[] | boolean | string)
9455
- [k: string]: unknown | undefined
9497
+ partitionByComment?: (boolean | (({
9498
+ pattern?: string
9499
+ flags?: string
9500
+ } | string)[] | ({
9501
+ pattern?: string
9502
+ flags?: string
9503
+ } | string)) | {
9504
+ block?: (boolean | (({
9505
+ pattern?: string
9506
+ flags?: string
9507
+ } | string)[] | ({
9508
+ pattern?: string
9509
+ flags?: string
9510
+ } | string)))
9511
+ line?: (boolean | (({
9512
+ pattern?: string
9513
+ flags?: string
9514
+ } | string)[] | ({
9515
+ pattern?: string
9516
+ flags?: string
9517
+ } | string)))
9456
9518
  })
9457
9519
 
9458
9520
  partitionByNewLine?: boolean
@@ -9462,7 +9524,6 @@ type PerfectionistSortArrayIncludes = {
9462
9524
  groups?: (string | string[] | {
9463
9525
 
9464
9526
  newlinesBetween?: ("ignore" | "always" | "never")
9465
- [k: string]: unknown | undefined
9466
9527
  })[]
9467
9528
  }[]
9468
9529
  // ----- perfectionist/sort-classes -----
@@ -9470,6 +9531,14 @@ type PerfectionistSortClasses = []|[{
9470
9531
 
9471
9532
  specialCharacters?: ("remove" | "trim" | "keep")
9472
9533
 
9534
+ fallbackSort?: {
9535
+
9536
+ order?: ("asc" | "desc")
9537
+
9538
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9539
+ [k: string]: unknown | undefined
9540
+ }
9541
+
9473
9542
  ignoreCase?: boolean
9474
9543
 
9475
9544
  alphabet?: string
@@ -9478,7 +9547,7 @@ type PerfectionistSortClasses = []|[{
9478
9547
 
9479
9548
  order?: ("asc" | "desc")
9480
9549
 
9481
- ignoreCallbackDependenciesPatterns?: string[]
9550
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9482
9551
 
9483
9552
  customGroups?: ({
9484
9553
 
@@ -9491,15 +9560,33 @@ type PerfectionistSortClasses = []|[{
9491
9560
  newlinesInside?: ("always" | "never")
9492
9561
  anyOf?: {
9493
9562
 
9494
- decoratorNamePattern?: string
9495
-
9496
9563
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
9497
9564
 
9498
9565
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
9499
9566
 
9500
- elementValuePattern?: string
9567
+ decoratorNamePattern?: (({
9568
+ pattern?: string
9569
+ flags?: string
9570
+ } | string)[] | ({
9571
+ pattern?: string
9572
+ flags?: string
9573
+ } | string))
9574
+
9575
+ elementValuePattern?: (({
9576
+ pattern?: string
9577
+ flags?: string
9578
+ } | string)[] | ({
9579
+ pattern?: string
9580
+ flags?: string
9581
+ } | string))
9501
9582
 
9502
- elementNamePattern?: string
9583
+ elementNamePattern?: (({
9584
+ pattern?: string
9585
+ flags?: string
9586
+ } | string)[] | ({
9587
+ pattern?: string
9588
+ flags?: string
9589
+ } | string))
9503
9590
  }[]
9504
9591
  } | {
9505
9592
 
@@ -9511,33 +9598,73 @@ type PerfectionistSortClasses = []|[{
9511
9598
 
9512
9599
  newlinesInside?: ("always" | "never")
9513
9600
 
9514
- decoratorNamePattern?: string
9515
-
9516
9601
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
9517
9602
 
9518
9603
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
9519
9604
 
9520
- elementValuePattern?: string
9521
-
9522
- elementNamePattern?: string
9605
+ decoratorNamePattern?: (({
9606
+ pattern?: string
9607
+ flags?: string
9608
+ } | string)[] | ({
9609
+ pattern?: string
9610
+ flags?: string
9611
+ } | string))
9612
+
9613
+ elementValuePattern?: (({
9614
+ pattern?: string
9615
+ flags?: string
9616
+ } | string)[] | ({
9617
+ pattern?: string
9618
+ flags?: string
9619
+ } | string))
9620
+
9621
+ elementNamePattern?: (({
9622
+ pattern?: string
9623
+ flags?: string
9624
+ } | string)[] | ({
9625
+ pattern?: string
9626
+ flags?: string
9627
+ } | string))
9523
9628
  })[]
9524
9629
 
9525
- partitionByComment?: (string[] | boolean | string | {
9526
- block?: (string[] | boolean | string)
9527
- line?: (string[] | boolean | string)
9528
- [k: string]: unknown | undefined
9630
+ ignoreCallbackDependenciesPatterns?: (({
9631
+ pattern?: string
9632
+ flags?: string
9633
+ } | string)[] | ({
9634
+ pattern?: string
9635
+ flags?: string
9636
+ } | string))
9637
+
9638
+ partitionByComment?: (boolean | (({
9639
+ pattern?: string
9640
+ flags?: string
9641
+ } | string)[] | ({
9642
+ pattern?: string
9643
+ flags?: string
9644
+ } | string)) | {
9645
+ block?: (boolean | (({
9646
+ pattern?: string
9647
+ flags?: string
9648
+ } | string)[] | ({
9649
+ pattern?: string
9650
+ flags?: string
9651
+ } | string)))
9652
+ line?: (boolean | (({
9653
+ pattern?: string
9654
+ flags?: string
9655
+ } | string)[] | ({
9656
+ pattern?: string
9657
+ flags?: string
9658
+ } | string)))
9529
9659
  })
9530
9660
 
9531
9661
  partitionByNewLine?: boolean
9532
9662
 
9533
9663
  newlinesBetween?: ("ignore" | "always" | "never")
9534
9664
 
9535
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9536
-
9537
9665
  groups?: (string | string[] | {
9538
9666
 
9539
9667
  newlinesBetween?: ("ignore" | "always" | "never")
9540
- [k: string]: unknown | undefined
9541
9668
  })[]
9542
9669
  }]
9543
9670
  // ----- perfectionist/sort-decorators -----
@@ -9545,6 +9672,14 @@ type PerfectionistSortDecorators = []|[{
9545
9672
 
9546
9673
  specialCharacters?: ("remove" | "trim" | "keep")
9547
9674
 
9675
+ fallbackSort?: {
9676
+
9677
+ order?: ("asc" | "desc")
9678
+
9679
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9680
+ [k: string]: unknown | undefined
9681
+ }
9682
+
9548
9683
  ignoreCase?: boolean
9549
9684
 
9550
9685
  alphabet?: string
@@ -9553,6 +9688,8 @@ type PerfectionistSortDecorators = []|[{
9553
9688
 
9554
9689
  order?: ("asc" | "desc")
9555
9690
 
9691
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9692
+
9556
9693
  sortOnParameters?: boolean
9557
9694
 
9558
9695
  sortOnProperties?: boolean
@@ -9563,22 +9700,36 @@ type PerfectionistSortDecorators = []|[{
9563
9700
 
9564
9701
  sortOnClasses?: boolean
9565
9702
 
9566
- partitionByComment?: (string[] | boolean | string | {
9567
- block?: (string[] | boolean | string)
9568
- line?: (string[] | boolean | string)
9569
- [k: string]: unknown | undefined
9703
+ partitionByComment?: (boolean | (({
9704
+ pattern?: string
9705
+ flags?: string
9706
+ } | string)[] | ({
9707
+ pattern?: string
9708
+ flags?: string
9709
+ } | string)) | {
9710
+ block?: (boolean | (({
9711
+ pattern?: string
9712
+ flags?: string
9713
+ } | string)[] | ({
9714
+ pattern?: string
9715
+ flags?: string
9716
+ } | string)))
9717
+ line?: (boolean | (({
9718
+ pattern?: string
9719
+ flags?: string
9720
+ } | string)[] | ({
9721
+ pattern?: string
9722
+ flags?: string
9723
+ } | string)))
9570
9724
  })
9571
9725
 
9572
9726
  customGroups?: {
9573
9727
  [k: string]: (string | string[]) | undefined
9574
9728
  }
9575
9729
 
9576
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9577
-
9578
9730
  groups?: (string | string[] | {
9579
9731
 
9580
9732
  newlinesBetween?: ("ignore" | "always" | "never")
9581
- [k: string]: unknown | undefined
9582
9733
  })[]
9583
9734
  }]
9584
9735
  // ----- perfectionist/sort-enums -----
@@ -9586,6 +9737,14 @@ type PerfectionistSortEnums = []|[{
9586
9737
 
9587
9738
  specialCharacters?: ("remove" | "trim" | "keep")
9588
9739
 
9740
+ fallbackSort?: {
9741
+
9742
+ order?: ("asc" | "desc")
9743
+
9744
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9745
+ [k: string]: unknown | undefined
9746
+ }
9747
+
9589
9748
  ignoreCase?: boolean
9590
9749
 
9591
9750
  alphabet?: string
@@ -9594,6 +9753,8 @@ type PerfectionistSortEnums = []|[{
9594
9753
 
9595
9754
  order?: ("asc" | "desc")
9596
9755
 
9756
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9757
+
9597
9758
  forceNumericSort?: boolean
9598
9759
  customGroups?: ({
9599
9760
  [k: string]: (string | string[]) | undefined
@@ -9608,9 +9769,21 @@ type PerfectionistSortEnums = []|[{
9608
9769
  newlinesInside?: ("always" | "never")
9609
9770
  anyOf?: {
9610
9771
 
9611
- elementValuePattern?: string
9772
+ elementValuePattern?: (({
9773
+ pattern?: string
9774
+ flags?: string
9775
+ } | string)[] | ({
9776
+ pattern?: string
9777
+ flags?: string
9778
+ } | string))
9612
9779
 
9613
- elementNamePattern?: string
9780
+ elementNamePattern?: (({
9781
+ pattern?: string
9782
+ flags?: string
9783
+ } | string)[] | ({
9784
+ pattern?: string
9785
+ flags?: string
9786
+ } | string))
9614
9787
  }[]
9615
9788
  } | {
9616
9789
 
@@ -9622,29 +9795,55 @@ type PerfectionistSortEnums = []|[{
9622
9795
 
9623
9796
  newlinesInside?: ("always" | "never")
9624
9797
 
9625
- elementValuePattern?: string
9626
-
9627
- elementNamePattern?: string
9798
+ elementValuePattern?: (({
9799
+ pattern?: string
9800
+ flags?: string
9801
+ } | string)[] | ({
9802
+ pattern?: string
9803
+ flags?: string
9804
+ } | string))
9805
+
9806
+ elementNamePattern?: (({
9807
+ pattern?: string
9808
+ flags?: string
9809
+ } | string)[] | ({
9810
+ pattern?: string
9811
+ flags?: string
9812
+ } | string))
9628
9813
  })[])
9629
9814
 
9630
9815
  sortByValue?: boolean
9631
9816
 
9632
- partitionByComment?: (string[] | boolean | string | {
9633
- block?: (string[] | boolean | string)
9634
- line?: (string[] | boolean | string)
9635
- [k: string]: unknown | undefined
9817
+ partitionByComment?: (boolean | (({
9818
+ pattern?: string
9819
+ flags?: string
9820
+ } | string)[] | ({
9821
+ pattern?: string
9822
+ flags?: string
9823
+ } | string)) | {
9824
+ block?: (boolean | (({
9825
+ pattern?: string
9826
+ flags?: string
9827
+ } | string)[] | ({
9828
+ pattern?: string
9829
+ flags?: string
9830
+ } | string)))
9831
+ line?: (boolean | (({
9832
+ pattern?: string
9833
+ flags?: string
9834
+ } | string)[] | ({
9835
+ pattern?: string
9836
+ flags?: string
9837
+ } | string)))
9636
9838
  })
9637
9839
 
9638
9840
  partitionByNewLine?: boolean
9639
9841
 
9640
9842
  newlinesBetween?: ("ignore" | "always" | "never")
9641
9843
 
9642
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9643
-
9644
9844
  groups?: (string | string[] | {
9645
9845
 
9646
9846
  newlinesBetween?: ("ignore" | "always" | "never")
9647
- [k: string]: unknown | undefined
9648
9847
  })[]
9649
9848
  }]
9650
9849
  // ----- perfectionist/sort-exports -----
@@ -9652,6 +9851,14 @@ type PerfectionistSortExports = []|[{
9652
9851
 
9653
9852
  specialCharacters?: ("remove" | "trim" | "keep")
9654
9853
 
9854
+ fallbackSort?: {
9855
+
9856
+ order?: ("asc" | "desc")
9857
+
9858
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9859
+ [k: string]: unknown | undefined
9860
+ }
9861
+
9655
9862
  ignoreCase?: boolean
9656
9863
 
9657
9864
  alphabet?: string
@@ -9660,23 +9867,48 @@ type PerfectionistSortExports = []|[{
9660
9867
 
9661
9868
  order?: ("asc" | "desc")
9662
9869
 
9870
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9871
+
9663
9872
  groupKind?: ("mixed" | "values-first" | "types-first")
9664
9873
 
9665
- partitionByComment?: (string[] | boolean | string | {
9666
- block?: (string[] | boolean | string)
9667
- line?: (string[] | boolean | string)
9668
- [k: string]: unknown | undefined
9874
+ partitionByComment?: (boolean | (({
9875
+ pattern?: string
9876
+ flags?: string
9877
+ } | string)[] | ({
9878
+ pattern?: string
9879
+ flags?: string
9880
+ } | string)) | {
9881
+ block?: (boolean | (({
9882
+ pattern?: string
9883
+ flags?: string
9884
+ } | string)[] | ({
9885
+ pattern?: string
9886
+ flags?: string
9887
+ } | string)))
9888
+ line?: (boolean | (({
9889
+ pattern?: string
9890
+ flags?: string
9891
+ } | string)[] | ({
9892
+ pattern?: string
9893
+ flags?: string
9894
+ } | string)))
9669
9895
  })
9670
9896
 
9671
9897
  partitionByNewLine?: boolean
9672
-
9673
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9674
9898
  }]
9675
9899
  // ----- perfectionist/sort-heritage-clauses -----
9676
9900
  type PerfectionistSortHeritageClauses = []|[{
9677
9901
 
9678
9902
  specialCharacters?: ("remove" | "trim" | "keep")
9679
9903
 
9904
+ fallbackSort?: {
9905
+
9906
+ order?: ("asc" | "desc")
9907
+
9908
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9909
+ [k: string]: unknown | undefined
9910
+ }
9911
+
9680
9912
  ignoreCase?: boolean
9681
9913
 
9682
9914
  alphabet?: string
@@ -9685,16 +9917,15 @@ type PerfectionistSortHeritageClauses = []|[{
9685
9917
 
9686
9918
  order?: ("asc" | "desc")
9687
9919
 
9920
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9921
+
9688
9922
  customGroups?: {
9689
9923
  [k: string]: (string | string[]) | undefined
9690
9924
  }
9691
9925
 
9692
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9693
-
9694
9926
  groups?: (string | string[] | {
9695
9927
 
9696
9928
  newlinesBetween?: ("ignore" | "always" | "never")
9697
- [k: string]: unknown | undefined
9698
9929
  })[]
9699
9930
  }]
9700
9931
  // ----- perfectionist/sort-imports -----
@@ -9703,6 +9934,14 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9703
9934
 
9704
9935
  specialCharacters?: ("remove" | "trim" | "keep")
9705
9936
 
9937
+ fallbackSort?: {
9938
+
9939
+ order?: ("asc" | "desc")
9940
+
9941
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9942
+ [k: string]: unknown | undefined
9943
+ }
9944
+
9706
9945
  ignoreCase?: boolean
9707
9946
 
9708
9947
  alphabet?: string
@@ -9711,6 +9950,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9711
9950
 
9712
9951
  order?: ("asc" | "desc")
9713
9952
 
9953
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9954
+
9714
9955
  customGroups?: {
9715
9956
 
9716
9957
  value?: {
@@ -9722,8 +9963,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9722
9963
  }
9723
9964
  }
9724
9965
 
9725
- internalPattern?: string[]
9726
-
9727
9966
  maxLineLength?: number
9728
9967
 
9729
9968
  sortSideEffects?: boolean
@@ -9732,22 +9971,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9732
9971
 
9733
9972
  tsconfigRootDir?: string
9734
9973
 
9735
- partitionByComment?: (string[] | boolean | string | {
9736
- block?: (string[] | boolean | string)
9737
- line?: (string[] | boolean | string)
9738
- [k: string]: unknown | undefined
9974
+ partitionByComment?: (boolean | (({
9975
+ pattern?: string
9976
+ flags?: string
9977
+ } | string)[] | ({
9978
+ pattern?: string
9979
+ flags?: string
9980
+ } | string)) | {
9981
+ block?: (boolean | (({
9982
+ pattern?: string
9983
+ flags?: string
9984
+ } | string)[] | ({
9985
+ pattern?: string
9986
+ flags?: string
9987
+ } | string)))
9988
+ line?: (boolean | (({
9989
+ pattern?: string
9990
+ flags?: string
9991
+ } | string)[] | ({
9992
+ pattern?: string
9993
+ flags?: string
9994
+ } | string)))
9739
9995
  })
9740
9996
 
9741
9997
  partitionByNewLine?: boolean
9742
9998
 
9743
9999
  newlinesBetween?: ("ignore" | "always" | "never")
9744
10000
 
9745
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10001
+ internalPattern?: (({
10002
+ pattern?: string
10003
+ flags?: string
10004
+ } | string)[] | ({
10005
+ pattern?: string
10006
+ flags?: string
10007
+ } | string))
9746
10008
 
9747
10009
  groups?: (string | string[] | {
9748
10010
 
9749
10011
  newlinesBetween?: ("ignore" | "always" | "never")
9750
- [k: string]: unknown | undefined
9751
10012
  })[]
9752
10013
  })
9753
10014
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
@@ -9762,6 +10023,14 @@ type PerfectionistSortInterfaces = {
9762
10023
 
9763
10024
  specialCharacters?: ("remove" | "trim" | "keep")
9764
10025
 
10026
+ fallbackSort?: {
10027
+
10028
+ order?: ("asc" | "desc")
10029
+
10030
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10031
+ [k: string]: unknown | undefined
10032
+ }
10033
+
9765
10034
  ignoreCase?: boolean
9766
10035
 
9767
10036
  alphabet?: string
@@ -9770,11 +10039,7 @@ type PerfectionistSortInterfaces = {
9770
10039
 
9771
10040
  order?: ("asc" | "desc")
9772
10041
 
9773
- ignorePattern?: string[]
9774
- useConfigurationIf?: {
9775
- allNamesMatchPattern?: string
9776
- declarationMatchesPattern?: string
9777
- }
10042
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9778
10043
  customGroups?: ({
9779
10044
  [k: string]: (string | string[]) | undefined
9780
10045
  } | ({
@@ -9792,7 +10057,13 @@ type PerfectionistSortInterfaces = {
9792
10057
 
9793
10058
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
9794
10059
 
9795
- elementNamePattern?: string
10060
+ elementNamePattern?: (({
10061
+ pattern?: string
10062
+ flags?: string
10063
+ } | string)[] | ({
10064
+ pattern?: string
10065
+ flags?: string
10066
+ } | string))
9796
10067
  }[]
9797
10068
  } | {
9798
10069
 
@@ -9808,27 +10079,73 @@ type PerfectionistSortInterfaces = {
9808
10079
 
9809
10080
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
9810
10081
 
9811
- elementNamePattern?: string
10082
+ elementNamePattern?: (({
10083
+ pattern?: string
10084
+ flags?: string
10085
+ } | string)[] | ({
10086
+ pattern?: string
10087
+ flags?: string
10088
+ } | string))
9812
10089
  })[])
10090
+ useConfigurationIf?: {
10091
+
10092
+ allNamesMatchPattern?: (({
10093
+ pattern?: string
10094
+ flags?: string
10095
+ } | string)[] | ({
10096
+ pattern?: string
10097
+ flags?: string
10098
+ } | string))
10099
+
10100
+ declarationMatchesPattern?: (({
10101
+ pattern?: string
10102
+ flags?: string
10103
+ } | string)[] | ({
10104
+ pattern?: string
10105
+ flags?: string
10106
+ } | string))
10107
+ }
9813
10108
 
9814
10109
  groupKind?: ("mixed" | "required-first" | "optional-first")
9815
10110
 
9816
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9817
-
9818
- partitionByComment?: (string[] | boolean | string | {
9819
- block?: (string[] | boolean | string)
9820
- line?: (string[] | boolean | string)
9821
- [k: string]: unknown | undefined
10111
+ partitionByComment?: (boolean | (({
10112
+ pattern?: string
10113
+ flags?: string
10114
+ } | string)[] | ({
10115
+ pattern?: string
10116
+ flags?: string
10117
+ } | string)) | {
10118
+ block?: (boolean | (({
10119
+ pattern?: string
10120
+ flags?: string
10121
+ } | string)[] | ({
10122
+ pattern?: string
10123
+ flags?: string
10124
+ } | string)))
10125
+ line?: (boolean | (({
10126
+ pattern?: string
10127
+ flags?: string
10128
+ } | string)[] | ({
10129
+ pattern?: string
10130
+ flags?: string
10131
+ } | string)))
9822
10132
  })
9823
10133
 
9824
10134
  partitionByNewLine?: boolean
9825
10135
 
9826
10136
  newlinesBetween?: ("ignore" | "always" | "never")
9827
10137
 
10138
+ ignorePattern?: (({
10139
+ pattern?: string
10140
+ flags?: string
10141
+ } | string)[] | ({
10142
+ pattern?: string
10143
+ flags?: string
10144
+ } | string))
10145
+
9828
10146
  groups?: (string | string[] | {
9829
10147
 
9830
10148
  newlinesBetween?: ("ignore" | "always" | "never")
9831
- [k: string]: unknown | undefined
9832
10149
  })[]
9833
10150
  }[]
9834
10151
  // ----- perfectionist/sort-intersection-types -----
@@ -9836,6 +10153,14 @@ type PerfectionistSortIntersectionTypes = []|[{
9836
10153
 
9837
10154
  specialCharacters?: ("remove" | "trim" | "keep")
9838
10155
 
10156
+ fallbackSort?: {
10157
+
10158
+ order?: ("asc" | "desc")
10159
+
10160
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10161
+ [k: string]: unknown | undefined
10162
+ }
10163
+
9839
10164
  ignoreCase?: boolean
9840
10165
 
9841
10166
  alphabet?: string
@@ -9844,29 +10169,53 @@ type PerfectionistSortIntersectionTypes = []|[{
9844
10169
 
9845
10170
  order?: ("asc" | "desc")
9846
10171
 
9847
- partitionByComment?: (string[] | boolean | string | {
9848
- block?: (string[] | boolean | string)
9849
- line?: (string[] | boolean | string)
9850
- [k: string]: unknown | undefined
10172
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10173
+
10174
+ partitionByComment?: (boolean | (({
10175
+ pattern?: string
10176
+ flags?: string
10177
+ } | string)[] | ({
10178
+ pattern?: string
10179
+ flags?: string
10180
+ } | string)) | {
10181
+ block?: (boolean | (({
10182
+ pattern?: string
10183
+ flags?: string
10184
+ } | string)[] | ({
10185
+ pattern?: string
10186
+ flags?: string
10187
+ } | string)))
10188
+ line?: (boolean | (({
10189
+ pattern?: string
10190
+ flags?: string
10191
+ } | string)[] | ({
10192
+ pattern?: string
10193
+ flags?: string
10194
+ } | string)))
9851
10195
  })
9852
10196
 
9853
10197
  partitionByNewLine?: boolean
9854
10198
 
9855
10199
  newlinesBetween?: ("ignore" | "always" | "never")
9856
10200
 
9857
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9858
-
9859
10201
  groups?: (string | string[] | {
9860
10202
 
9861
10203
  newlinesBetween?: ("ignore" | "always" | "never")
9862
- [k: string]: unknown | undefined
9863
10204
  })[]
9864
10205
  }]
9865
10206
  // ----- perfectionist/sort-jsx-props -----
9866
- type PerfectionistSortJsxProps = []|[{
10207
+ type PerfectionistSortJsxProps = {
9867
10208
 
9868
10209
  specialCharacters?: ("remove" | "trim" | "keep")
9869
10210
 
10211
+ fallbackSort?: {
10212
+
10213
+ order?: ("asc" | "desc")
10214
+
10215
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10216
+ [k: string]: unknown | undefined
10217
+ }
10218
+
9870
10219
  ignoreCase?: boolean
9871
10220
 
9872
10221
  alphabet?: string
@@ -9875,7 +10224,25 @@ type PerfectionistSortJsxProps = []|[{
9875
10224
 
9876
10225
  order?: ("asc" | "desc")
9877
10226
 
9878
- ignorePattern?: string[]
10227
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10228
+ useConfigurationIf?: {
10229
+
10230
+ allNamesMatchPattern?: (({
10231
+ pattern?: string
10232
+ flags?: string
10233
+ } | string)[] | ({
10234
+ pattern?: string
10235
+ flags?: string
10236
+ } | string))
10237
+
10238
+ tagMatchesPattern?: (({
10239
+ pattern?: string
10240
+ flags?: string
10241
+ } | string)[] | ({
10242
+ pattern?: string
10243
+ flags?: string
10244
+ } | string))
10245
+ }
9879
10246
 
9880
10247
  partitionByNewLine?: boolean
9881
10248
 
@@ -9885,19 +10252,32 @@ type PerfectionistSortJsxProps = []|[{
9885
10252
  [k: string]: (string | string[]) | undefined
9886
10253
  }
9887
10254
 
9888
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10255
+ ignorePattern?: (({
10256
+ pattern?: string
10257
+ flags?: string
10258
+ } | string)[] | ({
10259
+ pattern?: string
10260
+ flags?: string
10261
+ } | string))
9889
10262
 
9890
10263
  groups?: (string | string[] | {
9891
10264
 
9892
10265
  newlinesBetween?: ("ignore" | "always" | "never")
9893
- [k: string]: unknown | undefined
9894
10266
  })[]
9895
- }]
10267
+ }[]
9896
10268
  // ----- perfectionist/sort-maps -----
9897
10269
  type PerfectionistSortMaps = {
9898
10270
 
9899
10271
  specialCharacters?: ("remove" | "trim" | "keep")
9900
10272
 
10273
+ fallbackSort?: {
10274
+
10275
+ order?: ("asc" | "desc")
10276
+
10277
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10278
+ [k: string]: unknown | undefined
10279
+ }
10280
+
9901
10281
  ignoreCase?: boolean
9902
10282
 
9903
10283
  alphabet?: string
@@ -9906,6 +10286,8 @@ type PerfectionistSortMaps = {
9906
10286
 
9907
10287
  order?: ("asc" | "desc")
9908
10288
 
10289
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10290
+
9909
10291
  customGroups?: ({
9910
10292
 
9911
10293
  groupName?: string
@@ -9917,7 +10299,13 @@ type PerfectionistSortMaps = {
9917
10299
  newlinesInside?: ("always" | "never")
9918
10300
  anyOf?: {
9919
10301
 
9920
- elementNamePattern?: string
10302
+ elementNamePattern?: (({
10303
+ pattern?: string
10304
+ flags?: string
10305
+ } | string)[] | ({
10306
+ pattern?: string
10307
+ flags?: string
10308
+ } | string))
9921
10309
  }[]
9922
10310
  } | {
9923
10311
 
@@ -9929,28 +10317,55 @@ type PerfectionistSortMaps = {
9929
10317
 
9930
10318
  newlinesInside?: ("always" | "never")
9931
10319
 
9932
- elementNamePattern?: string
10320
+ elementNamePattern?: (({
10321
+ pattern?: string
10322
+ flags?: string
10323
+ } | string)[] | ({
10324
+ pattern?: string
10325
+ flags?: string
10326
+ } | string))
9933
10327
  })[]
9934
10328
  useConfigurationIf?: {
9935
- allNamesMatchPattern?: string
10329
+
10330
+ allNamesMatchPattern?: (({
10331
+ pattern?: string
10332
+ flags?: string
10333
+ } | string)[] | ({
10334
+ pattern?: string
10335
+ flags?: string
10336
+ } | string))
9936
10337
  }
9937
10338
 
9938
- partitionByComment?: (string[] | boolean | string | {
9939
- block?: (string[] | boolean | string)
9940
- line?: (string[] | boolean | string)
9941
- [k: string]: unknown | undefined
10339
+ partitionByComment?: (boolean | (({
10340
+ pattern?: string
10341
+ flags?: string
10342
+ } | string)[] | ({
10343
+ pattern?: string
10344
+ flags?: string
10345
+ } | string)) | {
10346
+ block?: (boolean | (({
10347
+ pattern?: string
10348
+ flags?: string
10349
+ } | string)[] | ({
10350
+ pattern?: string
10351
+ flags?: string
10352
+ } | string)))
10353
+ line?: (boolean | (({
10354
+ pattern?: string
10355
+ flags?: string
10356
+ } | string)[] | ({
10357
+ pattern?: string
10358
+ flags?: string
10359
+ } | string)))
9942
10360
  })
9943
10361
 
9944
10362
  partitionByNewLine?: boolean
9945
10363
 
9946
10364
  newlinesBetween?: ("ignore" | "always" | "never")
9947
10365
 
9948
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9949
-
9950
10366
  groups?: (string | string[] | {
9951
10367
 
9952
10368
  newlinesBetween?: ("ignore" | "always" | "never")
9953
- [k: string]: unknown | undefined
9954
10369
  })[]
9955
10370
  }[]
9956
10371
  // ----- perfectionist/sort-modules -----
@@ -9958,6 +10373,14 @@ type PerfectionistSortModules = []|[{
9958
10373
 
9959
10374
  specialCharacters?: ("remove" | "trim" | "keep")
9960
10375
 
10376
+ fallbackSort?: {
10377
+
10378
+ order?: ("asc" | "desc")
10379
+
10380
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10381
+ [k: string]: unknown | undefined
10382
+ }
10383
+
9961
10384
  ignoreCase?: boolean
9962
10385
 
9963
10386
  alphabet?: string
@@ -9966,6 +10389,8 @@ type PerfectionistSortModules = []|[{
9966
10389
 
9967
10390
  order?: ("asc" | "desc")
9968
10391
 
10392
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10393
+
9969
10394
  customGroups?: ({
9970
10395
 
9971
10396
  groupName?: string
@@ -9977,13 +10402,25 @@ type PerfectionistSortModules = []|[{
9977
10402
  newlinesInside?: ("always" | "never")
9978
10403
  anyOf?: {
9979
10404
 
9980
- decoratorNamePattern?: string
9981
-
9982
10405
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
9983
10406
 
9984
10407
  selector?: ("enum" | "function" | "interface" | "type" | "class")
9985
10408
 
9986
- elementNamePattern?: string
10409
+ decoratorNamePattern?: (({
10410
+ pattern?: string
10411
+ flags?: string
10412
+ } | string)[] | ({
10413
+ pattern?: string
10414
+ flags?: string
10415
+ } | string))
10416
+
10417
+ elementNamePattern?: (({
10418
+ pattern?: string
10419
+ flags?: string
10420
+ } | string)[] | ({
10421
+ pattern?: string
10422
+ flags?: string
10423
+ } | string))
9987
10424
  }[]
9988
10425
  } | {
9989
10426
 
@@ -9995,31 +10432,57 @@ type PerfectionistSortModules = []|[{
9995
10432
 
9996
10433
  newlinesInside?: ("always" | "never")
9997
10434
 
9998
- decoratorNamePattern?: string
9999
-
10000
10435
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
10001
10436
 
10002
10437
  selector?: ("enum" | "function" | "interface" | "type" | "class")
10003
10438
 
10004
- elementNamePattern?: string
10439
+ decoratorNamePattern?: (({
10440
+ pattern?: string
10441
+ flags?: string
10442
+ } | string)[] | ({
10443
+ pattern?: string
10444
+ flags?: string
10445
+ } | string))
10446
+
10447
+ elementNamePattern?: (({
10448
+ pattern?: string
10449
+ flags?: string
10450
+ } | string)[] | ({
10451
+ pattern?: string
10452
+ flags?: string
10453
+ } | string))
10005
10454
  })[]
10006
10455
 
10007
- partitionByComment?: (string[] | boolean | string | {
10008
- block?: (string[] | boolean | string)
10009
- line?: (string[] | boolean | string)
10010
- [k: string]: unknown | undefined
10456
+ partitionByComment?: (boolean | (({
10457
+ pattern?: string
10458
+ flags?: string
10459
+ } | string)[] | ({
10460
+ pattern?: string
10461
+ flags?: string
10462
+ } | string)) | {
10463
+ block?: (boolean | (({
10464
+ pattern?: string
10465
+ flags?: string
10466
+ } | string)[] | ({
10467
+ pattern?: string
10468
+ flags?: string
10469
+ } | string)))
10470
+ line?: (boolean | (({
10471
+ pattern?: string
10472
+ flags?: string
10473
+ } | string)[] | ({
10474
+ pattern?: string
10475
+ flags?: string
10476
+ } | string)))
10011
10477
  })
10012
10478
 
10013
10479
  partitionByNewLine?: boolean
10014
10480
 
10015
10481
  newlinesBetween?: ("ignore" | "always" | "never")
10016
10482
 
10017
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10018
-
10019
10483
  groups?: (string | string[] | {
10020
10484
 
10021
10485
  newlinesBetween?: ("ignore" | "always" | "never")
10022
- [k: string]: unknown | undefined
10023
10486
  })[]
10024
10487
  }]
10025
10488
  // ----- perfectionist/sort-named-exports -----
@@ -10027,6 +10490,14 @@ type PerfectionistSortNamedExports = []|[{
10027
10490
 
10028
10491
  specialCharacters?: ("remove" | "trim" | "keep")
10029
10492
 
10493
+ fallbackSort?: {
10494
+
10495
+ order?: ("asc" | "desc")
10496
+
10497
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10498
+ [k: string]: unknown | undefined
10499
+ }
10500
+
10030
10501
  ignoreCase?: boolean
10031
10502
 
10032
10503
  alphabet?: string
@@ -10035,25 +10506,50 @@ type PerfectionistSortNamedExports = []|[{
10035
10506
 
10036
10507
  order?: ("asc" | "desc")
10037
10508
 
10509
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10510
+
10038
10511
  groupKind?: ("mixed" | "values-first" | "types-first")
10039
10512
 
10040
10513
  ignoreAlias?: boolean
10041
10514
 
10042
- partitionByComment?: (string[] | boolean | string | {
10043
- block?: (string[] | boolean | string)
10044
- line?: (string[] | boolean | string)
10045
- [k: string]: unknown | undefined
10515
+ partitionByComment?: (boolean | (({
10516
+ pattern?: string
10517
+ flags?: string
10518
+ } | string)[] | ({
10519
+ pattern?: string
10520
+ flags?: string
10521
+ } | string)) | {
10522
+ block?: (boolean | (({
10523
+ pattern?: string
10524
+ flags?: string
10525
+ } | string)[] | ({
10526
+ pattern?: string
10527
+ flags?: string
10528
+ } | string)))
10529
+ line?: (boolean | (({
10530
+ pattern?: string
10531
+ flags?: string
10532
+ } | string)[] | ({
10533
+ pattern?: string
10534
+ flags?: string
10535
+ } | string)))
10046
10536
  })
10047
10537
 
10048
10538
  partitionByNewLine?: boolean
10049
-
10050
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10051
10539
  }]
10052
10540
  // ----- perfectionist/sort-named-imports -----
10053
10541
  type PerfectionistSortNamedImports = []|[{
10054
10542
 
10055
10543
  specialCharacters?: ("remove" | "trim" | "keep")
10056
10544
 
10545
+ fallbackSort?: {
10546
+
10547
+ order?: ("asc" | "desc")
10548
+
10549
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10550
+ [k: string]: unknown | undefined
10551
+ }
10552
+
10057
10553
  ignoreCase?: boolean
10058
10554
 
10059
10555
  alphabet?: string
@@ -10062,25 +10558,50 @@ type PerfectionistSortNamedImports = []|[{
10062
10558
 
10063
10559
  order?: ("asc" | "desc")
10064
10560
 
10561
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10562
+
10065
10563
  groupKind?: ("mixed" | "values-first" | "types-first")
10066
10564
 
10067
10565
  ignoreAlias?: boolean
10068
10566
 
10069
- partitionByComment?: (string[] | boolean | string | {
10070
- block?: (string[] | boolean | string)
10071
- line?: (string[] | boolean | string)
10072
- [k: string]: unknown | undefined
10567
+ partitionByComment?: (boolean | (({
10568
+ pattern?: string
10569
+ flags?: string
10570
+ } | string)[] | ({
10571
+ pattern?: string
10572
+ flags?: string
10573
+ } | string)) | {
10574
+ block?: (boolean | (({
10575
+ pattern?: string
10576
+ flags?: string
10577
+ } | string)[] | ({
10578
+ pattern?: string
10579
+ flags?: string
10580
+ } | string)))
10581
+ line?: (boolean | (({
10582
+ pattern?: string
10583
+ flags?: string
10584
+ } | string)[] | ({
10585
+ pattern?: string
10586
+ flags?: string
10587
+ } | string)))
10073
10588
  })
10074
10589
 
10075
10590
  partitionByNewLine?: boolean
10076
-
10077
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10078
10591
  }]
10079
10592
  // ----- perfectionist/sort-object-types -----
10080
10593
  type PerfectionistSortObjectTypes = {
10081
10594
 
10082
10595
  specialCharacters?: ("remove" | "trim" | "keep")
10083
10596
 
10597
+ fallbackSort?: {
10598
+
10599
+ order?: ("asc" | "desc")
10600
+
10601
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10602
+ [k: string]: unknown | undefined
10603
+ }
10604
+
10084
10605
  ignoreCase?: boolean
10085
10606
 
10086
10607
  alphabet?: string
@@ -10089,11 +10610,7 @@ type PerfectionistSortObjectTypes = {
10089
10610
 
10090
10611
  order?: ("asc" | "desc")
10091
10612
 
10092
- ignorePattern?: string[]
10093
- useConfigurationIf?: {
10094
- allNamesMatchPattern?: string
10095
- declarationMatchesPattern?: string
10096
- }
10613
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10097
10614
  customGroups?: ({
10098
10615
  [k: string]: (string | string[]) | undefined
10099
10616
  } | ({
@@ -10111,7 +10628,13 @@ type PerfectionistSortObjectTypes = {
10111
10628
 
10112
10629
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10113
10630
 
10114
- elementNamePattern?: string
10631
+ elementNamePattern?: (({
10632
+ pattern?: string
10633
+ flags?: string
10634
+ } | string)[] | ({
10635
+ pattern?: string
10636
+ flags?: string
10637
+ } | string))
10115
10638
  }[]
10116
10639
  } | {
10117
10640
 
@@ -10127,27 +10650,73 @@ type PerfectionistSortObjectTypes = {
10127
10650
 
10128
10651
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10129
10652
 
10130
- elementNamePattern?: string
10653
+ elementNamePattern?: (({
10654
+ pattern?: string
10655
+ flags?: string
10656
+ } | string)[] | ({
10657
+ pattern?: string
10658
+ flags?: string
10659
+ } | string))
10131
10660
  })[])
10661
+ useConfigurationIf?: {
10662
+
10663
+ allNamesMatchPattern?: (({
10664
+ pattern?: string
10665
+ flags?: string
10666
+ } | string)[] | ({
10667
+ pattern?: string
10668
+ flags?: string
10669
+ } | string))
10670
+
10671
+ declarationMatchesPattern?: (({
10672
+ pattern?: string
10673
+ flags?: string
10674
+ } | string)[] | ({
10675
+ pattern?: string
10676
+ flags?: string
10677
+ } | string))
10678
+ }
10132
10679
 
10133
10680
  groupKind?: ("mixed" | "required-first" | "optional-first")
10134
10681
 
10135
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10136
-
10137
- partitionByComment?: (string[] | boolean | string | {
10138
- block?: (string[] | boolean | string)
10139
- line?: (string[] | boolean | string)
10140
- [k: string]: unknown | undefined
10682
+ partitionByComment?: (boolean | (({
10683
+ pattern?: string
10684
+ flags?: string
10685
+ } | string)[] | ({
10686
+ pattern?: string
10687
+ flags?: string
10688
+ } | string)) | {
10689
+ block?: (boolean | (({
10690
+ pattern?: string
10691
+ flags?: string
10692
+ } | string)[] | ({
10693
+ pattern?: string
10694
+ flags?: string
10695
+ } | string)))
10696
+ line?: (boolean | (({
10697
+ pattern?: string
10698
+ flags?: string
10699
+ } | string)[] | ({
10700
+ pattern?: string
10701
+ flags?: string
10702
+ } | string)))
10141
10703
  })
10142
10704
 
10143
10705
  partitionByNewLine?: boolean
10144
10706
 
10145
10707
  newlinesBetween?: ("ignore" | "always" | "never")
10146
10708
 
10709
+ ignorePattern?: (({
10710
+ pattern?: string
10711
+ flags?: string
10712
+ } | string)[] | ({
10713
+ pattern?: string
10714
+ flags?: string
10715
+ } | string))
10716
+
10147
10717
  groups?: (string | string[] | {
10148
10718
 
10149
10719
  newlinesBetween?: ("ignore" | "always" | "never")
10150
- [k: string]: unknown | undefined
10151
10720
  })[]
10152
10721
  }[]
10153
10722
  // ----- perfectionist/sort-objects -----
@@ -10155,6 +10724,14 @@ type PerfectionistSortObjects = {
10155
10724
 
10156
10725
  specialCharacters?: ("remove" | "trim" | "keep")
10157
10726
 
10727
+ fallbackSort?: {
10728
+
10729
+ order?: ("asc" | "desc")
10730
+
10731
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10732
+ [k: string]: unknown | undefined
10733
+ }
10734
+
10158
10735
  ignoreCase?: boolean
10159
10736
 
10160
10737
  alphabet?: string
@@ -10163,16 +10740,12 @@ type PerfectionistSortObjects = {
10163
10740
 
10164
10741
  order?: ("asc" | "desc")
10165
10742
 
10743
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10744
+
10166
10745
  destructuredObjects?: (boolean | {
10167
10746
 
10168
10747
  groups?: boolean
10169
10748
  })
10170
-
10171
- ignorePattern?: string[]
10172
- useConfigurationIf?: {
10173
- allNamesMatchPattern?: string
10174
- callingFunctionNamePattern?: string
10175
- }
10176
10749
  customGroups?: ({
10177
10750
  [k: string]: (string | string[]) | undefined
10178
10751
  } | ({
@@ -10190,9 +10763,21 @@ type PerfectionistSortObjects = {
10190
10763
 
10191
10764
  selector?: ("member" | "method" | "multiline" | "property")
10192
10765
 
10193
- elementValuePattern?: string
10766
+ elementValuePattern?: (({
10767
+ pattern?: string
10768
+ flags?: string
10769
+ } | string)[] | ({
10770
+ pattern?: string
10771
+ flags?: string
10772
+ } | string))
10194
10773
 
10195
- elementNamePattern?: string
10774
+ elementNamePattern?: (({
10775
+ pattern?: string
10776
+ flags?: string
10777
+ } | string)[] | ({
10778
+ pattern?: string
10779
+ flags?: string
10780
+ } | string))
10196
10781
  }[]
10197
10782
  } | {
10198
10783
 
@@ -10208,10 +10793,40 @@ type PerfectionistSortObjects = {
10208
10793
 
10209
10794
  selector?: ("member" | "method" | "multiline" | "property")
10210
10795
 
10211
- elementValuePattern?: string
10212
-
10213
- elementNamePattern?: string
10796
+ elementValuePattern?: (({
10797
+ pattern?: string
10798
+ flags?: string
10799
+ } | string)[] | ({
10800
+ pattern?: string
10801
+ flags?: string
10802
+ } | string))
10803
+
10804
+ elementNamePattern?: (({
10805
+ pattern?: string
10806
+ flags?: string
10807
+ } | string)[] | ({
10808
+ pattern?: string
10809
+ flags?: string
10810
+ } | string))
10214
10811
  })[])
10812
+ useConfigurationIf?: {
10813
+
10814
+ allNamesMatchPattern?: (({
10815
+ pattern?: string
10816
+ flags?: string
10817
+ } | string)[] | ({
10818
+ pattern?: string
10819
+ flags?: string
10820
+ } | string))
10821
+
10822
+ callingFunctionNamePattern?: (({
10823
+ pattern?: string
10824
+ flags?: string
10825
+ } | string)[] | ({
10826
+ pattern?: string
10827
+ flags?: string
10828
+ } | string))
10829
+ }
10215
10830
 
10216
10831
  destructureOnly?: boolean
10217
10832
 
@@ -10219,22 +10834,44 @@ type PerfectionistSortObjects = {
10219
10834
 
10220
10835
  styledComponents?: boolean
10221
10836
 
10222
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10223
-
10224
- partitionByComment?: (string[] | boolean | string | {
10225
- block?: (string[] | boolean | string)
10226
- line?: (string[] | boolean | string)
10227
- [k: string]: unknown | undefined
10837
+ partitionByComment?: (boolean | (({
10838
+ pattern?: string
10839
+ flags?: string
10840
+ } | string)[] | ({
10841
+ pattern?: string
10842
+ flags?: string
10843
+ } | string)) | {
10844
+ block?: (boolean | (({
10845
+ pattern?: string
10846
+ flags?: string
10847
+ } | string)[] | ({
10848
+ pattern?: string
10849
+ flags?: string
10850
+ } | string)))
10851
+ line?: (boolean | (({
10852
+ pattern?: string
10853
+ flags?: string
10854
+ } | string)[] | ({
10855
+ pattern?: string
10856
+ flags?: string
10857
+ } | string)))
10228
10858
  })
10229
10859
 
10230
10860
  partitionByNewLine?: boolean
10231
10861
 
10232
10862
  newlinesBetween?: ("ignore" | "always" | "never")
10233
10863
 
10864
+ ignorePattern?: (({
10865
+ pattern?: string
10866
+ flags?: string
10867
+ } | string)[] | ({
10868
+ pattern?: string
10869
+ flags?: string
10870
+ } | string))
10871
+
10234
10872
  groups?: (string | string[] | {
10235
10873
 
10236
10874
  newlinesBetween?: ("ignore" | "always" | "never")
10237
- [k: string]: unknown | undefined
10238
10875
  })[]
10239
10876
  }[]
10240
10877
  // ----- perfectionist/sort-sets -----
@@ -10242,6 +10879,14 @@ type PerfectionistSortSets = {
10242
10879
 
10243
10880
  specialCharacters?: ("remove" | "trim" | "keep")
10244
10881
 
10882
+ fallbackSort?: {
10883
+
10884
+ order?: ("asc" | "desc")
10885
+
10886
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10887
+ [k: string]: unknown | undefined
10888
+ }
10889
+
10245
10890
  ignoreCase?: boolean
10246
10891
 
10247
10892
  alphabet?: string
@@ -10250,6 +10895,8 @@ type PerfectionistSortSets = {
10250
10895
 
10251
10896
  order?: ("asc" | "desc")
10252
10897
 
10898
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10899
+
10253
10900
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10254
10901
 
10255
10902
  customGroups?: ({
@@ -10265,7 +10912,13 @@ type PerfectionistSortSets = {
10265
10912
 
10266
10913
  selector?: ("literal" | "spread")
10267
10914
 
10268
- elementNamePattern?: string
10915
+ elementNamePattern?: (({
10916
+ pattern?: string
10917
+ flags?: string
10918
+ } | string)[] | ({
10919
+ pattern?: string
10920
+ flags?: string
10921
+ } | string))
10269
10922
  }[]
10270
10923
  } | {
10271
10924
 
@@ -10279,18 +10932,46 @@ type PerfectionistSortSets = {
10279
10932
 
10280
10933
  selector?: ("literal" | "spread")
10281
10934
 
10282
- elementNamePattern?: string
10935
+ elementNamePattern?: (({
10936
+ pattern?: string
10937
+ flags?: string
10938
+ } | string)[] | ({
10939
+ pattern?: string
10940
+ flags?: string
10941
+ } | string))
10283
10942
  })[]
10284
10943
  useConfigurationIf?: {
10285
- allNamesMatchPattern?: string
10944
+
10945
+ allNamesMatchPattern?: (({
10946
+ pattern?: string
10947
+ flags?: string
10948
+ } | string)[] | ({
10949
+ pattern?: string
10950
+ flags?: string
10951
+ } | string))
10286
10952
  }
10287
10953
 
10288
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10289
-
10290
- partitionByComment?: (string[] | boolean | string | {
10291
- block?: (string[] | boolean | string)
10292
- line?: (string[] | boolean | string)
10293
- [k: string]: unknown | undefined
10954
+ partitionByComment?: (boolean | (({
10955
+ pattern?: string
10956
+ flags?: string
10957
+ } | string)[] | ({
10958
+ pattern?: string
10959
+ flags?: string
10960
+ } | string)) | {
10961
+ block?: (boolean | (({
10962
+ pattern?: string
10963
+ flags?: string
10964
+ } | string)[] | ({
10965
+ pattern?: string
10966
+ flags?: string
10967
+ } | string)))
10968
+ line?: (boolean | (({
10969
+ pattern?: string
10970
+ flags?: string
10971
+ } | string)[] | ({
10972
+ pattern?: string
10973
+ flags?: string
10974
+ } | string)))
10294
10975
  })
10295
10976
 
10296
10977
  partitionByNewLine?: boolean
@@ -10300,7 +10981,6 @@ type PerfectionistSortSets = {
10300
10981
  groups?: (string | string[] | {
10301
10982
 
10302
10983
  newlinesBetween?: ("ignore" | "always" | "never")
10303
- [k: string]: unknown | undefined
10304
10984
  })[]
10305
10985
  }[]
10306
10986
  // ----- perfectionist/sort-switch-case -----
@@ -10308,6 +10988,14 @@ type PerfectionistSortSwitchCase = []|[{
10308
10988
 
10309
10989
  specialCharacters?: ("remove" | "trim" | "keep")
10310
10990
 
10991
+ fallbackSort?: {
10992
+
10993
+ order?: ("asc" | "desc")
10994
+
10995
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10996
+ [k: string]: unknown | undefined
10997
+ }
10998
+
10311
10999
  ignoreCase?: boolean
10312
11000
 
10313
11001
  alphabet?: string
@@ -10316,13 +11004,21 @@ type PerfectionistSortSwitchCase = []|[{
10316
11004
 
10317
11005
  order?: ("asc" | "desc")
10318
11006
 
10319
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11007
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10320
11008
  }]
10321
11009
  // ----- perfectionist/sort-union-types -----
10322
11010
  type PerfectionistSortUnionTypes = []|[{
10323
11011
 
10324
11012
  specialCharacters?: ("remove" | "trim" | "keep")
10325
11013
 
11014
+ fallbackSort?: {
11015
+
11016
+ order?: ("asc" | "desc")
11017
+
11018
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11019
+ [k: string]: unknown | undefined
11020
+ }
11021
+
10326
11022
  ignoreCase?: boolean
10327
11023
 
10328
11024
  alphabet?: string
@@ -10331,22 +11027,38 @@ type PerfectionistSortUnionTypes = []|[{
10331
11027
 
10332
11028
  order?: ("asc" | "desc")
10333
11029
 
10334
- partitionByComment?: (string[] | boolean | string | {
10335
- block?: (string[] | boolean | string)
10336
- line?: (string[] | boolean | string)
10337
- [k: string]: unknown | undefined
11030
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11031
+
11032
+ partitionByComment?: (boolean | (({
11033
+ pattern?: string
11034
+ flags?: string
11035
+ } | string)[] | ({
11036
+ pattern?: string
11037
+ flags?: string
11038
+ } | string)) | {
11039
+ block?: (boolean | (({
11040
+ pattern?: string
11041
+ flags?: string
11042
+ } | string)[] | ({
11043
+ pattern?: string
11044
+ flags?: string
11045
+ } | string)))
11046
+ line?: (boolean | (({
11047
+ pattern?: string
11048
+ flags?: string
11049
+ } | string)[] | ({
11050
+ pattern?: string
11051
+ flags?: string
11052
+ } | string)))
10338
11053
  })
10339
11054
 
10340
11055
  partitionByNewLine?: boolean
10341
11056
 
10342
11057
  newlinesBetween?: ("ignore" | "always" | "never")
10343
11058
 
10344
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10345
-
10346
11059
  groups?: (string | string[] | {
10347
11060
 
10348
11061
  newlinesBetween?: ("ignore" | "always" | "never")
10349
- [k: string]: unknown | undefined
10350
11062
  })[]
10351
11063
  }]
10352
11064
  // ----- perfectionist/sort-variable-declarations -----
@@ -10354,6 +11066,14 @@ type PerfectionistSortVariableDeclarations = []|[{
10354
11066
 
10355
11067
  specialCharacters?: ("remove" | "trim" | "keep")
10356
11068
 
11069
+ fallbackSort?: {
11070
+
11071
+ order?: ("asc" | "desc")
11072
+
11073
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11074
+ [k: string]: unknown | undefined
11075
+ }
11076
+
10357
11077
  ignoreCase?: boolean
10358
11078
 
10359
11079
  alphabet?: string
@@ -10362,15 +11082,32 @@ type PerfectionistSortVariableDeclarations = []|[{
10362
11082
 
10363
11083
  order?: ("asc" | "desc")
10364
11084
 
10365
- partitionByComment?: (string[] | boolean | string | {
10366
- block?: (string[] | boolean | string)
10367
- line?: (string[] | boolean | string)
10368
- [k: string]: unknown | undefined
11085
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11086
+
11087
+ partitionByComment?: (boolean | (({
11088
+ pattern?: string
11089
+ flags?: string
11090
+ } | string)[] | ({
11091
+ pattern?: string
11092
+ flags?: string
11093
+ } | string)) | {
11094
+ block?: (boolean | (({
11095
+ pattern?: string
11096
+ flags?: string
11097
+ } | string)[] | ({
11098
+ pattern?: string
11099
+ flags?: string
11100
+ } | string)))
11101
+ line?: (boolean | (({
11102
+ pattern?: string
11103
+ flags?: string
11104
+ } | string)[] | ({
11105
+ pattern?: string
11106
+ flags?: string
11107
+ } | string)))
10369
11108
  })
10370
11109
 
10371
11110
  partitionByNewLine?: boolean
10372
-
10373
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10374
11111
  }]
10375
11112
  // ----- prefer-arrow-callback -----
10376
11113
  type PreferArrowCallback = []|[{
@@ -10712,6 +11449,12 @@ type SvelteButtonHasType = []|[{
10712
11449
  type SvelteCommentDirective = []|[{
10713
11450
  reportUnusedDisableDirectives?: boolean
10714
11451
  }]
11452
+ // ----- svelte/consistent-selector-style -----
11453
+ type SvelteConsistentSelectorStyle = []|[{
11454
+ checkGlobal?: boolean
11455
+
11456
+ style?: []|[("class" | "id" | "type")]|[("class" | "id" | "type"), ("class" | "id" | "type")]|[("class" | "id" | "type"), ("class" | "id" | "type"), ("class" | "id" | "type")]
11457
+ }]
10715
11458
  // ----- svelte/first-attribute-linebreak -----
10716
11459
  type SvelteFirstAttributeLinebreak = []|[{
10717
11460
  multiline?: ("below" | "beside")
@@ -10744,7 +11487,8 @@ type SvelteHtmlQuotes = []|[{
10744
11487
  type SvelteHtmlSelfClosing = []|[({
10745
11488
  void?: ("never" | "always" | "ignore")
10746
11489
  normal?: ("never" | "always" | "ignore")
10747
- foreign?: ("never" | "always" | "ignore")
11490
+ svg?: ("never" | "always" | "ignore")
11491
+ math?: ("never" | "always" | "ignore")
10748
11492
  component?: ("never" | "always" | "ignore")
10749
11493
  svelte?: ("never" | "always" | "ignore")
10750
11494
  } | ("all" | "html" | "none"))]
@@ -10783,6 +11527,13 @@ type SvelteNoInlineStyles = []|[{
10783
11527
  type SvelteNoInnerDeclarations = []|[("functions" | "both")]|[("functions" | "both"), {
10784
11528
  blockScopedFunctions?: ("allow" | "disallow")
10785
11529
  }]
11530
+ // ----- svelte/no-navigation-without-base -----
11531
+ type SvelteNoNavigationWithoutBase = []|[{
11532
+ ignoreGoto?: boolean
11533
+ ignoreLinks?: boolean
11534
+ ignorePushState?: boolean
11535
+ ignoreReplaceState?: boolean
11536
+ }]
10786
11537
  // ----- svelte/no-reactive-reassign -----
10787
11538
  type SvelteNoReactiveReassign = []|[{
10788
11539
  props?: boolean
@@ -10826,6 +11577,11 @@ type SvelteNoUselessMustaches = []|[{
10826
11577
  type SveltePreferClassDirective = []|[{
10827
11578
  prefer?: ("always" | "empty")
10828
11579
  }]
11580
+ // ----- svelte/prefer-const -----
11581
+ type SveltePreferConst = []|[{
11582
+ destructuring?: ("any" | "all")
11583
+ ignoreReadBeforeAssign?: boolean
11584
+ }]
10829
11585
  // ----- svelte/shorthand-attribute -----
10830
11586
  type SvelteShorthandAttribute = []|[{
10831
11587
  prefer?: ("always" | "never")
@@ -11018,6 +11774,10 @@ type TestPreferSnapshotHint = []|[("always" | "multi")]
11018
11774
  type TestRequireHook = []|[{
11019
11775
  allowedFunctionCalls?: string[]
11020
11776
  }]
11777
+ // ----- test/require-mock-type-parameters -----
11778
+ type TestRequireMockTypeParameters = []|[{
11779
+ checkImportFunctions?: boolean
11780
+ }]
11021
11781
  // ----- test/require-top-level-describe -----
11022
11782
  type TestRequireTopLevelDescribe = []|[{
11023
11783
  maxNumberOfTopLevelDescribes?: number
@@ -11841,7 +12601,7 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
11841
12601
  // ----- ts/no-unnecessary-condition -----
11842
12602
  type TsNoUnnecessaryCondition = []|[{
11843
12603
 
11844
- allowConstantLoopConditions?: boolean
12604
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
11845
12605
 
11846
12606
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
11847
12607
 
@@ -12267,6 +13027,13 @@ type UnicornNoArrayPushPush = []|[{
12267
13027
  type UnicornNoArrayReduce = []|[{
12268
13028
  allowSimpleOperations?: boolean
12269
13029
  }]
13030
+ // ----- unicorn/no-instanceof-builtins -----
13031
+ type UnicornNoInstanceofBuiltins = []|[{
13032
+ useErrorIsError?: boolean
13033
+ strategy?: ("loose" | "strict")
13034
+ include?: string[]
13035
+ exclude?: string[]
13036
+ }]
12270
13037
  // ----- unicorn/no-keyword-prefix -----
12271
13038
  type UnicornNoKeywordPrefix = []|[{
12272
13039
 
@@ -13651,7 +14418,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
13651
14418
  onlyEquality?: boolean
13652
14419
  }]
13653
14420
  // Names of all the configs
13654
- type ConfigNames = 'coderwyd/eslint-comments/rules' | 'coderwyd/imports/rules' | 'coderwyd/javascript/setup' | 'coderwyd/javascript/rules' | 'coderwyd/jsdoc/rules' | 'coderwyd/jsonc/setup' | 'coderwyd/jsonc/rules' | 'coderwyd/node/rules' | 'coderwyd/perfectionist/rules' | 'coderwyd/react/setup' | 'coderwyd/react/rules' | 'coderwyd/sort/package-json' | 'coderwyd/svelte/setup' | 'coderwyd/svelte/rules' | 'coderwyd/test/setup' | 'coderwyd/test/rules' | 'coderwyd/prettier/rules' | 'coderwyd/typescript/setup' | 'coderwyd/typescript/parser' | 'coderwyd/typescript/rules' | 'coderwyd/unicorn/rules' | 'coderwyd/unocss/rules' | 'coderwyd/vue/rules' | 'coderwyd/command/rules' | 'coderwyd/regexp/rules' | 'coderwyd/tailwindcss/rules'
14421
+ type ConfigNames = 'coderwyd/eslint-comments/rules' | 'coderwyd/imports/rules' | 'coderwyd/javascript/setup' | 'coderwyd/javascript/rules' | 'coderwyd/jsdoc/rules' | 'coderwyd/jsonc/setup' | 'coderwyd/jsonc/rules' | 'coderwyd/node/rules' | 'coderwyd/perfectionist/rules' | 'coderwyd/react/setup' | 'coderwyd/react/rules' | 'coderwyd/sort/package-json' | 'coderwyd/svelte/setup' | 'coderwyd/svelte/rules' | 'coderwyd/test/setup' | 'coderwyd/test/rules' | 'coderwyd/prettier/rules' | 'coderwyd/typescript/setup' | 'coderwyd/typescript/parser' | 'coderwyd/typescript/rules' | 'coderwyd/unicorn/rules' | 'coderwyd/unocss/rules' | 'coderwyd/vue/rules' | 'coderwyd/command/rules' | 'coderwyd/regexp/rules' | 'coderwyd/tailwindcss/rules' | 'coderwyd/de-morgan/rules'
13655
14422
 
13656
14423
  type Rules = RuleOptions;
13657
14424
 
@@ -13884,7 +14651,7 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
13884
14651
  } ? U : T>;
13885
14652
  declare function isPackageInScope(name: string): boolean;
13886
14653
  declare function ensurePackages(packages: string[]): Promise<void>;
13887
- declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
14654
+ declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<ResolvedOptions<OptionsConfig[K]>>;
13888
14655
  declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
13889
14656
  declare function isInEditorEnv(): boolean;
13890
14657
  declare function isInGitHooksOrLintStaged(): boolean;