@ntnyq/eslint-config 4.0.0-beta.6 → 4.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ export { default as processorVueBlocks } from 'eslint-processor-vue-blocks';
4
4
  import { Linter } from 'eslint';
5
5
  import { ConfigWithExtends } from 'typescript-eslint';
6
6
  export { configs as configsTypeScript, parser as parserTypeScript, plugin as pluginTypeScript } from 'typescript-eslint';
7
- import { RuleOptions as RuleOptions$1 } from 'eslint-plugin-svgo/rule-options';
8
7
  import { Options as Options$1, BuiltInParserName } from 'prettier';
9
8
  import { ESLintPluginCommandOptions } from 'eslint-plugin-command/types';
10
9
  import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
@@ -24,6 +23,7 @@ export { default as pluginAntfu } from 'eslint-plugin-antfu';
24
23
  export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
25
24
  export { default as pluginJsonc } from 'eslint-plugin-jsonc';
26
25
  export { default as pluginPinia } from 'eslint-plugin-pinia';
26
+ export { default as pluginNtnyq } from 'eslint-plugin-ntnyq';
27
27
  export { default as pluginFormat } from 'eslint-plugin-format';
28
28
  export { default as pluginUnoCSS } from '@unocss/eslint-plugin';
29
29
  export { default as pluginVitest } from '@vitest/eslint-plugin';
@@ -160,7 +160,7 @@ declare const configSort: (options?: ConfigSortOptions) => TypedConfigItem[];
160
160
  /**
161
161
  * Options type of {@link configSVGO}
162
162
  */
163
- type ConfigSVGOOptions = ESLintConfig<RuleOptions$1>;
163
+ type ConfigSVGOOptions = OptionsFiles & OptionsIgnores;
164
164
  /**
165
165
  * Config for svg files
166
166
  *
@@ -1011,7 +1011,7 @@ interface RuleOptions {
1011
1011
  */
1012
1012
  '@typescript-eslint/no-for-in-array'?: Linter.RuleEntry<[]>
1013
1013
  /**
1014
- * Disallow the use of `eval()`-like methods
1014
+ * Disallow the use of `eval()`-like functions
1015
1015
  * @see https://typescript-eslint.io/rules/no-implied-eval
1016
1016
  */
1017
1017
  '@typescript-eslint/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -4916,702 +4916,642 @@ interface RuleOptions {
4916
4916
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4917
4917
  /**
4918
4918
  * Improve regexes by making them shorter, consistent, and safer.
4919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
4919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
4920
4920
  */
4921
4921
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4922
4922
  /**
4923
4923
  * Enforce a specific parameter name in catch clauses.
4924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
4924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
4925
4925
  */
4926
4926
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4927
+ /**
4928
+ * Enforce consistent assertion style with `node:assert`.
4929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
4930
+ */
4931
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4932
+ /**
4933
+ * Prefer passing `Date` directly to the constructor when cloning.
4934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
4935
+ */
4936
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4927
4937
  /**
4928
4938
  * Use destructured variables over properties.
4929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
4939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
4930
4940
  */
4931
4941
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4932
4942
  /**
4933
4943
  * Prefer consistent types when spreading a ternary in an array literal.
4934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
4935
4945
  */
4936
4946
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4937
4947
  /**
4938
4948
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
4949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
4940
4950
  */
4941
4951
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4942
4952
  /**
4943
4953
  * Move function definitions to the highest possible scope.
4944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
4945
4955
  */
4946
4956
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4947
4957
  /**
4948
4958
  * Enforce correct `Error` subclassing.
4949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
4950
4960
  */
4951
4961
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4952
4962
  /**
4953
4963
  * Enforce no spaces between braces.
4954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
4955
4965
  */
4956
4966
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4957
4967
  /**
4958
4968
  * Enforce passing a `message` value when creating a built-in error.
4959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
4960
4970
  */
4961
4971
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4962
4972
  /**
4963
4973
  * Require escape sequences to use uppercase values.
4964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
4965
4975
  */
