@ariel-salgado/eslint-config 0.0.7 → 0.0.8

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 (2) hide show
  1. package/dist/index.d.ts +182 -142
  2. package/package.json +22 -22
package/dist/index.d.ts CHANGED
@@ -1062,7 +1062,7 @@ interface RuleOptions {
1062
1062
  * Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
1063
1063
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
1064
1064
  */
1065
- 'markdown/table-column-count'?: Linter.RuleEntry<[]>;
1065
+ 'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>;
1066
1066
  /**
1067
1067
  * Enforce a maximum number of classes per file
1068
1068
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -3892,7 +3892,7 @@ interface RuleOptions {
3892
3892
  */
3893
3893
  'tailwindcss/no-restricted-classes'?: Linter.RuleEntry<TailwindcssNoRestrictedClasses>;
3894
3894
  /**
3895
- * Disallow unnecessary whitespace in tailwind classes.
3895
+ * Disallow unnecessary whitespace between Tailwind CSS classes.
3896
3896
  * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unnecessary-whitespace.md
3897
3897
  */
3898
3898
  'tailwindcss/no-unnecessary-whitespace'?: Linter.RuleEntry<TailwindcssNoUnnecessaryWhitespace>;
@@ -5060,670 +5060,690 @@ interface RuleOptions {
5060
5060
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
5061
5061
  /**
5062
5062
  * Improve regexes by making them shorter, consistent, and safer.
5063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
5063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
5064
5064
  */
5065
5065
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
5066
5066
  /**
5067
5067
  * Enforce a specific parameter name in catch clauses.
5068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
5068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
5069
5069
  */
5070
5070
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5071
5071
  /**
5072
5072
  * Enforce consistent assertion style with `node:assert`.
5073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
5073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
5074
5074
  */
5075
5075
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5076
5076
  /**
5077
5077
  * Prefer passing `Date` directly to the constructor when cloning.
5078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
5078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
5079
5079
  */
5080
5080
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5081
5081
  /**
5082
5082
  * Use destructured variables over properties.
5083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
5083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
5084
5084
  */
5085
5085
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5086
5086
  /**
5087
5087
  * Prefer consistent types when spreading a ternary in an array literal.
5088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
5088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
5089
5089
  */
5090
5090
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5091
5091
  /**
5092
5092
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
5093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
5094
5094
  */
5095
5095
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5096
5096
  /**
5097
5097
  * Move function definitions to the highest possible scope.
5098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
5098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
5099
5099
  */
5100
5100
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5101
5101
  /**
5102
5102
  * Enforce correct `Error` subclassing.
5103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
5103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
5104
5104
  */
5105
5105
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5106
5106
  /**
5107
5107
  * Enforce no spaces between braces.
5108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
5108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
5109
5109
  */
5110
5110
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5111
5111
  /**
5112
5112
  * Enforce passing a `message` value when creating a built-in error.
5113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
5113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
5114
5114
  */
5115
5115
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5116
5116
  /**
5117
5117
  * Require escape sequences to use uppercase or lowercase values.
5118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
5118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
5119
5119
  */
5120
5120
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5121
5121
  /**
5122
5122
  * Add expiration conditions to TODO comments.
5123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
5123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
5124
5124
  */
5125
5125
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5126
5126
  /**
5127
5127
  * Enforce explicitly comparing the `length` or `size` property of a value.
5128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
5128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
5129
5129
  */
5130
5130
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5131
5131
  /**
5132
5132
  * Enforce a case style for filenames.
5133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
5133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
5134
5134
  */
5135
5135
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5136
5136
  /**
5137
5137
  * Enforce specific import styles per module.
5138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
5138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
5139
5139
  */
5140
5140
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5141
5141
  /**
5142
5142
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
5143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
5144
5144
  */
5145
5145
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5146
5146
  /**
5147
5147
  * Enforce specifying rules to disable in `eslint-disable` comments.
5148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
5148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
5149
5149
  */
5150
5150
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5151
5151
  /**
5152
5152
  * Disallow recursive access to `this` within getters and setters.
5153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
5153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
5154
5154
  */
5155
5155
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5156
5156
  /**
5157
5157
  * Disallow anonymous functions and classes as the default export.
5158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
5158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
5159
5159
  */
5160
5160
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5161
5161
  /**
5162
5162
  * Prevent passing a function reference directly to iterator methods.
5163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
5163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
5164
5164
  */
5165
5165
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5166
5166
  /**
5167
5167
  * Prefer `for…of` over the `forEach` method.
5168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
5168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
5169
5169
  */
5170
5170
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5171
5171
  /**
5172
5172
  * Disallow using the `this` argument in array methods.
5173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
5173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
5174
5174
  */
5175
5175
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5176
5176
  /**
5177
5177
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
5178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
5179
5179
  * @deprecated
5180
5180
  */
5181
5181
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5182
5182
  /**
5183
5183
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
5184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
5185
5185
  */
5186
5186
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5187
+ /**
5188
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
5190
+ */
5191
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5187
5192
  /**
5188
5193
  * Disallow member access from await expression.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
5194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
5190
5195
  */
5191
5196
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5192
5197
  /**
5193
5198
  * Disallow using `await` in `Promise` method parameters.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
5199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
5195
5200
  */
5196
5201
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5197
5202
  /**
5198
5203
  * Do not use leading/trailing space between `console.log` parameters.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
5204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
5200
5205
  */
5201
5206
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5202
5207
  /**
5203
5208
  * Do not use `document.cookie` directly.
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
5209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
5205
5210
  */
5206
5211
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5207
5212
  /**
5208
5213
  * Disallow empty files.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
5214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
5210
5215
  */
5211
5216
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5212
5217
  /**
5213
5218
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
5219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
5215
5220
  */
5216
5221
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5217
5222
  /**
5218
5223
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
5224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
5220
5225
  */
5221
5226
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5222
5227
  /**
5223
5228
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
5229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
5225
5230
  * @deprecated
5226
5231
  */
5227
5232
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5228
5233
  /**
5229
5234
  * Disallow `instanceof` with built-in objects
5230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
5235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
5231
5236
  */
5232
5237
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5233
5238
  /**
5234
5239
  * Disallow invalid options in `fetch()` and `new Request()`.
5235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
5240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
5236
5241
  */
5237
5242
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5238
5243
  /**
5239
5244
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
5245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
5241
5246
  */
5242
5247
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5243
5248
  /**
5244
5249
  * Disallow identifiers starting with `new` or `class`.
5245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
5250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
5246
5251
  */
5247
5252
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5248
5253
  /**
5249
5254
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
5255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5251
5256
  * @deprecated
5252
5257
  */
5253
5258
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5254
5259
  /**
5255
5260
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
5261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
5257
5262
  */
5258
5263
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5259
5264
  /**
5260
5265
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
5266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
5262
5267
  */
5263
5268
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5264
5269
  /**
5265
5270
  * Disallow named usage of default import and export.
5266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
5271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
5267
5272
  */
5268
5273
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5269
5274
  /**
5270
5275
  * Disallow negated conditions.
5271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
5276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
5272
5277
  */
5273
5278
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5274
5279
  /**
5275
5280
  * Disallow negated expression in equality check.
5276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
5281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
5277
5282
  */
5278
5283
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5279
5284
  /**
5280
5285
  * Disallow nested ternary expressions.
5281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
5286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
5282
5287
  */
5283
5288
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5284
5289
  /**
5285
5290
  * Disallow `new Array()`.
5286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
5291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
5287
5292
  */
5288
5293
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5289
5294
  /**
5290
5295
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
5296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
5292
5297
  */
5293
5298
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5294
5299
  /**
5295
5300
  * Disallow the use of the `null` literal.
5296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
5301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
5297
5302
  */
5298
5303
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5299
5304
  /**
5300
5305
  * Disallow the use of objects as default parameters.
5301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
5306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
5302
5307
  */
5303
5308
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5304
5309
  /**
5305
5310
  * Disallow `process.exit()`.
5306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
5311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
5307
5312
  */
5308
5313
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5309
5314
  /**
5310
5315
  * Disallow passing single-element arrays to `Promise` methods.
5311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
5316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
5312
5317
  */
5313
5318
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5314
5319
  /**
5315
5320
  * Disallow classes that only have static members.
5316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
5321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
5317
5322
  */
5318
5323
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5319
5324
  /**
5320
5325
  * Disallow `then` property.
5321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
5326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
5322
5327
  */
5323
5328
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5324
5329
  /**
5325
5330
  * Disallow assigning `this` to a variable.
5326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
5331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
5327
5332
  */
5328
5333
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5329
5334
  /**
5330
5335
  * Disallow comparing `undefined` using `typeof`.
5331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
5336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
5332
5337
  */
5333
5338
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5334
5339
  /**
5335
5340
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
5341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5337
5342
  */
5338
5343
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5339
5344
  /**
5340
5345
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
5346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
5342
5347
  */
5343
5348
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5344
5349
  /**
5345
5350
  * Disallow awaiting non-promise values.
5346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
5351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
5347
5352
  */
5348
5353
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5349
5354
  /**
5350
5355
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
5356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
5352
5357
  */
5353
5358
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5354
5359
  /**
5355
5360
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
5361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
5357
5362
  */
5358
5363
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5359
5364
  /**
5360
5365
  * Disallow unreadable array destructuring.
5361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
5366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
5362
5367
  */
5363
5368
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
5364
5369
  /**
5365
5370
  * Disallow unreadable IIFEs.
5366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
5371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
5367
5372
  */
5368
5373
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5369
5374
  /**
5370
5375
  * Disallow unused object properties.
5371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
5376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
5372
5377
  */
5373
5378
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5379
+ /**
5380
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
5381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5382
+ */
5383
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5374
5384
  /**
5375
5385
  * Disallow useless fallback when spreading in object literals.
5376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
5386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
5377
5387
  */
5378
5388
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5379
5389
  /**
5380
5390
  * Disallow useless array length check.
5381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
5391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
5382
5392
  */
5383
5393
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5384
5394
  /**
5385
5395
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
5396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
5387
5397
  */
5388
5398
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5389
5399
  /**
5390
5400
  * Disallow unnecessary spread.
5391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
5401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
5392
5402
  */
5393
5403
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5394
5404
  /**
5395
5405
  * Disallow useless case in switch statements.
5396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
5406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
5397
5407
  */
5398
5408
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5399
5409
  /**
5400
5410
  * Disallow useless `undefined`.
5401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
5411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
5402
5412
  */
5403
5413
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5404
5414
  /**
5405
5415
  * Disallow number literals with zero fractions or dangling dots.
5406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
5416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
5407
5417
  */
5408
5418
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5409
5419
  /**
5410
5420
  * Enforce proper case for numeric literals.
5411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
5421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
5412
5422
  */
5413
5423
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5414
5424
  /**
5415
5425
  * Enforce the style of numeric separators by correctly grouping digits.
5416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
5426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
5417
5427
  */
5418
5428
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5419
5429
  /**
5420
5430
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
5431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
5422
5432
  */
5423
5433
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5424
5434
  /**
5425
5435
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
5436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
5427
5437
  */
5428
5438
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5429
5439
  /**
5430
5440
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
5441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
5432
5442
  */
5433
5443
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5434
5444
  /**
5435
5445
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
5446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
5437
5447
  */
5438
5448
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5439
5449
  /**
5440
5450
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
5451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
5442
5452
  */
5443
5453
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5444
5454
  /**
5445
5455
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
5456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
5447
5457
  */
5448
5458
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5449
5459
  /**
5450
5460
  * Prefer `.at()` method for index access and `String#charAt()`.
5451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
5461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
5452
5462
  */
5453
5463
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5454
5464
  /**
5455
5465
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
5466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
5457
5467
  */
5458
5468
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5469
+ /**
5470
+ * Prefer class field declarations over `this` assignments in constructors.
5471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
5472
+ */
5473
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5459
5474
  /**
5460
5475
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
5476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
5462
5477
  */
5463
5478
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5464
5479
  /**
5465
5480
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
5481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
5467
5482
  */
5468
5483
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5469
5484
  /**
5470
5485
  * Prefer default parameters over reassignment.
5471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
5486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
5472
5487
  */
5473
5488
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5474
5489
  /**
5475
5490
  * Prefer `Node#append()` over `Node#appendChild()`.
5476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
5491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
5477
5492
  */
5478
5493
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5479
5494
  /**
5480
5495
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
5496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
5482
5497
  */
5483
5498
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5484
5499
  /**
5485
5500
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
5501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
5487
5502
  */
5488
5503
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5489
5504
  /**
5490
5505
  * Prefer `.textContent` over `.innerText`.
5491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
5506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
5492
5507
  */
5493
5508
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5494
5509
  /**
5495
5510
  * Prefer `EventTarget` over `EventEmitter`.
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
5511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
5497
5512
  */
5498
5513
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5499
5514
  /**
5500
5515
  * Prefer `export…from` when re-exporting.
5501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
5516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
5502
5517
  */
5503
5518
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5504
5519
  /**
5505
5520
  * Prefer `globalThis` over `window`, `self`, and `global`.
5506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
5521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
5507
5522
  */
5508
5523
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5509
5524
  /**
5510
5525
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
5526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
5512
5527
  */
5513
5528
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5514
5529
  /**
5515
5530
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
5531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
5517
5532
  */
5518
5533
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5519
5534
  /**
5520
5535
  * Prefer reading a JSON file as a buffer.
5521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
5536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
5522
5537
  */
5523
5538
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5524
5539
  /**
5525
5540
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
5541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
5527
5542
  */
5528
5543
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5529
5544
  /**
5530
5545
  * Prefer using a logical operator over a ternary.
5531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
5546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5532
5547
  */
5533
5548
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5534
5549
  /**
5535
5550
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
5551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
5537
5552
  */
5538
5553
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5539
5554
  /**
5540
5555
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
5556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
5542
5557
  */
5543
5558
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5544
5559
  /**
5545
5560
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
5561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
5547
5562
  */
5548
5563
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5549
5564
  /**
5550
5565
  * Prefer modern `Math` APIs over legacy patterns.
5551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
5566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
5552
5567
  */
5553
5568
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5554
5569
  /**
5555
5570
  * Prefer JavaScript modules (ESM) over CommonJS.
5556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
5571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
5557
5572
  */
5558
5573
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5559
5574
  /**
5560
5575
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
5576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
5562
5577
  */
5563
5578
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5564
5579
  /**
5565
5580
  * Prefer negative index over `.length - index` when possible.
5566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
5581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
5567
5582
  */
5568
5583
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5569
5584
  /**
5570
5585
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
5586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
5572
5587
  */
5573
5588
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5574
5589
  /**
5575
5590
  * Prefer `Number` static properties over global ones.
5576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
5591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
5577
5592
  */
5578
5593
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5579
5594
  /**
5580
5595
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
5596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
5582
5597
  */
5583
5598
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5584
5599
  /**
5585
5600
  * Prefer omitting the `catch` binding parameter.
5586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
5601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
5587
5602
  */
5588
5603
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5589
5604
  /**
5590
5605
  * Prefer borrowing methods from the prototype instead of the instance.
5591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
5606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
5592
5607
  */
5593
5608
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5594
5609
  /**
5595
5610
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
5611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
5597
5612
  */
5598
5613
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
5599
5614
  /**
5600
5615
  * Prefer `Reflect.apply()` over `Function#apply()`.
5601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
5616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
5602
5617
  */
5603
5618
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5604
5619
  /**
5605
5620
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
5621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
5607
5622
  */
5608
5623
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5609
5624
  /**
5610
5625
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
5626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
5612
5627
  */
5613
5628
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
5614
5629
  /**
5615
5630
  * Prefer using `Set#size` instead of `Array#length`.
5616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
5631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
5617
5632
  */
5618
5633
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5619
5634
  /**
5620
5635
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
5636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
5622
5637
  */
5623
5638
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5624
5639
  /**
5625
5640
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
5641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
5627
5642
  */
5628
5643
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5629
5644
  /**
5630
5645
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
5646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
5632
5647
  */
5633
5648
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5634
5649
  /**
5635
5650
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
5651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
5637
5652
  */
5638
5653
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5639
5654
  /**
5640
5655
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
5656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
5642
5657
  */
5643
5658
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5644
5659
  /**
5645
5660
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
5661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
5647
5662
  */
5648
5663
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5649
5664
  /**
5650
5665
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
5666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
5652
5667
  */
5653
5668
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5654
5669
  /**
5655
5670
  * Prefer using `structuredClone` to create a deep clone.
5656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
5671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
5657
5672
  */
5658
5673
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5659
5674
  /**
5660
5675
  * Prefer `switch` over multiple `else-if`.
5661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
5676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
5662
5677
  */
5663
5678
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5664
5679
  /**
5665
5680
  * Prefer ternary expressions over simple `if-else` statements.
5666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
5681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
5667
5682
  */
5668
5683
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5669
5684
  /**
5670
5685
  * Prefer top-level await over top-level promises and async function calls.
5671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
5686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
5672
5687
  */
5673
5688
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5674
5689
  /**
5675
5690
  * Enforce throwing `TypeError` in type checking conditions.
5676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
5691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
5677
5692
  */
5678
5693
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5679
5694
  /**
5680
5695
  * Prevent abbreviations.
5681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
5696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
5682
5697
  */
5683
5698
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
5684
5699
  /**
5685
5700
  * Enforce consistent relative URL style.
5686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
5701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
5687
5702
  */
5688
5703
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5689
5704
  /**
5690
5705
  * Enforce using the separator argument with `Array#join()`.
5691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
5706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
5692
5707
  */
5693
5708
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5709
+ /**
5710
+ * Require non-empty specifier list in import and export statements.
5711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
5712
+ */
5713
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5694
5714
  /**
5695
5715
  * Enforce using the digits argument with `Number#toFixed()`.
5696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5697
5717
  */
5698
5718
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5699
5719
  /**
5700
5720
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
5721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
5702
5722
  */
5703
5723
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5704
5724
  /**
5705
5725
  * Enforce better string content.
5706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
5726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
5707
5727
  */
5708
5728
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5709
5729
  /**
5710
5730
  * Enforce consistent brace style for `case` clauses.
5711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
5731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
5712
5732
  */
5713
5733
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5714
5734
  /**
5715
5735
  * Fix whitespace-insensitive template indentation.
5716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
5736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
5717
5737
  */
5718
5738
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5719
5739
  /**
5720
5740
  * Enforce consistent case for text encoding identifiers.
5721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
5741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
5722
5742
  */
5723
5743
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
5724
5744
  /**
5725
5745
  * Require `new` when creating an error.
5726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
5746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
5727
5747
  */
5728
5748
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5729
5749
  /**
@@ -5922,6 +5942,7 @@ type AccessorPairs = [] | [{
5922
5942
  getWithoutSet?: boolean;
5923
5943
  setWithoutGet?: boolean;
5924
5944
  enforceForClassMembers?: boolean;
5945
+ enforceForTSTypes?: boolean;
5925
5946
  }];
5926
5947
  // ----- ariel/consistent-chaining -----
5927
5948
  type ArielConsistentChaining = [] | [{
@@ -6152,7 +6173,9 @@ type GetterReturn = [] | [{
6152
6173
  allowImplicit?: boolean;
6153
6174
  }];
6154
6175
  // ----- grouped-accessor-pairs -----
6155
- type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")];
6176
+ type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")] | [("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
6177
+ enforceForTSTypes?: boolean;
6178
+ }];
6156
6179
  // ----- handle-callback-err -----
6157
6180
  type HandleCallbackErr = [] | [string];
6158
6181
  // ----- id-blacklist -----
@@ -7403,6 +7426,10 @@ type MarkdownNoUnusedDefinitions = [] | [{
7403
7426
  allowDefinitions?: string[];
7404
7427
  allowFootnoteDefinitions?: string[];
7405
7428
  }];
7429
+ // ----- markdown/table-column-count -----
7430
+ type MarkdownTableColumnCount = [] | [{
7431
+ checkMissingCells?: boolean;
7432
+ }];
7406
7433
  // ----- max-classes-per-file -----
7407
7434
  type MaxClassesPerFile = [] | [(number | {
7408
7435
  ignoreExpressions?: boolean;
@@ -7880,6 +7907,7 @@ type NoUnusedVars = [] | [(("all" | "local") | {
7880
7907
  caughtErrorsIgnorePattern?: string;
7881
7908
  destructuredArrayIgnorePattern?: string;
7882
7909
  ignoreClassWithStaticInitBlock?: boolean;
7910
+ ignoreUsingDeclarations?: boolean;
7883
7911
  reportUsedIgnorePattern?: boolean;
7884
7912
  })];
7885
7913
  // ----- no-use-before-define -----
@@ -11341,11 +11369,12 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
11341
11369
  }];
11342
11370
  // ----- style/padding-line-between-statements -----
11343
11371
  type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
11344
- type _StylePaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]]);
11372
+ type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]]);
11373
+ type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using");
11345
11374
  type StylePaddingLineBetweenStatements = {
11346
11375
  blankLine: _StylePaddingLineBetweenStatementsPaddingType;
11347
- prev: _StylePaddingLineBetweenStatementsStatementType;
11348
- next: _StylePaddingLineBetweenStatementsStatementType;
11376
+ prev: _StylePaddingLineBetweenStatementsStatementOption;
11377
+ next: _StylePaddingLineBetweenStatementsStatementOption;
11349
11378
  }[];
11350
11379
  // ----- style/quote-props -----
11351
11380
  type StyleQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
@@ -11691,6 +11720,7 @@ type TailwindcssEnforceConsistentClassOrder = [] | [{
11691
11720
  })[]] | string)[];
11692
11721
  entryPoint?: string;
11693
11722
  tailwindConfig?: string;
11723
+ tsconfig?: string;
11694
11724
  order?: ("asc" | "desc" | "official" | "improved");
11695
11725
  }];
11696
11726
  // ----- tailwindcss/enforce-consistent-important-position -----
@@ -11733,6 +11763,7 @@ type TailwindcssEnforceConsistentImportantPosition = [] | [{
11733
11763
  })[]] | string)[];
11734
11764
  entryPoint?: string;
11735
11765
  tailwindConfig?: string;
11766
+ tsconfig?: string;
11736
11767
  position?: ("legacy" | "recommended");
11737
11768
  }];
11738
11769
  // ----- tailwindcss/enforce-consistent-line-wrapping -----
@@ -11775,6 +11806,7 @@ type TailwindcssEnforceConsistentLineWrapping = [] | [{
11775
11806
  })[]] | string)[];
11776
11807
  entryPoint?: string;
11777
11808
  tailwindConfig?: string;
11809
+ tsconfig?: string;
11778
11810
  classesPerLine?: number;
11779
11811
  group?: ("emptyLine" | "never" | "newLine");
11780
11812
  indent?: ("tab" | number);
@@ -11820,7 +11852,7 @@ type TailwindcssEnforceConsistentVariableSyntax = [] | [{
11820
11852
  match?: "objectValues";
11821
11853
  pathPattern?: string;
11822
11854
  })[]] | string)[];
11823
- syntax?: ("arbitrary" | "parentheses");
11855
+ syntax?: ("arbitrary" | "parentheses" | "shorthand" | "variable");
11824
11856
  }];
11825
11857
  // ----- tailwindcss/enforce-shorthand-classes -----
11826
11858
  type TailwindcssEnforceShorthandClasses = [] | [{
@@ -11862,6 +11894,7 @@ type TailwindcssEnforceShorthandClasses = [] | [{
11862
11894
  })[]] | string)[];
11863
11895
  entryPoint?: string;
11864
11896
  tailwindConfig?: string;
11897
+ tsconfig?: string;
11865
11898
  }];
11866
11899
  // ----- tailwindcss/multiline -----
11867
11900
  type TailwindcssMultiline = [] | [{
@@ -11903,6 +11936,7 @@ type TailwindcssMultiline = [] | [{
11903
11936
  })[]] | string)[];
11904
11937
  entryPoint?: string;
11905
11938
  tailwindConfig?: string;
11939
+ tsconfig?: string;
11906
11940
  classesPerLine?: number;
11907
11941
  group?: ("emptyLine" | "never" | "newLine");
11908
11942
  indent?: ("tab" | number);
@@ -11950,6 +11984,7 @@ type TailwindcssNoConflictingClasses = [] | [{
11950
11984
  })[]] | string)[];
11951
11985
  entryPoint?: string;
11952
11986
  tailwindConfig?: string;
11987
+ tsconfig?: string;
11953
11988
  }];
11954
11989
  // ----- tailwindcss/no-deprecated-classes -----
11955
11990
  type TailwindcssNoDeprecatedClasses = [] | [{
@@ -11991,6 +12026,7 @@ type TailwindcssNoDeprecatedClasses = [] | [{
11991
12026
  })[]] | string)[];
11992
12027
  entryPoint?: string;
11993
12028
  tailwindConfig?: string;
12029
+ tsconfig?: string;
11994
12030
  }];
11995
12031
  // ----- tailwindcss/no-duplicate-classes -----
11996
12032
  type TailwindcssNoDuplicateClasses = [] | [{
@@ -12155,6 +12191,7 @@ type TailwindcssNoUnregisteredClasses = [] | [{
12155
12191
  })[]] | string)[];
12156
12192
  entryPoint?: string;
12157
12193
  tailwindConfig?: string;
12194
+ tsconfig?: string;
12158
12195
  detectComponentClasses?: boolean;
12159
12196
  ignore?: string[];
12160
12197
  }];
@@ -12198,6 +12235,7 @@ type TailwindcssSortClasses = [] | [{
12198
12235
  })[]] | string)[];
12199
12236
  entryPoint?: string;
12200
12237
  tailwindConfig?: string;
12238
+ tsconfig?: string;
12201
12239
  order?: ("asc" | "desc" | "official" | "improved");
12202
12240
  }];
12203
12241
  // ----- template-curly-spacing -----
@@ -13216,7 +13254,6 @@ type TsPreferDestructuring = [] | [({
13216
13254
  }), {
13217
13255
  enforceForDeclarationWithTypeAnnotation?: boolean;
13218
13256
  enforceForRenamedProperties?: boolean;
13219
- [k: string]: unknown | undefined;
13220
13257
  }];
13221
13258
  // ----- ts/prefer-literal-enum-member -----
13222
13259
  type TsPreferLiteralEnumMember = [] | [{
@@ -13234,7 +13271,6 @@ type TsPreferNullishCoalescing = [] | [{
13234
13271
  boolean?: boolean;
13235
13272
  number?: boolean;
13236
13273
  string?: boolean;
13237
- [k: string]: unknown | undefined;
13238
13274
  } | true);
13239
13275
  ignoreTernaryTests?: boolean;
13240
13276
  }];
@@ -13443,6 +13479,10 @@ interface _UnicornImportStyle_BooleanObject {
13443
13479
  type UnicornNoArrayReduce = [] | [{
13444
13480
  allowSimpleOperations?: boolean;
13445
13481
  }];
13482
+ // ----- unicorn/no-array-reverse -----
13483
+ type UnicornNoArrayReverse = [] | [{
13484
+ allowExpressionStatement?: boolean;
13485
+ }];
13446
13486
  // ----- unicorn/no-instanceof-builtins -----
13447
13487
  type UnicornNoInstanceofBuiltins = [] | [{
13448
13488
  useErrorIsError?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ariel-salgado/eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "description": "ESLint config for @ariel-salgado.",
6
6
  "author": "Ariel Salgado <ariel.salgado.acevedo@gmail.com>",
7
7
  "license": "MIT",
@@ -44,26 +44,26 @@
44
44
  "@antfu/install-pkg": "^1.1.0",
45
45
  "@clack/prompts": "^0.11.0",
46
46
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
47
- "@eslint/markdown": "^7.0.0",
48
- "@stylistic/eslint-plugin": "^5.2.0",
49
- "@typescript-eslint/eslint-plugin": "^8.37.0",
50
- "@typescript-eslint/parser": "^8.37.0",
47
+ "@eslint/markdown": "^7.1.0",
48
+ "@stylistic/eslint-plugin": "^5.2.2",
49
+ "@typescript-eslint/eslint-plugin": "^8.38.0",
50
+ "@typescript-eslint/parser": "^8.38.0",
51
51
  "@vitest/eslint-plugin": "^1.3.4",
52
52
  "eslint-config-flat-gitignore": "^2.1.0",
53
- "eslint-flat-config-utils": "^2.1.0",
53
+ "eslint-flat-config-utils": "^2.1.1",
54
54
  "eslint-merge-processors": "^2.0.0",
55
55
  "eslint-plugin-ariel": "^0.0.2",
56
- "eslint-plugin-de-morgan": "^1.3.0",
56
+ "eslint-plugin-de-morgan": "^1.3.1",
57
57
  "eslint-plugin-import-lite": "^0.3.0",
58
- "eslint-plugin-jsdoc": "^51.4.1",
58
+ "eslint-plugin-jsdoc": "^52.0.2",
59
59
  "eslint-plugin-jsonc": "^2.20.1",
60
- "eslint-plugin-n": "^17.21.0",
60
+ "eslint-plugin-n": "^17.21.3",
61
61
  "eslint-plugin-no-only-tests": "^3.3.0",
62
62
  "eslint-plugin-perfectionist": "^4.15.0",
63
- "eslint-plugin-pnpm": "^1.0.0",
64
- "eslint-plugin-regexp": "^2.9.0",
63
+ "eslint-plugin-pnpm": "^1.1.0",
64
+ "eslint-plugin-regexp": "^2.9.1",
65
65
  "eslint-plugin-toml": "^0.12.0",
66
- "eslint-plugin-unicorn": "^59.0.1",
66
+ "eslint-plugin-unicorn": "^60.0.0",
67
67
  "eslint-plugin-unused-imports": "^4.1.4",
68
68
  "eslint-plugin-yml": "^1.18.0",
69
69
  "globals": "^16.3.0",
@@ -73,19 +73,19 @@
73
73
  "yaml-eslint-parser": "^1.3.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@types/node": "^24.0.14",
77
- "@typescript/native-preview": "7.0.0-dev.20250716.1",
78
- "bumpp": "^10.2.0",
79
- "eslint": "^9.31.0",
80
- "eslint-plugin-better-tailwindcss": "^3.6.2",
76
+ "@types/node": "^24.1.0",
77
+ "@typescript/native-preview": "7.0.0-dev.20250803.1",
78
+ "bumpp": "^10.2.2",
79
+ "eslint": "^9.32.0",
80
+ "eslint-plugin-better-tailwindcss": "^3.7.3",
81
81
  "eslint-plugin-svelte": "^3.11.0",
82
- "eslint-typegen": "^2.2.1",
83
- "svelte": "^5.36.5",
84
- "svelte-eslint-parser": "^1.3.0",
82
+ "eslint-typegen": "^2.3.0",
83
+ "svelte": "^5.37.3",
84
+ "svelte-eslint-parser": "^1.3.1",
85
85
  "tailwindcss": "^4.1.11",
86
- "tsdown": "^0.12.9",
86
+ "tsdown": "^0.13.2",
87
87
  "tsx": "^4.20.3",
88
- "typescript": "^5.8.3"
88
+ "typescript": "~5.8.3"
89
89
  },
90
90
  "scripts": {
91
91
  "build": "pnpm run build:typegen && tsdown --clean",