@ntnyq/eslint-config 5.1.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +188 -147
  2. package/dist/index.js +11 -4
  3. package/package.json +28 -28
package/dist/index.d.ts CHANGED
@@ -3588,7 +3588,7 @@ interface RuleOptions {
3588
3588
  * Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
3589
3589
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
3590
3590
  */
3591
- 'markdown/table-column-count'?: Linter.RuleEntry<[]>;
3591
+ 'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>;
3592
3592
  /**
3593
3593
  * Enforce a maximum number of classes per file
3594
3594
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -6074,670 +6074,690 @@ interface RuleOptions {
6074
6074
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6075
6075
  /**
6076
6076
  * Improve regexes by making them shorter, consistent, and safer.
6077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
6077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
6078
6078
  */
6079
6079
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6080
6080
  /**
6081
6081
  * Enforce a specific parameter name in catch clauses.
6082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
6082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
6083
6083
  */
6084
6084
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6085
6085
  /**
6086
6086
  * Enforce consistent assertion style with `node:assert`.
6087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
6087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
6088
6088
  */
6089
6089
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6090
6090
  /**
6091
6091
  * Prefer passing `Date` directly to the constructor when cloning.
6092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
6092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
6093
6093
  */
6094
6094
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6095
6095
  /**
6096
6096
  * Use destructured variables over properties.
6097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
6097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
6098
6098
  */
6099
6099
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6100
6100
  /**
6101
6101
  * Prefer consistent types when spreading a ternary in an array literal.
6102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
6102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
6103
6103
  */
6104
6104
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6105
6105
  /**
6106
6106
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
6107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
6108
6108
  */
6109
6109
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6110
6110
  /**
6111
6111
  * Move function definitions to the highest possible scope.
6112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
6112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
6113
6113
  */
6114
6114
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6115
6115
  /**
6116
6116
  * Enforce correct `Error` subclassing.
6117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
6117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
6118
6118
  */
6119
6119
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6120
6120
  /**
6121
6121
  * Enforce no spaces between braces.
6122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
6122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
6123
6123
  */
6124
6124
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6125
6125
  /**
6126
6126
  * Enforce passing a `message` value when creating a built-in error.
6127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
6127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
6128
6128
  */
6129
6129
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6130
6130
  /**
6131
6131
  * Require escape sequences to use uppercase or lowercase values.
6132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
6132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
6133
6133
  */
6134
6134
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6135
6135
  /**
6136
6136
  * Add expiration conditions to TODO comments.
6137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
6137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
6138
6138
  */
6139
6139
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6140
6140
  /**
6141
6141
  * Enforce explicitly comparing the `length` or `size` property of a value.
6142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
6142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
6143
6143
  */
6144
6144
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6145
6145
  /**
6146
6146
  * Enforce a case style for filenames.
6147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
6147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
6148
6148
  */
6149
6149
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6150
6150
  /**
6151
6151
  * Enforce specific import styles per module.
6152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
6152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
6153
6153
  */
6154
6154
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6155
6155
  /**
6156
6156
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
6157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
6158
6158
  */
6159
6159
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6160
6160
  /**
6161
6161
  * Enforce specifying rules to disable in `eslint-disable` comments.
6162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
6162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
6163
6163
  */
6164
6164
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6165
6165
  /**
6166
6166
  * Disallow recursive access to `this` within getters and setters.
6167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
6167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
6168
6168
  */
6169
6169
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6170
6170
  /**
6171
6171
  * Disallow anonymous functions and classes as the default export.
6172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
6172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
6173
6173
  */
6174
6174
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6175
6175
  /**
6176
6176
  * Prevent passing a function reference directly to iterator methods.
6177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
6177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
6178
6178
  */
6179
6179
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
6180
6180
  /**
6181
6181
  * Prefer `for…of` over the `forEach` method.
6182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
6182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
6183
6183
  */
6184
6184
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
6185
6185
  /**
6186
6186
  * Disallow using the `this` argument in array methods.
6187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
6187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
6188
6188
  */
6189
6189
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6190
6190
  /**
6191
6191
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
6192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
6193
6193
  * @deprecated
6194
6194
  */
6195
6195
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6196
6196
  /**
6197
6197
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
6198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
6199
6199
  */
6200
6200
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6201
+ /**
6202
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
6203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
6204
+ */
6205
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6201
6206
  /**
6202
6207
  * Disallow member access from await expression.
6203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
6208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
6204
6209
  */
6205
6210
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6206
6211
  /**
6207
6212
  * Disallow using `await` in `Promise` method parameters.
6208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
6213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
6209
6214
  */
6210
6215
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6211
6216
  /**
6212
6217
  * Do not use leading/trailing space between `console.log` parameters.
6213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
6218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
6214
6219
  */
6215
6220
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6216
6221
  /**
6217
6222
  * Do not use `document.cookie` directly.
6218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
6223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
6219
6224
  */
6220
6225
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6221
6226
  /**
6222
6227
  * Disallow empty files.
6223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
6228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
6224
6229
  */
6225
6230
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
6226
6231
  /**
6227
6232
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
6233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
6229
6234
  */
6230
6235
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6231
6236
  /**
6232
6237
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
6238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
6234
6239
  */
6235
6240
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6236
6241
  /**
6237
6242
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
6243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
6239
6244
  * @deprecated
6240
6245
  */
6241
6246
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6242
6247
  /**
6243
6248
  * Disallow `instanceof` with built-in objects
6244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
6249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
6245
6250
  */
6246
6251
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6247
6252
  /**
6248
6253
  * Disallow invalid options in `fetch()` and `new Request()`.
6249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
6254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
6250
6255
  */
6251
6256
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6252
6257
  /**
6253
6258
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
6259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
6255
6260
  */
6256
6261
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6257
6262
  /**
6258
6263
  * Disallow identifiers starting with `new` or `class`.
6259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
6264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
6260
6265
  */
6261
6266
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6262
6267
  /**
6263
6268
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
6269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6265
6270
  * @deprecated
6266
6271
  */
6267
6272
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6268
6273
  /**
6269
6274
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
6275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
6271
6276
  */
6272
6277
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6273
6278
  /**
6274
6279
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
6280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
6276
6281
  */
6277
6282
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6278
6283
  /**
6279
6284
  * Disallow named usage of default import and export.
6280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
6285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
6281
6286
  */
6282
6287
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6283
6288
  /**
6284
6289
  * Disallow negated conditions.
6285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
6290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
6286
6291
  */
6287
6292
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6288
6293
  /**
6289
6294
  * Disallow negated expression in equality check.
6290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
6295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
6291
6296
  */
6292
6297
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6293
6298
  /**
6294
6299
  * Disallow nested ternary expressions.
6295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
6300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
6296
6301
  */
6297
6302
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6298
6303
  /**
6299
6304
  * Disallow `new Array()`.
6300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
6305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
6301
6306
  */
6302
6307
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6303
6308
  /**
6304
6309
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
6310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
6306
6311
  */
6307
6312
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6308
6313
  /**
6309
6314
  * Disallow the use of the `null` literal.
6310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
6315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
6311
6316
  */
6312
6317
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6313
6318
  /**
6314
6319
  * Disallow the use of objects as default parameters.
6315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
6320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
6316
6321
  */
6317
6322
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6318
6323
  /**
6319
6324
  * Disallow `process.exit()`.
6320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
6325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
6321
6326
  */
6322
6327
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6323
6328
  /**
6324
6329
  * Disallow passing single-element arrays to `Promise` methods.
6325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
6330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
6326
6331
  */
6327
6332
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6328
6333
  /**
6329
6334
  * Disallow classes that only have static members.
6330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
6335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
6331
6336
  */
6332
6337
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6333
6338
  /**
6334
6339
  * Disallow `then` property.
6335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
6340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
6336
6341
  */
6337
6342
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6338
6343
  /**
6339
6344
  * Disallow assigning `this` to a variable.
6340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
6345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
6341
6346
  */
6342
6347
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6343
6348
  /**
6344
6349
  * Disallow comparing `undefined` using `typeof`.
6345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
6350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
6346
6351
  */
6347
6352
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6348
6353
  /**
6349
6354
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6351
6356
  */
6352
6357
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6353
6358
  /**
6354
6359
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
6356
6361
  */
6357
6362
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6358
6363
  /**
6359
6364
  * Disallow awaiting non-promise values.
6360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
6365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
6361
6366
  */
6362
6367
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6363
6368
  /**
6364
6369
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
6370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
6366
6371
  */
6367
6372
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6368
6373
  /**
6369
6374
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
6371
6376
  */
6372
6377
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6373
6378
  /**
6374
6379
  * Disallow unreadable array destructuring.
6375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
6380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
6376
6381
  */
6377
6382
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6378
6383
  /**
6379
6384
  * Disallow unreadable IIFEs.
6380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
6385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
6381
6386
  */
6382
6387
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6383
6388
  /**
6384
6389
  * Disallow unused object properties.
6385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
6390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
6386
6391
  */
6387
6392
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6393
+ /**
6394
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
6395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6396
+ */
6397
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
6388
6398
  /**
6389
6399
  * Disallow useless fallback when spreading in object literals.
6390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
6400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
6391
6401
  */
6392
6402
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6393
6403
  /**
6394
6404
  * Disallow useless array length check.
6395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
6405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
6396
6406
  */
6397
6407
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6398
6408
  /**
6399
6409
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
6410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
6401
6411
  */
6402
6412
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6403
6413
  /**
6404
6414
  * Disallow unnecessary spread.
6405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
6415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
6406
6416
  */
6407
6417
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6408
6418
  /**
6409
6419
  * Disallow useless case in switch statements.
6410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
6420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
6411
6421
  */
6412
6422
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6413
6423
  /**
6414
6424
  * Disallow useless `undefined`.
6415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
6425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
6416
6426
  */
6417
6427
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6418
6428
  /**
6419
6429
  * Disallow number literals with zero fractions or dangling dots.
6420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
6430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
6421
6431
  */
6422
6432
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
6423
6433
  /**
6424
6434
  * Enforce proper case for numeric literals.
6425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
6435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
6426
6436
  */
6427
6437
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
6428
6438
  /**
6429
6439
  * Enforce the style of numeric separators by correctly grouping digits.
6430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
6440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
6431
6441
  */
6432
6442
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6433
6443
  /**
6434
6444
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
6445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
6436
6446
  */
6437
6447
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
6438
6448
  /**
6439
6449
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
6450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
6441
6451
  */
6442
6452
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
6443
6453
  /**
6444
6454
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
6455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
6446
6456
  */
6447
6457
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
6448
6458
  /**
6449
6459
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
6460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
6451
6461
  */
6452
6462
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
6453
6463
  /**
6454
6464
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
6465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
6456
6466
  */
6457
6467
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
6458
6468
  /**
6459
6469
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
6461
6471
  */
6462
6472
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
6463
6473
  /**
6464
6474
  * Prefer `.at()` method for index access and `String#charAt()`.
6465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
6466
6476
  */
6467
6477
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
6468
6478
  /**
6469
6479
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
6471
6481
  */
6472
6482
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
6483
+ /**
6484
+ * Prefer class field declarations over `this` assignments in constructors.
6485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
6486
+ */
6487
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
6473
6488
  /**
6474
6489
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
6476
6491
  */
6477
6492
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
6478
6493
  /**
6479
6494
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
6481
6496
  */
6482
6497
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
6483
6498
  /**
6484
6499
  * Prefer default parameters over reassignment.
6485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
6486
6501
  */
6487
6502
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
6488
6503
  /**
6489
6504
  * Prefer `Node#append()` over `Node#appendChild()`.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
6491
6506
  */
6492
6507
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
6493
6508
  /**
6494
6509
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
6496
6511
  */
6497
6512
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
6498
6513
  /**
6499
6514
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
6501
6516
  */
6502
6517
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
6503
6518
  /**
6504
6519
  * Prefer `.textContent` over `.innerText`.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
6506
6521
  */
6507
6522
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
6508
6523
  /**
6509
6524
  * Prefer `EventTarget` over `EventEmitter`.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
6511
6526
  */
6512
6527
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
6513
6528
  /**
6514
6529
  * Prefer `export…from` when re-exporting.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
6516
6531
  */
6517
6532
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
6518
6533
  /**
6519
6534
  * Prefer `globalThis` over `window`, `self`, and `global`.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
6521
6536
  */
6522
6537
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
6523
6538
  /**
6524
6539
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
6526
6541
  */
6527
6542
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
6528
6543
  /**
6529
6544
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
6531
6546
  */
6532
6547
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
6533
6548
  /**
6534
6549
  * Prefer reading a JSON file as a buffer.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
6536
6551
  */
6537
6552
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
6538
6553
  /**
6539
6554
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
6541
6556
  */
6542
6557
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
6543
6558
  /**
6544
6559
  * Prefer using a logical operator over a ternary.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6546
6561
  */
6547
6562
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
6548
6563
  /**
6549
6564
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
6551
6566
  */
6552
6567
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
6553
6568
  /**
6554
6569
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
6556
6571
  */
6557
6572
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
6558
6573
  /**
6559
6574
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
6561
6576
  */
6562
6577
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
6563
6578
  /**
6564
6579
  * Prefer modern `Math` APIs over legacy patterns.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
6566
6581
  */
6567
6582
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
6568
6583
  /**
6569
6584
  * Prefer JavaScript modules (ESM) over CommonJS.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
6571
6586
  */
6572
6587
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
6573
6588
  /**
6574
6589
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
6576
6591
  */
6577
6592
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
6578
6593
  /**
6579
6594
  * Prefer negative index over `.length - index` when possible.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
6581
6596
  */
6582
6597
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
6583
6598
  /**
6584
6599
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
6586
6601
  */
6587
6602
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
6588
6603
  /**
6589
6604
  * Prefer `Number` static properties over global ones.
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
6591
6606
  */
6592
6607
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
6593
6608
  /**
6594
6609
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
6596
6611
  */
6597
6612
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
6598
6613
  /**
6599
6614
  * Prefer omitting the `catch` binding parameter.
6600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
6601
6616
  */
6602
6617
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
6603
6618
  /**
6604
6619
  * Prefer borrowing methods from the prototype instead of the instance.
6605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
6606
6621
  */
6607
6622
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
6608
6623
  /**
6609
6624
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
6611
6626
  */
6612
6627
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
6613
6628
  /**
6614
6629
  * Prefer `Reflect.apply()` over `Function#apply()`.
6615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
6616
6631
  */
6617
6632
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
6618
6633
  /**
6619
6634
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
6621
6636
  */
6622
6637
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
6623
6638
  /**
6624
6639
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
6626
6641
  */
6627
6642
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
6628
6643
  /**
6629
6644
  * Prefer using `Set#size` instead of `Array#length`.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
6631
6646
  */
6632
6647
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
6633
6648
  /**
6634
6649
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
6636
6651
  */
6637
6652
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
6638
6653
  /**
6639
6654
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
6641
6656
  */
6642
6657
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
6643
6658
  /**
6644
6659
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
6646
6661
  */
6647
6662
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
6648
6663
  /**
6649
6664
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
6651
6666
  */
6652
6667
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
6653
6668
  /**
6654
6669
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
6656
6671
  */
6657
6672
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
6658
6673
  /**
6659
6674
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
6661
6676
  */
6662
6677
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
6663
6678
  /**
6664
6679
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
6666
6681
  */
6667
6682
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
6668
6683
  /**
6669
6684
  * Prefer using `structuredClone` to create a deep clone.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
6671
6686
  */
6672
6687
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
6673
6688
  /**
6674
6689
  * Prefer `switch` over multiple `else-if`.
6675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
6676
6691
  */
6677
6692
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
6678
6693
  /**
6679
6694
  * Prefer ternary expressions over simple `if-else` statements.
6680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
6681
6696
  */
6682
6697
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
6683
6698
  /**
6684
6699
  * Prefer top-level await over top-level promises and async function calls.
6685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
6686
6701
  */
6687
6702
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
6688
6703
  /**
6689
6704
  * Enforce throwing `TypeError` in type checking conditions.
6690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
6691
6706
  */
6692
6707
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
6693
6708
  /**
6694
6709
  * Prevent abbreviations.
6695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
6696
6711
  */
6697
6712
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
6698
6713
  /**
6699
6714
  * Enforce consistent relative URL style.
6700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
6701
6716
  */
6702
6717
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6703
6718
  /**
6704
6719
  * Enforce using the separator argument with `Array#join()`.
6705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
6706
6721
  */
6707
6722
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6723
+ /**
6724
+ * Require non-empty specifier list in import and export statements.
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
6726
+ */
6727
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6708
6728
  /**
6709
6729
  * Enforce using the digits argument with `Number#toFixed()`.
6710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6711
6731
  */
6712
6732
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6713
6733
  /**
6714
6734
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
6716
6736
  */
6717
6737
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6718
6738
  /**
6719
6739
  * Enforce better string content.
6720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
6740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
6721
6741
  */
6722
6742
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6723
6743
  /**
6724
6744
  * Enforce consistent brace style for `case` clauses.
6725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
6726
6746
  */
6727
6747
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6728
6748
  /**
6729
6749
  * Fix whitespace-insensitive template indentation.
6730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
6731
6751
  */
6732
6752
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6733
6753
  /**
6734
6754
  * Enforce consistent case for text encoding identifiers.
6735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
6736
6756
  */
6737
6757
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
6738
6758
  /**
6739
6759
  * Require `new` when creating an error.
6740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
6741
6761
  */
6742
6762
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6743
6763
  /**
@@ -6754,7 +6774,7 @@ interface RuleOptions {
6754
6774
  * Order of UnoCSS utilities in class attribute
6755
6775
  * @see https://unocss.dev/integrations/eslint#rules
6756
6776
  */
6757
- 'unocss/order'?: Linter.RuleEntry<[]>;
6777
+ 'unocss/order'?: Linter.RuleEntry<UnocssOrder>;
6758
6778
  /**
6759
6779
  * Order of UnoCSS attributes
6760
6780
  * @see https://unocss.dev/integrations/eslint#rules
@@ -7676,6 +7696,16 @@ interface RuleOptions {
7676
7696
  * @see https://eslint.vuejs.org/rules/no-mutating-props.html
7677
7697
  */
7678
7698
  'vue/no-mutating-props'?: Linter.RuleEntry<VueNoMutatingProps>;
7699
+ /**
7700
+ * Disallow negated conditions in `<template>`
7701
+ * @see https://eslint.vuejs.org/rules/no-negated-condition.html
7702
+ */
7703
+ 'vue/no-negated-condition'?: Linter.RuleEntry<[]>;
7704
+ /**
7705
+ * disallow negated conditions in v-if/v-else
7706
+ * @see https://eslint.vuejs.org/rules/no-negated-v-if-condition.html
7707
+ */
7708
+ 'vue/no-negated-v-if-condition'?: Linter.RuleEntry<[]>;
7679
7709
  /**
7680
7710
  * disallow parsing errors in `<template>`
7681
7711
  * @see https://eslint.vuejs.org/rules/no-parsing-error.html
@@ -8554,13 +8584,11 @@ type EslintCommunityEslintCommentsRequireDescription = [] | [{
8554
8584
  type HtmlEslintAttrsNewline = [] | [{
8555
8585
  closeStyle?: ("newline" | "sameline");
8556
8586
  ifAttrsMoreThan?: number;
8557
- [k: string]: unknown | undefined;
8558
8587
  }];
8559
8588
  // ----- @html-eslint/element-newline -----
8560
8589
  type HtmlEslintElementNewline = [] | [{
8561
8590
  inline?: string[];
8562
8591
  skip?: string[];
8563
- [k: string]: unknown | undefined;
8564
8592
  }];
8565
8593
  // ----- @html-eslint/id-naming-convention -----
8566
8594
  type HtmlEslintIdNamingConvention = [] | [("camelCase" | "snake_case" | "PascalCase" | "kebab-case" | "regex")] | [("camelCase" | "snake_case" | "PascalCase" | "kebab-case" | "regex"), {
@@ -8573,7 +8601,6 @@ type HtmlEslintIndent = [] | [("tab" | number)] | [("tab" | number), {
8573
8601
  tagChildrenIndent?: {
8574
8602
  [k: string]: number;
8575
8603
  };
8576
- [k: string]: unknown | undefined;
8577
8604
  }];
8578
8605
  // ----- @html-eslint/max-element-depth -----
8579
8606
  type HtmlEslintMaxElementDepth = [] | [{
@@ -8585,7 +8612,6 @@ type HtmlEslintNoExtraSpacingAttrs = [] | [{
8585
8612
  disallowMissing?: boolean;
8586
8613
  disallowTabs?: boolean;
8587
8614
  enforceBeforeSelfClose?: boolean;
8588
- [k: string]: unknown | undefined;
8589
8615
  }];
8590
8616
  // ----- @html-eslint/no-extra-spacing-text -----
8591
8617
  type HtmlEslintNoExtraSpacingText = [] | [{
@@ -8600,17 +8626,17 @@ type HtmlEslintNoRestrictedAttrValues = {
8600
8626
  attrPatterns: string[];
8601
8627
  attrValuePatterns: string[];
8602
8628
  message?: string;
8603
- [k: string]: unknown | undefined;
8604
8629
  }[];
8605
8630
  // ----- @html-eslint/no-restricted-attrs -----
8606
8631
  type HtmlEslintNoRestrictedAttrs = {
8607
8632
  tagPatterns: string[];
8608
8633
  attrPatterns: string[];
8609
8634
  message?: string;
8610
- [k: string]: unknown | undefined;
8611
8635
  }[];
8612
8636
  // ----- @html-eslint/quotes -----
8613
- type HtmlEslintQuotes = [] | [("single" | "double")];
8637
+ type HtmlEslintQuotes = [] | [("single" | "double")] | [("single" | "double"), {
8638
+ enforceTemplatedAttrValue?: boolean;
8639
+ }];
8614
8640
  // ----- @html-eslint/require-attrs -----
8615
8641
  type HtmlEslintRequireAttrs = {
8616
8642
  tag: string;
@@ -8630,14 +8656,12 @@ type HtmlEslintRequireExplicitSize = [] | [{
8630
8656
  // ----- @html-eslint/require-img-alt -----
8631
8657
  type HtmlEslintRequireImgAlt = [] | [{
8632
8658
  substitute?: string[];
8633
- [k: string]: unknown | undefined;
8634
8659
  }];
8635
8660
  // ----- @html-eslint/require-open-graph-protocol -----
8636
8661
  type HtmlEslintRequireOpenGraphProtocol = [] | [string[]];
8637
8662
  // ----- @html-eslint/sort-attrs -----
8638
8663
  type HtmlEslintSortAttrs = [] | [{
8639
8664
  priority?: string[];
8640
- [k: string]: unknown | undefined;
8641
8665
  }];
8642
8666
  // ----- @html-eslint/use-baseline -----
8643
8667
  type HtmlEslintUseBaseline = [] | [{
@@ -9426,7 +9450,6 @@ type TypescriptEslintPreferDestructuring = [] | [({
9426
9450
  }), {
9427
9451
  enforceForDeclarationWithTypeAnnotation?: boolean;
9428
9452
  enforceForRenamedProperties?: boolean;
9429
- [k: string]: unknown | undefined;
9430
9453
  }];
9431
9454
  // ----- @typescript-eslint/prefer-literal-enum-member -----
9432
9455
  type TypescriptEslintPreferLiteralEnumMember = [] | [{
@@ -9444,7 +9467,6 @@ type TypescriptEslintPreferNullishCoalescing = [] | [{
9444
9467
  boolean?: boolean;
9445
9468
  number?: boolean;
9446
9469
  string?: boolean;
9447
- [k: string]: unknown | undefined;
9448
9470
  } | true);
9449
9471
  ignoreTernaryTests?: boolean;
9450
9472
  }];
@@ -9594,6 +9616,7 @@ type AccessorPairs = [] | [{
9594
9616
  getWithoutSet?: boolean;
9595
9617
  setWithoutGet?: boolean;
9596
9618
  enforceForClassMembers?: boolean;
9619
+ enforceForTSTypes?: boolean;
9597
9620
  }];
9598
9621
  // ----- antfu/consistent-chaining -----
9599
9622
  type AntfuConsistentChaining = [] | [{
@@ -9936,7 +9959,9 @@ type GithubActionValidTimeoutMinutes = [] | [(number | {
9936
9959
  });
9937
9960
  })];
9938
9961
  // ----- grouped-accessor-pairs -----
9939
- type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")];
9962
+ type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")] | [("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
9963
+ enforceForTSTypes?: boolean;
9964
+ }];
9940
9965
  // ----- handle-callback-err -----
9941
9966
  type HandleCallbackErr = [] | [string];
9942
9967
  // ----- id-blacklist -----
@@ -11418,6 +11443,10 @@ type MarkdownNoUnusedDefinitions = [] | [{
11418
11443
  allowDefinitions?: string[];
11419
11444
  allowFootnoteDefinitions?: string[];
11420
11445
  }];
11446
+ // ----- markdown/table-column-count -----
11447
+ type MarkdownTableColumnCount = [] | [{
11448
+ checkMissingCells?: boolean;
11449
+ }];
11421
11450
  // ----- max-classes-per-file -----
11422
11451
  type MaxClassesPerFile = [] | [(number | {
11423
11452
  ignoreExpressions?: boolean;
@@ -11902,6 +11931,7 @@ type NoUnusedVars = [] | [(("all" | "local") | {
11902
11931
  caughtErrorsIgnorePattern?: string;
11903
11932
  destructuredArrayIgnorePattern?: string;
11904
11933
  ignoreClassWithStaticInitBlock?: boolean;
11934
+ ignoreUsingDeclarations?: boolean;
11905
11935
  reportUsedIgnorePattern?: boolean;
11906
11936
  })];
11907
11937
  // ----- no-use-before-define -----
@@ -15211,6 +15241,10 @@ interface _UnicornImportStyle_BooleanObject {
15211
15241
  type UnicornNoArrayReduce = [] | [{
15212
15242
  allowSimpleOperations?: boolean;
15213
15243
  }];
15244
+ // ----- unicorn/no-array-reverse -----
15245
+ type UnicornNoArrayReverse = [] | [{
15246
+ allowExpressionStatement?: boolean;
15247
+ }];
15214
15248
  // ----- unicorn/no-instanceof-builtins -----
15215
15249
  type UnicornNoInstanceofBuiltins = [] | [{
15216
15250
  useErrorIsError?: boolean;
@@ -15364,6 +15398,12 @@ type UnocssEnforceClassCompile = [] | [{
15364
15398
  prefix?: string;
15365
15399
  enableFix?: boolean;
15366
15400
  }];
15401
+ // ----- unocss/order -----
15402
+ type UnocssOrder = [] | [{
15403
+ unoFunctions?: string[];
15404
+ unoVariables?: string[];
15405
+ [k: string]: unknown | undefined;
15406
+ }];
15367
15407
  // ----- unused-imports/no-unused-imports -----
15368
15408
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
15369
15409
  args?: ("all" | "after-used" | "none");
@@ -16214,6 +16254,7 @@ type VueNoDeprecatedRouterLinkTagProp = [] | [{
16214
16254
  // ----- vue/no-deprecated-slot-attribute -----
16215
16255
  type VueNoDeprecatedSlotAttribute = [] | [{
16216
16256
  ignore?: string[];
16257
+ ignoreParents?: string[];
16217
16258
  }];
16218
16259
  // ----- vue/no-dupe-keys -----
16219
16260
  type VueNoDupeKeys = [] | [{
package/dist/index.js CHANGED
@@ -81,7 +81,7 @@ const GLOB_YAML = "**/*.y?(a)ml";
81
81
  const GLOB_PNPM_WORKSPACE_YAML = "**/pnpm-workspace.yaml";
82
82
  const GLOB_SVG = "**/*.svg";
83
83
  const GLOB_VUE = "**/*.vue";
84
- const GLOB_SVELTE = "**/*.svelte";
84
+ const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
85
85
  const GLOB_TOML = "**/*.toml";
86
86
  const GLOB_HTML = "**/*.htm?(l)";
87
87
  const GLOB_ASTRO = "**/*.astro";
@@ -203,6 +203,7 @@ const extensionRules = {
203
203
  "vue/no-empty-pattern": "error",
204
204
  "vue/no-extra-parens": ["error", "functions"],
205
205
  "vue/no-loss-of-precision": "error",
206
+ "vue/no-negated-condition": "error",
206
207
  "vue/no-restricted-syntax": [
207
208
  "error",
208
209
  "DebuggerStatement",
@@ -296,6 +297,7 @@ const unCategorizedRules = {
296
297
  "vue/no-empty-component-block": "error",
297
298
  "vue/no-irregular-whitespace": "error",
298
299
  "vue/no-multiple-objects-in-class": "error",
300
+ "vue/no-negated-v-if-condition": "error",
299
301
  "vue/no-ref-object-reactivity-loss": "error",
300
302
  "vue/no-required-prop-with-default": ["error", { autofix: true }],
301
303
  "vue/no-restricted-v-bind": ["error", "/^v-/"],
@@ -2043,8 +2045,10 @@ const disabledRules = {
2043
2045
  "unicorn/better-regex": "off",
2044
2046
  "unicorn/explicit-length-check": "off",
2045
2047
  "unicorn/no-array-callback-reference": "off",
2048
+ "unicorn/no-array-reverse": "off",
2046
2049
  "unicorn/prefer-global-this": "off",
2047
- "unicorn/prefer-top-level-await": "off"
2050
+ "unicorn/prefer-top-level-await": "off",
2051
+ "unicorn/require-module-specifiers": "off"
2048
2052
  };
2049
2053
  /**
2050
2054
  * Config for powerful rules
@@ -2073,6 +2077,7 @@ const configUnicorn = (options = {}) => [{
2073
2077
  "unicorn/no-static-only-class": "error",
2074
2078
  "unicorn/no-typeof-undefined": "error",
2075
2079
  "unicorn/no-unnecessary-await": "error",
2080
+ "unicorn/prefer-class-fields": "error",
2076
2081
  "unicorn/prefer-import-meta-properties": "error",
2077
2082
  "unicorn/prefer-includes": "error",
2078
2083
  "unicorn/prefer-keyboard-event-key": "error",
@@ -2091,6 +2096,7 @@ const configUnicorn = (options = {}) => [{
2091
2096
  ignore: ["^_."]
2092
2097
  }],
2093
2098
  "unicorn/custom-error-definition": "error",
2099
+ "unicorn/no-useless-error-capture-stack-trace": "error",
2094
2100
  "unicorn/prefer-type-error": "error",
2095
2101
  "unicorn/throw-new-error": "error",
2096
2102
  "unicorn/no-zero-fractions": "error",
@@ -2506,6 +2512,7 @@ const configJavaScript = (options = {}) => [{
2506
2512
  "no-loss-of-precision": "error",
2507
2513
  "no-misleading-character-class": "error",
2508
2514
  "no-multi-str": "error",
2515
+ "no-negated-condition": "error",
2509
2516
  "no-new": "error",
2510
2517
  "no-new-func": "error",
2511
2518
  "no-new-native-nonconstructor": "error",
@@ -2813,10 +2820,10 @@ const configESLintPlugin = async (options = {}) => {
2813
2820
  await ensurePackages(["eslint-plugin-eslint-plugin"]);
2814
2821
  const pluginESLintPlugin = await interopDefault(import("eslint-plugin-eslint-plugin"));
2815
2822
  return [{
2816
- ...pluginESLintPlugin.configs["flat/all"],
2823
+ ...pluginESLintPlugin.configs.all,
2817
2824
  name: "ntnyq/eslint-plugin",
2818
2825
  rules: {
2819
- ...pluginESLintPlugin.configs["flat/all"].rules,
2826
+ ...pluginESLintPlugin.configs.all.rules,
2820
2827
  "eslint-plugin/require-meta-docs-url": "off",
2821
2828
  ...options.overrides
2822
2829
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "5.1.0",
4
+ "version": "5.3.0",
5
5
  "description": "An opinionated ESLint config preset of ntnyq",
6
6
  "keywords": [
7
7
  "eslint",
@@ -36,18 +36,18 @@
36
36
  "tag": "latest"
37
37
  },
38
38
  "peerDependencies": {
39
- "@html-eslint/eslint-plugin": "^0.42.0",
40
- "@html-eslint/parser": "^0.42.0",
39
+ "@html-eslint/eslint-plugin": "^0.44.0",
40
+ "@html-eslint/parser": "^0.44.0",
41
41
  "astro-eslint-parser": "^1.2.2",
42
42
  "eslint": "^9.20.0",
43
43
  "eslint-plugin-astro": "^1.3.1",
44
- "eslint-plugin-eslint-plugin": "^6.5.0",
44
+ "eslint-plugin-eslint-plugin": "^7.0.0",
45
45
  "eslint-plugin-format": "^1.0.1",
46
- "eslint-plugin-pnpm": "^1.0.0",
47
- "eslint-plugin-svelte": "^3.10.1",
46
+ "eslint-plugin-pnpm": "^1.1.0",
47
+ "eslint-plugin-svelte": "^3.11.0",
48
48
  "eslint-plugin-unused-imports": "^4.1.4",
49
- "svelte": "^5.31.1",
50
- "svelte-eslint-parser": "^1.2.0"
49
+ "svelte": "^5.37.3",
50
+ "svelte-eslint-parser": "^1.3.1"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "@html-eslint/eslint-plugin": {
@@ -88,34 +88,34 @@
88
88
  "@antfu/install-pkg": "^1.1.0",
89
89
  "@clack/prompts": "^0.11.0",
90
90
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
91
- "@eslint/js": "^9.31.0",
92
- "@eslint/markdown": "^7.0.0",
93
- "@unocss/eslint-plugin": "^66.3.3",
91
+ "@eslint/js": "^9.32.0",
92
+ "@eslint/markdown": "^7.1.0",
93
+ "@unocss/eslint-plugin": "^66.4.1",
94
94
  "@vitest/eslint-plugin": "^1.3.4",
95
95
  "eslint-config-flat-gitignore": "^2.1.0",
96
- "eslint-flat-config-utils": "^2.1.0",
96
+ "eslint-flat-config-utils": "^2.1.1",
97
97
  "eslint-import-resolver-typescript": "^4.4.4",
98
98
  "eslint-merge-processors": "^2.0.0",
99
99
  "eslint-parser-plain": "^0.1.1",
100
100
  "eslint-plugin-antfu": "^3.1.1",
101
101
  "eslint-plugin-command": "^3.3.1",
102
- "eslint-plugin-de-morgan": "^1.3.0",
102
+ "eslint-plugin-de-morgan": "^1.3.1",
103
103
  "eslint-plugin-depend": "^1.2.0",
104
104
  "eslint-plugin-github-action": "^0.0.16",
105
105
  "eslint-plugin-import-x": "^4.16.1",
106
- "eslint-plugin-jsdoc": "^51.4.1",
106
+ "eslint-plugin-jsdoc": "^52.0.2",
107
107
  "eslint-plugin-jsonc": "^2.20.1",
108
- "eslint-plugin-n": "^17.21.0",
108
+ "eslint-plugin-n": "^17.21.3",
109
109
  "eslint-plugin-no-only-tests": "^3.3.0",
110
110
  "eslint-plugin-ntnyq": "^0.11.0",
111
111
  "eslint-plugin-perfectionist": "^4.15.0",
112
112
  "eslint-plugin-pinia": "^0.4.1",
113
113
  "eslint-plugin-prettier": "^5.5.3",
114
- "eslint-plugin-regexp": "^2.9.0",
114
+ "eslint-plugin-regexp": "^2.9.1",
115
115
  "eslint-plugin-svgo": "^0.10.0",
116
116
  "eslint-plugin-toml": "^0.12.0",
117
- "eslint-plugin-unicorn": "^59.0.1",
118
- "eslint-plugin-vue": "^10.3.0",
117
+ "eslint-plugin-unicorn": "^60.0.0",
118
+ "eslint-plugin-vue": "^10.4.0",
119
119
  "eslint-plugin-yml": "^1.18.0",
120
120
  "eslint-processor-vue-blocks": "^2.0.0",
121
121
  "globals": "^16.3.0",
@@ -123,26 +123,26 @@
123
123
  "local-pkg": "^1.1.1",
124
124
  "prettier": "^3.6.2",
125
125
  "toml-eslint-parser": "^0.10.0",
126
- "typescript-eslint": "^8.37.0",
126
+ "typescript-eslint": "^8.39.0",
127
127
  "vue-eslint-parser": "^10.2.0",
128
128
  "yaml-eslint-parser": "^1.3.0"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@ntnyq/prettier-config": "^3.0.1",
132
- "@types/node": "^24.0.15",
133
- "@typescript-eslint/utils": "^8.37.0",
134
- "bumpp": "^10.2.0",
132
+ "@types/node": "^24.2.0",
133
+ "@typescript-eslint/utils": "^8.39.0",
134
+ "bumpp": "^10.2.2",
135
135
  "consola": "^3.4.2",
136
- "eslint": "^9.31.0",
137
- "eslint-plugin-eslint-plugin": "^6.5.0",
138
- "eslint-typegen": "^2.2.1",
136
+ "eslint": "^9.32.0",
137
+ "eslint-plugin-eslint-plugin": "^7.0.0",
138
+ "eslint-typegen": "^2.3.0",
139
139
  "husky": "^9.1.7",
140
- "jiti": "^2.4.2",
140
+ "jiti": "^2.5.1",
141
141
  "nano-staged": "^0.8.0",
142
142
  "npm-run-all2": "^8.0.4",
143
143
  "tinyglobby": "^0.2.14",
144
- "tsdown": "^0.12.9",
145
- "typescript": "^5.8.3",
144
+ "tsdown": "^0.13.3",
145
+ "typescript": "^5.9.2",
146
146
  "uncase": "^0.1.0",
147
147
  "vitest": "^3.2.4"
148
148
  },