4966
4976
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4967
4977
  /**
4968
4978
  * Add expiration conditions to TODO comments.
4969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
4970
4980
  */
4971
4981
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4972
4982
  /**
4973
4983
  * Enforce explicitly comparing the `length` or `size` property of a value.
4974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
4975
4985
  */
4976
4986
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4977
4987
  /**
4978
4988
  * Enforce a case style for filenames.
4979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
4980
4990
  */
4981
4991
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4982
- /**
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
4984
- * @deprecated
4985
- */
4986
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
4987
4992
  /**
4988
4993
  * Enforce specific import styles per module.
4989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
4990
4995
  */
4991
4996
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4992
4997
  /**
4993
4998
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
4995
5000
  */
4996
5001
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4997
5002
  /**
4998
5003
  * Enforce specifying rules to disable in `eslint-disable` comments.
4999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
5000
5005
  */
5001
5006
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5007
+ /**
5008
+ * Disallow recursive access to `this` within getters and setters.
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5010
+ */
5011
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5002
5012
  /**
5003
5013
  * Disallow anonymous functions and classes as the default export.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
5005
5015
  */
5006
5016
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5007
5017
  /**
5008
5018
  * Prevent passing a function reference directly to iterator methods.
5009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
5010
5020
  */
5011
5021
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5012
5022
  /**
5013
5023
  * Prefer `for…of` over the `forEach` method.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
5015
5025
  */
5016
5026
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5017
- /**
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
5019
- * @deprecated
5020
- */
5021
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
5022
5027
  /**
5023
5028
  * Disallow using the `this` argument in array methods.
5024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
5025
5030
  */
5026
5031
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5027
5032
  /**
5028
5033
  * Enforce combining multiple `Array#push()` into one call.
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
5030
5035
  */
5031
5036
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5032
5037
  /**
5033
5038
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
5035
5040
  */
5036
5041
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5037
5042
  /**
5038
5043
  * Disallow member access from await expression.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
5040
5045
  */
5041
5046
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5042
5047
  /**
5043
5048
  * Disallow using `await` in `Promise` method parameters.
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
5045
5050
  */
5046
5051
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5047
5052
  /**
5048
5053
  * Do not use leading/trailing space between `console.log` parameters.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
5050
5055
  */
5051
5056
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5052
5057
  /**
5053
5058
  * Do not use `document.cookie` directly.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
5055
5060
  */
5056
5061
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5057
5062
  /**
5058
5063
  * Disallow empty files.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5060
5065
  */
5061
5066
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5062
- /**
5063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
5064
- * @deprecated
5065
- */
5066
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
5067
5067
  /**
5068
5068
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
5070
5070
  */
5071
5071
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5072
5072
  /**
5073
5073
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5075
5075
  */
5076
5076
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5077
5077
  /**
5078
- * Require `Array.isArray()` instead of `instanceof Array`.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
5078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5079
+ * @deprecated
5080
5080
  */
5081
5081
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5082
+ /**
5083
+ * Disallow `instanceof` with built-in objects
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5085
+ */
5086
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5082
5087
  /**
5083
5088
  * Disallow invalid options in `fetch()` and `new Request()`.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5085
5090
  */
5086
5091
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5087
5092
  /**
5088
5093
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5090
5095
  */
5091
5096
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5092
5097
  /**
5093
5098
  * Disallow identifiers starting with `new` or `class`.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5095
5100
  */
5096
5101
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5097
5102
  /**
5098
5103
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5100
5105
  */
5101
5106
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5102
5107
  /**
5103
5108
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5105
5110
  */
5106
5111
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5107
5112
  /**
5108
5113
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5110
5115
  */
5111
5116
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5117
+ /**
5118
+ * Disallow named usage of default import and export.
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5120
+ */
5121
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5112
5122
  /**
5113
5123
  * Disallow negated conditions.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5115
5125
  */
5116
5126
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5117
5127
  /**
5118
5128
  * Disallow negated expression in equality check.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5120
5130
  */
5121
5131
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5122
5132
  /**
5123
5133
  * Disallow nested ternary expressions.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5125
5135
  */
