@coderwyd/eslint-config 4.0.0 → 4.0.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
@@ -2672,7 +2672,7 @@ interface RuleOptions {
2672
2672
  */
2673
2673
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
2674
2674
  /**
2675
- * enforce destructuring and symmetric naming of 'useState' hook value and setter variables
2675
+ * enforce destructuring and symmetric naming of 'useState' hook value and setter
2676
2676
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
2677
2677
  */
2678
2678
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
@@ -2718,7 +2718,7 @@ interface RuleOptions {
2718
2718
  */
2719
2719
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2720
2720
  /**
2721
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2721
+ * marks variables used in JSX as used
2722
2722
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2723
2723
  */
2724
2724
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
@@ -2852,6 +2852,11 @@ interface RuleOptions {
2852
2852
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
2853
2853
  */
2854
2854
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2855
+ /**
2856
+ * require 'displayName' for contexts.
2857
+ * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
2858
+ */
2859
+ 'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
2855
2860
  /**
2856
2861
  * require 'key' when rendering list
2857
2862
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
@@ -2933,7 +2938,7 @@ interface RuleOptions {
2933
2938
  */
2934
2939
  'react/no-use-context'?: Linter.RuleEntry<[]>
2935
2940
  /**
2936
- * disallow unnecessary fragments
2941
+ * disallow useless fragments
2937
2942
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
2938
2943
  */
2939
2944
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
@@ -2963,7 +2968,7 @@ interface RuleOptions {
2963
2968
  */
2964
2969
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
2965
2970
  /**
2966
- * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
2971
+ * marks variables used in JSX as used
2967
2972
  * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2968
2973
  */
2969
2974
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
@@ -4097,6 +4102,11 @@ interface RuleOptions {
4097
4102
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
4098
4103
  */
4099
4104
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
4105
+ /**
4106
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
4107
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
4108
+ */
4109
+ 'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
4100
4110
  /**
4101
4111
  * enforce strict equal over equal
4102
4112
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -4152,6 +4162,11 @@ interface RuleOptions {
4152
4162
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
4153
4163
  */
4154
4164
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
4165
+ /**
4166
+ * enforce using type parameters with vitest mock functions
4167
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
4168
+ */
4169
+ 'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
4155
4170
  /**
4156
4171
  * require toThrow() to be called with an error message
4157
4172
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -4394,7 +4409,7 @@ interface RuleOptions {
4394
4409
  */
4395
4410
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
4396
4411
  /**
4397
- * Disallow the use of `eval()`-like methods
4412
+ * Disallow the use of `eval()`-like functions
4398
4413
  * @see https://typescript-eslint.io/rules/no-implied-eval
4399
4414
  */
4400
4415
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -4845,702 +4860,642 @@ interface RuleOptions {
4845
4860
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4846
4861
  /**
4847
4862
  * 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
4863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
4849
4864
  */
4850
4865
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4851
4866
  /**
4852
4867
  * 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
4868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
4854
4869
  */
4855
4870
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4871
+ /**
4872
+ * Enforce consistent assertion style with `node:assert`.
4873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
4874
+ */
4875
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4876
+ /**
4877
+ * Prefer passing `Date` directly to the constructor when cloning.
4878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
4879
+ */
4880
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4856
4881
  /**
4857
4882
  * Use destructured variables over properties.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
4883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
4859
4884
  */
4860
4885
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4861
4886
  /**
4862
4887
  * 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
4888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
4864
4889
  */
4865
4890
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4866
4891
  /**
4867
4892
  * 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
4893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
4869
4894
  */
4870
4895
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4871
4896
  /**
4872
4897
  * 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
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
4874
4899
  */
4875
4900
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4876
4901
  /**
4877
4902
  * Enforce correct `Error` subclassing.
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
4903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
4879
4904
  */
4880
4905
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4881
4906
  /**
4882
4907
  * Enforce no spaces between braces.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
4908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
4884
4909
  */
4885
4910
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4886
4911
  /**
4887
4912
  * 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
4913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
4889
4914
  */
4890
4915
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4891
4916
  /**
4892
4917
  * 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
4918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
4894
4919
  */
4895
4920
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4896
4921
  /**
4897
4922
  * 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
4923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
4899
4924
  */
4900
4925
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4901
4926
  /**
4902
4927
  * 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
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
4904
4929
  */
4905
4930
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4906
4931
  /**
4907
4932
  * Enforce a case style for filenames.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
4933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
4909
4934
  */
4910
4935
  '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
4936
  /**
4917
4937
  * Enforce specific import styles per module.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
4938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
4919
4939
  */
4920
4940
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4921
4941
  /**
4922
4942
  * 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
4943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
4924
4944
  */
4925
4945
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4926
4946
  /**
4927
4947
  * 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
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
4929
4949
  */
4930
4950
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4951
+ /**
4952
+ * Disallow recursive access to `this` within getters and setters.
4953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
4954
+ */
4955
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
4931
4956
  /**
4932
4957
  * 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
4958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
4934
4959
  */
4935
4960
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4936
4961
  /**
4937
4962
  * 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
4963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
4939
4964
  */
4940
4965
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4941
4966
  /**
4942
4967
  * 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
4968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
4944
4969
  */
4945
4970
  '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
4971
  /**
4952
4972
  * 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
4973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
4954
4974
  */
4955
4975
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4956
4976
  /**
4957
4977
  * 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
4978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
4959
4979
  */
4960
4980
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4961
4981
  /**
4962
4982
  * 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
4983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
4964
4984
  */
4965
4985
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4966
4986
  /**
4967
4987
  * 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
4988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
4969
4989
  */
4970
4990
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4971
4991
  /**
4972
4992
  * 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
4993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
4974
4994
  */
4975
4995
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4976
4996
  /**
4977
4997
  * 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
4998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
4979
4999
  */
4980
5000
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4981
5001
  /**
4982
5002
  * 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
5003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
4984
5004
  */
4985
5005
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4986
5006
  /**
4987
5007
  * Disallow empty files.
4988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
5008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
4989
5009
  */
4990
5010
  '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
5011
  /**
4997
5012
  * 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
5013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
4999
5014
  */
5000
5015
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5001
5016
  /**
5002
5017
  * 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
5018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5004
5019
  */
5005
5020
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5006
5021
  /**
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
5022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5023
+ * @deprecated
5009
5024
  */
5010
5025
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5026
+ /**
5027
+ * Disallow `instanceof` with built-in objects
5028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5029
+ */
5030
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5011
5031
  /**
5012
5032
  * 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
5033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5014
5034
  */
5015
5035
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5016
5036
  /**
5017
5037
  * 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
5038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5019
5039
  */
5020
5040
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5021
5041
  /**
5022
5042
  * 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
5043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5024
5044
  */
5025
5045
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5026
5046
  /**
5027
5047
  * 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
5048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5029
5049
  */
5030
5050
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5031
5051
  /**
5032
5052
  * 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
5053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5034
5054
  */
5035
5055
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5036
5056
  /**
5037
5057
  * 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
5058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5039
5059
  */
5040
5060
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5061
+ /**
5062
+ * Disallow named usage of default import and export.
5063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5064
+ */
5065
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5041
5066
  /**
5042
5067
  * Disallow negated conditions.
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
5068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5044
5069
  */
5045
5070
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5046
5071
  /**
5047
5072
  * 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
5073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5049
5074
  */
5050
5075
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5051
5076
  /**
5052
5077
  * Disallow nested ternary expressions.
5053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
5078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5054
5079
  */
5055
5080
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5056
5081
  /**
5057
5082
  * Disallow `new Array()`.
5058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
5083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5059
5084
  */
5060
5085
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5061
5086
  /**
5062
5087
  * 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
5088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5064
5089
  */
5065
5090
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5066
5091
  /**
5067
5092
  * 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
5093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5069
5094
  */
5070
5095
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5071
5096
  /**
5072
5097
  * 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
5098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5074
5099
  */
5075
5100
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5076
5101
  /**
5077
5102
  * Disallow `process.exit()`.
5078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
5103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5079
5104
  */
5080
5105
  '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
5106
  /**
5087
5107
  * 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
5108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5089
5109
  */
5090
5110
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5091
5111
  /**
5092
5112
  * 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
5113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5094
5114
  */
5095
5115
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5096
5116
  /**
5097
5117
  * Disallow `then` property.
5098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
5118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5099
5119
  */
5100
5120
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5101
5121
  /**
5102
5122
  * 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
5123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5104
5124
  */
5105
5125
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5106
5126
  /**
5107
5127
  * Disallow comparing `undefined` using `typeof`.
5108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
5128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5109
5129
  */
5110
5130
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5111
5131
  /**
5112
5132
  * Disallow awaiting non-promise values.
5113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
5133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5114
5134
  */
5115
5135
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5116
5136
  /**
5117
5137
  * 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
5138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5119
5139
  */
5120
5140
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5121
5141
  /**
5122
5142
  * Disallow unreadable array destructuring.
5123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
5143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5124
5144
  */
5125
5145
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5126
5146
  /**
5127
5147
  * Disallow unreadable IIFEs.
5128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
5148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5129
5149
  */
5130
5150
  '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
5151
  /**
5137
5152
  * Disallow unused object properties.
5138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
5153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5139
5154
  */
5140
5155
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5141
5156
  /**
5142
5157
  * 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
5158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
5144
5159
  */
5145
5160
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5146
5161
  /**
5147
5162
  * 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
5163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
5149
5164
  */
5150
5165
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5151
5166
  /**
5152
5167
  * 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
5168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
5154
5169
  */
5155
5170
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5156
5171
  /**
5157
5172
  * Disallow unnecessary spread.
5158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
5173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
5159
5174
  */
5160
5175
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5161
5176
  /**
5162
5177
  * 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
5178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
5164
5179
  */
5165
5180
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5166
5181
  /**
5167
5182
  * Disallow useless `undefined`.
5168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
5183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
5169
5184
  */
5170
5185
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5171
5186
  /**
5172
5187
  * 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
5188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
5174
5189
  */
5175
5190
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5176
5191
  /**
5177
5192
  * 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
5193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
5179
5194
  */
5180
5195
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5181
5196
  /**
5182
5197
  * 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
5198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
5184
5199
  */
5185
5200
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5186
5201
  /**
5187
5202
  * 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
5203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
5189
5204
  */
5190
5205
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5191
5206
  /**
5192
5207
  * 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
5208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
5194
5209
  */
5195
5210
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5196
5211
  /**
5197
5212
  * 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
5213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
5199
5214
  */
5200
5215
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5201
5216
  /**
5202
5217
  * 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
5218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
5204
5219
  */
5205
5220
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5206
5221
  /**
5207
5222
  * 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
5223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
5209
5224
  */
5210
5225
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5211
5226
  /**
5212
5227
  * 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
5228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
5214
5229
  */
5215
5230
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5216
5231
  /**
5217
5232
  * 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
5233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
5219
5234
  */
5220
5235
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5221
5236
  /**
5222
5237
  * 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
5238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
5224
5239
  */
5225
5240
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5226
5241
  /**
5227
5242
  * 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
5243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
5229
5244
  */
5230
5245
  '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
5246
  /**
5237
5247
  * 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
5248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
5239
5249
  */
5240
5250
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5241
5251
  /**
5242
5252
  * Prefer default parameters over reassignment.
5243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
5253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
5244
5254
  */
5245
5255
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5246
5256
  /**
5247
5257
  * 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
5258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
5249
5259
  */
5250
5260
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5251
5261
  /**
5252
5262
  * 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
5263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
5254
5264
  */
5255
5265
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5256
5266
  /**
5257
5267
  * 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
5268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
5259
5269
  */
5260
5270
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5261
5271
  /**
5262
5272
  * 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
5273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
5264
5274
  */
5265
5275
  '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
5276
  /**
5272
5277
  * Prefer `EventTarget` over `EventEmitter`.
5273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
5278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
5274
5279
  */
5275
5280
  '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
5281
  /**
5282
5282
  * 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
5283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
5284
5284
  */
5285
5285
  '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
5286
  /**
5292
5287
  * 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
5288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
5294
5289
  */
5295
5290
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5296
5291
  /**
5297
5292
  * 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
5293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
5299
5294
  */
5300
5295
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5301
5296
  /**
5302
5297
  * 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
5298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
5304
5299
  */
5305
5300
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5306
5301
  /**
5307
5302
  * 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
5303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
5309
5304
  */
5310
5305
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5311
5306
  /**
5312
5307
  * 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
5308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5314
5309
  */
5315
5310
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5316
5311
  /**
5317
5312
  * 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
5313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
5319
5314
  */
5320
5315
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5321
5316
  /**
5322
5317
  * 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
5318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
5324
5319
  */
5325
5320
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5326
5321
  /**
5327
5322
  * 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
5323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
5329
5324
  */
5330
5325
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5331
5326
  /**
5332
5327
  * 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
5328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
5334
5329
  */
5335
5330
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5336
5331
  /**
5337
5332
  * Prefer JavaScript modules (ESM) over CommonJS.
5338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
5333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
5339
5334
  */
5340
5335
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5341
5336
  /**
5342
5337
  * 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
5338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
5344
5339
  */
5345
5340
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5346
5341
  /**
5347
5342
  * 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
5343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
5349
5344
  */
5350
5345
  '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
5346
  /**
5357
5347
  * 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
5348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
5359
5349
  */
5360
5350
  '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
5351
  /**
5367
5352
  * 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
5353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
5369
5354
  */
5370
5355
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5371
5356
  /**
5372
5357
  * 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
5358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
5374
5359
  */
5375
5360
  '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
5361
  /**
5382
5362
  * 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
5363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
5384
5364
  */
5385
5365
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5386
5366
  /**
5387
5367
  * 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
5368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
5389
5369
  */
5390
5370
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5391
5371
  /**
5392
5372
  * 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
5373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
5394
5374
  */
5395
5375
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5396
5376
  /**
5397
5377
  * 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
5378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
5399
5379
  */
5400
5380
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5401
5381
  /**
5402
5382
  * 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
5383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
5404
5384
  */
5405
5385
  '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
5386
  /**
5412
5387
  * 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
5388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
5414
5389
  */
5415
5390
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5416
5391
  /**
5417
5392
  * 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
5393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
5419
5394
  */
5420
5395
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5421
5396
  /**
5422
5397
  * 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
5398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
5424
5399
  */
5425
5400
  '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
5401
  /**
5432
5402
  * 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
5403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
5434
5404
  */
5435
5405
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5436
5406
  /**
5437
5407
  * 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
5408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
5439
5409
  */
5440
5410
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5441
5411
  /**
5442
5412
  * 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
5413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
5444
5414
  */
5445
5415
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5446
5416
  /**
5447
5417
  * 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
5418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
5449
5419
  */
5450
5420
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5451
5421
  /**
5452
5422
  * 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
5423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
5454
5424
  */
5455
5425
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5456
5426
  /**
5457
5427
  * 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
5428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
5459
5429
  */
5460
5430
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5461
5431
  /**
5462
5432
  * Prefer `switch` over multiple `else-if`.
5463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
5433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
5464
5434
  */
5465
5435
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5466
5436
  /**
5467
5437
  * 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
5438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
5469
5439
  */
5470
5440
  '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
5441
  /**
5477
5442
  * 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
5443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
5479
5444
  */
5480
5445
  '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
5446
  /**
5487
5447
  * 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
5448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
5489
5449
  */
5490
5450
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5491
5451
  /**
5492
5452
  * Prevent abbreviations.
5493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
5453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
5494
5454
  */
5495
5455
  '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
5456
  /**
5502
5457
  * Enforce consistent relative URL style.
5503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
5458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
5504
5459
  */
5505
5460
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5506
5461
  /**
5507
5462
  * 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
5463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
5509
5464
  */
5510
5465
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5511
5466
  /**
5512
5467
  * 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
5468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5514
5469
  */
5515
5470
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5516
5471
  /**
5517
5472
  * 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
5473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
5519
5474
  */
5520
5475
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5521
5476
  /**
5522
5477
  * Enforce better string content.
5523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
5478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
5524
5479
  */
5525
5480
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5526
5481
  /**
5527
5482
  * 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
5483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
5529
5484
  */
5530
5485
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5531
5486
  /**
5532
5487
  * Fix whitespace-insensitive template indentation.
5533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
5488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
5534
5489
  */
5535
5490
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5536
5491
  /**
5537
5492
  * 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
5493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
5539
5494
  */
5540
5495
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5541
5496
  /**
5542
5497
  * 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
5498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
5544
5499
  */
5545
5500
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5546
5501
  /**
@@ -9404,6 +9359,14 @@ type PerfectionistSortArrayIncludes = {
9404
9359
 
9405
9360
  specialCharacters?: ("remove" | "trim" | "keep")
9406
9361
 
9362
+ fallbackSort?: {
9363
+
9364
+ order?: ("asc" | "desc")
9365
+
9366
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9367
+ [k: string]: unknown | undefined
9368
+ }
9369
+
9407
9370
  ignoreCase?: boolean
9408
9371
 
9409
9372
  alphabet?: string
@@ -9412,6 +9375,8 @@ type PerfectionistSortArrayIncludes = {
9412
9375
 
9413
9376
  order?: ("asc" | "desc")
9414
9377
 
9378
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9379
+
9415
9380
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
9416
9381
 
9417
9382
  customGroups?: ({
@@ -9427,7 +9392,13 @@ type PerfectionistSortArrayIncludes = {
9427
9392
 
9428
9393
  selector?: ("literal" | "spread")
9429
9394
 
9430
- elementNamePattern?: string
9395
+ elementNamePattern?: (({
9396
+ pattern?: string
9397
+ flags?: string
9398
+ } | string)[] | ({
9399
+ pattern?: string
9400
+ flags?: string
9401
+ } | string))
9431
9402
  }[]
9432
9403
  } | {
9433
9404
 
@@ -9441,18 +9412,46 @@ type PerfectionistSortArrayIncludes = {
9441
9412
 
9442
9413
  selector?: ("literal" | "spread")
9443
9414
 
9444
- elementNamePattern?: string
9415
+ elementNamePattern?: (({
9416
+ pattern?: string
9417
+ flags?: string
9418
+ } | string)[] | ({
9419
+ pattern?: string
9420
+ flags?: string
9421
+ } | string))
9445
9422
  })[]
9446
9423
  useConfigurationIf?: {
9447
- allNamesMatchPattern?: string
9424
+
9425
+ allNamesMatchPattern?: (({
9426
+ pattern?: string
9427
+ flags?: string
9428
+ } | string)[] | ({
9429
+ pattern?: string
9430
+ flags?: string
9431
+ } | string))
9448
9432
  }
9449
9433
 
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
9434
+ partitionByComment?: (boolean | (({
9435
+ pattern?: string
9436
+ flags?: string
9437
+ } | string)[] | ({
9438
+ pattern?: string
9439
+ flags?: string
9440
+ } | string)) | {
9441
+ block?: (boolean | (({
9442
+ pattern?: string
9443
+ flags?: string
9444
+ } | string)[] | ({
9445
+ pattern?: string
9446
+ flags?: string
9447
+ } | string)))
9448
+ line?: (boolean | (({
9449
+ pattern?: string
9450
+ flags?: string
9451
+ } | string)[] | ({
9452
+ pattern?: string
9453
+ flags?: string
9454
+ } | string)))
9456
9455
  })
9457
9456
 
9458
9457
  partitionByNewLine?: boolean
@@ -9462,7 +9461,6 @@ type PerfectionistSortArrayIncludes = {
9462
9461
  groups?: (string | string[] | {
9463
9462
 
9464
9463
  newlinesBetween?: ("ignore" | "always" | "never")
9465
- [k: string]: unknown | undefined
9466
9464
  })[]
9467
9465
  }[]
9468
9466
  // ----- perfectionist/sort-classes -----
@@ -9470,6 +9468,14 @@ type PerfectionistSortClasses = []|[{
9470
9468
 
9471
9469
  specialCharacters?: ("remove" | "trim" | "keep")
9472
9470
 
9471
+ fallbackSort?: {
9472
+
9473
+ order?: ("asc" | "desc")
9474
+
9475
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9476
+ [k: string]: unknown | undefined
9477
+ }
9478
+
9473
9479
  ignoreCase?: boolean
9474
9480
 
9475
9481
  alphabet?: string
@@ -9478,7 +9484,7 @@ type PerfectionistSortClasses = []|[{
9478
9484
 
9479
9485
  order?: ("asc" | "desc")
9480
9486
 
9481
- ignoreCallbackDependenciesPatterns?: string[]
9487
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9482
9488
 
9483
9489
  customGroups?: ({
9484
9490
 
@@ -9491,15 +9497,33 @@ type PerfectionistSortClasses = []|[{
9491
9497
  newlinesInside?: ("always" | "never")
9492
9498
  anyOf?: {
9493
9499
 
9494
- decoratorNamePattern?: string
9495
-
9496
9500
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
9497
9501
 
9498
9502
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
9499
9503
 
9500
- elementValuePattern?: string
9504
+ decoratorNamePattern?: (({
9505
+ pattern?: string
9506
+ flags?: string
9507
+ } | string)[] | ({
9508
+ pattern?: string
9509
+ flags?: string
9510
+ } | string))
9501
9511
 
9502
- elementNamePattern?: string
9512
+ elementValuePattern?: (({
9513
+ pattern?: string
9514
+ flags?: string
9515
+ } | string)[] | ({
9516
+ pattern?: string
9517
+ flags?: string
9518
+ } | string))
9519
+
9520
+ elementNamePattern?: (({
9521
+ pattern?: string
9522
+ flags?: string
9523
+ } | string)[] | ({
9524
+ pattern?: string
9525
+ flags?: string
9526
+ } | string))
9503
9527
  }[]
9504
9528
  } | {
9505
9529
 
@@ -9511,33 +9535,73 @@ type PerfectionistSortClasses = []|[{
9511
9535
 
9512
9536
  newlinesInside?: ("always" | "never")
9513
9537
 
9514
- decoratorNamePattern?: string
9515
-
9516
9538
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
9517
9539
 
9518
9540
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
9519
9541
 
9520
- elementValuePattern?: string
9521
-
9522
- elementNamePattern?: string
9542
+ decoratorNamePattern?: (({
9543
+ pattern?: string
9544
+ flags?: string
9545
+ } | string)[] | ({
9546
+ pattern?: string
9547
+ flags?: string
9548
+ } | string))
9549
+
9550
+ elementValuePattern?: (({
9551
+ pattern?: string
9552
+ flags?: string
9553
+ } | string)[] | ({
9554
+ pattern?: string
9555
+ flags?: string
9556
+ } | string))
9557
+
9558
+ elementNamePattern?: (({
9559
+ pattern?: string
9560
+ flags?: string
9561
+ } | string)[] | ({
9562
+ pattern?: string
9563
+ flags?: string
9564
+ } | string))
9523
9565
  })[]
9524
9566
 
9525
- partitionByComment?: (string[] | boolean | string | {
9526
- block?: (string[] | boolean | string)
9527
- line?: (string[] | boolean | string)
9528
- [k: string]: unknown | undefined
9567
+ ignoreCallbackDependenciesPatterns?: (({
9568
+ pattern?: string
9569
+ flags?: string
9570
+ } | string)[] | ({
9571
+ pattern?: string
9572
+ flags?: string
9573
+ } | string))
9574
+
9575
+ partitionByComment?: (boolean | (({
9576
+ pattern?: string
9577
+ flags?: string
9578
+ } | string)[] | ({
9579
+ pattern?: string
9580
+ flags?: string
9581
+ } | string)) | {
9582
+ block?: (boolean | (({
9583
+ pattern?: string
9584
+ flags?: string
9585
+ } | string)[] | ({
9586
+ pattern?: string
9587
+ flags?: string
9588
+ } | string)))
9589
+ line?: (boolean | (({
9590
+ pattern?: string
9591
+ flags?: string
9592
+ } | string)[] | ({
9593
+ pattern?: string
9594
+ flags?: string
9595
+ } | string)))
9529
9596
  })
9530
9597
 
9531
9598
  partitionByNewLine?: boolean
9532
9599
 
9533
9600
  newlinesBetween?: ("ignore" | "always" | "never")
9534
9601
 
9535
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9536
-
9537
9602
  groups?: (string | string[] | {
9538
9603
 
9539
9604
  newlinesBetween?: ("ignore" | "always" | "never")
9540
- [k: string]: unknown | undefined
9541
9605
  })[]
9542
9606
  }]
9543
9607
  // ----- perfectionist/sort-decorators -----
@@ -9545,6 +9609,14 @@ type PerfectionistSortDecorators = []|[{
9545
9609
 
9546
9610
  specialCharacters?: ("remove" | "trim" | "keep")
9547
9611
 
9612
+ fallbackSort?: {
9613
+
9614
+ order?: ("asc" | "desc")
9615
+
9616
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9617
+ [k: string]: unknown | undefined
9618
+ }
9619
+
9548
9620
  ignoreCase?: boolean
9549
9621
 
9550
9622
  alphabet?: string
@@ -9553,6 +9625,8 @@ type PerfectionistSortDecorators = []|[{
9553
9625
 
9554
9626
  order?: ("asc" | "desc")
9555
9627
 
9628
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9629
+
9556
9630
  sortOnParameters?: boolean
9557
9631
 
9558
9632
  sortOnProperties?: boolean
@@ -9563,22 +9637,36 @@ type PerfectionistSortDecorators = []|[{
9563
9637
 
9564
9638
  sortOnClasses?: boolean
9565
9639
 
9566
- partitionByComment?: (string[] | boolean | string | {
9567
- block?: (string[] | boolean | string)
9568
- line?: (string[] | boolean | string)
9569
- [k: string]: unknown | undefined
9640
+ partitionByComment?: (boolean | (({
9641
+ pattern?: string
9642
+ flags?: string
9643
+ } | string)[] | ({
9644
+ pattern?: string
9645
+ flags?: string
9646
+ } | string)) | {
9647
+ block?: (boolean | (({
9648
+ pattern?: string
9649
+ flags?: string
9650
+ } | string)[] | ({
9651
+ pattern?: string
9652
+ flags?: string
9653
+ } | string)))
9654
+ line?: (boolean | (({
9655
+ pattern?: string
9656
+ flags?: string
9657
+ } | string)[] | ({
9658
+ pattern?: string
9659
+ flags?: string
9660
+ } | string)))
9570
9661
  })
9571
9662
 
9572
9663
  customGroups?: {
9573
9664
  [k: string]: (string | string[]) | undefined
9574
9665
  }
9575
9666
 
9576
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9577
-
9578
9667
  groups?: (string | string[] | {
9579
9668
 
9580
9669
  newlinesBetween?: ("ignore" | "always" | "never")
9581
- [k: string]: unknown | undefined
9582
9670
  })[]
9583
9671
  }]
9584
9672
  // ----- perfectionist/sort-enums -----
@@ -9586,6 +9674,14 @@ type PerfectionistSortEnums = []|[{
9586
9674
 
9587
9675
  specialCharacters?: ("remove" | "trim" | "keep")
9588
9676
 
9677
+ fallbackSort?: {
9678
+
9679
+ order?: ("asc" | "desc")
9680
+
9681
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9682
+ [k: string]: unknown | undefined
9683
+ }
9684
+
9589
9685
  ignoreCase?: boolean
9590
9686
 
9591
9687
  alphabet?: string
@@ -9594,6 +9690,8 @@ type PerfectionistSortEnums = []|[{
9594
9690
 
9595
9691
  order?: ("asc" | "desc")
9596
9692
 
9693
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9694
+
9597
9695
  forceNumericSort?: boolean
9598
9696
  customGroups?: ({
9599
9697
  [k: string]: (string | string[]) | undefined
@@ -9608,9 +9706,21 @@ type PerfectionistSortEnums = []|[{
9608
9706
  newlinesInside?: ("always" | "never")
9609
9707
  anyOf?: {
9610
9708
 
9611
- elementValuePattern?: string
9709
+ elementValuePattern?: (({
9710
+ pattern?: string
9711
+ flags?: string
9712
+ } | string)[] | ({
9713
+ pattern?: string
9714
+ flags?: string
9715
+ } | string))
9612
9716
 
9613
- elementNamePattern?: string
9717
+ elementNamePattern?: (({
9718
+ pattern?: string
9719
+ flags?: string
9720
+ } | string)[] | ({
9721
+ pattern?: string
9722
+ flags?: string
9723
+ } | string))
9614
9724
  }[]
9615
9725
  } | {
9616
9726
 
@@ -9622,29 +9732,55 @@ type PerfectionistSortEnums = []|[{
9622
9732
 
9623
9733
  newlinesInside?: ("always" | "never")
9624
9734
 
9625
- elementValuePattern?: string
9626
-
9627
- elementNamePattern?: string
9735
+ elementValuePattern?: (({
9736
+ pattern?: string
9737
+ flags?: string
9738
+ } | string)[] | ({
9739
+ pattern?: string
9740
+ flags?: string
9741
+ } | string))
9742
+
9743
+ elementNamePattern?: (({
9744
+ pattern?: string
9745
+ flags?: string
9746
+ } | string)[] | ({
9747
+ pattern?: string
9748
+ flags?: string
9749
+ } | string))
9628
9750
  })[])
9629
9751
 
9630
9752
  sortByValue?: boolean
9631
9753
 
9632
- partitionByComment?: (string[] | boolean | string | {
9633
- block?: (string[] | boolean | string)
9634
- line?: (string[] | boolean | string)
9635
- [k: string]: unknown | undefined
9754
+ partitionByComment?: (boolean | (({
9755
+ pattern?: string
9756
+ flags?: string
9757
+ } | string)[] | ({
9758
+ pattern?: string
9759
+ flags?: string
9760
+ } | string)) | {
9761
+ block?: (boolean | (({
9762
+ pattern?: string
9763
+ flags?: string
9764
+ } | string)[] | ({
9765
+ pattern?: string
9766
+ flags?: string
9767
+ } | string)))
9768
+ line?: (boolean | (({
9769
+ pattern?: string
9770
+ flags?: string
9771
+ } | string)[] | ({
9772
+ pattern?: string
9773
+ flags?: string
9774
+ } | string)))
9636
9775
  })
9637
9776
 
9638
9777
  partitionByNewLine?: boolean
9639
9778
 
9640
9779
  newlinesBetween?: ("ignore" | "always" | "never")
9641
9780
 
9642
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9643
-
9644
9781
  groups?: (string | string[] | {
9645
9782
 
9646
9783
  newlinesBetween?: ("ignore" | "always" | "never")
9647
- [k: string]: unknown | undefined
9648
9784
  })[]
9649
9785
  }]
9650
9786
  // ----- perfectionist/sort-exports -----
@@ -9652,6 +9788,14 @@ type PerfectionistSortExports = []|[{
9652
9788
 
9653
9789
  specialCharacters?: ("remove" | "trim" | "keep")
9654
9790
 
9791
+ fallbackSort?: {
9792
+
9793
+ order?: ("asc" | "desc")
9794
+
9795
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9796
+ [k: string]: unknown | undefined
9797
+ }
9798
+
9655
9799
  ignoreCase?: boolean
9656
9800
 
9657
9801
  alphabet?: string
@@ -9660,23 +9804,48 @@ type PerfectionistSortExports = []|[{
9660
9804
 
9661
9805
  order?: ("asc" | "desc")
9662
9806
 
9807
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9808
+
9663
9809
  groupKind?: ("mixed" | "values-first" | "types-first")
9664
9810
 
9665
- partitionByComment?: (string[] | boolean | string | {
9666
- block?: (string[] | boolean | string)
9667
- line?: (string[] | boolean | string)
9668
- [k: string]: unknown | undefined
9811
+ partitionByComment?: (boolean | (({
9812
+ pattern?: string
9813
+ flags?: string
9814
+ } | string)[] | ({
9815
+ pattern?: string
9816
+ flags?: string
9817
+ } | string)) | {
9818
+ block?: (boolean | (({
9819
+ pattern?: string
9820
+ flags?: string
9821
+ } | string)[] | ({
9822
+ pattern?: string
9823
+ flags?: string
9824
+ } | string)))
9825
+ line?: (boolean | (({
9826
+ pattern?: string
9827
+ flags?: string
9828
+ } | string)[] | ({
9829
+ pattern?: string
9830
+ flags?: string
9831
+ } | string)))
9669
9832
  })
9670
9833
 
9671
9834
  partitionByNewLine?: boolean
9672
-
9673
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9674
9835
  }]
9675
9836
  // ----- perfectionist/sort-heritage-clauses -----
9676
9837
  type PerfectionistSortHeritageClauses = []|[{
9677
9838
 
9678
9839
  specialCharacters?: ("remove" | "trim" | "keep")
9679
9840
 
9841
+ fallbackSort?: {
9842
+
9843
+ order?: ("asc" | "desc")
9844
+
9845
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9846
+ [k: string]: unknown | undefined
9847
+ }
9848
+
9680
9849
  ignoreCase?: boolean
9681
9850
 
9682
9851
  alphabet?: string
@@ -9685,16 +9854,15 @@ type PerfectionistSortHeritageClauses = []|[{
9685
9854
 
9686
9855
  order?: ("asc" | "desc")
9687
9856
 
9857
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9858
+
9688
9859
  customGroups?: {
9689
9860
  [k: string]: (string | string[]) | undefined
9690
9861
  }
9691
9862
 
9692
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9693
-
9694
9863
  groups?: (string | string[] | {
9695
9864
 
9696
9865
  newlinesBetween?: ("ignore" | "always" | "never")
9697
- [k: string]: unknown | undefined
9698
9866
  })[]
9699
9867
  }]
9700
9868
  // ----- perfectionist/sort-imports -----
@@ -9703,6 +9871,14 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9703
9871
 
9704
9872
  specialCharacters?: ("remove" | "trim" | "keep")
9705
9873
 
9874
+ fallbackSort?: {
9875
+
9876
+ order?: ("asc" | "desc")
9877
+
9878
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9879
+ [k: string]: unknown | undefined
9880
+ }
9881
+
9706
9882
  ignoreCase?: boolean
9707
9883
 
9708
9884
  alphabet?: string
@@ -9711,6 +9887,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9711
9887
 
9712
9888
  order?: ("asc" | "desc")
9713
9889
 
9890
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9891
+
9714
9892
  customGroups?: {
9715
9893
 
9716
9894
  value?: {
@@ -9722,8 +9900,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9722
9900
  }
9723
9901
  }
9724
9902
 
9725
- internalPattern?: string[]
9726
-
9727
9903
  maxLineLength?: number
9728
9904
 
9729
9905
  sortSideEffects?: boolean
@@ -9732,22 +9908,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
9732
9908
 
9733
9909
  tsconfigRootDir?: string
9734
9910
 
9735
- partitionByComment?: (string[] | boolean | string | {
9736
- block?: (string[] | boolean | string)
9737
- line?: (string[] | boolean | string)
9738
- [k: string]: unknown | undefined
9911
+ partitionByComment?: (boolean | (({
9912
+ pattern?: string
9913
+ flags?: string
9914
+ } | string)[] | ({
9915
+ pattern?: string
9916
+ flags?: string
9917
+ } | string)) | {
9918
+ block?: (boolean | (({
9919
+ pattern?: string
9920
+ flags?: string
9921
+ } | string)[] | ({
9922
+ pattern?: string
9923
+ flags?: string
9924
+ } | string)))
9925
+ line?: (boolean | (({
9926
+ pattern?: string
9927
+ flags?: string
9928
+ } | string)[] | ({
9929
+ pattern?: string
9930
+ flags?: string
9931
+ } | string)))
9739
9932
  })
9740
9933
 
9741
9934
  partitionByNewLine?: boolean
9742
9935
 
9743
9936
  newlinesBetween?: ("ignore" | "always" | "never")
9744
9937
 
9745
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9938
+ internalPattern?: (({
9939
+ pattern?: string
9940
+ flags?: string
9941
+ } | string)[] | ({
9942
+ pattern?: string
9943
+ flags?: string
9944
+ } | string))
9746
9945
 
9747
9946
  groups?: (string | string[] | {
9748
9947
 
9749
9948
  newlinesBetween?: ("ignore" | "always" | "never")
9750
- [k: string]: unknown | undefined
9751
9949
  })[]
9752
9950
  })
9753
9951
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
@@ -9762,6 +9960,14 @@ type PerfectionistSortInterfaces = {
9762
9960
 
9763
9961
  specialCharacters?: ("remove" | "trim" | "keep")
9764
9962
 
9963
+ fallbackSort?: {
9964
+
9965
+ order?: ("asc" | "desc")
9966
+
9967
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9968
+ [k: string]: unknown | undefined
9969
+ }
9970
+
9765
9971
  ignoreCase?: boolean
9766
9972
 
9767
9973
  alphabet?: string
@@ -9770,11 +9976,7 @@ type PerfectionistSortInterfaces = {
9770
9976
 
9771
9977
  order?: ("asc" | "desc")
9772
9978
 
9773
- ignorePattern?: string[]
9774
- useConfigurationIf?: {
9775
- allNamesMatchPattern?: string
9776
- declarationMatchesPattern?: string
9777
- }
9979
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9778
9980
  customGroups?: ({
9779
9981
  [k: string]: (string | string[]) | undefined
9780
9982
  } | ({
@@ -9792,7 +9994,13 @@ type PerfectionistSortInterfaces = {
9792
9994
 
9793
9995
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
9794
9996
 
9795
- elementNamePattern?: string
9997
+ elementNamePattern?: (({
9998
+ pattern?: string
9999
+ flags?: string
10000
+ } | string)[] | ({
10001
+ pattern?: string
10002
+ flags?: string
10003
+ } | string))
9796
10004
  }[]
9797
10005
  } | {
9798
10006
 
@@ -9808,27 +10016,73 @@ type PerfectionistSortInterfaces = {
9808
10016
 
9809
10017
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
9810
10018
 
9811
- elementNamePattern?: string
10019
+ elementNamePattern?: (({
10020
+ pattern?: string
10021
+ flags?: string
10022
+ } | string)[] | ({
10023
+ pattern?: string
10024
+ flags?: string
10025
+ } | string))
9812
10026
  })[])
10027
+ useConfigurationIf?: {
10028
+
10029
+ allNamesMatchPattern?: (({
10030
+ pattern?: string
10031
+ flags?: string
10032
+ } | string)[] | ({
10033
+ pattern?: string
10034
+ flags?: string
10035
+ } | string))
10036
+
10037
+ declarationMatchesPattern?: (({
10038
+ pattern?: string
10039
+ flags?: string
10040
+ } | string)[] | ({
10041
+ pattern?: string
10042
+ flags?: string
10043
+ } | string))
10044
+ }
9813
10045
 
9814
10046
  groupKind?: ("mixed" | "required-first" | "optional-first")
9815
10047
 
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
10048
+ partitionByComment?: (boolean | (({
10049
+ pattern?: string
10050
+ flags?: string
10051
+ } | string)[] | ({
10052
+ pattern?: string
10053
+ flags?: string
10054
+ } | string)) | {
10055
+ block?: (boolean | (({
10056
+ pattern?: string
10057
+ flags?: string
10058
+ } | string)[] | ({
10059
+ pattern?: string
10060
+ flags?: string
10061
+ } | string)))
10062
+ line?: (boolean | (({
10063
+ pattern?: string
10064
+ flags?: string
10065
+ } | string)[] | ({
10066
+ pattern?: string
10067
+ flags?: string
10068
+ } | string)))
9822
10069
  })
9823
10070
 
9824
10071
  partitionByNewLine?: boolean
9825
10072
 
9826
10073
  newlinesBetween?: ("ignore" | "always" | "never")
9827
10074
 
10075
+ ignorePattern?: (({
10076
+ pattern?: string
10077
+ flags?: string
10078
+ } | string)[] | ({
10079
+ pattern?: string
10080
+ flags?: string
10081
+ } | string))
10082
+
9828
10083
  groups?: (string | string[] | {
9829
10084
 
9830
10085
  newlinesBetween?: ("ignore" | "always" | "never")
9831
- [k: string]: unknown | undefined
9832
10086
  })[]
9833
10087
  }[]
9834
10088
  // ----- perfectionist/sort-intersection-types -----
@@ -9836,6 +10090,14 @@ type PerfectionistSortIntersectionTypes = []|[{
9836
10090
 
9837
10091
  specialCharacters?: ("remove" | "trim" | "keep")
9838
10092
 
10093
+ fallbackSort?: {
10094
+
10095
+ order?: ("asc" | "desc")
10096
+
10097
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10098
+ [k: string]: unknown | undefined
10099
+ }
10100
+
9839
10101
  ignoreCase?: boolean
9840
10102
 
9841
10103
  alphabet?: string
@@ -9844,29 +10106,53 @@ type PerfectionistSortIntersectionTypes = []|[{
9844
10106
 
9845
10107
  order?: ("asc" | "desc")
9846
10108
 
9847
- partitionByComment?: (string[] | boolean | string | {
9848
- block?: (string[] | boolean | string)
9849
- line?: (string[] | boolean | string)
9850
- [k: string]: unknown | undefined
10109
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10110
+
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)))
9851
10132
  })
9852
10133
 
9853
10134
  partitionByNewLine?: boolean
9854
10135
 
9855
10136
  newlinesBetween?: ("ignore" | "always" | "never")
9856
10137
 
9857
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9858
-
9859
10138
  groups?: (string | string[] | {
9860
10139
 
9861
10140
  newlinesBetween?: ("ignore" | "always" | "never")
9862
- [k: string]: unknown | undefined
9863
10141
  })[]
9864
10142
  }]
9865
10143
  // ----- perfectionist/sort-jsx-props -----
9866
- type PerfectionistSortJsxProps = []|[{
10144
+ type PerfectionistSortJsxProps = {
9867
10145
 
9868
10146
  specialCharacters?: ("remove" | "trim" | "keep")
9869
10147
 
10148
+ fallbackSort?: {
10149
+
10150
+ order?: ("asc" | "desc")
10151
+
10152
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10153
+ [k: string]: unknown | undefined
10154
+ }
10155
+
9870
10156
  ignoreCase?: boolean
9871
10157
 
9872
10158
  alphabet?: string
@@ -9875,7 +10161,25 @@ type PerfectionistSortJsxProps = []|[{
9875
10161
 
9876
10162
  order?: ("asc" | "desc")
9877
10163
 
9878
- ignorePattern?: string[]
10164
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10165
+ useConfigurationIf?: {
10166
+
10167
+ allNamesMatchPattern?: (({
10168
+ pattern?: string
10169
+ flags?: string
10170
+ } | string)[] | ({
10171
+ pattern?: string
10172
+ flags?: string
10173
+ } | string))
10174
+
10175
+ tagMatchesPattern?: (({
10176
+ pattern?: string
10177
+ flags?: string
10178
+ } | string)[] | ({
10179
+ pattern?: string
10180
+ flags?: string
10181
+ } | string))
10182
+ }
9879
10183
 
9880
10184
  partitionByNewLine?: boolean
9881
10185
 
@@ -9885,19 +10189,32 @@ type PerfectionistSortJsxProps = []|[{
9885
10189
  [k: string]: (string | string[]) | undefined
9886
10190
  }
9887
10191
 
9888
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10192
+ ignorePattern?: (({
10193
+ pattern?: string
10194
+ flags?: string
10195
+ } | string)[] | ({
10196
+ pattern?: string
10197
+ flags?: string
10198
+ } | string))
9889
10199
 
9890
10200
  groups?: (string | string[] | {
9891
10201
 
9892
10202
  newlinesBetween?: ("ignore" | "always" | "never")
9893
- [k: string]: unknown | undefined
9894
10203
  })[]
9895
- }]
10204
+ }[]
9896
10205
  // ----- perfectionist/sort-maps -----
9897
10206
  type PerfectionistSortMaps = {
9898
10207
 
9899
10208
  specialCharacters?: ("remove" | "trim" | "keep")
9900
10209
 
10210
+ fallbackSort?: {
10211
+
10212
+ order?: ("asc" | "desc")
10213
+
10214
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10215
+ [k: string]: unknown | undefined
10216
+ }
10217
+
9901
10218
  ignoreCase?: boolean
9902
10219
 
9903
10220
  alphabet?: string
@@ -9906,6 +10223,8 @@ type PerfectionistSortMaps = {
9906
10223
 
9907
10224
  order?: ("asc" | "desc")
9908
10225
 
10226
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10227
+
9909
10228
  customGroups?: ({
9910
10229
 
9911
10230
  groupName?: string
@@ -9917,7 +10236,13 @@ type PerfectionistSortMaps = {
9917
10236
  newlinesInside?: ("always" | "never")
9918
10237
  anyOf?: {
9919
10238
 
9920
- elementNamePattern?: string
10239
+ elementNamePattern?: (({
10240
+ pattern?: string
10241
+ flags?: string
10242
+ } | string)[] | ({
10243
+ pattern?: string
10244
+ flags?: string
10245
+ } | string))
9921
10246
  }[]
9922
10247
  } | {
9923
10248
 
@@ -9929,28 +10254,55 @@ type PerfectionistSortMaps = {
9929
10254
 
9930
10255
  newlinesInside?: ("always" | "never")
9931
10256
 
9932
- elementNamePattern?: string
10257
+ elementNamePattern?: (({
10258
+ pattern?: string
10259
+ flags?: string
10260
+ } | string)[] | ({
10261
+ pattern?: string
10262
+ flags?: string
10263
+ } | string))
9933
10264
  })[]
9934
10265
  useConfigurationIf?: {
9935
- allNamesMatchPattern?: string
10266
+
10267
+ allNamesMatchPattern?: (({
10268
+ pattern?: string
10269
+ flags?: string
10270
+ } | string)[] | ({
10271
+ pattern?: string
10272
+ flags?: string
10273
+ } | string))
9936
10274
  }
9937
10275
 
9938
- partitionByComment?: (string[] | boolean | string | {
9939
- block?: (string[] | boolean | string)
9940
- line?: (string[] | boolean | string)
9941
- [k: string]: unknown | undefined
10276
+ partitionByComment?: (boolean | (({
10277
+ pattern?: string
10278
+ flags?: string
10279
+ } | string)[] | ({
10280
+ pattern?: string
10281
+ flags?: string
10282
+ } | string)) | {
10283
+ block?: (boolean | (({
10284
+ pattern?: string
10285
+ flags?: string
10286
+ } | string)[] | ({
10287
+ pattern?: string
10288
+ flags?: string
10289
+ } | string)))
10290
+ line?: (boolean | (({
10291
+ pattern?: string
10292
+ flags?: string
10293
+ } | string)[] | ({
10294
+ pattern?: string
10295
+ flags?: string
10296
+ } | string)))
9942
10297
  })
9943
10298
 
9944
10299
  partitionByNewLine?: boolean
9945
10300
 
9946
10301
  newlinesBetween?: ("ignore" | "always" | "never")
9947
10302
 
9948
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
9949
-
9950
10303
  groups?: (string | string[] | {
9951
10304
 
9952
10305
  newlinesBetween?: ("ignore" | "always" | "never")
9953
- [k: string]: unknown | undefined
9954
10306
  })[]
9955
10307
  }[]
9956
10308
  // ----- perfectionist/sort-modules -----
@@ -9958,6 +10310,14 @@ type PerfectionistSortModules = []|[{
9958
10310
 
9959
10311
  specialCharacters?: ("remove" | "trim" | "keep")
9960
10312
 
10313
+ fallbackSort?: {
10314
+
10315
+ order?: ("asc" | "desc")
10316
+
10317
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10318
+ [k: string]: unknown | undefined
10319
+ }
10320
+
9961
10321
  ignoreCase?: boolean
9962
10322
 
9963
10323
  alphabet?: string
@@ -9966,6 +10326,8 @@ type PerfectionistSortModules = []|[{
9966
10326
 
9967
10327
  order?: ("asc" | "desc")
9968
10328
 
10329
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10330
+
9969
10331
  customGroups?: ({
9970
10332
 
9971
10333
  groupName?: string
@@ -9977,13 +10339,25 @@ type PerfectionistSortModules = []|[{
9977
10339
  newlinesInside?: ("always" | "never")
9978
10340
  anyOf?: {
9979
10341
 
9980
- decoratorNamePattern?: string
9981
-
9982
10342
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
9983
10343
 
9984
10344
  selector?: ("enum" | "function" | "interface" | "type" | "class")
9985
10345
 
9986
- elementNamePattern?: string
10346
+ decoratorNamePattern?: (({
10347
+ pattern?: string
10348
+ flags?: string
10349
+ } | string)[] | ({
10350
+ pattern?: string
10351
+ flags?: string
10352
+ } | string))
10353
+
10354
+ elementNamePattern?: (({
10355
+ pattern?: string
10356
+ flags?: string
10357
+ } | string)[] | ({
10358
+ pattern?: string
10359
+ flags?: string
10360
+ } | string))
9987
10361
  }[]
9988
10362
  } | {
9989
10363
 
@@ -9995,31 +10369,57 @@ type PerfectionistSortModules = []|[{
9995
10369
 
9996
10370
  newlinesInside?: ("always" | "never")
9997
10371
 
9998
- decoratorNamePattern?: string
9999
-
10000
10372
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
10001
10373
 
10002
10374
  selector?: ("enum" | "function" | "interface" | "type" | "class")
10003
10375
 
10004
- elementNamePattern?: string
10376
+ decoratorNamePattern?: (({
10377
+ pattern?: string
10378
+ flags?: string
10379
+ } | string)[] | ({
10380
+ pattern?: string
10381
+ flags?: string
10382
+ } | string))
10383
+
10384
+ elementNamePattern?: (({
10385
+ pattern?: string
10386
+ flags?: string
10387
+ } | string)[] | ({
10388
+ pattern?: string
10389
+ flags?: string
10390
+ } | string))
10005
10391
  })[]
10006
10392
 
10007
- partitionByComment?: (string[] | boolean | string | {
10008
- block?: (string[] | boolean | string)
10009
- line?: (string[] | boolean | string)
10010
- [k: string]: unknown | undefined
10393
+ partitionByComment?: (boolean | (({
10394
+ pattern?: string
10395
+ flags?: string
10396
+ } | string)[] | ({
10397
+ pattern?: string
10398
+ flags?: string
10399
+ } | string)) | {
10400
+ block?: (boolean | (({
10401
+ pattern?: string
10402
+ flags?: string
10403
+ } | string)[] | ({
10404
+ pattern?: string
10405
+ flags?: string
10406
+ } | string)))
10407
+ line?: (boolean | (({
10408
+ pattern?: string
10409
+ flags?: string
10410
+ } | string)[] | ({
10411
+ pattern?: string
10412
+ flags?: string
10413
+ } | string)))
10011
10414
  })
10012
10415
 
10013
10416
  partitionByNewLine?: boolean
10014
10417
 
10015
10418
  newlinesBetween?: ("ignore" | "always" | "never")
10016
10419
 
10017
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10018
-
10019
10420
  groups?: (string | string[] | {
10020
10421
 
10021
10422
  newlinesBetween?: ("ignore" | "always" | "never")
10022
- [k: string]: unknown | undefined
10023
10423
  })[]
10024
10424
  }]
10025
10425
  // ----- perfectionist/sort-named-exports -----
@@ -10027,6 +10427,14 @@ type PerfectionistSortNamedExports = []|[{
10027
10427
 
10028
10428
  specialCharacters?: ("remove" | "trim" | "keep")
10029
10429
 
10430
+ fallbackSort?: {
10431
+
10432
+ order?: ("asc" | "desc")
10433
+
10434
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10435
+ [k: string]: unknown | undefined
10436
+ }
10437
+
10030
10438
  ignoreCase?: boolean
10031
10439
 
10032
10440
  alphabet?: string
@@ -10035,25 +10443,50 @@ type PerfectionistSortNamedExports = []|[{
10035
10443
 
10036
10444
  order?: ("asc" | "desc")
10037
10445
 
10446
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10447
+
10038
10448
  groupKind?: ("mixed" | "values-first" | "types-first")
10039
10449
 
10040
10450
  ignoreAlias?: boolean
10041
10451
 
10042
- partitionByComment?: (string[] | boolean | string | {
10043
- block?: (string[] | boolean | string)
10044
- line?: (string[] | boolean | string)
10045
- [k: string]: unknown | undefined
10452
+ partitionByComment?: (boolean | (({
10453
+ pattern?: string
10454
+ flags?: string
10455
+ } | string)[] | ({
10456
+ pattern?: string
10457
+ flags?: string
10458
+ } | string)) | {
10459
+ block?: (boolean | (({
10460
+ pattern?: string
10461
+ flags?: string
10462
+ } | string)[] | ({
10463
+ pattern?: string
10464
+ flags?: string
10465
+ } | string)))
10466
+ line?: (boolean | (({
10467
+ pattern?: string
10468
+ flags?: string
10469
+ } | string)[] | ({
10470
+ pattern?: string
10471
+ flags?: string
10472
+ } | string)))
10046
10473
  })
10047
10474
 
10048
10475
  partitionByNewLine?: boolean
10049
-
10050
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10051
10476
  }]
10052
10477
  // ----- perfectionist/sort-named-imports -----
10053
10478
  type PerfectionistSortNamedImports = []|[{
10054
10479
 
10055
10480
  specialCharacters?: ("remove" | "trim" | "keep")
10056
10481
 
10482
+ fallbackSort?: {
10483
+
10484
+ order?: ("asc" | "desc")
10485
+
10486
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10487
+ [k: string]: unknown | undefined
10488
+ }
10489
+
10057
10490
  ignoreCase?: boolean
10058
10491
 
10059
10492
  alphabet?: string
@@ -10062,25 +10495,50 @@ type PerfectionistSortNamedImports = []|[{
10062
10495
 
10063
10496
  order?: ("asc" | "desc")
10064
10497
 
10498
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10499
+
10065
10500
  groupKind?: ("mixed" | "values-first" | "types-first")
10066
10501
 
10067
10502
  ignoreAlias?: boolean
10068
10503
 
10069
- partitionByComment?: (string[] | boolean | string | {
10070
- block?: (string[] | boolean | string)
10071
- line?: (string[] | boolean | string)
10072
- [k: string]: unknown | undefined
10504
+ partitionByComment?: (boolean | (({
10505
+ pattern?: string
10506
+ flags?: string
10507
+ } | string)[] | ({
10508
+ pattern?: string
10509
+ flags?: string
10510
+ } | string)) | {
10511
+ block?: (boolean | (({
10512
+ pattern?: string
10513
+ flags?: string
10514
+ } | string)[] | ({
10515
+ pattern?: string
10516
+ flags?: string
10517
+ } | string)))
10518
+ line?: (boolean | (({
10519
+ pattern?: string
10520
+ flags?: string
10521
+ } | string)[] | ({
10522
+ pattern?: string
10523
+ flags?: string
10524
+ } | string)))
10073
10525
  })
10074
10526
 
10075
10527
  partitionByNewLine?: boolean
10076
-
10077
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10078
10528
  }]
10079
10529
  // ----- perfectionist/sort-object-types -----
10080
10530
  type PerfectionistSortObjectTypes = {
10081
10531
 
10082
10532
  specialCharacters?: ("remove" | "trim" | "keep")
10083
10533
 
10534
+ fallbackSort?: {
10535
+
10536
+ order?: ("asc" | "desc")
10537
+
10538
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10539
+ [k: string]: unknown | undefined
10540
+ }
10541
+
10084
10542
  ignoreCase?: boolean
10085
10543
 
10086
10544
  alphabet?: string
@@ -10089,11 +10547,7 @@ type PerfectionistSortObjectTypes = {
10089
10547
 
10090
10548
  order?: ("asc" | "desc")
10091
10549
 
10092
- ignorePattern?: string[]
10093
- useConfigurationIf?: {
10094
- allNamesMatchPattern?: string
10095
- declarationMatchesPattern?: string
10096
- }
10550
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10097
10551
  customGroups?: ({
10098
10552
  [k: string]: (string | string[]) | undefined
10099
10553
  } | ({
@@ -10111,7 +10565,13 @@ type PerfectionistSortObjectTypes = {
10111
10565
 
10112
10566
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10113
10567
 
10114
- elementNamePattern?: string
10568
+ elementNamePattern?: (({
10569
+ pattern?: string
10570
+ flags?: string
10571
+ } | string)[] | ({
10572
+ pattern?: string
10573
+ flags?: string
10574
+ } | string))
10115
10575
  }[]
10116
10576
  } | {
10117
10577
 
@@ -10127,27 +10587,73 @@ type PerfectionistSortObjectTypes = {
10127
10587
 
10128
10588
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10129
10589
 
10130
- elementNamePattern?: string
10590
+ elementNamePattern?: (({
10591
+ pattern?: string
10592
+ flags?: string
10593
+ } | string)[] | ({
10594
+ pattern?: string
10595
+ flags?: string
10596
+ } | string))
10131
10597
  })[])
10598
+ useConfigurationIf?: {
10599
+
10600
+ allNamesMatchPattern?: (({
10601
+ pattern?: string
10602
+ flags?: string
10603
+ } | string)[] | ({
10604
+ pattern?: string
10605
+ flags?: string
10606
+ } | string))
10607
+
10608
+ declarationMatchesPattern?: (({
10609
+ pattern?: string
10610
+ flags?: string
10611
+ } | string)[] | ({
10612
+ pattern?: string
10613
+ flags?: string
10614
+ } | string))
10615
+ }
10132
10616
 
10133
10617
  groupKind?: ("mixed" | "required-first" | "optional-first")
10134
10618
 
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
10619
+ partitionByComment?: (boolean | (({
10620
+ pattern?: string
10621
+ flags?: string
10622
+ } | string)[] | ({
10623
+ pattern?: string
10624
+ flags?: string
10625
+ } | string)) | {
10626
+ block?: (boolean | (({
10627
+ pattern?: string
10628
+ flags?: string
10629
+ } | string)[] | ({
10630
+ pattern?: string
10631
+ flags?: string
10632
+ } | string)))
10633
+ line?: (boolean | (({
10634
+ pattern?: string
10635
+ flags?: string
10636
+ } | string)[] | ({
10637
+ pattern?: string
10638
+ flags?: string
10639
+ } | string)))
10141
10640
  })
10142
10641
 
10143
10642
  partitionByNewLine?: boolean
10144
10643
 
10145
10644
  newlinesBetween?: ("ignore" | "always" | "never")
10146
10645
 
10646
+ ignorePattern?: (({
10647
+ pattern?: string
10648
+ flags?: string
10649
+ } | string)[] | ({
10650
+ pattern?: string
10651
+ flags?: string
10652
+ } | string))
10653
+
10147
10654
  groups?: (string | string[] | {
10148
10655
 
10149
10656
  newlinesBetween?: ("ignore" | "always" | "never")
10150
- [k: string]: unknown | undefined
10151
10657
  })[]
10152
10658
  }[]
10153
10659
  // ----- perfectionist/sort-objects -----
@@ -10155,6 +10661,14 @@ type PerfectionistSortObjects = {
10155
10661
 
10156
10662
  specialCharacters?: ("remove" | "trim" | "keep")
10157
10663
 
10664
+ fallbackSort?: {
10665
+
10666
+ order?: ("asc" | "desc")
10667
+
10668
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10669
+ [k: string]: unknown | undefined
10670
+ }
10671
+
10158
10672
  ignoreCase?: boolean
10159
10673
 
10160
10674
  alphabet?: string
@@ -10163,16 +10677,12 @@ type PerfectionistSortObjects = {
10163
10677
 
10164
10678
  order?: ("asc" | "desc")
10165
10679
 
10680
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10681
+
10166
10682
  destructuredObjects?: (boolean | {
10167
10683
 
10168
10684
  groups?: boolean
10169
10685
  })
10170
-
10171
- ignorePattern?: string[]
10172
- useConfigurationIf?: {
10173
- allNamesMatchPattern?: string
10174
- callingFunctionNamePattern?: string
10175
- }
10176
10686
  customGroups?: ({
10177
10687
  [k: string]: (string | string[]) | undefined
10178
10688
  } | ({
@@ -10190,9 +10700,21 @@ type PerfectionistSortObjects = {
10190
10700
 
10191
10701
  selector?: ("member" | "method" | "multiline" | "property")
10192
10702
 
10193
- elementValuePattern?: string
10703
+ elementValuePattern?: (({
10704
+ pattern?: string
10705
+ flags?: string
10706
+ } | string)[] | ({
10707
+ pattern?: string
10708
+ flags?: string
10709
+ } | string))
10194
10710
 
10195
- elementNamePattern?: string
10711
+ elementNamePattern?: (({
10712
+ pattern?: string
10713
+ flags?: string
10714
+ } | string)[] | ({
10715
+ pattern?: string
10716
+ flags?: string
10717
+ } | string))
10196
10718
  }[]
10197
10719
  } | {
10198
10720
 
@@ -10208,10 +10730,40 @@ type PerfectionistSortObjects = {
10208
10730
 
10209
10731
  selector?: ("member" | "method" | "multiline" | "property")
10210
10732
 
10211
- elementValuePattern?: string
10212
-
10213
- elementNamePattern?: string
10733
+ elementValuePattern?: (({
10734
+ pattern?: string
10735
+ flags?: string
10736
+ } | string)[] | ({
10737
+ pattern?: string
10738
+ flags?: string
10739
+ } | string))
10740
+
10741
+ elementNamePattern?: (({
10742
+ pattern?: string
10743
+ flags?: string
10744
+ } | string)[] | ({
10745
+ pattern?: string
10746
+ flags?: string
10747
+ } | string))
10214
10748
  })[])
10749
+ useConfigurationIf?: {
10750
+
10751
+ allNamesMatchPattern?: (({
10752
+ pattern?: string
10753
+ flags?: string
10754
+ } | string)[] | ({
10755
+ pattern?: string
10756
+ flags?: string
10757
+ } | string))
10758
+
10759
+ callingFunctionNamePattern?: (({
10760
+ pattern?: string
10761
+ flags?: string
10762
+ } | string)[] | ({
10763
+ pattern?: string
10764
+ flags?: string
10765
+ } | string))
10766
+ }
10215
10767
 
10216
10768
  destructureOnly?: boolean
10217
10769
 
@@ -10219,22 +10771,44 @@ type PerfectionistSortObjects = {
10219
10771
 
10220
10772
  styledComponents?: boolean
10221
10773
 
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
10774
+ partitionByComment?: (boolean | (({
10775
+ pattern?: string
10776
+ flags?: string
10777
+ } | string)[] | ({
10778
+ pattern?: string
10779
+ flags?: string
10780
+ } | string)) | {
10781
+ block?: (boolean | (({
10782
+ pattern?: string
10783
+ flags?: string
10784
+ } | string)[] | ({
10785
+ pattern?: string
10786
+ flags?: string
10787
+ } | string)))
10788
+ line?: (boolean | (({
10789
+ pattern?: string
10790
+ flags?: string
10791
+ } | string)[] | ({
10792
+ pattern?: string
10793
+ flags?: string
10794
+ } | string)))
10228
10795
  })
10229
10796
 
10230
10797
  partitionByNewLine?: boolean
10231
10798
 
10232
10799
  newlinesBetween?: ("ignore" | "always" | "never")
10233
10800
 
10801
+ ignorePattern?: (({
10802
+ pattern?: string
10803
+ flags?: string
10804
+ } | string)[] | ({
10805
+ pattern?: string
10806
+ flags?: string
10807
+ } | string))
10808
+
10234
10809
  groups?: (string | string[] | {
10235
10810
 
10236
10811
  newlinesBetween?: ("ignore" | "always" | "never")
10237
- [k: string]: unknown | undefined
10238
10812
  })[]
10239
10813
  }[]
10240
10814
  // ----- perfectionist/sort-sets -----
@@ -10242,6 +10816,14 @@ type PerfectionistSortSets = {
10242
10816
 
10243
10817
  specialCharacters?: ("remove" | "trim" | "keep")
10244
10818
 
10819
+ fallbackSort?: {
10820
+
10821
+ order?: ("asc" | "desc")
10822
+
10823
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10824
+ [k: string]: unknown | undefined
10825
+ }
10826
+
10245
10827
  ignoreCase?: boolean
10246
10828
 
10247
10829
  alphabet?: string
@@ -10250,6 +10832,8 @@ type PerfectionistSortSets = {
10250
10832
 
10251
10833
  order?: ("asc" | "desc")
10252
10834
 
10835
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10836
+
10253
10837
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10254
10838
 
10255
10839
  customGroups?: ({
@@ -10265,7 +10849,13 @@ type PerfectionistSortSets = {
10265
10849
 
10266
10850
  selector?: ("literal" | "spread")
10267
10851
 
10268
- elementNamePattern?: string
10852
+ elementNamePattern?: (({
10853
+ pattern?: string
10854
+ flags?: string
10855
+ } | string)[] | ({
10856
+ pattern?: string
10857
+ flags?: string
10858
+ } | string))
10269
10859
  }[]
10270
10860
  } | {
10271
10861
 
@@ -10279,18 +10869,46 @@ type PerfectionistSortSets = {
10279
10869
 
10280
10870
  selector?: ("literal" | "spread")
10281
10871
 
10282
- elementNamePattern?: string
10872
+ elementNamePattern?: (({
10873
+ pattern?: string
10874
+ flags?: string
10875
+ } | string)[] | ({
10876
+ pattern?: string
10877
+ flags?: string
10878
+ } | string))
10283
10879
  })[]
10284
10880
  useConfigurationIf?: {
10285
- allNamesMatchPattern?: string
10881
+
10882
+ allNamesMatchPattern?: (({
10883
+ pattern?: string
10884
+ flags?: string
10885
+ } | string)[] | ({
10886
+ pattern?: string
10887
+ flags?: string
10888
+ } | string))
10286
10889
  }
10287
10890
 
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
10891
+ partitionByComment?: (boolean | (({
10892
+ pattern?: string
10893
+ flags?: string
10894
+ } | string)[] | ({
10895
+ pattern?: string
10896
+ flags?: string
10897
+ } | string)) | {
10898
+ block?: (boolean | (({
10899
+ pattern?: string
10900
+ flags?: string
10901
+ } | string)[] | ({
10902
+ pattern?: string
10903
+ flags?: string
10904
+ } | string)))
10905
+ line?: (boolean | (({
10906
+ pattern?: string
10907
+ flags?: string
10908
+ } | string)[] | ({
10909
+ pattern?: string
10910
+ flags?: string
10911
+ } | string)))
10294
10912
  })
10295
10913
 
10296
10914
  partitionByNewLine?: boolean
@@ -10300,7 +10918,6 @@ type PerfectionistSortSets = {
10300
10918
  groups?: (string | string[] | {
10301
10919
 
10302
10920
  newlinesBetween?: ("ignore" | "always" | "never")
10303
- [k: string]: unknown | undefined
10304
10921
  })[]
10305
10922
  }[]
10306
10923
  // ----- perfectionist/sort-switch-case -----
@@ -10308,6 +10925,14 @@ type PerfectionistSortSwitchCase = []|[{
10308
10925
 
10309
10926
  specialCharacters?: ("remove" | "trim" | "keep")
10310
10927
 
10928
+ fallbackSort?: {
10929
+
10930
+ order?: ("asc" | "desc")
10931
+
10932
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10933
+ [k: string]: unknown | undefined
10934
+ }
10935
+
10311
10936
  ignoreCase?: boolean
10312
10937
 
10313
10938
  alphabet?: string
@@ -10316,13 +10941,21 @@ type PerfectionistSortSwitchCase = []|[{
10316
10941
 
10317
10942
  order?: ("asc" | "desc")
10318
10943
 
10319
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10944
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10320
10945
  }]
10321
10946
  // ----- perfectionist/sort-union-types -----
10322
10947
  type PerfectionistSortUnionTypes = []|[{
10323
10948
 
10324
10949
  specialCharacters?: ("remove" | "trim" | "keep")
10325
10950
 
10951
+ fallbackSort?: {
10952
+
10953
+ order?: ("asc" | "desc")
10954
+
10955
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10956
+ [k: string]: unknown | undefined
10957
+ }
10958
+
10326
10959
  ignoreCase?: boolean
10327
10960
 
10328
10961
  alphabet?: string
@@ -10331,22 +10964,38 @@ type PerfectionistSortUnionTypes = []|[{
10331
10964
 
10332
10965
  order?: ("asc" | "desc")
10333
10966
 
10334
- partitionByComment?: (string[] | boolean | string | {
10335
- block?: (string[] | boolean | string)
10336
- line?: (string[] | boolean | string)
10337
- [k: string]: unknown | undefined
10967
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10968
+
10969
+ partitionByComment?: (boolean | (({
10970
+ pattern?: string
10971
+ flags?: string
10972
+ } | string)[] | ({
10973
+ pattern?: string
10974
+ flags?: string
10975
+ } | string)) | {
10976
+ block?: (boolean | (({
10977
+ pattern?: string
10978
+ flags?: string
10979
+ } | string)[] | ({
10980
+ pattern?: string
10981
+ flags?: string
10982
+ } | string)))
10983
+ line?: (boolean | (({
10984
+ pattern?: string
10985
+ flags?: string
10986
+ } | string)[] | ({
10987
+ pattern?: string
10988
+ flags?: string
10989
+ } | string)))
10338
10990
  })
10339
10991
 
10340
10992
  partitionByNewLine?: boolean
10341
10993
 
10342
10994
  newlinesBetween?: ("ignore" | "always" | "never")
10343
10995
 
10344
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10345
-
10346
10996
  groups?: (string | string[] | {
10347
10997
 
10348
10998
  newlinesBetween?: ("ignore" | "always" | "never")
10349
- [k: string]: unknown | undefined
10350
10999
  })[]
10351
11000
  }]
10352
11001
  // ----- perfectionist/sort-variable-declarations -----
@@ -10354,6 +11003,14 @@ type PerfectionistSortVariableDeclarations = []|[{
10354
11003
 
10355
11004
  specialCharacters?: ("remove" | "trim" | "keep")
10356
11005
 
11006
+ fallbackSort?: {
11007
+
11008
+ order?: ("asc" | "desc")
11009
+
11010
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11011
+ [k: string]: unknown | undefined
11012
+ }
11013
+
10357
11014
  ignoreCase?: boolean
10358
11015
 
10359
11016
  alphabet?: string
@@ -10362,15 +11019,32 @@ type PerfectionistSortVariableDeclarations = []|[{
10362
11019
 
10363
11020
  order?: ("asc" | "desc")
10364
11021
 
10365
- partitionByComment?: (string[] | boolean | string | {
10366
- block?: (string[] | boolean | string)
10367
- line?: (string[] | boolean | string)
10368
- [k: string]: unknown | undefined
11022
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11023
+
11024
+ partitionByComment?: (boolean | (({
11025
+ pattern?: string
11026
+ flags?: string
11027
+ } | string)[] | ({
11028
+ pattern?: string
11029
+ flags?: string
11030
+ } | string)) | {
11031
+ block?: (boolean | (({
11032
+ pattern?: string
11033
+ flags?: string
11034
+ } | string)[] | ({
11035
+ pattern?: string
11036
+ flags?: string
11037
+ } | string)))
11038
+ line?: (boolean | (({
11039
+ pattern?: string
11040
+ flags?: string
11041
+ } | string)[] | ({
11042
+ pattern?: string
11043
+ flags?: string
11044
+ } | string)))
10369
11045
  })
10370
11046
 
10371
11047
  partitionByNewLine?: boolean
10372
-
10373
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10374
11048
  }]
10375
11049
  // ----- prefer-arrow-callback -----
10376
11050
  type PreferArrowCallback = []|[{
@@ -11018,6 +11692,10 @@ type TestPreferSnapshotHint = []|[("always" | "multi")]
11018
11692
  type TestRequireHook = []|[{
11019
11693
  allowedFunctionCalls?: string[]
11020
11694
  }]
11695
+ // ----- test/require-mock-type-parameters -----
11696
+ type TestRequireMockTypeParameters = []|[{
11697
+ checkImportFunctions?: boolean
11698
+ }]
11021
11699
  // ----- test/require-top-level-describe -----
11022
11700
  type TestRequireTopLevelDescribe = []|[{
11023
11701
  maxNumberOfTopLevelDescribes?: number
@@ -11841,7 +12519,7 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
11841
12519
  // ----- ts/no-unnecessary-condition -----
11842
12520
  type TsNoUnnecessaryCondition = []|[{
11843
12521
 
11844
- allowConstantLoopConditions?: boolean
12522
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
11845
12523
 
11846
12524
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
11847
12525
 
@@ -12267,6 +12945,13 @@ type UnicornNoArrayPushPush = []|[{
12267
12945
  type UnicornNoArrayReduce = []|[{
12268
12946
  allowSimpleOperations?: boolean
12269
12947
  }]
12948
+ // ----- unicorn/no-instanceof-builtins -----
12949
+ type UnicornNoInstanceofBuiltins = []|[{
12950
+ useErrorIsError?: boolean
12951
+ strategy?: ("loose" | "strict")
12952
+ include?: string[]
12953
+ exclude?: string[]
12954
+ }]
12270
12955
  // ----- unicorn/no-keyword-prefix -----
12271
12956
  type UnicornNoKeywordPrefix = []|[{
12272
12957