@antfu/eslint-config 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/cli.js +60 -77
  2. package/dist/index.d.ts +1056 -389
  3. package/package.json +24 -25
package/dist/index.d.ts CHANGED
@@ -4271,7 +4271,7 @@ interface RuleOptions {
4271
4271
  'style/semi'?: Linter.RuleEntry<StyleSemi>
4272
4272
  /**
4273
4273
  * Enforce consistent spacing before and after semicolons
4274
- * @see https://eslint.style/rules/js/semi-spacing
4274
+ * @see https://eslint.style/rules/ts/semi-spacing
4275
4275
  */
4276
4276
  'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
4277
4277
  /**
@@ -5352,7 +5352,7 @@ interface RuleOptions {
5352
5352
  */
5353
5353
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
5354
5354
  /**
5355
- * Disallow the use of `eval()`-like methods
5355
+ * Disallow the use of `eval()`-like functions
5356
5356
  * @see https://typescript-eslint.io/rules/no-implied-eval
5357
5357
  */
5358
5358
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -5803,702 +5803,642 @@ interface RuleOptions {
5803
5803
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5804
5804
  /**
5805
5805
  * Improve regexes by making them shorter, consistent, and safer.
5806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
5806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
5807
5807
  */
5808
5808
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5809
5809
  /**
5810
5810
  * Enforce a specific parameter name in catch clauses.
5811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
5811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
5812
5812
  */
5813
5813
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5814
+ /**
5815
+ * Enforce consistent assertion style with `node:assert`.
5816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
5817
+ */
5818
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5819
+ /**
5820
+ * Prefer passing `Date` directly to the constructor when cloning.
5821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
5822
+ */
5823
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5814
5824
  /**
5815
5825
  * Use destructured variables over properties.
5816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
5826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
5817
5827
  */
5818
5828
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5819
5829
  /**
5820
5830
  * Prefer consistent types when spreading a ternary in an array literal.
5821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
5831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
5822
5832
  */
5823
5833
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5824
5834
  /**
5825
5835
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
5836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
5827
5837
  */
5828
5838
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5829
5839
  /**
5830
5840
  * Move function definitions to the highest possible scope.
5831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
5841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
5832
5842
  */
5833
5843
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5834
5844
  /**
5835
5845
  * Enforce correct `Error` subclassing.
5836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
5846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5837
5847
  */
5838
5848
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5839
5849
  /**
5840
5850
  * Enforce no spaces between braces.
5841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
5851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5842
5852
  */
5843
5853
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5844
5854
  /**
5845
5855
  * Enforce passing a `message` value when creating a built-in error.
5846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
5856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
5847
5857
  */
5848
5858
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5849
5859
  /**
5850
5860
  * Require escape sequences to use uppercase values.
5851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
5861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
5852
5862
  */
5853
5863
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
5854
5864
  /**
5855
5865
  * Add expiration conditions to TODO comments.
5856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
5866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
5857
5867
  */
5858
5868
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5859
5869
  /**
5860
5870
  * Enforce explicitly comparing the `length` or `size` property of a value.
5861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
5871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
5862
5872
  */
5863
5873
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5864
5874
  /**
5865
5875
  * Enforce a case style for filenames.
5866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
5876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5867
5877
  */
5868
5878
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5869
- /**
5870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
5871
- * @deprecated
5872
- */
5873
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
5874
5879
  /**
5875
5880
  * Enforce specific import styles per module.
5876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
5881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5877
5882
  */
5878
5883
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5879
5884
  /**
5880
5885
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
5886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
5882
5887
  */
5883
5888
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5884
5889
  /**
5885
5890
  * Enforce specifying rules to disable in `eslint-disable` comments.
5886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
5891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
5887
5892
  */
5888
5893
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5894
+ /**
5895
+ * Disallow recursive access to `this` within getters and setters.
5896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5897
+ */
5898
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5889
5899
  /**
5890
5900
  * Disallow anonymous functions and classes as the default export.
5891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
5901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
5892
5902
  */
5893
5903
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5894
5904
  /**
5895
5905
  * Prevent passing a function reference directly to iterator methods.
5896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
5906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
5897
5907
  */
5898
5908
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5899
5909
  /**
5900
5910
  * Prefer `for…of` over the `forEach` method.
5901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
5911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
5902
5912
  */
5903
5913
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5904
- /**
5905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
5906
- * @deprecated
5907
- */
5908
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
5909
5914
  /**
5910
5915
  * Disallow using the `this` argument in array methods.
5911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
5916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
5912
5917
  */
5913
5918
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5914
5919
  /**
5915
5920
  * Enforce combining multiple `Array#push()` into one call.
5916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
5921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
5917
5922
  */
5918
5923
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5919
5924
  /**
5920
5925
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
5926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
5922
5927
  */
5923
5928
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5924
5929
  /**
5925
5930
  * Disallow member access from await expression.
5926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
5931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
5927
5932
  */
5928
5933
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5929
5934
  /**
5930
5935
  * Disallow using `await` in `Promise` method parameters.
5931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
5936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
5932
5937
  */
5933
5938
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5934
5939
  /**
5935
5940
  * Do not use leading/trailing space between `console.log` parameters.
5936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
5941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
5937
5942
  */
5938
5943
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5939
5944
  /**
5940
5945
  * Do not use `document.cookie` directly.
5941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
5946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
5942
5947
  */
5943
5948
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5944
5949
  /**
5945
5950
  * Disallow empty files.
5946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
5951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5947
5952
  */
5948
5953
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5949
- /**
5950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
5951
- * @deprecated
5952
- */
5953
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
5954
5954
  /**
5955
5955
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
5956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
5957
5957
  */
5958
5958
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5959
5959
  /**
5960
5960
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
5961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5962
5962
  */
5963
5963
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5964
5964
  /**
5965
- * Require `Array.isArray()` instead of `instanceof Array`.
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
5965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5966
+ * @deprecated
5967
5967
  */
5968
5968
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5969
+ /**
5970
+ * Disallow `instanceof` with built-in objects
5971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5972
+ */
5973
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5969
5974
  /**
5970
5975
  * Disallow invalid options in `fetch()` and `new Request()`.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
5976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5972
5977
  */
5973
5978
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5974
5979
  /**
5975
5980
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
5981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5977
5982
  */
5978
5983
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5979
5984
  /**
5980
5985
  * Disallow identifiers starting with `new` or `class`.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
5986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5982
5987
  */
5983
5988
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5984
5989
  /**
5985
5990
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
5991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5987
5992
  */
5988
5993
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5989
5994
  /**
5990
5995
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
5996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5992
5997
  */
5993
5998
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5994
5999
  /**
5995
6000
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
6001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5997
6002
  */
5998
6003
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6004
+ /**
6005
+ * Disallow named usage of default import and export.
6006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
6007
+ */
6008
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5999
6009
  /**
6000
6010
  * Disallow negated conditions.
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
6011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
6002
6012
  */
6003
6013
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6004
6014
  /**
6005
6015
  * Disallow negated expression in equality check.
6006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
6016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
6007
6017
  */
6008
6018
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6009
6019
  /**
6010
6020
  * Disallow nested ternary expressions.
6011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
6021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
6012
6022
  */
6013
6023
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6014
6024
  /**
6015
6025
  * Disallow `new Array()`.
6016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
6026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
6017
6027
  */
6018
6028
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6019
6029
  /**
6020
6030
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
6031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
6022
6032
  */
6023
6033
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6024
6034
  /**
6025
6035
  * Disallow the use of the `null` literal.
6026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
6036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
6027
6037
  */
6028
6038
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6029
6039
  /**
6030
6040
  * Disallow the use of objects as default parameters.
6031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
6041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
6032
6042
  */
6033
6043
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6034
6044
  /**
6035
6045
  * Disallow `process.exit()`.
6036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
6046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
6037
6047
  */
6038
6048
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6039
- /**
6040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
6041
- * @deprecated
6042
- */
6043
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
6044
6049
  /**
6045
6050
  * Disallow passing single-element arrays to `Promise` methods.
6046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
6051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
6047
6052
  */
6048
6053
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6049
6054
  /**
6050
6055
  * Disallow classes that only have static members.
6051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
6056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
6052
6057
  */
6053
6058
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6054
6059
  /**
6055
6060
  * Disallow `then` property.
6056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
6061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
6057
6062
  */
6058
6063
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6059
6064
  /**
6060
6065
  * Disallow assigning `this` to a variable.
6061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
6066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
6062
6067
  */
6063
6068
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6064
6069
  /**
6065
6070
  * Disallow comparing `undefined` using `typeof`.
6066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
6071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
6067
6072
  */
6068
6073
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6069
6074
  /**
6070
6075
  * Disallow awaiting non-promise values.
6071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
6076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
6072
6077
  */
6073
6078
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6074
6079
  /**
6075
6080
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
6081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
6077
6082
  */
6078
6083
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6079
6084
  /**
6080
6085
  * Disallow unreadable array destructuring.
6081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
6086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
6082
6087
  */
6083
6088
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6084
6089
  /**
6085
6090
  * Disallow unreadable IIFEs.
6086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
6091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
6087
6092
  */
6088
6093
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6089
- /**
6090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
6091
- * @deprecated
6092
- */
6093
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
6094
6094
  /**
6095
6095
  * Disallow unused object properties.
6096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
6096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
6097
6097
  */
6098
6098
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6099
6099
  /**
6100
6100
  * Disallow useless fallback when spreading in object literals.
6101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
6101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
6102
6102
  */
6103
6103
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6104
6104
  /**
6105
6105
  * Disallow useless array length check.
6106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
6106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
6107
6107
  */
6108
6108
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6109
6109
  /**
6110
6110
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
6111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
6112
6112
  */
6113
6113
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6114
6114
  /**
6115
6115
  * Disallow unnecessary spread.
6116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
6116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6117
6117
  */
6118
6118
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6119
6119
  /**
6120
6120
  * Disallow useless case in switch statements.
6121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
6121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
6122
6122
  */
6123
6123
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6124
6124
  /**
6125
6125
  * Disallow useless `undefined`.
6126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
6126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6127
6127
  */
6128
6128
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6129
6129
  /**
6130
6130
  * Disallow number literals with zero fractions or dangling dots.
6131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
6131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
6132
6132
  */
6133
6133
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6134
6134
  /**
6135
6135
  * Enforce proper case for numeric literals.
6136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
6136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
6137
6137
  */
6138
6138
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6139
6139
  /**
6140
6140
  * Enforce the style of numeric separators by correctly grouping digits.
6141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
6141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
6142
6142
  */
6143
6143
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6144
6144
  /**
6145
6145
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
6146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
6147
6147
  */
6148
6148
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6149
6149
  /**
6150
6150
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
6151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
6152
6152
  */
6153
6153
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6154
6154
  /**
6155
6155
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
6156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
6157
6157
  */
6158
6158
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6159
6159
  /**
6160
6160
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
6161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
6162
6162
  */
6163
6163
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6164
6164
  /**
6165
6165
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
6166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
6167
6167
  */
6168
6168
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6169
6169
  /**
6170
6170
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
6171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
6172
6172
  */
6173
6173
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6174
6174
  /**
6175
6175
  * Prefer `.at()` method for index access and `String#charAt()`.
6176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
6176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
6177
6177
  */
6178
6178
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6179
6179
  /**
6180
6180
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
6181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
6182
6182
  */
6183
6183
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6184
6184
  /**
6185
6185
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
6186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
6187
6187
  */
6188
6188
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6189
- /**
6190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
6191
- * @deprecated
6192
- */
6193
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
6194
6189
  /**
6195
6190
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
6191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
6197
6192
  */
6198
6193
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6199
6194
  /**
6200
6195
  * Prefer default parameters over reassignment.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
6196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6202
6197
  */
6203
6198
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6204
6199
  /**
6205
6200
  * Prefer `Node#append()` over `Node#appendChild()`.
6206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
6201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
6207
6202
  */
6208
6203
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6209
6204
  /**
6210
6205
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
6206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
6212
6207
  */
6213
6208
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6214
6209
  /**
6215
6210
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
6211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
6217
6212
  */
6218
6213
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6219
6214
  /**
6220
6215
  * Prefer `.textContent` over `.innerText`.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
6216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
6222
6217
  */
6223
6218
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6224
- /**
6225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
6226
- * @deprecated
6227
- */
6228
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
6229
6219
  /**
6230
6220
  * Prefer `EventTarget` over `EventEmitter`.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
6221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6232
6222
  */
6233
6223
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6234
- /**
6235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
6236
- * @deprecated
6237
- */
6238
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
6239
6224
  /**
6240
6225
  * Prefer `export…from` when re-exporting.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
6226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6242
6227
  */
6243
6228
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6244
- /**
6245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
6246
- * @deprecated
6247
- */
6248
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
6249
6229
  /**
6250
6230
  * Prefer `globalThis` over `window`, `self`, and `global`.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
6231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6252
6232
  */
6253
6233
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6254
6234
  /**
6255
6235
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
6236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6257
6237
  */
6258
6238
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6259
6239
  /**
6260
6240
  * Prefer reading a JSON file as a buffer.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
6241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6262
6242
  */
6263
6243
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6264
6244
  /**
6265
6245
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
6246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6267
6247
  */
6268
6248
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6269
6249
  /**
6270
6250
  * Prefer using a logical operator over a ternary.
6271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6272
6252
  */
6273
6253
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6274
6254
  /**
6275
6255
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
6256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6277
6257
  */
6278
6258
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6279
6259
  /**
6280
6260
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
6261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6282
6262
  */
6283
6263
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6284
6264
  /**
6285
6265
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
6266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6287
6267
  */
6288
6268
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6289
6269
  /**
6290
6270
  * Prefer modern `Math` APIs over legacy patterns.
6291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
6271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6292
6272
  */
6293
6273
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6294
6274
  /**
6295
6275
  * Prefer JavaScript modules (ESM) over CommonJS.
6296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
6276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6297
6277
  */
6298
6278
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6299
6279
  /**
6300
6280
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
6281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6302
6282
  */
6303
6283
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6304
6284
  /**
6305
6285
  * Prefer negative index over `.length - index` when possible.
6306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
6286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6307
6287
  */
6308
6288
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6309
- /**
6310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
6311
- * @deprecated
6312
- */
6313
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
6314
6289
  /**
6315
6290
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
6291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6317
6292
  */
6318
6293
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6319
- /**
6320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
6321
- * @deprecated
6322
- */
6323
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
6324
6294
  /**
6325
6295
  * Prefer `Number` static properties over global ones.
6326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
6296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6327
6297
  */
6328
6298
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6329
6299
  /**
6330
6300
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
6301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6332
6302
  */
6333
6303
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6334
- /**
6335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
6336
- * @deprecated
6337
- */
6338
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
6339
6304
  /**
6340
6305
  * Prefer omitting the `catch` binding parameter.
6341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
6306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6342
6307
  */
6343
6308
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6344
6309
  /**
6345
6310
  * Prefer borrowing methods from the prototype instead of the instance.
6346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
6311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6347
6312
  */
6348
6313
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6349
6314
  /**
6350
6315
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
6316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6352
6317
  */
6353
6318
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6354
6319
  /**
6355
6320
  * Prefer `Reflect.apply()` over `Function#apply()`.
6356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
6321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6357
6322
  */
6358
6323
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6359
6324
  /**
6360
6325
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
6326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6362
6327
  */
6363
6328
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6364
- /**
6365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
6366
- * @deprecated
6367
- */
6368
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
6369
6329
  /**
6370
6330
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
6331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6372
6332
  */
6373
6333
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6374
6334
  /**
6375
6335
  * Prefer using `Set#size` instead of `Array#length`.
6376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
6336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6377
6337
  */
6378
6338
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6379
6339
  /**
6380
6340
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
6341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6382
6342
  */
6383
6343
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6384
- /**
6385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
6386
- * @deprecated
6387
- */
6388
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
6389
6344
  /**
6390
6345
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
6346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
6392
6347
  */
6393
6348
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6394
6349
  /**
6395
6350
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
6351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
6397
6352
  */
6398
6353
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6399
6354
  /**
6400
6355
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
6356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
6402
6357
  */
6403
6358
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6404
6359
  /**
6405
6360
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
6361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
6407
6362
  */
6408
6363
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6409
6364
  /**
6410
6365
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
6366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
6412
6367
  */
6413
6368
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6414
6369
  /**
6415
6370
  * Prefer using `structuredClone` to create a deep clone.
6416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
6371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
6417
6372
  */
6418
6373
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6419
6374
  /**
6420
6375
  * Prefer `switch` over multiple `else-if`.
6421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
6376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6422
6377
  */
6423
6378
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6424
6379
  /**
6425
6380
  * Prefer ternary expressions over simple `if-else` statements.
6426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
6381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
6427
6382
  */
6428
6383
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6429
- /**
6430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
6431
- * @deprecated
6432
- */
6433
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
6434
6384
  /**
6435
6385
  * Prefer top-level await over top-level promises and async function calls.
6436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
6386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
6437
6387
  */
6438
6388
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6439
- /**
6440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
6441
- * @deprecated
6442
- */
6443
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
6444
6389
  /**
6445
6390
  * Enforce throwing `TypeError` in type checking conditions.
6446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
6391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
6447
6392
  */
6448
6393
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6449
6394
  /**
6450
6395
  * Prevent abbreviations.
6451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
6396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
6452
6397
  */
6453
6398
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6454
- /**
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
6456
- * @deprecated
6457
- */
6458
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
6459
6399
  /**
6460
6400
  * Enforce consistent relative URL style.
6461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
6401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
6462
6402
  */
6463
6403
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6464
6404
  /**
6465
6405
  * Enforce using the separator argument with `Array#join()`.
6466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
6406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
6467
6407
  */
6468
6408
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6469
6409
  /**
6470
6410
  * Enforce using the digits argument with `Number#toFixed()`.
6471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6472
6412
  */
6473
6413
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6474
6414
  /**
6475
6415
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
6416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
6477
6417
  */
6478
6418
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6479
6419
  /**
6480
6420
  * Enforce better string content.
6481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
6421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
6482
6422
  */
6483
6423
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6484
6424
  /**
6485
6425
  * Enforce consistent brace style for `case` clauses.
6486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
6426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
6487
6427
  */
6488
6428
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6489
6429
  /**
6490
6430
  * Fix whitespace-insensitive template indentation.
6491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
6431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
6492
6432
  */
6493
6433
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6494
6434
  /**
6495
6435
  * Enforce consistent case for text encoding identifiers.
6496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
6436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
6497
6437
  */
6498
6438
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6499
6439
  /**
6500
6440
  * Require `new` when creating an error.
6501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
6441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
6502
6442
  */
6503
6443
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6504
6444
  /**
@@ -10540,6 +10480,14 @@ type PerfectionistSortArrayIncludes = {
10540
10480
 
10541
10481
  specialCharacters?: ("remove" | "trim" | "keep")
10542
10482
 
10483
+ fallbackSort?: {
10484
+
10485
+ order?: ("asc" | "desc")
10486
+
10487
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10488
+ [k: string]: unknown | undefined
10489
+ }
10490
+
10543
10491
  ignoreCase?: boolean
10544
10492
 
10545
10493
  alphabet?: string
@@ -10548,6 +10496,8 @@ type PerfectionistSortArrayIncludes = {
10548
10496
 
10549
10497
  order?: ("asc" | "desc")
10550
10498
 
10499
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10500
+
10551
10501
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
10552
10502
 
10553
10503
  customGroups?: ({
@@ -10563,7 +10513,13 @@ type PerfectionistSortArrayIncludes = {
10563
10513
 
10564
10514
  selector?: ("literal" | "spread")
10565
10515
 
10566
- elementNamePattern?: string
10516
+ elementNamePattern?: (({
10517
+ pattern?: string
10518
+ flags?: string
10519
+ } | string)[] | ({
10520
+ pattern?: string
10521
+ flags?: string
10522
+ } | string))
10567
10523
  }[]
10568
10524
  } | {
10569
10525
 
@@ -10577,18 +10533,46 @@ type PerfectionistSortArrayIncludes = {
10577
10533
 
10578
10534
  selector?: ("literal" | "spread")
10579
10535
 
10580
- elementNamePattern?: string
10536
+ elementNamePattern?: (({
10537
+ pattern?: string
10538
+ flags?: string
10539
+ } | string)[] | ({
10540
+ pattern?: string
10541
+ flags?: string
10542
+ } | string))
10581
10543
  })[]
10582
10544
  useConfigurationIf?: {
10583
- allNamesMatchPattern?: string
10545
+
10546
+ allNamesMatchPattern?: (({
10547
+ pattern?: string
10548
+ flags?: string
10549
+ } | string)[] | ({
10550
+ pattern?: string
10551
+ flags?: string
10552
+ } | string))
10584
10553
  }
10585
10554
 
10586
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10587
-
10588
- partitionByComment?: (string[] | boolean | string | {
10589
- block?: (string[] | boolean | string)
10590
- line?: (string[] | boolean | string)
10591
- [k: string]: unknown | undefined
10555
+ partitionByComment?: (boolean | (({
10556
+ pattern?: string
10557
+ flags?: string
10558
+ } | string)[] | ({
10559
+ pattern?: string
10560
+ flags?: string
10561
+ } | string)) | {
10562
+ block?: (boolean | (({
10563
+ pattern?: string
10564
+ flags?: string
10565
+ } | string)[] | ({
10566
+ pattern?: string
10567
+ flags?: string
10568
+ } | string)))
10569
+ line?: (boolean | (({
10570
+ pattern?: string
10571
+ flags?: string
10572
+ } | string)[] | ({
10573
+ pattern?: string
10574
+ flags?: string
10575
+ } | string)))
10592
10576
  })
10593
10577
 
10594
10578
  partitionByNewLine?: boolean
@@ -10598,7 +10582,6 @@ type PerfectionistSortArrayIncludes = {
10598
10582
  groups?: (string | string[] | {
10599
10583
 
10600
10584
  newlinesBetween?: ("ignore" | "always" | "never")
10601
- [k: string]: unknown | undefined
10602
10585
  })[]
10603
10586
  }[]
10604
10587
  // ----- perfectionist/sort-classes -----
@@ -10606,6 +10589,14 @@ type PerfectionistSortClasses = []|[{
10606
10589
 
10607
10590
  specialCharacters?: ("remove" | "trim" | "keep")
10608
10591
 
10592
+ fallbackSort?: {
10593
+
10594
+ order?: ("asc" | "desc")
10595
+
10596
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10597
+ [k: string]: unknown | undefined
10598
+ }
10599
+
10609
10600
  ignoreCase?: boolean
10610
10601
 
10611
10602
  alphabet?: string
@@ -10614,7 +10605,7 @@ type PerfectionistSortClasses = []|[{
10614
10605
 
10615
10606
  order?: ("asc" | "desc")
10616
10607
 
10617
- ignoreCallbackDependenciesPatterns?: string[]
10608
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10618
10609
 
10619
10610
  customGroups?: ({
10620
10611
 
@@ -10627,15 +10618,33 @@ type PerfectionistSortClasses = []|[{
10627
10618
  newlinesInside?: ("always" | "never")
10628
10619
  anyOf?: {
10629
10620
 
10630
- decoratorNamePattern?: string
10631
-
10632
10621
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10633
10622
 
10634
10623
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10635
10624
 
10636
- elementValuePattern?: string
10625
+ decoratorNamePattern?: (({
10626
+ pattern?: string
10627
+ flags?: string
10628
+ } | string)[] | ({
10629
+ pattern?: string
10630
+ flags?: string
10631
+ } | string))
10637
10632
 
10638
- elementNamePattern?: string
10633
+ elementValuePattern?: (({
10634
+ pattern?: string
10635
+ flags?: string
10636
+ } | string)[] | ({
10637
+ pattern?: string
10638
+ flags?: string
10639
+ } | string))
10640
+
10641
+ elementNamePattern?: (({
10642
+ pattern?: string
10643
+ flags?: string
10644
+ } | string)[] | ({
10645
+ pattern?: string
10646
+ flags?: string
10647
+ } | string))
10639
10648
  }[]
10640
10649
  } | {
10641
10650
 
@@ -10647,33 +10656,73 @@ type PerfectionistSortClasses = []|[{
10647
10656
 
10648
10657
  newlinesInside?: ("always" | "never")
10649
10658
 
10650
- decoratorNamePattern?: string
10651
-
10652
10659
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
10653
10660
 
10654
10661
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
10655
10662
 
10656
- elementValuePattern?: string
10663
+ decoratorNamePattern?: (({
10664
+ pattern?: string
10665
+ flags?: string
10666
+ } | string)[] | ({
10667
+ pattern?: string
10668
+ flags?: string
10669
+ } | string))
10657
10670
 
10658
- elementNamePattern?: string
10671
+ elementValuePattern?: (({
10672
+ pattern?: string
10673
+ flags?: string
10674
+ } | string)[] | ({
10675
+ pattern?: string
10676
+ flags?: string
10677
+ } | string))
10678
+
10679
+ elementNamePattern?: (({
10680
+ pattern?: string
10681
+ flags?: string
10682
+ } | string)[] | ({
10683
+ pattern?: string
10684
+ flags?: string
10685
+ } | string))
10659
10686
  })[]
10660
10687
 
10661
- partitionByComment?: (string[] | boolean | string | {
10662
- block?: (string[] | boolean | string)
10663
- line?: (string[] | boolean | string)
10664
- [k: string]: unknown | undefined
10688
+ ignoreCallbackDependenciesPatterns?: (({
10689
+ pattern?: string
10690
+ flags?: string
10691
+ } | string)[] | ({
10692
+ pattern?: string
10693
+ flags?: string
10694
+ } | string))
10695
+
10696
+ partitionByComment?: (boolean | (({
10697
+ pattern?: string
10698
+ flags?: string
10699
+ } | string)[] | ({
10700
+ pattern?: string
10701
+ flags?: string
10702
+ } | string)) | {
10703
+ block?: (boolean | (({
10704
+ pattern?: string
10705
+ flags?: string
10706
+ } | string)[] | ({
10707
+ pattern?: string
10708
+ flags?: string
10709
+ } | string)))
10710
+ line?: (boolean | (({
10711
+ pattern?: string
10712
+ flags?: string
10713
+ } | string)[] | ({
10714
+ pattern?: string
10715
+ flags?: string
10716
+ } | string)))
10665
10717
  })
10666
10718
 
10667
10719
  partitionByNewLine?: boolean
10668
10720
 
10669
10721
  newlinesBetween?: ("ignore" | "always" | "never")
10670
10722
 
10671
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10672
-
10673
10723
  groups?: (string | string[] | {
10674
10724
 
10675
10725
  newlinesBetween?: ("ignore" | "always" | "never")
10676
- [k: string]: unknown | undefined
10677
10726
  })[]
10678
10727
  }]
10679
10728
  // ----- perfectionist/sort-decorators -----
@@ -10681,6 +10730,14 @@ type PerfectionistSortDecorators = []|[{
10681
10730
 
10682
10731
  specialCharacters?: ("remove" | "trim" | "keep")
10683
10732
 
10733
+ fallbackSort?: {
10734
+
10735
+ order?: ("asc" | "desc")
10736
+
10737
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10738
+ [k: string]: unknown | undefined
10739
+ }
10740
+
10684
10741
  ignoreCase?: boolean
10685
10742
 
10686
10743
  alphabet?: string
@@ -10689,6 +10746,8 @@ type PerfectionistSortDecorators = []|[{
10689
10746
 
10690
10747
  order?: ("asc" | "desc")
10691
10748
 
10749
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10750
+
10692
10751
  sortOnParameters?: boolean
10693
10752
 
10694
10753
  sortOnProperties?: boolean
@@ -10699,22 +10758,36 @@ type PerfectionistSortDecorators = []|[{
10699
10758
 
10700
10759
  sortOnClasses?: boolean
10701
10760
 
10702
- partitionByComment?: (string[] | boolean | string | {
10703
- block?: (string[] | boolean | string)
10704
- line?: (string[] | boolean | string)
10705
- [k: string]: unknown | undefined
10761
+ partitionByComment?: (boolean | (({
10762
+ pattern?: string
10763
+ flags?: string
10764
+ } | string)[] | ({
10765
+ pattern?: string
10766
+ flags?: string
10767
+ } | string)) | {
10768
+ block?: (boolean | (({
10769
+ pattern?: string
10770
+ flags?: string
10771
+ } | string)[] | ({
10772
+ pattern?: string
10773
+ flags?: string
10774
+ } | string)))
10775
+ line?: (boolean | (({
10776
+ pattern?: string
10777
+ flags?: string
10778
+ } | string)[] | ({
10779
+ pattern?: string
10780
+ flags?: string
10781
+ } | string)))
10706
10782
  })
10707
10783
 
10708
10784
  customGroups?: {
10709
10785
  [k: string]: (string | string[]) | undefined
10710
10786
  }
10711
10787
 
10712
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10713
-
10714
10788
  groups?: (string | string[] | {
10715
10789
 
10716
10790
  newlinesBetween?: ("ignore" | "always" | "never")
10717
- [k: string]: unknown | undefined
10718
10791
  })[]
10719
10792
  }]
10720
10793
  // ----- perfectionist/sort-enums -----
@@ -10722,6 +10795,14 @@ type PerfectionistSortEnums = []|[{
10722
10795
 
10723
10796
  specialCharacters?: ("remove" | "trim" | "keep")
10724
10797
 
10798
+ fallbackSort?: {
10799
+
10800
+ order?: ("asc" | "desc")
10801
+
10802
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10803
+ [k: string]: unknown | undefined
10804
+ }
10805
+
10725
10806
  ignoreCase?: boolean
10726
10807
 
10727
10808
  alphabet?: string
@@ -10730,6 +10811,8 @@ type PerfectionistSortEnums = []|[{
10730
10811
 
10731
10812
  order?: ("asc" | "desc")
10732
10813
 
10814
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10815
+
10733
10816
  forceNumericSort?: boolean
10734
10817
  customGroups?: ({
10735
10818
  [k: string]: (string | string[]) | undefined
@@ -10744,9 +10827,21 @@ type PerfectionistSortEnums = []|[{
10744
10827
  newlinesInside?: ("always" | "never")
10745
10828
  anyOf?: {
10746
10829
 
10747
- elementValuePattern?: string
10830
+ elementValuePattern?: (({
10831
+ pattern?: string
10832
+ flags?: string
10833
+ } | string)[] | ({
10834
+ pattern?: string
10835
+ flags?: string
10836
+ } | string))
10748
10837
 
10749
- elementNamePattern?: string
10838
+ elementNamePattern?: (({
10839
+ pattern?: string
10840
+ flags?: string
10841
+ } | string)[] | ({
10842
+ pattern?: string
10843
+ flags?: string
10844
+ } | string))
10750
10845
  }[]
10751
10846
  } | {
10752
10847
 
@@ -10758,29 +10853,55 @@ type PerfectionistSortEnums = []|[{
10758
10853
 
10759
10854
  newlinesInside?: ("always" | "never")
10760
10855
 
10761
- elementValuePattern?: string
10856
+ elementValuePattern?: (({
10857
+ pattern?: string
10858
+ flags?: string
10859
+ } | string)[] | ({
10860
+ pattern?: string
10861
+ flags?: string
10862
+ } | string))
10762
10863
 
10763
- elementNamePattern?: string
10864
+ elementNamePattern?: (({
10865
+ pattern?: string
10866
+ flags?: string
10867
+ } | string)[] | ({
10868
+ pattern?: string
10869
+ flags?: string
10870
+ } | string))
10764
10871
  })[])
10765
10872
 
10766
10873
  sortByValue?: boolean
10767
10874
 
10768
- partitionByComment?: (string[] | boolean | string | {
10769
- block?: (string[] | boolean | string)
10770
- line?: (string[] | boolean | string)
10771
- [k: string]: unknown | undefined
10875
+ partitionByComment?: (boolean | (({
10876
+ pattern?: string
10877
+ flags?: string
10878
+ } | string)[] | ({
10879
+ pattern?: string
10880
+ flags?: string
10881
+ } | string)) | {
10882
+ block?: (boolean | (({
10883
+ pattern?: string
10884
+ flags?: string
10885
+ } | string)[] | ({
10886
+ pattern?: string
10887
+ flags?: string
10888
+ } | string)))
10889
+ line?: (boolean | (({
10890
+ pattern?: string
10891
+ flags?: string
10892
+ } | string)[] | ({
10893
+ pattern?: string
10894
+ flags?: string
10895
+ } | string)))
10772
10896
  })
10773
10897
 
10774
10898
  partitionByNewLine?: boolean
10775
10899
 
10776
10900
  newlinesBetween?: ("ignore" | "always" | "never")
10777
10901
 
10778
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10779
-
10780
10902
  groups?: (string | string[] | {
10781
10903
 
10782
10904
  newlinesBetween?: ("ignore" | "always" | "never")
10783
- [k: string]: unknown | undefined
10784
10905
  })[]
10785
10906
  }]
10786
10907
  // ----- perfectionist/sort-exports -----
@@ -10788,6 +10909,14 @@ type PerfectionistSortExports = []|[{
10788
10909
 
10789
10910
  specialCharacters?: ("remove" | "trim" | "keep")
10790
10911
 
10912
+ fallbackSort?: {
10913
+
10914
+ order?: ("asc" | "desc")
10915
+
10916
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10917
+ [k: string]: unknown | undefined
10918
+ }
10919
+
10791
10920
  ignoreCase?: boolean
10792
10921
 
10793
10922
  alphabet?: string
@@ -10796,23 +10925,48 @@ type PerfectionistSortExports = []|[{
10796
10925
 
10797
10926
  order?: ("asc" | "desc")
10798
10927
 
10928
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10929
+
10799
10930
  groupKind?: ("mixed" | "values-first" | "types-first")
10800
10931
 
10801
- partitionByComment?: (string[] | boolean | string | {
10802
- block?: (string[] | boolean | string)
10803
- line?: (string[] | boolean | string)
10804
- [k: string]: unknown | undefined
10932
+ partitionByComment?: (boolean | (({
10933
+ pattern?: string
10934
+ flags?: string
10935
+ } | string)[] | ({
10936
+ pattern?: string
10937
+ flags?: string
10938
+ } | string)) | {
10939
+ block?: (boolean | (({
10940
+ pattern?: string
10941
+ flags?: string
10942
+ } | string)[] | ({
10943
+ pattern?: string
10944
+ flags?: string
10945
+ } | string)))
10946
+ line?: (boolean | (({
10947
+ pattern?: string
10948
+ flags?: string
10949
+ } | string)[] | ({
10950
+ pattern?: string
10951
+ flags?: string
10952
+ } | string)))
10805
10953
  })
10806
10954
 
10807
10955
  partitionByNewLine?: boolean
10808
-
10809
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10810
10956
  }]
10811
10957
  // ----- perfectionist/sort-heritage-clauses -----
10812
10958
  type PerfectionistSortHeritageClauses = []|[{
10813
10959
 
10814
10960
  specialCharacters?: ("remove" | "trim" | "keep")
10815
10961
 
10962
+ fallbackSort?: {
10963
+
10964
+ order?: ("asc" | "desc")
10965
+
10966
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10967
+ [k: string]: unknown | undefined
10968
+ }
10969
+
10816
10970
  ignoreCase?: boolean
10817
10971
 
10818
10972
  alphabet?: string
@@ -10821,16 +10975,15 @@ type PerfectionistSortHeritageClauses = []|[{
10821
10975
 
10822
10976
  order?: ("asc" | "desc")
10823
10977
 
10978
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10979
+
10824
10980
  customGroups?: {
10825
10981
  [k: string]: (string | string[]) | undefined
10826
10982
  }
10827
10983
 
10828
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10829
-
10830
10984
  groups?: (string | string[] | {
10831
10985
 
10832
10986
  newlinesBetween?: ("ignore" | "always" | "never")
10833
- [k: string]: unknown | undefined
10834
10987
  })[]
10835
10988
  }]
10836
10989
  // ----- perfectionist/sort-imports -----
@@ -10839,6 +10992,14 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10839
10992
 
10840
10993
  specialCharacters?: ("remove" | "trim" | "keep")
10841
10994
 
10995
+ fallbackSort?: {
10996
+
10997
+ order?: ("asc" | "desc")
10998
+
10999
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11000
+ [k: string]: unknown | undefined
11001
+ }
11002
+
10842
11003
  ignoreCase?: boolean
10843
11004
 
10844
11005
  alphabet?: string
@@ -10847,6 +11008,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10847
11008
 
10848
11009
  order?: ("asc" | "desc")
10849
11010
 
11011
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11012
+
10850
11013
  customGroups?: {
10851
11014
 
10852
11015
  value?: {
@@ -10858,8 +11021,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10858
11021
  }
10859
11022
  }
10860
11023
 
10861
- internalPattern?: string[]
10862
-
10863
11024
  maxLineLength?: number
10864
11025
 
10865
11026
  sortSideEffects?: boolean
@@ -10868,22 +11029,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
10868
11029
 
10869
11030
  tsconfigRootDir?: string
10870
11031
 
10871
- partitionByComment?: (string[] | boolean | string | {
10872
- block?: (string[] | boolean | string)
10873
- line?: (string[] | boolean | string)
10874
- [k: string]: unknown | undefined
11032
+ partitionByComment?: (boolean | (({
11033
+ pattern?: string
11034
+ flags?: string
11035
+ } | string)[] | ({
11036
+ pattern?: string
11037
+ flags?: string
11038
+ } | string)) | {
11039
+ block?: (boolean | (({
11040
+ pattern?: string
11041
+ flags?: string
11042
+ } | string)[] | ({
11043
+ pattern?: string
11044
+ flags?: string
11045
+ } | string)))
11046
+ line?: (boolean | (({
11047
+ pattern?: string
11048
+ flags?: string
11049
+ } | string)[] | ({
11050
+ pattern?: string
11051
+ flags?: string
11052
+ } | string)))
10875
11053
  })
10876
11054
 
10877
11055
  partitionByNewLine?: boolean
10878
11056
 
10879
11057
  newlinesBetween?: ("ignore" | "always" | "never")
10880
11058
 
10881
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11059
+ internalPattern?: (({
11060
+ pattern?: string
11061
+ flags?: string
11062
+ } | string)[] | ({
11063
+ pattern?: string
11064
+ flags?: string
11065
+ } | string))
10882
11066
 
10883
11067
  groups?: (string | string[] | {
10884
11068
 
10885
11069
  newlinesBetween?: ("ignore" | "always" | "never")
10886
- [k: string]: unknown | undefined
10887
11070
  })[]
10888
11071
  })
10889
11072
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
@@ -10898,6 +11081,14 @@ type PerfectionistSortInterfaces = {
10898
11081
 
10899
11082
  specialCharacters?: ("remove" | "trim" | "keep")
10900
11083
 
11084
+ fallbackSort?: {
11085
+
11086
+ order?: ("asc" | "desc")
11087
+
11088
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11089
+ [k: string]: unknown | undefined
11090
+ }
11091
+
10901
11092
  ignoreCase?: boolean
10902
11093
 
10903
11094
  alphabet?: string
@@ -10906,11 +11097,7 @@ type PerfectionistSortInterfaces = {
10906
11097
 
10907
11098
  order?: ("asc" | "desc")
10908
11099
 
10909
- ignorePattern?: string[]
10910
- useConfigurationIf?: {
10911
- allNamesMatchPattern?: string
10912
- declarationMatchesPattern?: string
10913
- }
11100
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10914
11101
  customGroups?: ({
10915
11102
  [k: string]: (string | string[]) | undefined
10916
11103
  } | ({
@@ -10928,7 +11115,13 @@ type PerfectionistSortInterfaces = {
10928
11115
 
10929
11116
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10930
11117
 
10931
- elementNamePattern?: string
11118
+ elementNamePattern?: (({
11119
+ pattern?: string
11120
+ flags?: string
11121
+ } | string)[] | ({
11122
+ pattern?: string
11123
+ flags?: string
11124
+ } | string))
10932
11125
  }[]
10933
11126
  } | {
10934
11127
 
@@ -10944,27 +11137,73 @@ type PerfectionistSortInterfaces = {
10944
11137
 
10945
11138
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
10946
11139
 
10947
- elementNamePattern?: string
11140
+ elementNamePattern?: (({
11141
+ pattern?: string
11142
+ flags?: string
11143
+ } | string)[] | ({
11144
+ pattern?: string
11145
+ flags?: string
11146
+ } | string))
10948
11147
  })[])
11148
+ useConfigurationIf?: {
11149
+
11150
+ allNamesMatchPattern?: (({
11151
+ pattern?: string
11152
+ flags?: string
11153
+ } | string)[] | ({
11154
+ pattern?: string
11155
+ flags?: string
11156
+ } | string))
11157
+
11158
+ declarationMatchesPattern?: (({
11159
+ pattern?: string
11160
+ flags?: string
11161
+ } | string)[] | ({
11162
+ pattern?: string
11163
+ flags?: string
11164
+ } | string))
11165
+ }
10949
11166
 
10950
11167
  groupKind?: ("mixed" | "required-first" | "optional-first")
10951
11168
 
10952
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10953
-
10954
- partitionByComment?: (string[] | boolean | string | {
10955
- block?: (string[] | boolean | string)
10956
- line?: (string[] | boolean | string)
10957
- [k: string]: unknown | undefined
11169
+ partitionByComment?: (boolean | (({
11170
+ pattern?: string
11171
+ flags?: string
11172
+ } | string)[] | ({
11173
+ pattern?: string
11174
+ flags?: string
11175
+ } | string)) | {
11176
+ block?: (boolean | (({
11177
+ pattern?: string
11178
+ flags?: string
11179
+ } | string)[] | ({
11180
+ pattern?: string
11181
+ flags?: string
11182
+ } | string)))
11183
+ line?: (boolean | (({
11184
+ pattern?: string
11185
+ flags?: string
11186
+ } | string)[] | ({
11187
+ pattern?: string
11188
+ flags?: string
11189
+ } | string)))
10958
11190
  })
10959
11191
 
10960
11192
  partitionByNewLine?: boolean
10961
11193
 
10962
11194
  newlinesBetween?: ("ignore" | "always" | "never")
10963
11195
 
11196
+ ignorePattern?: (({
11197
+ pattern?: string
11198
+ flags?: string
11199
+ } | string)[] | ({
11200
+ pattern?: string
11201
+ flags?: string
11202
+ } | string))
11203
+
10964
11204
  groups?: (string | string[] | {
10965
11205
 
10966
11206
  newlinesBetween?: ("ignore" | "always" | "never")
10967
- [k: string]: unknown | undefined
10968
11207
  })[]
10969
11208
  }[]
10970
11209
  // ----- perfectionist/sort-intersection-types -----
@@ -10972,6 +11211,14 @@ type PerfectionistSortIntersectionTypes = []|[{
10972
11211
 
10973
11212
  specialCharacters?: ("remove" | "trim" | "keep")
10974
11213
 
11214
+ fallbackSort?: {
11215
+
11216
+ order?: ("asc" | "desc")
11217
+
11218
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11219
+ [k: string]: unknown | undefined
11220
+ }
11221
+
10975
11222
  ignoreCase?: boolean
10976
11223
 
10977
11224
  alphabet?: string
@@ -10980,29 +11227,53 @@ type PerfectionistSortIntersectionTypes = []|[{
10980
11227
 
10981
11228
  order?: ("asc" | "desc")
10982
11229
 
10983
- partitionByComment?: (string[] | boolean | string | {
10984
- block?: (string[] | boolean | string)
10985
- line?: (string[] | boolean | string)
10986
- [k: string]: unknown | undefined
11230
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11231
+
11232
+ partitionByComment?: (boolean | (({
11233
+ pattern?: string
11234
+ flags?: string
11235
+ } | string)[] | ({
11236
+ pattern?: string
11237
+ flags?: string
11238
+ } | string)) | {
11239
+ block?: (boolean | (({
11240
+ pattern?: string
11241
+ flags?: string
11242
+ } | string)[] | ({
11243
+ pattern?: string
11244
+ flags?: string
11245
+ } | string)))
11246
+ line?: (boolean | (({
11247
+ pattern?: string
11248
+ flags?: string
11249
+ } | string)[] | ({
11250
+ pattern?: string
11251
+ flags?: string
11252
+ } | string)))
10987
11253
  })
10988
11254
 
10989
11255
  partitionByNewLine?: boolean
10990
11256
 
10991
11257
  newlinesBetween?: ("ignore" | "always" | "never")
10992
11258
 
10993
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
10994
-
10995
11259
  groups?: (string | string[] | {
10996
11260
 
10997
11261
  newlinesBetween?: ("ignore" | "always" | "never")
10998
- [k: string]: unknown | undefined
10999
11262
  })[]
11000
11263
  }]
11001
11264
  // ----- perfectionist/sort-jsx-props -----
11002
- type PerfectionistSortJsxProps = []|[{
11265
+ type PerfectionistSortJsxProps = {
11003
11266
 
11004
11267
  specialCharacters?: ("remove" | "trim" | "keep")
11005
11268
 
11269
+ fallbackSort?: {
11270
+
11271
+ order?: ("asc" | "desc")
11272
+
11273
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11274
+ [k: string]: unknown | undefined
11275
+ }
11276
+
11006
11277
  ignoreCase?: boolean
11007
11278
 
11008
11279
  alphabet?: string
@@ -11011,7 +11282,25 @@ type PerfectionistSortJsxProps = []|[{
11011
11282
 
11012
11283
  order?: ("asc" | "desc")
11013
11284
 
11014
- ignorePattern?: string[]
11285
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11286
+ useConfigurationIf?: {
11287
+
11288
+ allNamesMatchPattern?: (({
11289
+ pattern?: string
11290
+ flags?: string
11291
+ } | string)[] | ({
11292
+ pattern?: string
11293
+ flags?: string
11294
+ } | string))
11295
+
11296
+ tagMatchesPattern?: (({
11297
+ pattern?: string
11298
+ flags?: string
11299
+ } | string)[] | ({
11300
+ pattern?: string
11301
+ flags?: string
11302
+ } | string))
11303
+ }
11015
11304
 
11016
11305
  partitionByNewLine?: boolean
11017
11306
 
@@ -11021,19 +11310,32 @@ type PerfectionistSortJsxProps = []|[{
11021
11310
  [k: string]: (string | string[]) | undefined
11022
11311
  }
11023
11312
 
11024
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11313
+ ignorePattern?: (({
11314
+ pattern?: string
11315
+ flags?: string
11316
+ } | string)[] | ({
11317
+ pattern?: string
11318
+ flags?: string
11319
+ } | string))
11025
11320
 
11026
11321
  groups?: (string | string[] | {
11027
11322
 
11028
11323
  newlinesBetween?: ("ignore" | "always" | "never")
11029
- [k: string]: unknown | undefined
11030
11324
  })[]
11031
- }]
11325
+ }[]
11032
11326
  // ----- perfectionist/sort-maps -----
11033
11327
  type PerfectionistSortMaps = {
11034
11328
 
11035
11329
  specialCharacters?: ("remove" | "trim" | "keep")
11036
11330
 
11331
+ fallbackSort?: {
11332
+
11333
+ order?: ("asc" | "desc")
11334
+
11335
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11336
+ [k: string]: unknown | undefined
11337
+ }
11338
+
11037
11339
  ignoreCase?: boolean
11038
11340
 
11039
11341
  alphabet?: string
@@ -11042,6 +11344,8 @@ type PerfectionistSortMaps = {
11042
11344
 
11043
11345
  order?: ("asc" | "desc")
11044
11346
 
11347
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11348
+
11045
11349
  customGroups?: ({
11046
11350
 
11047
11351
  groupName?: string
@@ -11053,7 +11357,13 @@ type PerfectionistSortMaps = {
11053
11357
  newlinesInside?: ("always" | "never")
11054
11358
  anyOf?: {
11055
11359
 
11056
- elementNamePattern?: string
11360
+ elementNamePattern?: (({
11361
+ pattern?: string
11362
+ flags?: string
11363
+ } | string)[] | ({
11364
+ pattern?: string
11365
+ flags?: string
11366
+ } | string))
11057
11367
  }[]
11058
11368
  } | {
11059
11369
 
@@ -11065,28 +11375,55 @@ type PerfectionistSortMaps = {
11065
11375
 
11066
11376
  newlinesInside?: ("always" | "never")
11067
11377
 
11068
- elementNamePattern?: string
11378
+ elementNamePattern?: (({
11379
+ pattern?: string
11380
+ flags?: string
11381
+ } | string)[] | ({
11382
+ pattern?: string
11383
+ flags?: string
11384
+ } | string))
11069
11385
  })[]
11070
11386
  useConfigurationIf?: {
11071
- allNamesMatchPattern?: string
11387
+
11388
+ allNamesMatchPattern?: (({
11389
+ pattern?: string
11390
+ flags?: string
11391
+ } | string)[] | ({
11392
+ pattern?: string
11393
+ flags?: string
11394
+ } | string))
11072
11395
  }
11073
11396
 
11074
- partitionByComment?: (string[] | boolean | string | {
11075
- block?: (string[] | boolean | string)
11076
- line?: (string[] | boolean | string)
11077
- [k: string]: unknown | undefined
11397
+ partitionByComment?: (boolean | (({
11398
+ pattern?: string
11399
+ flags?: string
11400
+ } | string)[] | ({
11401
+ pattern?: string
11402
+ flags?: string
11403
+ } | string)) | {
11404
+ block?: (boolean | (({
11405
+ pattern?: string
11406
+ flags?: string
11407
+ } | string)[] | ({
11408
+ pattern?: string
11409
+ flags?: string
11410
+ } | string)))
11411
+ line?: (boolean | (({
11412
+ pattern?: string
11413
+ flags?: string
11414
+ } | string)[] | ({
11415
+ pattern?: string
11416
+ flags?: string
11417
+ } | string)))
11078
11418
  })
11079
11419
 
11080
11420
  partitionByNewLine?: boolean
11081
11421
 
11082
11422
  newlinesBetween?: ("ignore" | "always" | "never")
11083
11423
 
11084
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11085
-
11086
11424
  groups?: (string | string[] | {
11087
11425
 
11088
11426
  newlinesBetween?: ("ignore" | "always" | "never")
11089
- [k: string]: unknown | undefined
11090
11427
  })[]
11091
11428
  }[]
11092
11429
  // ----- perfectionist/sort-modules -----
@@ -11094,6 +11431,14 @@ type PerfectionistSortModules = []|[{
11094
11431
 
11095
11432
  specialCharacters?: ("remove" | "trim" | "keep")
11096
11433
 
11434
+ fallbackSort?: {
11435
+
11436
+ order?: ("asc" | "desc")
11437
+
11438
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11439
+ [k: string]: unknown | undefined
11440
+ }
11441
+
11097
11442
  ignoreCase?: boolean
11098
11443
 
11099
11444
  alphabet?: string
@@ -11102,6 +11447,8 @@ type PerfectionistSortModules = []|[{
11102
11447
 
11103
11448
  order?: ("asc" | "desc")
11104
11449
 
11450
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11451
+
11105
11452
  customGroups?: ({
11106
11453
 
11107
11454
  groupName?: string
@@ -11113,13 +11460,25 @@ type PerfectionistSortModules = []|[{
11113
11460
  newlinesInside?: ("always" | "never")
11114
11461
  anyOf?: {
11115
11462
 
11116
- decoratorNamePattern?: string
11117
-
11118
11463
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
11119
11464
 
11120
11465
  selector?: ("enum" | "function" | "interface" | "type" | "class")
11121
11466
 
11122
- elementNamePattern?: string
11467
+ decoratorNamePattern?: (({
11468
+ pattern?: string
11469
+ flags?: string
11470
+ } | string)[] | ({
11471
+ pattern?: string
11472
+ flags?: string
11473
+ } | string))
11474
+
11475
+ elementNamePattern?: (({
11476
+ pattern?: string
11477
+ flags?: string
11478
+ } | string)[] | ({
11479
+ pattern?: string
11480
+ flags?: string
11481
+ } | string))
11123
11482
  }[]
11124
11483
  } | {
11125
11484
 
@@ -11131,31 +11490,57 @@ type PerfectionistSortModules = []|[{
11131
11490
 
11132
11491
  newlinesInside?: ("always" | "never")
11133
11492
 
11134
- decoratorNamePattern?: string
11135
-
11136
11493
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
11137
11494
 
11138
11495
  selector?: ("enum" | "function" | "interface" | "type" | "class")
11139
11496
 
11140
- elementNamePattern?: string
11497
+ decoratorNamePattern?: (({
11498
+ pattern?: string
11499
+ flags?: string
11500
+ } | string)[] | ({
11501
+ pattern?: string
11502
+ flags?: string
11503
+ } | string))
11504
+
11505
+ elementNamePattern?: (({
11506
+ pattern?: string
11507
+ flags?: string
11508
+ } | string)[] | ({
11509
+ pattern?: string
11510
+ flags?: string
11511
+ } | string))
11141
11512
  })[]
11142
11513
 
11143
- partitionByComment?: (string[] | boolean | string | {
11144
- block?: (string[] | boolean | string)
11145
- line?: (string[] | boolean | string)
11146
- [k: string]: unknown | undefined
11514
+ partitionByComment?: (boolean | (({
11515
+ pattern?: string
11516
+ flags?: string
11517
+ } | string)[] | ({
11518
+ pattern?: string
11519
+ flags?: string
11520
+ } | string)) | {
11521
+ block?: (boolean | (({
11522
+ pattern?: string
11523
+ flags?: string
11524
+ } | string)[] | ({
11525
+ pattern?: string
11526
+ flags?: string
11527
+ } | string)))
11528
+ line?: (boolean | (({
11529
+ pattern?: string
11530
+ flags?: string
11531
+ } | string)[] | ({
11532
+ pattern?: string
11533
+ flags?: string
11534
+ } | string)))
11147
11535
  })
11148
11536
 
11149
11537
  partitionByNewLine?: boolean
11150
11538
 
11151
11539
  newlinesBetween?: ("ignore" | "always" | "never")
11152
11540
 
11153
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11154
-
11155
11541
  groups?: (string | string[] | {
11156
11542
 
11157
11543
  newlinesBetween?: ("ignore" | "always" | "never")
11158
- [k: string]: unknown | undefined
11159
11544
  })[]
11160
11545
  }]
11161
11546
  // ----- perfectionist/sort-named-exports -----
@@ -11163,6 +11548,14 @@ type PerfectionistSortNamedExports = []|[{
11163
11548
 
11164
11549
  specialCharacters?: ("remove" | "trim" | "keep")
11165
11550
 
11551
+ fallbackSort?: {
11552
+
11553
+ order?: ("asc" | "desc")
11554
+
11555
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11556
+ [k: string]: unknown | undefined
11557
+ }
11558
+
11166
11559
  ignoreCase?: boolean
11167
11560
 
11168
11561
  alphabet?: string
@@ -11171,25 +11564,50 @@ type PerfectionistSortNamedExports = []|[{
11171
11564
 
11172
11565
  order?: ("asc" | "desc")
11173
11566
 
11567
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11568
+
11174
11569
  groupKind?: ("mixed" | "values-first" | "types-first")
11175
11570
 
11176
11571
  ignoreAlias?: boolean
11177
11572
 
11178
- partitionByComment?: (string[] | boolean | string | {
11179
- block?: (string[] | boolean | string)
11180
- line?: (string[] | boolean | string)
11181
- [k: string]: unknown | undefined
11573
+ partitionByComment?: (boolean | (({
11574
+ pattern?: string
11575
+ flags?: string
11576
+ } | string)[] | ({
11577
+ pattern?: string
11578
+ flags?: string
11579
+ } | string)) | {
11580
+ block?: (boolean | (({
11581
+ pattern?: string
11582
+ flags?: string
11583
+ } | string)[] | ({
11584
+ pattern?: string
11585
+ flags?: string
11586
+ } | string)))
11587
+ line?: (boolean | (({
11588
+ pattern?: string
11589
+ flags?: string
11590
+ } | string)[] | ({
11591
+ pattern?: string
11592
+ flags?: string
11593
+ } | string)))
11182
11594
  })
11183
11595
 
11184
11596
  partitionByNewLine?: boolean
11185
-
11186
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11187
11597
  }]
11188
11598
  // ----- perfectionist/sort-named-imports -----
11189
11599
  type PerfectionistSortNamedImports = []|[{
11190
11600
 
11191
11601
  specialCharacters?: ("remove" | "trim" | "keep")
11192
11602
 
11603
+ fallbackSort?: {
11604
+
11605
+ order?: ("asc" | "desc")
11606
+
11607
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11608
+ [k: string]: unknown | undefined
11609
+ }
11610
+
11193
11611
  ignoreCase?: boolean
11194
11612
 
11195
11613
  alphabet?: string
@@ -11198,25 +11616,50 @@ type PerfectionistSortNamedImports = []|[{
11198
11616
 
11199
11617
  order?: ("asc" | "desc")
11200
11618
 
11619
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11620
+
11201
11621
  groupKind?: ("mixed" | "values-first" | "types-first")
11202
11622
 
11203
11623
  ignoreAlias?: boolean
11204
11624
 
11205
- partitionByComment?: (string[] | boolean | string | {
11206
- block?: (string[] | boolean | string)
11207
- line?: (string[] | boolean | string)
11208
- [k: string]: unknown | undefined
11625
+ partitionByComment?: (boolean | (({
11626
+ pattern?: string
11627
+ flags?: string
11628
+ } | string)[] | ({
11629
+ pattern?: string
11630
+ flags?: string
11631
+ } | string)) | {
11632
+ block?: (boolean | (({
11633
+ pattern?: string
11634
+ flags?: string
11635
+ } | string)[] | ({
11636
+ pattern?: string
11637
+ flags?: string
11638
+ } | string)))
11639
+ line?: (boolean | (({
11640
+ pattern?: string
11641
+ flags?: string
11642
+ } | string)[] | ({
11643
+ pattern?: string
11644
+ flags?: string
11645
+ } | string)))
11209
11646
  })
11210
11647
 
11211
11648
  partitionByNewLine?: boolean
11212
-
11213
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11214
11649
  }]
11215
11650
  // ----- perfectionist/sort-object-types -----
11216
11651
  type PerfectionistSortObjectTypes = {
11217
11652
 
11218
11653
  specialCharacters?: ("remove" | "trim" | "keep")
11219
11654
 
11655
+ fallbackSort?: {
11656
+
11657
+ order?: ("asc" | "desc")
11658
+
11659
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11660
+ [k: string]: unknown | undefined
11661
+ }
11662
+
11220
11663
  ignoreCase?: boolean
11221
11664
 
11222
11665
  alphabet?: string
@@ -11225,11 +11668,7 @@ type PerfectionistSortObjectTypes = {
11225
11668
 
11226
11669
  order?: ("asc" | "desc")
11227
11670
 
11228
- ignorePattern?: string[]
11229
- useConfigurationIf?: {
11230
- allNamesMatchPattern?: string
11231
- declarationMatchesPattern?: string
11232
- }
11671
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11233
11672
  customGroups?: ({
11234
11673
  [k: string]: (string | string[]) | undefined
11235
11674
  } | ({
@@ -11247,7 +11686,13 @@ type PerfectionistSortObjectTypes = {
11247
11686
 
11248
11687
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11249
11688
 
11250
- elementNamePattern?: string
11689
+ elementNamePattern?: (({
11690
+ pattern?: string
11691
+ flags?: string
11692
+ } | string)[] | ({
11693
+ pattern?: string
11694
+ flags?: string
11695
+ } | string))
11251
11696
  }[]
11252
11697
  } | {
11253
11698
 
@@ -11263,27 +11708,73 @@ type PerfectionistSortObjectTypes = {
11263
11708
 
11264
11709
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
11265
11710
 
11266
- elementNamePattern?: string
11711
+ elementNamePattern?: (({
11712
+ pattern?: string
11713
+ flags?: string
11714
+ } | string)[] | ({
11715
+ pattern?: string
11716
+ flags?: string
11717
+ } | string))
11267
11718
  })[])
11719
+ useConfigurationIf?: {
11720
+
11721
+ allNamesMatchPattern?: (({
11722
+ pattern?: string
11723
+ flags?: string
11724
+ } | string)[] | ({
11725
+ pattern?: string
11726
+ flags?: string
11727
+ } | string))
11728
+
11729
+ declarationMatchesPattern?: (({
11730
+ pattern?: string
11731
+ flags?: string
11732
+ } | string)[] | ({
11733
+ pattern?: string
11734
+ flags?: string
11735
+ } | string))
11736
+ }
11268
11737
 
11269
11738
  groupKind?: ("mixed" | "required-first" | "optional-first")
11270
11739
 
11271
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11272
-
11273
- partitionByComment?: (string[] | boolean | string | {
11274
- block?: (string[] | boolean | string)
11275
- line?: (string[] | boolean | string)
11276
- [k: string]: unknown | undefined
11740
+ partitionByComment?: (boolean | (({
11741
+ pattern?: string
11742
+ flags?: string
11743
+ } | string)[] | ({
11744
+ pattern?: string
11745
+ flags?: string
11746
+ } | string)) | {
11747
+ block?: (boolean | (({
11748
+ pattern?: string
11749
+ flags?: string
11750
+ } | string)[] | ({
11751
+ pattern?: string
11752
+ flags?: string
11753
+ } | string)))
11754
+ line?: (boolean | (({
11755
+ pattern?: string
11756
+ flags?: string
11757
+ } | string)[] | ({
11758
+ pattern?: string
11759
+ flags?: string
11760
+ } | string)))
11277
11761
  })
11278
11762
 
11279
11763
  partitionByNewLine?: boolean
11280
11764
 
11281
11765
  newlinesBetween?: ("ignore" | "always" | "never")
11282
11766
 
11767
+ ignorePattern?: (({
11768
+ pattern?: string
11769
+ flags?: string
11770
+ } | string)[] | ({
11771
+ pattern?: string
11772
+ flags?: string
11773
+ } | string))
11774
+
11283
11775
  groups?: (string | string[] | {
11284
11776
 
11285
11777
  newlinesBetween?: ("ignore" | "always" | "never")
11286
- [k: string]: unknown | undefined
11287
11778
  })[]
11288
11779
  }[]
11289
11780
  // ----- perfectionist/sort-objects -----
@@ -11291,6 +11782,14 @@ type PerfectionistSortObjects = {
11291
11782
 
11292
11783
  specialCharacters?: ("remove" | "trim" | "keep")
11293
11784
 
11785
+ fallbackSort?: {
11786
+
11787
+ order?: ("asc" | "desc")
11788
+
11789
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11790
+ [k: string]: unknown | undefined
11791
+ }
11792
+
11294
11793
  ignoreCase?: boolean
11295
11794
 
11296
11795
  alphabet?: string
@@ -11299,16 +11798,12 @@ type PerfectionistSortObjects = {
11299
11798
 
11300
11799
  order?: ("asc" | "desc")
11301
11800
 
11801
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11802
+
11302
11803
  destructuredObjects?: (boolean | {
11303
11804
 
11304
11805
  groups?: boolean
11305
11806
  })
11306
-
11307
- ignorePattern?: string[]
11308
- useConfigurationIf?: {
11309
- allNamesMatchPattern?: string
11310
- callingFunctionNamePattern?: string
11311
- }
11312
11807
  customGroups?: ({
11313
11808
  [k: string]: (string | string[]) | undefined
11314
11809
  } | ({
@@ -11326,9 +11821,21 @@ type PerfectionistSortObjects = {
11326
11821
 
11327
11822
  selector?: ("member" | "method" | "multiline" | "property")
11328
11823
 
11329
- elementValuePattern?: string
11824
+ elementValuePattern?: (({
11825
+ pattern?: string
11826
+ flags?: string
11827
+ } | string)[] | ({
11828
+ pattern?: string
11829
+ flags?: string
11830
+ } | string))
11330
11831
 
11331
- elementNamePattern?: string
11832
+ elementNamePattern?: (({
11833
+ pattern?: string
11834
+ flags?: string
11835
+ } | string)[] | ({
11836
+ pattern?: string
11837
+ flags?: string
11838
+ } | string))
11332
11839
  }[]
11333
11840
  } | {
11334
11841
 
@@ -11344,10 +11851,40 @@ type PerfectionistSortObjects = {
11344
11851
 
11345
11852
  selector?: ("member" | "method" | "multiline" | "property")
11346
11853
 
11347
- elementValuePattern?: string
11854
+ elementValuePattern?: (({
11855
+ pattern?: string
11856
+ flags?: string
11857
+ } | string)[] | ({
11858
+ pattern?: string
11859
+ flags?: string
11860
+ } | string))
11348
11861
 
11349
- elementNamePattern?: string
11862
+ elementNamePattern?: (({
11863
+ pattern?: string
11864
+ flags?: string
11865
+ } | string)[] | ({
11866
+ pattern?: string
11867
+ flags?: string
11868
+ } | string))
11350
11869
  })[])
11870
+ useConfigurationIf?: {
11871
+
11872
+ allNamesMatchPattern?: (({
11873
+ pattern?: string
11874
+ flags?: string
11875
+ } | string)[] | ({
11876
+ pattern?: string
11877
+ flags?: string
11878
+ } | string))
11879
+
11880
+ callingFunctionNamePattern?: (({
11881
+ pattern?: string
11882
+ flags?: string
11883
+ } | string)[] | ({
11884
+ pattern?: string
11885
+ flags?: string
11886
+ } | string))
11887
+ }
11351
11888
 
11352
11889
  destructureOnly?: boolean
11353
11890
 
@@ -11355,22 +11892,44 @@ type PerfectionistSortObjects = {
11355
11892
 
11356
11893
  styledComponents?: boolean
11357
11894
 
11358
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11359
-
11360
- partitionByComment?: (string[] | boolean | string | {
11361
- block?: (string[] | boolean | string)
11362
- line?: (string[] | boolean | string)
11363
- [k: string]: unknown | undefined
11895
+ partitionByComment?: (boolean | (({
11896
+ pattern?: string
11897
+ flags?: string
11898
+ } | string)[] | ({
11899
+ pattern?: string
11900
+ flags?: string
11901
+ } | string)) | {
11902
+ block?: (boolean | (({
11903
+ pattern?: string
11904
+ flags?: string
11905
+ } | string)[] | ({
11906
+ pattern?: string
11907
+ flags?: string
11908
+ } | string)))
11909
+ line?: (boolean | (({
11910
+ pattern?: string
11911
+ flags?: string
11912
+ } | string)[] | ({
11913
+ pattern?: string
11914
+ flags?: string
11915
+ } | string)))
11364
11916
  })
11365
11917
 
11366
11918
  partitionByNewLine?: boolean
11367
11919
 
11368
11920
  newlinesBetween?: ("ignore" | "always" | "never")
11369
11921
 
11922
+ ignorePattern?: (({
11923
+ pattern?: string
11924
+ flags?: string
11925
+ } | string)[] | ({
11926
+ pattern?: string
11927
+ flags?: string
11928
+ } | string))
11929
+
11370
11930
  groups?: (string | string[] | {
11371
11931
 
11372
11932
  newlinesBetween?: ("ignore" | "always" | "never")
11373
- [k: string]: unknown | undefined
11374
11933
  })[]
11375
11934
  }[]
11376
11935
  // ----- perfectionist/sort-sets -----
@@ -11378,6 +11937,14 @@ type PerfectionistSortSets = {
11378
11937
 
11379
11938
  specialCharacters?: ("remove" | "trim" | "keep")
11380
11939
 
11940
+ fallbackSort?: {
11941
+
11942
+ order?: ("asc" | "desc")
11943
+
11944
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11945
+ [k: string]: unknown | undefined
11946
+ }
11947
+
11381
11948
  ignoreCase?: boolean
11382
11949
 
11383
11950
  alphabet?: string
@@ -11386,6 +11953,8 @@ type PerfectionistSortSets = {
11386
11953
 
11387
11954
  order?: ("asc" | "desc")
11388
11955
 
11956
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11957
+
11389
11958
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
11390
11959
 
11391
11960
  customGroups?: ({
@@ -11401,7 +11970,13 @@ type PerfectionistSortSets = {
11401
11970
 
11402
11971
  selector?: ("literal" | "spread")
11403
11972
 
11404
- elementNamePattern?: string
11973
+ elementNamePattern?: (({
11974
+ pattern?: string
11975
+ flags?: string
11976
+ } | string)[] | ({
11977
+ pattern?: string
11978
+ flags?: string
11979
+ } | string))
11405
11980
  }[]
11406
11981
  } | {
11407
11982
 
@@ -11415,18 +11990,46 @@ type PerfectionistSortSets = {
11415
11990
 
11416
11991
  selector?: ("literal" | "spread")
11417
11992
 
11418
- elementNamePattern?: string
11993
+ elementNamePattern?: (({
11994
+ pattern?: string
11995
+ flags?: string
11996
+ } | string)[] | ({
11997
+ pattern?: string
11998
+ flags?: string
11999
+ } | string))
11419
12000
  })[]
11420
12001
  useConfigurationIf?: {
11421
- allNamesMatchPattern?: string
12002
+
12003
+ allNamesMatchPattern?: (({
12004
+ pattern?: string
12005
+ flags?: string
12006
+ } | string)[] | ({
12007
+ pattern?: string
12008
+ flags?: string
12009
+ } | string))
11422
12010
  }
11423
12011
 
11424
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11425
-
11426
- partitionByComment?: (string[] | boolean | string | {
11427
- block?: (string[] | boolean | string)
11428
- line?: (string[] | boolean | string)
11429
- [k: string]: unknown | undefined
12012
+ partitionByComment?: (boolean | (({
12013
+ pattern?: string
12014
+ flags?: string
12015
+ } | string)[] | ({
12016
+ pattern?: string
12017
+ flags?: string
12018
+ } | string)) | {
12019
+ block?: (boolean | (({
12020
+ pattern?: string
12021
+ flags?: string
12022
+ } | string)[] | ({
12023
+ pattern?: string
12024
+ flags?: string
12025
+ } | string)))
12026
+ line?: (boolean | (({
12027
+ pattern?: string
12028
+ flags?: string
12029
+ } | string)[] | ({
12030
+ pattern?: string
12031
+ flags?: string
12032
+ } | string)))
11430
12033
  })
11431
12034
 
11432
12035
  partitionByNewLine?: boolean
@@ -11436,7 +12039,6 @@ type PerfectionistSortSets = {
11436
12039
  groups?: (string | string[] | {
11437
12040
 
11438
12041
  newlinesBetween?: ("ignore" | "always" | "never")
11439
- [k: string]: unknown | undefined
11440
12042
  })[]
11441
12043
  }[]
11442
12044
  // ----- perfectionist/sort-switch-case -----
@@ -11444,6 +12046,14 @@ type PerfectionistSortSwitchCase = []|[{
11444
12046
 
11445
12047
  specialCharacters?: ("remove" | "trim" | "keep")
11446
12048
 
12049
+ fallbackSort?: {
12050
+
12051
+ order?: ("asc" | "desc")
12052
+
12053
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12054
+ [k: string]: unknown | undefined
12055
+ }
12056
+
11447
12057
  ignoreCase?: boolean
11448
12058
 
11449
12059
  alphabet?: string
@@ -11452,13 +12062,21 @@ type PerfectionistSortSwitchCase = []|[{
11452
12062
 
11453
12063
  order?: ("asc" | "desc")
11454
12064
 
11455
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12065
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11456
12066
  }]
11457
12067
  // ----- perfectionist/sort-union-types -----
11458
12068
  type PerfectionistSortUnionTypes = []|[{
11459
12069
 
11460
12070
  specialCharacters?: ("remove" | "trim" | "keep")
11461
12071
 
12072
+ fallbackSort?: {
12073
+
12074
+ order?: ("asc" | "desc")
12075
+
12076
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12077
+ [k: string]: unknown | undefined
12078
+ }
12079
+
11462
12080
  ignoreCase?: boolean
11463
12081
 
11464
12082
  alphabet?: string
@@ -11467,22 +12085,38 @@ type PerfectionistSortUnionTypes = []|[{
11467
12085
 
11468
12086
  order?: ("asc" | "desc")
11469
12087
 
11470
- partitionByComment?: (string[] | boolean | string | {
11471
- block?: (string[] | boolean | string)
11472
- line?: (string[] | boolean | string)
11473
- [k: string]: unknown | undefined
12088
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12089
+
12090
+ partitionByComment?: (boolean | (({
12091
+ pattern?: string
12092
+ flags?: string
12093
+ } | string)[] | ({
12094
+ pattern?: string
12095
+ flags?: string
12096
+ } | string)) | {
12097
+ block?: (boolean | (({
12098
+ pattern?: string
12099
+ flags?: string
12100
+ } | string)[] | ({
12101
+ pattern?: string
12102
+ flags?: string
12103
+ } | string)))
12104
+ line?: (boolean | (({
12105
+ pattern?: string
12106
+ flags?: string
12107
+ } | string)[] | ({
12108
+ pattern?: string
12109
+ flags?: string
12110
+ } | string)))
11474
12111
  })
11475
12112
 
11476
12113
  partitionByNewLine?: boolean
11477
12114
 
11478
12115
  newlinesBetween?: ("ignore" | "always" | "never")
11479
12116
 
11480
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11481
-
11482
12117
  groups?: (string | string[] | {
11483
12118
 
11484
12119
  newlinesBetween?: ("ignore" | "always" | "never")
11485
- [k: string]: unknown | undefined
11486
12120
  })[]
11487
12121
  }]
11488
12122
  // ----- perfectionist/sort-variable-declarations -----
@@ -11490,6 +12124,14 @@ type PerfectionistSortVariableDeclarations = []|[{
11490
12124
 
11491
12125
  specialCharacters?: ("remove" | "trim" | "keep")
11492
12126
 
12127
+ fallbackSort?: {
12128
+
12129
+ order?: ("asc" | "desc")
12130
+
12131
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12132
+ [k: string]: unknown | undefined
12133
+ }
12134
+
11493
12135
  ignoreCase?: boolean
11494
12136
 
11495
12137
  alphabet?: string
@@ -11498,15 +12140,32 @@ type PerfectionistSortVariableDeclarations = []|[{
11498
12140
 
11499
12141
  order?: ("asc" | "desc")
11500
12142
 
11501
- partitionByComment?: (string[] | boolean | string | {
11502
- block?: (string[] | boolean | string)
11503
- line?: (string[] | boolean | string)
11504
- [k: string]: unknown | undefined
12143
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12144
+
12145
+ partitionByComment?: (boolean | (({
12146
+ pattern?: string
12147
+ flags?: string
12148
+ } | string)[] | ({
12149
+ pattern?: string
12150
+ flags?: string
12151
+ } | string)) | {
12152
+ block?: (boolean | (({
12153
+ pattern?: string
12154
+ flags?: string
12155
+ } | string)[] | ({
12156
+ pattern?: string
12157
+ flags?: string
12158
+ } | string)))
12159
+ line?: (boolean | (({
12160
+ pattern?: string
12161
+ flags?: string
12162
+ } | string)[] | ({
12163
+ pattern?: string
12164
+ flags?: string
12165
+ } | string)))
11505
12166
  })
11506
12167
 
11507
12168
  partitionByNewLine?: boolean
11508
-
11509
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11510
12169
  }]
11511
12170
  // ----- prefer-arrow-callback -----
11512
12171
  type PreferArrowCallback = []|[{
@@ -12961,6 +13620,7 @@ type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
12961
13620
  // ----- style/space-infix-ops -----
12962
13621
  type StyleSpaceInfixOps = []|[{
12963
13622
  int32Hint?: boolean
13623
+ ignoreTypes?: boolean
12964
13624
  }]
12965
13625
  // ----- style/space-unary-ops -----
12966
13626
  type StyleSpaceUnaryOps = []|[{
@@ -14216,7 +14876,7 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
14216
14876
  // ----- ts/no-unnecessary-condition -----
14217
14877
  type TsNoUnnecessaryCondition = []|[{
14218
14878
 
14219
- allowConstantLoopConditions?: boolean
14879
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
14220
14880
 
14221
14881
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
14222
14882
 
@@ -14642,6 +15302,13 @@ type UnicornNoArrayPushPush = []|[{
14642
15302
  type UnicornNoArrayReduce = []|[{
14643
15303
  allowSimpleOperations?: boolean
14644
15304
  }]
15305
+ // ----- unicorn/no-instanceof-builtins -----
15306
+ type UnicornNoInstanceofBuiltins = []|[{
15307
+ useErrorIsError?: boolean
15308
+ strategy?: ("loose" | "strict")
15309
+ include?: string[]
15310
+ exclude?: string[]
15311
+ }]
14645
15312
  // ----- unicorn/no-keyword-prefix -----
14646
15313
  type UnicornNoKeywordPrefix = []|[{
14647
15314