5126
5136
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5127
5137
  /**
5128
5138
  * Disallow `new Array()`.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5130
5140
  */
5131
5141
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5132
5142
  /**
5133
5143
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5135
5145
  */
5136
5146
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5137
5147
  /**
5138
5148
  * Disallow the use of the `null` literal.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5140
5150
  */
5141
5151
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5142
5152
  /**
5143
5153
  * Disallow the use of objects as default parameters.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5145
5155
  */
5146
5156
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5147
5157
  /**
5148
5158
  * Disallow `process.exit()`.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5150
5160
  */
5151
5161
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5152
- /**
5153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
5154
- * @deprecated
5155
- */
5156
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5157
5162
  /**
5158
5163
  * Disallow passing single-element arrays to `Promise` methods.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5160
5165
  */
5161
5166
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5162
5167
  /**
5163
5168
  * Disallow classes that only have static members.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5165
5170
  */
5166
5171
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5167
5172
  /**
5168
5173
  * Disallow `then` property.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
5174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5170
5175
  */
5171
5176
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5172
5177
  /**
5173
5178
  * Disallow assigning `this` to a variable.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
5179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5175
5180
  */
5176
5181
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5177
5182
  /**
5178
5183
  * Disallow comparing `undefined` using `typeof`.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5180
5185
  */
5181
5186
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5182
5187
  /**
5183
5188
  * Disallow awaiting non-promise values.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5185
5190
  */
5186
5191
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5187
5192
  /**
5188
5193
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5190
5195
  */
5191
5196
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5192
5197
  /**
5193
5198
  * Disallow unreadable array destructuring.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5195
5200
  */
5196
5201
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5197
5202
  /**
5198
5203
  * Disallow unreadable IIFEs.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5200
5205
  */
5201
5206
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5202
- /**
5203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
5204
- * @deprecated
5205
- */
5206
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5207
5207
  /**
5208
5208
  * Disallow unused object properties.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5210
5210
  */
5211
5211
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5212
5212
  /**
5213
5213
  * Disallow useless fallback when spreading in object literals.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
5215
5215
  */
5216
5216
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5217
5217
  /**
5218
5218
  * Disallow useless array length check.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
5220
5220
  */
5221
5221
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5222
5222
  /**
5223
5223
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
5225
5225
  */
5226
5226
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5227
5227
  /**
5228
5228
  * Disallow unnecessary spread.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
5230
5230
  */
5231
5231
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5232
5232
  /**
5233
5233
  * Disallow useless case in switch statements.
5234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
5235
5235
  */
5236
5236
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5237
5237
  /**
5238
5238
  * Disallow useless `undefined`.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
5239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
5240
5240
  */
5241
5241
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5242
5242
  /**
5243
5243
  * Disallow number literals with zero fractions or dangling dots.
5244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
5245
5245
  */
5246
5246
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5247
5247
  /**
5248
5248
  * Enforce proper case for numeric literals.
5249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
5250
5250
  */
5251
5251
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5252
5252
  /**
5253
5253
  * Enforce the style of numeric separators by correctly grouping digits.
5254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
5255
5255
  */
5256
5256
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5257
5257
  /**
5258
5258
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
5259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
5260
5260
  */
5261
5261
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5262
5262
  /**
5263
5263
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
5265
5265
  */
5266
5266
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5267
5267
  /**
5268
5268
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
5269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
5270
5270
  */
5271
5271
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5272
5272
  /**
5273
5273
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
5274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
5275
5275
  */
5276
5276
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5277
5277
  /**
5278
5278
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
5279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
5280
5280
  */
5281
5281
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5282
5282
  /**
5283
5283
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
5284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
5285
5285
  */
5286
5286
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5287
5287
  /**
5288
5288
  * Prefer `.at()` method for index access and `String#charAt()`.
5289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
5289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
5290
5290
  */
5291
5291
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5292
5292
  /**
5293
5293
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
5294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
5295
5295
  */
5296
5296
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5297
5297
  /**
5298
5298
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
5299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
5300
5300
  */
5301
5301
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5302
- /**
5303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
5304
- * @deprecated
5305
- */
5306
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5307
5302
  /**
5308
5303
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
5310
5305
  */
5311
5306
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5312
5307
  /**
5313
5308
  * Prefer default parameters over reassignment.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
5309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
5315
5310
  */
5316
5311
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5317
5312
  /**
5318
5313
  * Prefer `Node#append()` over `Node#appendChild()`.
5319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
5314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
5320
5315
  */
5321
5316
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5322
5317
  /**
5323
5318
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
5325
5320
  */
5326
5321
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5327
5322
  /**
5328
5323
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
5330
5325
  */
5331
5326
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5332
5327
  /**
5333
5328
  * Prefer `.textContent` over `.innerText`.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
5329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
5335
5330
  */
5336
5331
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5337
- /**
5338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
5339
- * @deprecated
5340
- */
5341
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
5342
5332
  /**
5343
5333
  * Prefer `EventTarget` over `EventEmitter`.
5344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
5334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
5345
5335
  */
5346
5336
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5347
- /**
5348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
5349
- * @deprecated
5350
- */
5351
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
5352
5337
  /**
5353
5338
  * Prefer `export…from` when re-exporting.
5354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
5339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
5355
5340
  */
5356
5341
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5357
- /**
5358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
5359
- * @deprecated
5360
- */
5361
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
5362
5342
  /**
5363
5343
  * Prefer `globalThis` over `window`, `self`, and `global`.
5364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
5344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
5365
5345
  */
5366
5346
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
5367
5347
  /**
5368
5348
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
5349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
5370
5350
  */
5371
5351
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5372
5352
  /**
5373
5353
  * Prefer reading a JSON file as a buffer.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
5375
5355
  */
5376
5356
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5377
5357
  /**
5378
5358
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
5359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
5380
5360
  */
5381
5361
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5382
5362
  /**
5383
5363
  * Prefer using a logical operator over a ternary.
5384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
5364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5385
5365
  */
5386
5366
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5387
5367
  /**
5388
5368
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
5369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
5390
5370
  */
5391
5371
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5392
5372
  /**
5393
5373
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
5374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
5395
5375
  */
5396
5376
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5397
5377
  /**
5398
5378
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
5379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
5400
5380
  */
5401
5381
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5402
5382
  /**
5403
5383
  * Prefer modern `Math` APIs over legacy patterns.
5404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
5384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
5405
5385
  */
5406
5386
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5407
5387
  /**
5408
5388
  * Prefer JavaScript modules (ESM) over CommonJS.
5409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
5410
5390
  */
5411
5391
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5412
5392
  /**
5413
5393
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
5394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
5415
5395
  */
5416
5396
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5417
5397
  /**
5418
5398
  * Prefer negative index over `.length - index` when possible.
5419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
5399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
5420
5400
  */
5421
5401
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5422
- /**
5423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
5424
- * @deprecated
5425
- */
5426
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
5427
5402
  /**
5428
5403
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
5404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
5430
5405
  */
5431
5406
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5432
- /**
5433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
5434
- * @deprecated
5435
- */
5436
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
5437
5407
  /**
5438
5408
  * Prefer `Number` static properties over global ones.
5439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
5409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
5440
5410
  */
5441
5411
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5442
5412
  /**
5443
5413
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
5414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
5445
5415
  */
5446
5416
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5447
- /**
5448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
5449
- * @deprecated
5450
- */
5451
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
5452
5417
  /**
5453
5418
  * Prefer omitting the `catch` binding parameter.
5454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
5419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
5455
5420
  */
5456
5421
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5457
5422
  /**
5458
5423
  * Prefer borrowing methods from the prototype instead of the instance.
5459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
5424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
5460
5425
  */
5461
5426
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5462
5427
  /**
5463
5428
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
5429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
5465
5430
  */
5466
5431
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5467
5432
  /**
5468
5433
  * Prefer `Reflect.apply()` over `Function#apply()`.
5469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
5434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
5470
5435
  */
5471
5436
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5472
5437
  /**
5473
5438
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
5439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
5475
5440
  */
5476
5441
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5477
- /**
5478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
5479
- * @deprecated
5480
- */
5481
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
5482
5442
  /**
5483
5443
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
5444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
5485
5445
  */
5486
5446
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5487
5447
  /**
5488
5448
  * Prefer using `Set#size` instead of `Array#length`.
5489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
5449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
5490
5450
  */
5491
5451
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5492
5452
  /**
5493
5453
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
5454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
5495
5455
  */
5496
5456
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5497
- /**
5498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
5499
- * @deprecated
5500
- */
5501
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
5502
5457
  /**
5503
5458
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
5459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
5505
5460
  */
5506
5461
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5507
5462
  /**
5508
5463
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
5464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
5510
5465
  */
5511
5466
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5512
5467
  /**
5513
5468
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
5469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
5515
5470
  */
5516
5471
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5517
5472
  /**
5518
5473
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
5474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
5520
5475
  */
5521
5476
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5522
5477
  /**
5523
5478
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
5479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
5525
5480
  */
5526
5481
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5527
5482
  /**
5528
5483
  * Prefer using `structuredClone` to create a deep clone.
5529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
5484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
5530
5485
  */
5531
5486
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5532
5487
  /**
5533
5488
  * Prefer `switch` over multiple `else-if`.
5534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
5489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
5535
5490
  */
5536
5491
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5537
5492
  /**
5538
5493
  * Prefer ternary expressions over simple `if-else` statements.
5539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
5494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
5540
5495
  */
5541
5496
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5542
- /**
5543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
5544
- * @deprecated
5545
- */
5546
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
5547
5497
  /**
5548
5498
  * Prefer top-level await over top-level promises and async function calls.
5549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
5499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
5550
5500
  */
5551
5501
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5552
- /**
5553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
5554
- * @deprecated
5555
- */
5556
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5557
5502
  /**
5558
5503
  * Enforce throwing `TypeError` in type checking conditions.
5559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
5504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
5560
5505
  */
5561
5506
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5562
5507
  /**
5563
5508
  * Prevent abbreviations.
5564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
5509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
5565
5510
  */
5566
5511
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5567
- /**
5568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
5569
- * @deprecated
5570
- */
5571
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5572
5512
  /**
5573
5513
  * Enforce consistent relative URL style.
5574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
5514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
5575
5515
  */
5576
5516
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5577
5517
  /**
5578
5518
  * Enforce using the separator argument with `Array#join()`.
5579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
5519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
5580
5520
  */
5581
5521
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5582
5522
  /**
5583
5523
  * Enforce using the digits argument with `Number#toFixed()`.
5584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5585
5525
  */
5586
5526
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5587
5527
  /**
5588
5528
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
5529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
5590
5530
  */
5591
5531
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5592
5532
  /**
5593
5533
  * Enforce better string content.
5594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
5534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
5595
5535
  */
5596
5536
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5597
5537
  /**
5598
5538
  * Enforce consistent brace style for `case` clauses.
5599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
5539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
5600
5540
  */
5601
5541
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5602
5542
  /**
5603
5543
  * Fix whitespace-insensitive template indentation.
5604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
5544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
5605
5545
  */
5606
5546
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5607
5547
  /**
5608
5548
  * Enforce consistent case for text encoding identifiers.
5609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
5549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
5610
5550
  */
5611
5551
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5612
5552
  /**
5613
5553
  * Require `new` when creating an error.
5614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
5554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
5615
5555
  */
5616
5556
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5617
5557
  /**
@@ -13874,6 +13814,13 @@ type UnicornNoArrayPushPush = []|[{
13874
13814
  type UnicornNoArrayReduce = []|[{
13875
13815
  allowSimpleOperations?: boolean
13876
13816
  }]
13817
+ // ----- unicorn/no-instanceof-builtins -----
13818
+ type UnicornNoInstanceofBuiltins = []|[{
13819
+ useErrorIsError?: boolean
13820
+ strategy?: ("loose" | "strict")
13821
+ include?: string[]
13822
+ exclude?: string[]
13823
+ }]
13877
13824
  // ----- unicorn/no-keyword-prefix -----
13878
13825
  type UnicornNoKeywordPrefix = []|[{
13879
13826
 
@@ -15620,7 +15567,13 @@ type OptionsFeatures = {
15620
15567
  * Options for overrides `files`
15621
15568
  */
15622
15569
  interface OptionsFiles {
15623
- files?: string[];
15570
+ files?: ESLintConfig['files'];
15571
+ }
15572
+ /**
15573
+ * Options for overrides ignores for specific config
15574
+ */
15575
+ interface OptionsIgnores {
15576
+ ignores?: ESLintConfig['ignores'];
15624
15577
  }
15625
15578
  /**
15626
15579
  * Options for overrides `rules`
@@ -15788,6 +15741,9 @@ declare function isInGitHooksOrRunByNanoStagedOrRunByTSX(): boolean;
15788
15741
  */
15789
15742
  declare const parserPlain: ESLintParser;
15790
15743
 
15744
+ /**
15745
+ * Built-in resolver of `import-x`
15746
+ */
15791
15747
  declare const createNodeResolver: typeof eslint_plugin_import_x_node_resolver_js.createNodeResolver;
15792
15748
 
15793
15749
  /**
@@ -15853,4 +15809,4 @@ declare const PERFECTIONIST_SORT_IMPORTS_GROUPS: string[];
15853
15809
  */
15854
15810
  declare const PERFECTIONIST_SORT_CLASSES_GROUPS: string[];
15855
15811
 
15856
- export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigDeMorganOptions, type ConfigDependOptions, type ConfigESLintCommentsOptions, type ConfigESLintPluginOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigOptionsInternal, type ConfigPerfectionistOptions, type ConfigPiniaOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSVGOOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, type ESLintRuleSeverity, type ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, PERFECTIONIST_COMMON_RULE_OPTIONS, PERFECTIONIST_EXTRA_RULE_OPTIONS, PERFECTIONIST_SORT_CLASSES_GROUPS, PERFECTIONIST_SORT_IMPORTS_GROUPS, PERFECTIONIST_SORT_INTERFACES_OR_OBJECT_TYPES_GROUPS, PERFECTIONIST_SORT_INTERSECTION_TYPES_OR_UNION_TYPES_GROUPS, PERFECTIONIST_SORT_OBJECTS_GROUPS, PRETTIER_DEFAULT_OPTIONS, type PerfectionistPartitionByComment, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, combineConfigs, configAntfu, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, createNodeResolver, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunByNanoStagedOrRunByTSX, mergePrettierOptions, parserPlain, resolveSubOptions, toArray };
15812
+ export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigDeMorganOptions, type ConfigDependOptions, type ConfigESLintCommentsOptions, type ConfigESLintPluginOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigOptionsInternal, type ConfigPerfectionistOptions, type ConfigPiniaOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSVGOOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, type ESLintRuleSeverity, type ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsIgnores, type OptionsOverrides, PERFECTIONIST_COMMON_RULE_OPTIONS, PERFECTIONIST_EXTRA_RULE_OPTIONS, PERFECTIONIST_SORT_CLASSES_GROUPS, PERFECTIONIST_SORT_IMPORTS_GROUPS, PERFECTIONIST_SORT_INTERFACES_OR_OBJECT_TYPES_GROUPS, PERFECTIONIST_SORT_INTERSECTION_TYPES_OR_UNION_TYPES_GROUPS, PERFECTIONIST_SORT_OBJECTS_GROUPS, PRETTIER_DEFAULT_OPTIONS, type PerfectionistPartitionByComment, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, combineConfigs, configAntfu, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configFormat, configGitHubAction, configGitIgnore, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configPerfectionist, configPinia, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, createNodeResolver, defineESLintConfig, ensurePackages, getOverrides, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunByNanoStagedOrRunByTSX, mergePrettierOptions, parserPlain, resolveSubOptions, toArray };