@favorodera/eslint-config 3.0.0 → 3.2.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.
@@ -203,121 +203,271 @@ interface RuleOptions {
203
203
  * @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
204
204
  */
205
205
  'css/use-layers'?: Linter.RuleEntry<CssUseLayers>;
206
+ /**
207
+ * Enforce consistent ordering of compound selector components.
208
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-compound-selector-order.md
209
+ */
210
+ 'cssicorn/consistent-compound-selector-order'?: Linter.RuleEntry<[]>;
211
+ /**
212
+ * Enforce consistent ordering of cascade layer statements.
213
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-layer-order.md
214
+ */
215
+ 'cssicorn/consistent-layer-order'?: Linter.RuleEntry<CssicornConsistentLayerOrder>;
216
+ /**
217
+ * Enforce consistent ordering of CSS properties.
218
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-property-order.md
219
+ */
220
+ 'cssicorn/consistent-property-order'?: Linter.RuleEntry<CssicornConsistentPropertyOrder>;
221
+ /**
222
+ * Enforce consistent ordering of CSS value components.
223
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-value-order.md
224
+ */
225
+ 'cssicorn/consistent-value-order'?: Linter.RuleEntry<[]>;
206
226
  /**
207
227
  * Enforce lowercase CSS syntax.
208
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/lowercase.md
228
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/lowercase.md
209
229
  */
210
230
  'cssicorn/lowercase'?: Linter.RuleEntry<[]>;
231
+ /**
232
+ * Disallow CSS values that browsers silently clamp.
233
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-clamped-values.md
234
+ */
235
+ 'cssicorn/no-clamped-values'?: Linter.RuleEntry<[]>;
211
236
  /**
212
237
  * Disallow declarations after nested rules.
213
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-declarations-after-nested-rules.md
238
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-declarations-after-nested-rules.md
214
239
  */
215
240
  'cssicorn/no-declarations-after-nested-rules'?: Linter.RuleEntry<[]>;
216
241
  /**
217
242
  * Disallow deprecated CSS features.
218
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-deprecated-features.md
243
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-deprecated-features.md
219
244
  */
220
245
  'cssicorn/no-deprecated-features'?: Linter.RuleEntry<CssicornNoDeprecatedFeatures>;
221
246
  /**
222
247
  * Disallow lower-specificity selectors from following higher-specificity selectors that set the same property.
223
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-descending-specificity.md
248
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-descending-specificity.md
224
249
  */
225
250
  'cssicorn/no-descending-specificity'?: Linter.RuleEntry<[]>;
251
+ /**
252
+ * Disallow `touch-action` values that disable browser pinch zoom.
253
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-disabled-pinch-zoom.md
254
+ */
255
+ 'cssicorn/no-disabled-pinch-zoom'?: Linter.RuleEntry<[]>;
256
+ /**
257
+ * Disallow duplicate named at-rule definitions.
258
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-at-rule-definitions.md
259
+ */
260
+ 'cssicorn/no-duplicate-at-rule-definitions'?: Linter.RuleEntry<[]>;
226
261
  /**
227
262
  * Disallow duplicate font family names.
228
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-font-family-names.md
263
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-font-family-names.md
229
264
  */
230
265
  'cssicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
231
266
  /**
232
267
  * Disallow duplicate properties within CSS declaration blocks.
233
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-properties.md
268
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-properties.md
234
269
  */
235
270
  'cssicorn/no-duplicate-properties'?: Linter.RuleEntry<[]>;
236
271
  /**
237
272
  * Disallow duplicate CSS selectors.
238
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-selectors.md
273
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-selectors.md
239
274
  */
240
275
  'cssicorn/no-duplicate-selectors'?: Linter.RuleEntry<[]>;
241
276
  /**
242
- * Disallow unknown media features and invalid values for known media features.
243
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-invalid-media-features.md
277
+ * Disallow ineffective declarations in keyframes.
278
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-keyframe-declarations.md
279
+ */
280
+ 'cssicorn/no-ineffective-keyframe-declarations'?: Linter.RuleEntry<[]>;
281
+ /**
282
+ * Disallow state and conditional overrides blocked by cascade priority.
283
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-overrides.md
284
+ */
285
+ 'cssicorn/no-ineffective-overrides'?: Linter.RuleEntry<[]>;
286
+ /**
287
+ * Disallow properties that have no effect given other declarations or shorthand defaults.
288
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-properties.md
289
+ */
290
+ 'cssicorn/no-ineffective-properties'?: Linter.RuleEntry<[]>;
291
+ /**
292
+ * Disallow properties that cannot affect their selected targets.
293
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-selector-properties.md
294
+ */
295
+ 'cssicorn/no-ineffective-selector-properties'?: Linter.RuleEntry<[]>;
296
+ /**
297
+ * Disallow supports conditions that do not test their value functions.
298
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-supports-conditions.md
299
+ */
300
+ 'cssicorn/no-ineffective-supports-conditions'?: Linter.RuleEntry<[]>;
301
+ /**
302
+ * Disallow transition targets that cannot transition under the declared behavior.
303
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-transitions.md
304
+ */
305
+ 'cssicorn/no-ineffective-transitions'?: Linter.RuleEntry<[]>;
306
+ /**
307
+ * Disallow unknown media features, invalid values, and invalid notation.
308
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-invalid-media-features.md
244
309
  */
245
310
  'cssicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
246
311
  /**
247
- * Disallow nesting under selector lists with mixed specificity.
248
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-nesting-with-mixed-specificity.md
312
+ * Disallow invalid property references in transitions and will-change.
313
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-invalid-property-references.md
314
+ */
315
+ 'cssicorn/no-invalid-property-references'?: Linter.RuleEntry<[]>;
316
+ /**
317
+ * Disallow animating properties that can affect layout.
318
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-layout-animations.md
319
+ */
320
+ 'cssicorn/no-layout-animations'?: Linter.RuleEntry<[]>;
321
+ /**
322
+ * Disallow mixed specificity in nesting parents and selector-list pseudo-classes.
323
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-nesting-with-mixed-specificity.md
249
324
  */
250
325
  'cssicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
326
+ /**
327
+ * Disallow overflow values that are coerced by the other axis.
328
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-overflow-axis-coercion.md
329
+ */
330
+ 'cssicorn/no-overflow-axis-coercion'?: Linter.RuleEntry<[]>;
331
+ /**
332
+ * Disallow redundant function calls and arguments.
333
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-functions.md
334
+ */
335
+ 'cssicorn/no-redundant-functions'?: Linter.RuleEntry<[]>;
251
336
  /**
252
337
  * Disallow longhand properties that can be combined into a shorthand.
253
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-longhand-properties.md
338
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-longhand-properties.md
254
339
  */
255
340
  'cssicorn/no-redundant-longhand-properties'?: Linter.RuleEntry<CssicornNoRedundantLonghandProperties>;
256
341
  /**
257
342
  * Disallow nested style rules that do not modify the parent selector.
258
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-nested-style-rules.md
343
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-nested-style-rules.md
259
344
  */
260
345
  'cssicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
346
+ /**
347
+ * Disallow redundant nesting selectors.
348
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-nesting-selector.md
349
+ */
350
+ 'cssicorn/no-redundant-nesting-selector'?: Linter.RuleEntry<[]>;
261
351
  /**
262
352
  * Disallow redundant values in CSS shorthand properties.
263
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-shorthand-values.md
353
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-shorthand-values.md
264
354
  */
265
355
  'cssicorn/no-redundant-shorthand-values'?: Linter.RuleEntry<[]>;
266
356
  /**
267
- * Disallow self-references in CSS custom properties.
268
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-self-referencing-custom-properties.md
357
+ * Disallow cyclic dependencies in CSS custom properties.
358
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-self-referencing-custom-properties.md
269
359
  */
270
360
  'cssicorn/no-self-referencing-custom-properties'?: Linter.RuleEntry<[]>;
271
361
  /**
272
362
  * Disallow unknown animations.
273
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-animations.md
363
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unknown-animations.md
274
364
  */
275
365
  'cssicorn/no-unknown-animations'?: Linter.RuleEntry<[]>;
276
366
  /**
277
367
  * Disallow unknown and noncanonical CSS annotations.
278
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-annotations.md
368
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unknown-annotations.md
279
369
  */
280
370
  'cssicorn/no-unknown-annotations'?: Linter.RuleEntry<[]>;
281
371
  /**
282
372
  * Disallow unknown pseudo-class and pseudo-element selectors.
283
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-pseudo-selectors.md
373
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unknown-pseudo-selectors.md
284
374
  */
285
375
  'cssicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<CssicornNoUnknownPseudoSelectors>;
286
376
  /**
287
377
  * Disallow unscoped CSS nesting selectors.
288
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unscoped-nesting-selector.md
378
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unscoped-nesting-selector.md
289
379
  */
290
380
  'cssicorn/no-unscoped-nesting-selector'?: Linter.RuleEntry<CssicornNoUnscopedNestingSelector>;
381
+ /**
382
+ * Disallow unnecessary `:is()` wrappers.
383
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-useless-is.md
384
+ */
385
+ 'cssicorn/no-useless-is'?: Linter.RuleEntry<[]>;
291
386
  /**
292
387
  * Disallow units on zero CSS lengths.
293
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-zero-length-unit.md
388
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-zero-length-unit.md
294
389
  */
295
390
  'cssicorn/no-zero-length-unit'?: Linter.RuleEntry<[]>;
391
+ /**
392
+ * Prefer `aspect-ratio` over zero-height percentage-padding workarounds.
393
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-aspect-ratio.md
394
+ */
395
+ 'cssicorn/prefer-aspect-ratio'?: Linter.RuleEntry<[]>;
396
+ /**
397
+ * Prefer `clamp()` over nested `min()` and `max()`.
398
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-clamp.md
399
+ */
400
+ 'cssicorn/prefer-clamp'?: Linter.RuleEntry<[]>;
401
+ /**
402
+ * Prefer currentcolor over repeating the foreground color.
403
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-current-color.md
404
+ */
405
+ 'cssicorn/prefer-current-color'?: Linter.RuleEntry<[]>;
406
+ /**
407
+ * Prefer existing custom properties over matching literal values.
408
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-existing-custom-properties.md
409
+ */
410
+ 'cssicorn/prefer-existing-custom-properties'?: Linter.RuleEntry<CssicornPreferExistingCustomProperties>;
296
411
  /**
297
412
  * Prefer explicit viewport units.
298
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-explicit-viewport-units.md
413
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-explicit-viewport-units.md
299
414
  */
300
415
  'cssicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<CssicornPreferExplicitViewportUnits>;
416
+ /**
417
+ * Prefer individual transform properties over transform functions.
418
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-individual-transform-properties.md
419
+ */
420
+ 'cssicorn/prefer-individual-transform-properties'?: Linter.RuleEntry<[]>;
421
+ /**
422
+ * Prefer `light-dark()` over paired light and dark color declarations.
423
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-light-dark.md
424
+ */
425
+ 'cssicorn/prefer-light-dark'?: Linter.RuleEntry<[]>;
301
426
  /**
302
427
  * Prefer modern media feature range syntax.
303
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-media-feature-range-syntax.md
428
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-media-feature-range-syntax.md
304
429
  */
305
430
  'cssicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
431
+ /**
432
+ * Prefer merging adjacent rules with identical declarations or conditions.
433
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-merged-rules.md
434
+ */
435
+ 'cssicorn/prefer-merged-rules'?: Linter.RuleEntry<[]>;
306
436
  /**
307
437
  * Prefer modern CSS color and pseudo-element syntax.
308
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-modern-syntax.md
438
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-modern-syntax.md
309
439
  */
310
440
  'cssicorn/prefer-modern-syntax'?: Linter.RuleEntry<[]>;
441
+ /**
442
+ * Prefer CSS nesting for related rules and selector groups.
443
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-nesting.md
444
+ */
445
+ 'cssicorn/prefer-nesting'?: Linter.RuleEntry<[]>;
446
+ /**
447
+ * Prefer relative colors for alpha variants of existing color custom properties.
448
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-relative-colors.md
449
+ */
450
+ 'cssicorn/prefer-relative-colors'?: Linter.RuleEntry<[]>;
311
451
  /**
312
452
  * Prefer short hexadecimal color notation.
313
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-short-hex-color.md
453
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-short-hex-color.md
314
454
  */
315
455
  'cssicorn/prefer-short-hex-color'?: Linter.RuleEntry<[]>;
456
+ /**
457
+ * Require motion effects inside `prefers-reduced-motion: no-preference` media queries.
458
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/require-prefers-reduced-motion.md
459
+ */
460
+ 'cssicorn/require-prefers-reduced-motion'?: Linter.RuleEntry<[]>;
316
461
  /**
317
462
  * Require descriptors in CSS `@property` rules.
318
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/require-property-descriptors.md
463
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/require-property-descriptors.md
319
464
  */
320
465
  'cssicorn/require-property-descriptors'?: Linter.RuleEntry<[]>;
466
+ /**
467
+ * Require a positive scoping boundary for every selector.
468
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/require-selector-scope.md
469
+ */
470
+ 'cssicorn/require-selector-scope'?: Linter.RuleEntry<[]>;
321
471
  /**
322
472
  * Enforce consistent brace style for all control statements
323
473
  * @see https://eslint.org/docs/latest/rules/curly
@@ -559,7 +709,7 @@ interface RuleOptions {
559
709
  * Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
560
710
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
561
711
  */
562
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
712
+ 'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
563
713
  /**
564
714
  * Reports invalid block tag names.
565
715
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
@@ -4111,1992 +4261,2002 @@ interface RuleOptions {
4111
4261
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
4112
4262
  /**
4113
4263
  * Prefer better DOM traversal APIs.
4114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
4264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/better-dom-traversing.md
4115
4265
  */
4116
4266
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
4117
4267
  /**
4118
4268
  * Removed. Prefer `eslint-plugin-regexp`
4119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#better-regex
4120
4270
  * @deprecated
4121
4271
  */
4122
4272
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
4123
4273
  /**
4124
4274
  * Enforce a specific parameter name in catch clauses.
4125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
4275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/catch-error-name.md
4126
4276
  */
4127
4277
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
4128
4278
  /**
4129
4279
  * Enforce consistent class references in static methods.
4130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
4280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/class-reference-in-static-methods.md
4131
4281
  */
4132
4282
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
4133
4283
  /**
4134
- * Enforce consistent spacing before and after commas in JSON.
4135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
4284
+ * Enforce consistent spacing before and after commas in JSON and SOML.
4285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/comma-spacing.md
4136
4286
  */
4137
4287
  'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
4138
4288
  /**
4139
4289
  * Enforce better comment content.
4140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
4290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/comment-content.md
4141
4291
  */
4142
4292
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
4143
4293
  /**
4144
4294
  * Enforce a consistent return style for multiline arrow function bodies.
4145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
4295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-arrow-return-style.md
4146
4296
  */
4147
4297
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
4148
4298
  /**
4149
4299
  * Enforce consistent assertion style with `node:assert`.
4150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
4300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-assert.md
4151
4301
  */
4152
4302
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
4153
4303
  /**
4154
4304
  * Enforce consistent naming for boolean names.
4155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
4305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-boolean-name.md
4156
4306
  */
4157
4307
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
4158
4308
  /**
4159
4309
  * Enforce consistent class member order.
4160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
4310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-class-member-order.md
4161
4311
  */
4162
4312
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
4163
4313
  /**
4164
4314
  * Enforce consistent spelling of compound words in identifiers.
4165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
4315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-compound-words.md
4166
4316
  */
4167
4317
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
4168
4318
  /**
4169
4319
  * Enforce consistent conditional object spread style.
4170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
4320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-conditional-object-spread.md
4171
4321
  */
4172
4322
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
4173
4323
  /**
4174
4324
  * Prefer passing `Date` directly to the constructor when cloning.
4175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
4325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-date-clone.md
4176
4326
  */
4177
4327
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
4178
4328
  /**
4179
4329
  * Use destructured variables over properties.
4180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
4330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-destructuring.md
4181
4331
  */
4182
4332
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
4183
4333
  /**
4184
4334
  * Prefer consistent types when spreading a ternary in an array literal.
4185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
4335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-empty-array-spread.md
4186
4336
  */
4187
4337
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
4188
4338
  /**
4189
4339
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
4340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-existence-index-check.md
4191
4341
  */
4192
4342
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
4193
4343
  /**
4194
4344
  * Enforce consistent decorator position on exported classes.
4195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
4345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-export-decorator-position.md
4196
4346
  */
4197
4347
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
4198
4348
  /**
4199
4349
  * Move function definitions to the highest possible scope.
4200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
4350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-function-scoping.md
4201
4351
  */
4202
4352
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
4203
4353
  /**
4204
4354
  * Enforce function syntax by role.
4205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
4355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-function-style.md
4206
4356
  */
4207
4357
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
4208
4358
  /**
4209
4359
  * Enforce consistent JSON file reads before `JSON.parse()`.
4210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
4360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-json-file-read.md
4211
4361
  */
4212
4362
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
4213
4363
  /**
4214
4364
  * Enforce consistent optional chaining for same-base member access.
4215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
4365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-optional-chaining.md
4216
4366
  */
4217
4367
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
4218
4368
  /**
4219
4369
  * Enforce consistent style for escaping `${` in template literals.
4220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
4370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-template-literal-escape.md
4221
4371
  */
4222
4372
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
4223
4373
  /**
4224
4374
  * Enforce consistent labels on tuple type elements.
4225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
4375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/consistent-tuple-labels.md
4226
4376
  */
4227
4377
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
4228
4378
  /**
4229
4379
  * Enforce correct `Error` subclassing.
4230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
4380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/custom-error-definition.md
4231
4381
  */
4232
4382
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
4233
4383
  /**
4234
4384
  * Enforce consistent default export declarations.
4235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
4385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/default-export-style.md
4236
4386
  */
4237
4387
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
4238
4388
  /**
4239
4389
  * Enforce consistent style for DOM element dataset access.
4240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
4390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/dom-node-dataset.md
4241
4391
  */
4242
4392
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
4243
4393
  /**
4244
4394
  * Enforce no spaces between braces.
4245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
4395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/empty-brace-spaces.md
4246
4396
  */
4247
4397
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
4248
4398
  /**
4249
4399
  * Enforce passing a `message` value when creating a built-in error.
4250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
4400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/error-message.md
4251
4401
  */
4252
4402
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
4253
4403
  /**
4254
4404
  * Require escape sequences to use uppercase or lowercase values.
4255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
4405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/escape-case.md
4256
4406
  */
4257
4407
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
4258
4408
  /**
4259
4409
  * Add expiration conditions to TODO comments.
4260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
4410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/expiring-todo-comments.md
4261
4411
  */
4262
4412
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
4263
4413
  /**
4264
4414
  * Enforce explicitly comparing the `length` or `size` property of a value.
4265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
4415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/explicit-length-check.md
4266
4416
  */
4267
4417
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
4268
4418
  /**
4269
4419
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
4270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
4420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/explicit-timer-delay.md
4271
4421
  */
4272
4422
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
4273
4423
  /**
4274
4424
  * Enforce a case style for filenames and directory names.
4275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
4425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/filename-case.md
4276
4426
  */
4277
4427
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
4278
4428
  /**
4279
4429
  * Require identifiers to match a specified regular expression.
4280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
4430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/id-match.md
4281
4431
  */
4282
4432
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
4283
4433
  /**
4284
4434
  * Enforce specific import styles per module.
4285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
4435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/import-style.md
4286
4436
  */
4287
4437
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
4288
4438
  /**
4289
4439
  * Enforce consistent indentation in JSON and CSS.
4290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
4440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/indent.md
4291
4441
  */
4292
4442
  'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
4293
4443
  /**
4294
4444
  * Prevent usage of variables from outside the scope of isolated functions.
4295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
4445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/isolated-functions.md
4296
4446
  */
4297
4447
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
4298
4448
  /**
4299
4449
  * Enforce a consistent style for optional loop sources.
4300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
4450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/iteration-fallback-style.md
4301
4451
  */
4302
4452
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
4303
4453
  /**
4304
4454
  * Enforce a case style for data keys.
4305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
4455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/key-name-casing.md
4306
4456
  */
4307
4457
  'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
4308
4458
  /**
4309
4459
  * Require or disallow logical assignment operator shorthand
4310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
4460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/logical-assignment-operators.md
4311
4461
  */
4312
4462
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
4313
4463
  /**
4314
4464
  * Limit the depth of nested calls.
4315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
4465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/max-nested-calls.md
4316
4466
  */
4317
4467
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
4318
4468
  /**
4319
4469
  * Enforce replacements for variable, property, and filenames.
4320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
4470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/name-replacements.md
4321
4471
  */
4322
4472
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
4323
4473
  /**
4324
4474
  * Enforce correct use of `new` for builtin constructors.
4325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
4475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/new-for-builtins.md
4326
4476
  */
4327
4477
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
4328
4478
  /**
4329
4479
  * Enforce specifying rules to disable in `eslint-disable` comments.
4330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
4480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-abusive-eslint-disable.md
4331
4481
  */
4332
4482
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
4333
4483
  /**
4334
4484
  * Disallow recursive access to `this` within getters and setters.
4335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
4485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-accessor-recursion.md
4336
4486
  */
4337
4487
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
4338
4488
  /**
4339
4489
  * Disallow bitwise operators where a logical operator was likely intended.
4340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
4490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-accidental-bitwise-operator.md
4341
4491
  */
4342
4492
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
4343
4493
  /**
4344
4494
  * Disallow anonymous functions and classes as the default export.
4345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
4495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-anonymous-default-export.md
4346
4496
  */
4347
4497
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
4348
4498
  /**
4349
4499
  * Prevent passing a function reference directly to iterator methods.
4350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
4500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-callback-reference.md
4351
4501
  */
4352
4502
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
4353
4503
  /**
4354
4504
  * Disallow array accumulation with `Array#concat()` in loops.
4355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
4505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-concat-in-loop.md
4356
4506
  */
4357
4507
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
4358
4508
  /**
4359
4509
  * Disallow using reference values as `Array#fill()` values.
4360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
4510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-fill-with-reference-type.md
4361
4511
  */
4362
4512
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
4363
4513
  /**
4364
4514
  * Disallow `.fill()` after `Array.from({length: …})`.
4365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
4515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-from-fill.md
4366
4516
  */
4367
4517
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
4368
4518
  /**
4369
4519
  * Disallow front-of-array mutation.
4370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
4520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-front-mutation.md
4371
4521
  */
4372
4522
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
4373
4523
  /**
4374
4524
  * Disallow using the `this` argument in array methods.
4375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
4525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-method-this-argument.md
4376
4526
  */
4377
4527
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
4378
4528
  /**
4379
4529
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4381
4531
  * @deprecated
4382
4532
  */
4383
4533
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
4384
4534
  /**
4385
4535
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
4536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-reduce.md
4387
4537
  */
4388
4538
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
4389
4539
  /**
4390
4540
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
4541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-reverse.md
4392
4542
  */
4393
4543
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
4394
4544
  /**
4395
4545
  * Prefer `Array#toSorted()` over `Array#sort()`.
4396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
4546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-sort.md
4397
4547
  */
4398
4548
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
4399
4549
  /**
4400
4550
  * Disallow sorting arrays to get the minimum or maximum value.
4401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
4551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-sort-for-min-max.md
4402
4552
  */
4403
4553
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
4404
4554
  /**
4405
4555
  * Prefer `Array#toSpliced()` over `Array#splice()`.
4406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
4556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-array-splice.md
4407
4557
  */
4408
4558
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
4409
4559
  /**
4410
- * Disallow asterisk prefixes in multiline comments.
4411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
4560
+ * Disallow asterisk prefixes and shared indentation in multiline comments.
4561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
4412
4562
  */
4413
4563
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
4414
4564
  /**
4415
4565
  * Disallow asynchronous callbacks in synchronous iterator helpers.
4416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
4566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-async-iterator-callback.md
4417
4567
  */
4418
4568
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
4419
4569
  /**
4420
4570
  * Disallow async functions as `Promise#finally()` callbacks.
4421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
4571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-async-promise-finally.md
4422
4572
  */
4423
4573
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
4424
4574
  /**
4425
4575
  * Disallow member access from await expression.
4426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
4576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-await-expression-member.md
4427
4577
  */
4428
4578
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
4429
4579
  /**
4430
4580
  * Disallow using `await` in `Promise` method parameters.
4431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
4581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-await-in-promise-methods.md
4432
4582
  */
4433
4583
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
4434
4584
  /**
4435
4585
  * Disallow barrel files.
4436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
4586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-barrel-files.md
4437
4587
  */
4438
4588
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
4439
4589
  /**
4440
4590
  * Disallow unnecessary `Blob` to `File` conversion.
4441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
4591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-blob-to-file.md
4442
4592
  */
4443
4593
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
4444
4594
  /**
4445
4595
  * Disallow boolean-returning sort comparators.
4446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
4596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-boolean-sort-comparator.md
4447
4597
  */
4448
4598
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
4449
4599
  /**
4450
4600
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
4451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
4601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-break-in-nested-loop.md
4452
4602
  */
4453
4603
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
4454
4604
  /**
4455
4605
  * Prefer drawing canvases directly instead of converting them to images.
4456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
4606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-canvas-to-image.md
4457
4607
  */
4458
4608
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
4459
4609
  /**
4460
4610
  * Disallow chained comparisons such as `a < b < c`.
4461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
4611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-chained-comparison.md
4462
4612
  */
4463
4613
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
4464
4614
  /**
4465
4615
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
4466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
4616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-collection-bracket-access.md
4467
4617
  */
4468
4618
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
4469
4619
  /**
4470
4620
  * Disallow dynamic object property existence checks.
4471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
4621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-computed-property-existence-check.md
4472
4622
  */
4473
4623
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
4474
4624
  /**
4475
4625
  * Disallow conflicting CSS query and HTML form constraints.
4476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
4626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-conflicting-constraints.md
4477
4627
  */
4478
4628
  'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
4479
4629
  /**
4480
4630
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
4481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
4631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-confusing-array-splice.md
4482
4632
  */
4483
4633
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
4484
4634
  /**
4485
4635
  * Disallow confusing uses of `Array#with()`.
4486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
4636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-confusing-array-with.md
4487
4637
  */
4488
4638
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
4489
4639
  /**
4490
4640
  * Do not use leading/trailing space between `console.log` parameters.
4491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
4641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-console-spaces.md
4492
4642
  */
4493
4643
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
4494
4644
  /**
4495
4645
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
4496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
4646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-constant-zero-expression.md
4497
4647
  */
4498
4648
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
4499
4649
  /**
4500
4650
  * Disallow declarations before conditional early exits when they are only used after the exit.
4501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
4651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-declarations-before-early-exit.md
4502
4652
  */
4503
4653
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
4504
4654
  /**
4505
4655
  * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
4506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
4656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
4507
4657
  * @deprecated
4508
4658
  */
4509
4659
  'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
4510
4660
  /**
4511
4661
  * Do not use `document.cookie` directly.
4512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
4662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-document-cookie.md
4513
4663
  */
4514
4664
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
4515
4665
  /**
4516
4666
  * Disallow two comparisons of the same operands that can be combined into one.
4517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
4667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-double-comparison.md
4518
4668
  */
4519
4669
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
4520
4670
  /**
4521
4671
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
4522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
4672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
4523
4673
  * @deprecated
4524
4674
  */
4525
4675
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
4526
4676
  /**
4527
4677
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
4528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
4678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
4529
4679
  * @deprecated
4530
4680
  */
4531
4681
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
4532
4682
  /**
4533
4683
  * Disallow duplicate adjacent branches in if chains.
4534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
4684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-if-branches.md
4535
4685
  */
4536
4686
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
4537
4687
  /**
4538
4688
  * Disallow adjacent duplicate operands in logical expressions.
4539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
4689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-logical-operands.md
4540
4690
  */
4541
4691
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
4542
4692
  /**
4543
4693
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
4544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
4694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-loops.md
4545
4695
  */
4546
4696
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
4547
4697
  /**
4548
4698
  * Disallow duplicate values in `Set` constructor array literals.
4549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
4699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-duplicate-set-values.md
4550
4700
  */
4551
4701
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
4552
4702
  /**
4553
4703
  * Disallow empty files.
4554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
4704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-empty-file.md
4555
4705
  */
4556
4706
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
4557
4707
  /**
4558
4708
  * Disallow empty link text in Markdown.
4559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
4709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-empty-link-text.md
4560
4710
  */
4561
4711
  'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
4562
4712
  /**
4563
4713
  * Disallow assigning to built-in error properties.
4564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
4714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-error-property-assignment.md
4565
4715
  */
4566
4716
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
4567
4717
  /**
4568
4718
  * Disallow exports in scripts.
4569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
4719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-exports-in-scripts.md
4570
4720
  */
4571
4721
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
4572
4722
  /**
4573
4723
  * Prefer `for…of` over the `forEach` method.
4574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
4724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-for-each.md
4575
4725
  */
4576
4726
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
4577
4727
  /**
4578
4728
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
4729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-for-loop.md
4580
4730
  */
4581
4731
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
4582
4732
  /**
4583
4733
  * Disallow assigning properties on the global object.
4584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
4734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-global-object-property-assignment.md
4585
4735
  */
4586
4736
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
4587
4737
  /**
4588
4738
  * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
4589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
4739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
4590
4740
  * @deprecated
4591
4741
  */
4592
4742
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
4593
4743
  /**
4594
- * Disallow immediate mutation after variable assignment.
4595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
4744
+ * Disallow immediate mutation after assignment and initialization immediately after declaration.
4745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-immediate-mutation.md
4596
4746
  */
4597
4747
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
4598
4748
  /**
4599
4749
  * Disallow impossible comparisons against `.length` or `.size`.
4600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
4750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-impossible-length-comparison.md
4601
4751
  */
4602
4752
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
4603
4753
  /**
4604
4754
  * Disallow class accessors that hide an inherited getter or setter.
4605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
4755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-incomplete-accessor-override.md
4606
4756
  */
4607
4757
  'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
4608
4758
  /**
4609
4759
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
4610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
4760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-incorrect-query-selector.md
4611
4761
  */
4612
4762
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
4613
4763
  /**
4614
4764
  * Disallow incorrect template literal interpolation syntax.
4615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
4765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-incorrect-template-string-interpolation.md
4616
4766
  */
4617
4767
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
4618
4768
  /**
4619
4769
  * Disallow ineffective CSP directives in `<meta>` elements.
4620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
4770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-ineffective-csp-directives.md
4621
4771
  */
4622
4772
  'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
4623
4773
  /**
4624
4774
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4626
4776
  * @deprecated
4627
4777
  */
4628
4778
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
4629
4779
  /**
4630
4780
  * Disallow `instanceof` with built-in objects
4631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
4781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-instanceof-builtins.md
4632
4782
  */
4633
4783
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
4634
4784
  /**
4635
4785
  * Disallow calling functions and constructors with an invalid number of arguments.
4636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-argument-count.md
4637
4787
  */
4638
4788
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
4639
4789
  /**
4640
4790
  * Disallow invalid values for HTML boolean attributes.
4641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
4791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-boolean-attribute-value.md
4642
4792
  */
4643
4793
  'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
4644
4794
  /**
4645
4795
  * Disallow comparing a single character from a string to a multi-character string.
4646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
4796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-character-comparison.md
4647
4797
  */
4648
4798
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
4649
4799
  /**
4650
4800
  * Disallow invalid DOM tokens.
4651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
4801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-dom-token.md
4652
4802
  */
4653
4803
  'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
4654
4804
  /**
4655
4805
  * Disallow invalid options in `fetch()` and `new Request()`.
4656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
4806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-fetch-options.md
4657
4807
  */
4658
4808
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
4659
4809
  /**
4660
4810
  * Disallow invalid `accept` values on file inputs.
4661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
4811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-file-input-accept.md
4662
4812
  */
4663
4813
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
4664
4814
  /**
4665
4815
  * Disallow invalid subresource integrity metadata.
4666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
4816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-integrity.md
4667
4817
  */
4668
4818
  'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
4669
4819
  /**
4670
4820
  * Disallow invalid or ignored Intl options.
4671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
4821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-intl-options.md
4672
4822
  */
4673
4823
  'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
4674
4824
  /**
4675
4825
  * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
4676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
4826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
4677
4827
  * @deprecated
4678
4828
  */
4679
4829
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
4680
4830
  /**
4681
4831
  * Disallow invalid property descriptors.
4682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
4832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-property-descriptor.md
4683
4833
  */
4684
4834
  'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
4685
4835
  /**
4686
4836
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
4837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-remove-event-listener.md
4688
4838
  */
4689
4839
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
4690
4840
  /**
4691
4841
  * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
4692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
4842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-response-options.md
4693
4843
  */
4694
4844
  'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
4695
4845
  /**
4696
4846
  * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
4697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
4847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-style-set-property.md
4698
4848
  */
4699
4849
  'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
4700
4850
  /**
4701
4851
  * Disallow statically known invalid Temporal arithmetic.
4702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
4852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-temporal-arithmetic.md
4703
4853
  */
4704
4854
  'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
4705
4855
  /**
4706
4856
  * Disallow invalid protocol strings in comparisons with `URL#protocol`.
4707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
4857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-url-protocol-comparison.md
4708
4858
  */
4709
4859
  'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
4710
4860
  /**
4711
4861
  * Disallow invalid implementations of well-known symbol methods.
4712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
4862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
4713
4863
  */
4714
4864
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
4715
4865
  /**
4716
4866
  * Disallow `javascript:` URLs in Markdown.
4717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
4867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-javascript-url.md
4718
4868
  */
4719
4869
  'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
4720
4870
  /**
4721
4871
  * Disallow identifiers starting with `new` or `class`.
4722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
4872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-keyword-prefix.md
4723
4873
  */
4724
4874
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
4725
4875
  /**
4726
4876
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
4727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
4877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-late-current-target-access.md
4728
4878
  */
4729
4879
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
4730
4880
  /**
4731
4881
  * Disallow event-control method calls after the synchronous event dispatch has finished.
4732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
4882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-late-event-control.md
4733
4883
  */
4734
4884
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
4735
4885
  /**
4736
4886
  * Disallow empty lines at the beginning of a file.
4737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
4887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-leading-empty-lines.md
4738
4888
  */
4739
4889
  'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
4740
4890
  /**
4741
4891
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4743
4893
  * @deprecated
4744
4894
  */
4745
4895
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
4746
4896
  /**
4747
4897
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-lonely-if.md
4749
4899
  */
4750
4900
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
4751
4901
  /**
4752
4902
  * Disallow mutating a loop iterable during iteration.
4753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
4903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-loop-iterable-mutation.md
4754
4904
  */
4755
4905
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
4756
4906
  /**
4757
4907
  * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
4758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
4908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-loss-of-precision.md
4759
4909
  */
4760
4910
  'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
4761
4911
  /**
4762
4912
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
4913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-magic-array-flat-depth.md
4764
4914
  */
4765
4915
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
4766
4916
  /**
4767
4917
  * Disallow manually wrapped comments.
4768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
4918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-manually-wrapped-comments.md
4769
4919
  */
4770
4920
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
4771
4921
  /**
4772
4922
  * Disallow checking a Map key before accessing a different key.
4773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
4923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-mismatched-map-key.md
4774
4924
  */
4775
4925
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
4776
4926
  /**
4777
4927
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
4778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-misrefactored-assignment.md
4779
4929
  */
4780
4930
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
4781
4931
  /**
4782
4932
  * Disallow references to missing local resources.
4783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
4933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-missing-local-resource.md
4784
4934
  */
4785
4935
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
4786
4936
  /**
4787
4937
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
4788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
4938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-multiple-promise-resolver-calls.md
4789
4939
  */
4790
4940
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
4791
4941
  /**
4792
4942
  * Disallow named usage of default import and export.
4793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
4943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-named-default.md
4794
4944
  */
4795
4945
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
4796
4946
  /**
4797
4947
  * Disallow negated array predicate calls.
4798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-array-predicate.md
4799
4949
  */
4800
4950
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
4801
4951
  /**
4802
4952
  * Disallow negated comparisons.
4803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
4953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-comparison.md
4804
4954
  */
4805
4955
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
4806
4956
  /**
4807
4957
  * Disallow negated conditions.
4808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
4958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negated-condition.md
4809
4959
  */
4810
4960
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
4811
4961
  /**
4812
4962
  * Disallow negated expression in equality check.
4813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
4963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-negation-in-equality-check.md
4814
4964
  */
4815
4965
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
4816
4966
  /**
4817
4967
  * Disallow nested ternary expressions.
4818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
4968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-nested-ternary.md
4819
4969
  */
4820
4970
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
4821
4971
  /**
4822
4972
  * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
4823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
4973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
4824
4974
  * @deprecated
4825
4975
  */
4826
4976
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
4827
4977
  /**
4828
4978
  * Disallow `new Array()`.
4829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-new-array.md
4830
4980
  */
4831
4981
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
4832
4982
  /**
4833
4983
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-new-buffer.md
4835
4985
  */
4836
4986
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
4837
4987
  /**
4838
4988
  * Disallow non-function values with function-style verb prefixes.
4839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-non-function-verb-prefix.md
4840
4990
  */
4841
4991
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
4842
4992
  /**
4843
4993
  * Disallow non-standard properties on built-in objects.
4844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
4994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-nonstandard-builtin-properties.md
4845
4995
  */
4846
4996
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
4847
4997
  /**
4848
4998
  * Disallow the use of the `null` literal.
4849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-null.md
4850
5000
  */
4851
5001
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
4852
5002
  /**
4853
5003
  * Disallow the use of objects as default parameters.
4854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
5004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-object-as-default-parameter.md
4855
5005
  */
4856
5006
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
4857
5007
  /**
4858
5008
  * Disallow `Object` methods with `Map` or `Set`.
4859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-object-methods-with-collections.md
4860
5010
  */
4861
5011
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
4862
5012
  /**
4863
5013
  * Disallow optional chaining on undeclared variables.
4864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
4865
5015
  */
4866
5016
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
4867
5017
  /**
4868
5018
  * Disallow ineffective `preventDefault()` calls in passive event listeners.
4869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
5019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-prevent-default-in-passive-listener.md
4870
5020
  */
4871
5021
  'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
4872
5022
  /**
4873
5023
  * Disallow `process.exit()`.
4874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-process-exit.md
4875
5025
  */
4876
5026
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
4877
5027
  /**
4878
5028
  * Disallow comparisons made redundant by an equality check in the same logical AND.
4879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-redundant-comparison.md
4880
5030
  */
4881
5031
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
4882
5032
  /**
4883
5033
  * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
4884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
4885
5035
  * @deprecated
4886
5036
  */
4887
5037
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
5038
+ /**
5039
+ * Disallow repeating the same wrapper at every call to a function.
5040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-repeated-call-wrappers.md
5041
+ */
5042
+ 'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
4888
5043
  /**
4889
5044
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
4890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
5045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-return-array-push.md
4891
5046
  */
4892
5047
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
4893
5048
  /**
4894
5049
  * Disallow selector syntax in DOM names.
4895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
5050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-selector-as-dom-name.md
4896
5051
  */
4897
5052
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
4898
5053
  /**
4899
5054
  * Disallow shorthand properties that override related longhand properties.
4900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
5055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-shorthand-property-overrides.md
4901
5056
  */
4902
5057
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
4903
5058
  /**
4904
5059
  * Disallow passing single-element arrays to `Promise` methods.
4905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
5060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-single-promise-in-promise-methods.md
4906
5061
  */
4907
5062
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
4908
5063
  /**
4909
5064
  * Disallow classes that only have static members.
4910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
5065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-static-only-class.md
4911
5066
  */
4912
5067
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
4913
5068
  /**
4914
5069
  * Prefer comparing values directly over subtracting and comparing to `0`.
4915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
5070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-subtraction-comparison.md
4916
5071
  */
4917
5072
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
4918
5073
  /**
4919
5074
  * Disallow `then` property.
4920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
5075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-thenable.md
4921
5076
  */
4922
5077
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
4923
5078
  /**
4924
5079
  * Disallow assigning `this` to a variable.
4925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
5080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-this-assignment.md
4926
5081
  */
4927
5082
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
4928
5083
  /**
4929
5084
  * Disallow `this` outside of classes.
4930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
5085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-this-outside-of-class.md
4931
5086
  */
4932
5087
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
4933
5088
  /**
4934
5089
  * Disallow assigning to top-level variables from inside functions.
4935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
5090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-top-level-assignment-in-function.md
4936
5091
  */
4937
5092
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
4938
5093
  /**
4939
5094
  * Disallow top-level side effects in exported modules.
4940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
5095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-top-level-side-effects.md
4941
5096
  */
4942
- 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
5097
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
4943
5098
  /**
4944
5099
  * Disallow `all` as a transition property.
4945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
5100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-transition-all.md
4946
5101
  */
4947
5102
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
4948
5103
  /**
4949
5104
  * Disallow comparing `undefined` using `typeof`.
4950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
5105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-typeof-undefined.md
4951
5106
  */
4952
5107
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
4953
5108
  /**
4954
5109
  * Disallow referencing methods without calling them.
4955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
5110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-uncalled-method.md
4956
5111
  */
4957
5112
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
4958
5113
  /**
4959
5114
  * Require class members to be declared.
4960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
5115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-undeclared-class-members.md
4961
5116
  */
4962
5117
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
4963
5118
  /**
4964
5119
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
4965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
5120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
4966
5121
  * @deprecated
4967
5122
  */
4968
5123
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
4969
5124
  /**
4970
5125
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
4971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
5126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
4972
5127
  * @deprecated
4973
5128
  */
4974
5129
  'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
4975
5130
  /**
4976
5131
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4978
5133
  */
4979
5134
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
4980
5135
  /**
4981
5136
  * Disallow unnecessary use of `Array#flatMap()`.
4982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
5137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-array-flat-map.md
4983
5138
  */
4984
5139
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
4985
5140
  /**
4986
5141
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
5142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-array-splice-count.md
4988
5143
  */
4989
5144
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
4990
5145
  /**
4991
5146
  * Disallow awaiting non-promise values.
4992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
5147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-await.md
4993
5148
  */
4994
5149
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
4995
5150
  /**
4996
5151
  * Disallow unnecessary comparisons against boolean literals.
4997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
5152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-boolean-comparison.md
4998
5153
  */
4999
5154
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
5155
+ /**
5156
+ * Disallow arguments that match their parameter defaults.
5157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-default-arguments.md
5158
+ */
5159
+ 'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
5000
5160
  /**
5001
5161
  * Disallow unnecessary options in `fetch()` and `new Request()`.
5002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
5162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-fetch-options.md
5003
5163
  */
5004
5164
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
5005
5165
  /**
5006
5166
  * Disallow unnecessary `globalThis` references.
5007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
5167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-global-this.md
5008
5168
  */
5009
5169
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
5010
5170
  /**
5011
5171
  * Disallow unnecessary nested ternary expressions.
5012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
5172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-nested-ternary.md
5013
5173
  */
5014
5174
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
5015
5175
  /**
5016
5176
  * Disallow parameters that receive the same value at every call.
5017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
5177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-parameters.md
5018
5178
  */
5019
5179
  'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
5020
5180
  /**
5021
5181
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
5182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-polyfills.md
5023
5183
  */
5024
5184
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5025
5185
  /**
5026
5186
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
5187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-slice-end.md
5028
5188
  */
5029
5189
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5030
5190
  /**
5031
5191
  * Disallow `Array#splice()` when simpler alternatives exist.
5032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
5192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-splice.md
5033
5193
  */
5034
5194
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
5035
5195
  /**
5036
5196
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
5037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
5197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unnecessary-string-trim.md
5038
5198
  */
5039
5199
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
5040
5200
  /**
5041
5201
  * Disallow unreadable array destructuring.
5042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
5202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-array-destructuring.md
5043
5203
  */
5044
5204
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
5045
5205
  /**
5046
5206
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
5047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
5207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-for-of-expression.md
5048
5208
  */
5049
5209
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
5050
5210
  /**
5051
5211
  * Disallow unreadable IIFEs.
5052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
5212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-iife.md
5053
5213
  */
5054
5214
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5055
5215
  /**
5056
5216
  * Disallow unreadable `new` expressions.
5057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
5217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-new-expression.md
5058
5218
  */
5059
5219
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
5060
5220
  /**
5061
5221
  * Disallow unreadable object destructuring.
5062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
5222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unreadable-object-destructuring.md
5063
5223
  */
5064
5224
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
5065
5225
  /**
5066
5226
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
5067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
5227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-buffer-conversion.md
5068
5228
  */
5069
5229
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
5070
5230
  /**
5071
5231
  * Disallow unsafe DOM HTML APIs.
5072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
5232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-dom-html.md
5073
5233
  */
5074
5234
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
5075
5235
  /**
5076
5236
  * Disallow known values that JSON serialization cannot represent faithfully.
5077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
5237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-json-serialization.md
5078
5238
  */
5079
5239
  'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
5080
5240
  /**
5081
5241
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
5082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
5083
5243
  */
5084
5244
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
5085
5245
  /**
5086
5246
  * Disallow unsafe values as property keys.
5087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
5247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-property-key.md
5088
5248
  */
5089
5249
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
5090
5250
  /**
5091
5251
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
5092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
5093
5253
  */
5094
5254
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
5095
5255
  /**
5096
5256
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
5097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
5257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unsafe-string-replacement.md
5098
5258
  */
5099
5259
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
5100
5260
  /**
5101
5261
  * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
5102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
5262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
5103
5263
  * @deprecated
5104
5264
  */
5105
5265
  'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
5106
5266
  /**
5107
5267
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
5108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
5268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
5109
5269
  * @deprecated
5110
5270
  */
5111
5271
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
5112
5272
  /**
5113
5273
  * Disallow ignoring the return value of selected built-in methods.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
5274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-builtin-method-return.md
5115
5275
  */
5116
5276
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
5117
5277
  /**
5118
5278
  * Disallow discarding lazy iterator helpers.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
5279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-iterator-helper.md
5120
5280
  */
5121
5281
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
5122
5282
  /**
5123
5283
  * Disallow unused object properties.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
5284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-unused-properties.md
5125
5285
  */
5126
5286
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5127
5287
  /**
5128
5288
  * Disallow passing full URLs to `URLSearchParams`.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
5289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-url-in-search-params.md
5130
5290
  */
5131
5291
  'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
5132
5292
  /**
5133
5293
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
5294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-boolean-cast.md
5135
5295
  */
5136
5296
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
5137
5297
  /**
5138
5298
  * Disallow useless type coercions of values that are already of the target type.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
5299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-coercion.md
5140
5300
  */
5141
5301
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
5142
5302
  /**
5143
5303
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-collection-argument.md
5145
5305
  */
5146
5306
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5147
5307
  /**
5148
5308
  * Disallow useless compound assignments such as `x += 0`.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
5309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-compound-assignment.md
5150
5310
  */
5151
5311
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
5152
5312
  /**
5153
5313
  * Disallow useless concatenation of literals.
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
5314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-concat.md
5155
5315
  */
5156
5316
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
5157
5317
  /**
5158
5318
  * Disallow useless `continue` statements.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
5319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-continue.md
5160
5320
  */
5161
5321
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
5162
5322
  /**
5163
5323
  * Disallow unnecessary existence checks before deletion.
5164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
5324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-delete-check.md
5165
5325
  */
5166
5326
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
5167
5327
  /**
5168
5328
  * Disallow `else` after a statement that exits.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
5329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-else.md
5170
5330
  */
5171
5331
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
5172
5332
  /**
5173
5333
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5175
5335
  */
5176
5336
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5177
5337
  /**
5178
5338
  * Disallow useless fallback when spreading in object literals.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
5339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-fallback-in-spread.md
5180
5340
  */
5181
5341
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5182
5342
  /**
5183
5343
  * Disallow unnecessary `.toArray()` on iterators.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
5344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-iterator-to-array.md
5185
5345
  */
5186
5346
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
5187
5347
  /**
5188
5348
  * Disallow useless array length check.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
5349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-length-check.md
5190
5350
  */
5191
5351
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5192
5352
  /**
5193
5353
  * Disallow unnecessary operands in logical expressions involving boolean literals.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-logical-operand.md
5195
5355
  */
5196
5356
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
5197
5357
  /**
5198
5358
  * Disallow useless overrides of class methods.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
5359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-override.md
5200
5360
  */
5201
5361
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
5202
5362
  /**
5203
5363
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
5364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-promise-resolve-reject.md
5205
5365
  */
5206
5366
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5207
5367
  /**
5208
5368
  * Disallow redundant re-exports.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
5369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-re-export.md
5210
5370
  */
5211
5371
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
5212
5372
  /**
5213
5373
  * Disallow simple recursive function calls that can be replaced with a loop.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
5374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-recursion.md
5215
5375
  */
5216
5376
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
5217
5377
  /**
5218
5378
  * Disallow unnecessary `Set` construction around `Set` methods.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
5379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-set-construction.md
5220
5380
  */
5221
5381
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
5222
5382
  /**
5223
5383
  * Disallow unnecessary spread.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
5384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-spread.md
5225
5385
  */
5226
5386
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5227
5387
  /**
5228
5388
  * Disallow useless case in switch statements.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
5389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-switch-case.md
5230
5390
  */
5231
5391
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5232
5392
  /**
5233
5393
  * Disallow useless template literal expressions.
5234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
5394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-template-literals.md
5235
5395
  */
5236
5396
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
5237
5397
  /**
5238
5398
  * Disallow useless `undefined`.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
5399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-useless-undefined.md
5240
5400
  */
5241
5401
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5242
5402
  /**
5243
5403
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
5244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
5404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-using-resource-escape.md
5245
5405
  */
5246
5406
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
5247
5407
  /**
5248
5408
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
5249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
5409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-xor-as-exponentiation.md
5250
5410
  */
5251
5411
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
5252
5412
  /**
5253
5413
  * Require consistent decimal numbers without redundant zeros.
5254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
5414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/no-zero-fractions.md
5255
5415
  */
5256
5416
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5257
5417
  /**
5258
5418
  * Enforce proper case for numeric literals.
5259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
5419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/number-literal-case.md
5260
5420
  */
5261
5421
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5262
5422
  /**
5263
5423
  * Enforce the style of numeric separators by correctly grouping digits.
5264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
5424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/numeric-separators-style.md
5265
5425
  */
5266
5426
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5267
5427
  /**
5268
5428
  * Require assignment operator shorthand where possible.
5269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
5429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/operator-assignment.md
5270
5430
  */
5271
5431
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
5272
5432
  /**
5273
5433
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
5274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
5434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-abort-signal-any.md
5275
5435
  */
5276
5436
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
5277
5437
  /**
5278
5438
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
5279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
5439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-abort-signal-timeout.md
5280
5440
  */
5281
5441
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
5282
5442
  /**
5283
5443
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
5444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-add-event-listener.md
5285
5445
  */
5286
5446
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5287
5447
  /**
5288
5448
  * Prefer an options object over a boolean in `.addEventListener()`.
5289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
5449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-add-event-listener-options.md
5290
5450
  */
5291
5451
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
5292
5452
  /**
5293
5453
  * Prefer `AggregateError` when throwing collected errors.
5294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
5454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-aggregate-error.md
5295
5455
  */
5296
5456
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
5297
5457
  /**
5298
5458
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
5459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-find.md
5300
5460
  */
5301
5461
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5302
5462
  /**
5303
5463
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
5464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-flat.md
5305
5465
  */
5306
5466
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5307
5467
  /**
5308
5468
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
5309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
5469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-flat-map.md
5310
5470
  */
5311
5471
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5312
5472
  /**
5313
5473
  * Prefer `Array.fromAsync()` over array accumulation loops.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
5474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-from-async.md
5315
5475
  */
5316
5476
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
5317
5477
  /**
5318
5478
  * Prefer using the `Array.from()` mapping function argument.
5319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
5479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-from-map.md
5320
5480
  */
5321
5481
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
5322
5482
  /**
5323
5483
  * Prefer `Array.from({length}, …)` when creating range arrays.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
5484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-from-range.md
5325
5485
  */
5326
5486
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
5327
5487
  /**
5328
5488
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
5489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-index-of.md
5330
5490
  */
5331
5491
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5332
5492
  /**
5333
5493
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
5494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-iterable-methods.md
5335
5495
  */
5336
5496
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
5337
5497
  /**
5338
5498
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
5339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
5499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-last-methods.md
5340
5500
  */
5341
5501
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
5342
5502
  /**
5343
5503
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
5344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
5504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-slice.md
5345
5505
  */
5346
5506
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
5347
5507
  /**
5348
5508
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
5509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-array-some.md
5350
5510
  */
5351
5511
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5352
5512
  /**
5353
5513
  * Prefer `.at()` method for index access and `String#charAt()`.
5354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
5514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-at.md
5355
5515
  */
5356
5516
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5357
5517
  /**
5358
5518
  * Prefer `await` over promise chaining.
5359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
5519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-await.md
5360
5520
  */
5361
5521
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
5362
5522
  /**
5363
5523
  * Prefer `BigInt` literals over the constructor.
5364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
5524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-bigint-literals.md
5365
5525
  */
5366
5526
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5367
5527
  /**
5368
5528
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
5529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-blob-reading-methods.md
5370
5530
  */
5371
5531
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5372
5532
  /**
5373
5533
  * Prefer block statements over IIFEs used only for scoping.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
5534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-block-statement-over-iife.md
5375
5535
  */
5376
5536
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
5377
5537
  /**
5378
5538
  * Prefer directly returning boolean expressions over `if` statements.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
5539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-boolean-return.md
5380
5540
  */
5381
5541
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
5382
5542
  /**
5383
5543
  * Prefer class field declarations over `this` assignments in constructors.
5384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
5544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-class-fields.md
5385
5545
  */
5386
5546
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5387
5547
  /**
5388
5548
  * Prefer using `Element#classList.toggle()` to toggle class names.
5389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
5549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-classlist-toggle.md
5390
5550
  */
5391
5551
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5392
5552
  /**
5393
5553
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
5554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-code-point.md
5395
5555
  */
5396
5556
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5397
5557
  /**
5398
5558
  * Prefer combining consecutive guards with identical exit statements.
5399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
5559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-combined-guards.md
5400
5560
  */
5401
5561
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
5402
5562
  /**
5403
5563
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
5404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
5564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-continue.md
5405
5565
  */
5406
5566
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
5407
5567
  /**
5408
5568
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
5569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-date-now.md
5410
5570
  */
5411
5571
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5412
5572
  /**
5413
5573
  * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
5414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
5574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-default-parameters.md
5415
5575
  */
5416
- 'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5576
+ 'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
5417
5577
  /**
5418
5578
  * Prefer direct iteration over default iterator method calls.
5419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
5579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-direct-iteration.md
5420
5580
  */
5421
5581
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
5422
5582
  /**
5423
5583
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
5424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
5584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dispose.md
5425
5585
  */
5426
5586
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
5427
5587
  /**
5428
5588
  * Prefer `Element#append()` over `Node#appendChild()`.
5429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
5589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-append.md
5430
5590
  */
5431
5591
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5432
5592
  /**
5433
5593
  * Renamed to `unicorn/dom-node-dataset`.
5434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
5435
5595
  * @deprecated
5436
5596
  */
5437
5597
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5438
5598
  /**
5439
5599
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
5440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
5600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-html-methods.md
5441
5601
  */
5442
5602
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
5443
5603
  /**
5444
5604
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
5605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-remove.md
5446
5606
  */
5447
5607
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5448
5608
  /**
5449
5609
  * Prefer `.replaceChildren()` when replacing DOM children.
5450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
5610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-replace-children.md
5451
5611
  */
5452
5612
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
5453
5613
  /**
5454
5614
  * Prefer `.textContent` over `.innerText`.
5455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
5615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-dom-node-text-content.md
5456
5616
  */
5457
5617
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5458
5618
  /**
5459
5619
  * Prefer early returns over conditionals wrapping the remainder of the function body.
5460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
5620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-early-return.md
5461
5621
  */
5462
5622
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
5463
5623
  /**
5464
5624
  * Prefer `else if` over adjacent `if` statements with related conditions.
5465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
5625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-else-if.md
5466
5626
  */
5467
5627
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
5468
5628
  /**
5469
5629
  * Prefer `Error.isError()` when checking for errors.
5470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
5630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-error-is-error.md
5471
5631
  */
5472
5632
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
5473
5633
  /**
5474
5634
  * Prefer escape sequences for irregular whitespace characters.
5475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
5635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
5476
5636
  */
5477
5637
  'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
5478
5638
  /**
5479
5639
  * Prefer `EventTarget` over `EventEmitter`.
5480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
5640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-event-target.md
5481
5641
  */
5482
5642
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5483
5643
  /**
5484
5644
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
5485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
5645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
5486
5646
  * @deprecated
5487
5647
  */
5488
5648
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
5489
5649
  /**
5490
5650
  * Prefer `export…from` when re-exporting.
5491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
5651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-export-from.md
5492
5652
  */
5493
5653
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5494
5654
  /**
5495
5655
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
5496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
5656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-flat-math-min-max.md
5497
5657
  */
5498
5658
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
5499
5659
  /**
5500
5660
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
5501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
5661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-get-or-insert-computed.md
5502
5662
  */
5503
5663
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
5504
5664
  /**
5505
5665
  * Prefer global numeric constants over `Number` static properties.
5506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
5666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-global-number-constants.md
5507
5667
  */
5508
5668
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
5509
5669
  /**
5510
5670
  * Prefer `globalThis` over `window`, `self`, and `global`.
5511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
5671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-global-this.md
5512
5672
  */
5513
5673
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5514
5674
  /**
5515
5675
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
5516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
5676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-group-by.md
5517
5677
  */
5518
5678
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
5519
5679
  /**
5520
5680
  * Prefer `.has()` when checking existence.
5521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
5681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-has-check.md
5522
5682
  */
5523
5683
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
5524
5684
  /**
5525
5685
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
5526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
5686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-hoisting-branch-code.md
5527
5687
  */
5528
5688
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
5529
5689
  /**
5530
5690
  * Prefer HTTPS over HTTP.
5531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
5691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-https.md
5532
5692
  */
5533
5693
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
5534
5694
  /**
5535
5695
  * Prefer identifiers over string literals in import and export specifiers.
5536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
5696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
5537
5697
  */
5538
5698
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
5539
5699
  /**
5540
5700
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
5701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-import-meta-properties.md
5542
5702
  */
5543
5703
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5544
5704
  /**
5545
5705
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
5706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-includes.md
5547
5707
  */
5548
5708
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5549
5709
  /**
5550
5710
  * Prefer `.includes()` over repeated equality comparisons.
5551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
5711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
5552
5712
  */
5553
5713
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
5554
5714
  /**
5555
5715
  * Prefer passing iterables directly to constructors instead of filling empty collections.
5556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
5716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterable-in-constructor.md
5557
5717
  */
5558
5718
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
5559
5719
  /**
5560
5720
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
5561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
5721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-concat.md
5562
5722
  */
5563
5723
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
5564
5724
  /**
5565
5725
  * Prefer iterator helpers over temporary arrays from iterators.
5566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
5726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-helpers.md
5567
5727
  */
5568
5728
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
5569
5729
  /**
5570
5730
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
5571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
5731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-to-array.md
5572
5732
  */
5573
5733
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
5574
5734
  /**
5575
5735
  * Prefer moving `.toArray()` to the end of iterator helper chains.
5576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
5736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-to-array-at-end.md
5577
5737
  */
5578
5738
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
5579
5739
  /**
5580
5740
  * Prefer `Iterator.zip()` over parallel-array indexing.
5581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
5741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-iterator-zip.md
5582
5742
  */
5583
5743
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
5584
5744
  /**
5585
5745
  * Prefer JSON imports over reading and parsing JSON files.
5586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
5746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-json-import.md
5587
5747
  */
5588
5748
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
5589
5749
  /**
5590
5750
  * Renamed to `unicorn/consistent-json-file-read`.
5591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
5751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
5592
5752
  * @deprecated
5593
5753
  */
5594
5754
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5595
5755
  /**
5596
5756
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
5757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-keyboard-event-key.md
5598
5758
  */
5599
5759
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5600
5760
  /**
5601
5761
  * Prefer literal printable ASCII characters over escape sequences.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
5762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-literal-ascii.md
5603
5763
  */
5604
5764
  'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
5605
5765
  /**
5606
5766
  * Prefer `location.assign()` over assigning to `location.href`.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
5767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-location-assign.md
5608
5768
  */
5609
5769
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
5610
5770
  /**
5611
5771
  * Prefer using a logical operator over a ternary.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5613
5773
  */
5614
5774
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5615
5775
  /**
5616
5776
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
5777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-map-from-entries.md
5618
5778
  */
5619
5779
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
5620
5780
  /**
5621
5781
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
5782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-abs.md
5623
5783
  */
5624
5784
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
5625
5785
  /**
5626
5786
  * Prefer `Math` constants over their approximate numeric values.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
5787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-constants.md
5628
5788
  */
5629
5789
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
5630
5790
  /**
5631
5791
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
5792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-min-max.md
5633
5793
  */
5634
5794
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5635
5795
  /**
5636
5796
  * Prefer `Math.trunc()` for truncating numbers.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
5797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-math-trunc.md
5638
5798
  */
5639
5799
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5640
5800
  /**
5641
5801
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
5802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
5643
5803
  * @deprecated
5644
5804
  */
5645
5805
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
5646
5806
  /**
5647
5807
  * Prefer moving ternaries into the minimal varying part of an expression.
5648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
5808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-minimal-ternary.md
5649
5809
  */
5650
5810
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
5651
5811
  /**
5652
5812
  * Prefer modern DOM APIs.
5653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
5813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-modern-dom-apis.md
5654
5814
  */
5655
5815
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5656
5816
  /**
5657
5817
  * Prefer modern `Math` APIs over legacy patterns.
5658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
5818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-modern-math-apis.md
5659
5819
  */
5660
5820
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5661
5821
  /**
5662
5822
  * Prefer JavaScript modules (ESM) over CommonJS.
5663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
5823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-module.md
5664
5824
  */
5665
5825
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5666
5826
  /**
5667
5827
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
5828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-native-coercion-functions.md
5669
5829
  */
5670
5830
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5671
5831
  /**
5672
5832
  * Prefer negative index over `.length - index` when possible.
5673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
5833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-negative-index.md
5674
5834
  */
5675
5835
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5676
5836
  /**
5677
5837
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
5838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-node-protocol.md
5679
5839
  */
5680
5840
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5681
5841
  /**
5682
5842
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
5683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
5843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-number-coercion.md
5684
5844
  */
5685
5845
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
5686
5846
  /**
5687
5847
  * Prefer `Number.isSafeInteger()` over integer checks.
5688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
5848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-number-is-safe-integer.md
5689
5849
  */
5690
5850
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
5691
5851
  /**
5692
5852
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
5693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
5853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-number-properties.md
5694
5854
  */
5695
5855
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5696
5856
  /**
5697
5857
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
5698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
5858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-define-properties.md
5699
5859
  */
5700
5860
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
5701
5861
  /**
5702
5862
  * Prefer object destructuring defaults over default object literals with spread.
5703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
5863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-destructuring-defaults.md
5704
5864
  */
5705
5865
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
5706
5866
  /**
5707
5867
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
5868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-from-entries.md
5709
5869
  */
5710
5870
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5711
5871
  /**
5712
5872
  * Prefer the most specific `Object` iterable method.
5713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
5873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-object-iterable-methods.md
5714
5874
  */
5715
5875
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
5716
5876
  /**
5717
5877
  * Prefer observer APIs over resize and scroll listeners with layout reads.
5718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
5878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-observer-apis.md
5719
5879
  */
5720
5880
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
5721
5881
  /**
5722
5882
  * Prefer omitting the `catch` binding parameter.
5723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
5883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-optional-catch-binding.md
5724
5884
  */
5725
5885
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5726
5886
  /**
5727
5887
  * Prefer `Path2D` for repeatedly drawn canvas paths.
5728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
5888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-path2d.md
5729
5889
  */
5730
5890
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
5731
5891
  /**
5732
5892
  * Prefer private class fields over the underscore-prefix convention.
5733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
5893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-private-class-fields.md
5734
5894
  */
5735
5895
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
5736
5896
  /**
5737
5897
  * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
5738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
5898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-promise-static-methods.md
5739
5899
  */
5740
5900
  'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
5741
5901
  /**
5742
5902
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
5743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
5903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-promise-try.md
5744
5904
  */
5745
5905
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
5746
5906
  /**
5747
5907
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
5748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
5908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-promise-with-resolvers.md
5749
5909
  */
5750
5910
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
5751
5911
  /**
5752
5912
  * Prefer borrowing methods from the prototype instead of the instance.
5753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
5913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-prototype-methods.md
5754
5914
  */
5755
5915
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5756
5916
  /**
5757
5917
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
5758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
5918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-query-selector.md
5759
5919
  */
5760
5920
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
5761
5921
  /**
5762
5922
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
5763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
5923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-queue-microtask.md
5764
5924
  */
5765
5925
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
5766
5926
  /**
5767
5927
  * Prefer `Reflect.apply()` over `Function#apply()`.
5768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
5928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-reflect-apply.md
5769
5929
  */
5770
5930
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5771
5931
  /**
5772
5932
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
5773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
5933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-regexp-escape.md
5774
5934
  */
5775
5935
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
5776
5936
  /**
5777
5937
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
5778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
5938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-regexp-test.md
5779
5939
  */
5780
5940
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5781
5941
  /**
5782
5942
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
5943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-response-static-json.md
5784
5944
  */
5785
5945
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
5786
5946
  /**
5787
5947
  * Prefer `:scope` when using element query selector methods.
5788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-scoped-selector.md
5789
5949
  */
5790
5950
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
5791
5951
  /**
5792
5952
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-set-has.md
5794
5954
  */
5795
5955
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
5796
5956
  /**
5797
5957
  * Prefer `Set` methods for Set operations.
5798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-set-methods.md
5799
5959
  */
5800
5960
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
5801
5961
  /**
5802
5962
  * Prefer using `Set#size` instead of `Array#length`.
5803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-set-size.md
5804
5964
  */
5805
5965
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5806
5966
  /**
5807
5967
  * Prefer arrow function properties over methods with a single return.
5808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-short-arrow-method.md
5809
5969
  */
5810
5970
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
5811
5971
  /**
5812
5972
  * Prefer shorter alternatives to Unicode escape sequences.
5813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-short-escape-sequences.md
5814
5974
  */
5815
5975
  'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
5816
5976
  /**
5817
5977
  * Prefer simple conditions first in logical expressions.
5818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simple-condition-first.md
5819
5979
  */
5820
5980
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
5821
5981
  /**
5822
5982
  * Prefer a simple comparison function for `Array#sort()`.
5823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simple-sort-comparator.md
5824
5984
  */
5825
5985
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
5826
5986
  /**
5827
5987
  * Prefer simplified conditions.
5828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-simplified-conditions.md
5829
5989
  */
5830
5990
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
5831
5991
  /**
5832
5992
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
5833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
5993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-array-predicate.md
5834
5994
  */
5835
5995
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
5836
5996
  /**
5837
5997
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
5998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-call.md
5839
5999
  */
5840
6000
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5841
6001
  /**
5842
6002
  * Prefer a single object destructuring declaration per local const source.
5843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
6003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-object-destructuring.md
5844
6004
  */
5845
6005
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
5846
6006
  /**
5847
6007
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
5848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
6008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-single-replace.md
5849
6009
  */
5850
6010
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
5851
6011
  /**
5852
- * Prefer declaring variables in the smallest possible scope.
5853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
6012
+ * Prefer declaring variables and type aliases in the smallest possible scope.
6013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-smaller-scope.md
5854
6014
  */
5855
6015
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
5856
6016
  /**
5857
6017
  * Prefer `String#split()` with a limit.
5858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
6018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-split-limit.md
5859
6019
  */
5860
6020
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
5861
6021
  /**
5862
6022
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
5863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
6023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-spread.md
5864
6024
  */
5865
6025
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5866
6026
  /**
5867
6027
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
5868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
6028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-match-all.md
5869
6029
  */
5870
6030
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
5871
6031
  /**
5872
6032
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
5873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
6033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-pad-start-end.md
5874
6034
  */
5875
6035
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
5876
6036
  /**
5877
6037
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
6038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-raw.md
5879
6039
  */
5880
6040
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5881
6041
  /**
5882
6042
  * Prefer `String#repeat()` for repeated whitespace.
5883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
6043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-repeat.md
5884
6044
  */
5885
6045
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
5886
6046
  /**
5887
6047
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
5888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
6048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-replace-all.md
5889
6049
  */
5890
6050
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5891
6051
  /**
5892
6052
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
6053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-slice.md
5894
6054
  */
5895
6055
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5896
6056
  /**
5897
6057
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
5898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
6058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-starts-ends-with.md
5899
6059
  */
5900
6060
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5901
6061
  /**
5902
6062
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
6063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-string-trim-start-end.md
5904
6064
  */
5905
6065
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5906
6066
  /**
5907
6067
  * Prefer using `structuredClone` to create a deep clone.
5908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
6068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-structured-clone.md
5909
6069
  */
5910
6070
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5911
6071
  /**
5912
6072
  * Prefer `switch` over multiple `else-if`.
5913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
6073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-switch.md
5914
6074
  */
5915
6075
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5916
6076
  /**
5917
6077
  * Prefer `Temporal` over `Date`.
5918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
6078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-temporal.md
5919
6079
  */
5920
6080
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
5921
6081
  /**
5922
6082
  * Prefer direct Temporal conversion methods.
5923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
6083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-temporal-conversion.md
5924
6084
  */
5925
6085
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
5926
6086
  /**
5927
- * Prefer ternary expressions over simple `if` statements that return or assign values.
5928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
6087
+ * Prefer ternary expressions over simple `if` statements.
6088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-ternary.md
5929
6089
  */
5930
6090
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5931
6091
  /**
5932
6092
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
5933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
6093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-then-catch.md
5934
6094
  */
5935
6095
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
5936
6096
  /**
5937
6097
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
5938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
6098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-toggle-attribute.md
5939
6099
  */
5940
6100
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
5941
6101
  /**
5942
6102
  * Prefer top-level await over top-level promises and async function calls.
5943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
6103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-top-level-await.md
5944
6104
  */
5945
6105
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5946
6106
  /**
5947
6107
  * Enforce throwing `TypeError` in type checking conditions.
5948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
6108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-type-error.md
5949
6109
  */
5950
6110
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5951
6111
  /**
5952
6112
  * Require type literals to be last in union types.
5953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
6113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-type-literal-last.md
5954
6114
  */
5955
6115
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
5956
6116
  /**
5957
6117
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
5958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
6118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-uint8array-base64.md
5959
6119
  */
5960
6120
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
5961
6121
  /**
5962
6122
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
5963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
6123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-uint8array-hex.md
5964
6124
  */
5965
6125
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
5966
6126
  /**
5967
6127
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
5968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
6128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-unary-minus.md
5969
6129
  */
5970
6130
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
5971
6131
  /**
5972
6132
  * Prefer Unicode code point escapes over legacy escape sequences.
5973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
6133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-unicode-code-point-escapes.md
5974
6134
  */
5975
6135
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
5976
6136
  /**
5977
6137
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
5978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
6138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-url-can-parse.md
5979
6139
  */
5980
6140
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
5981
6141
  /**
5982
6142
  * Prefer `URL#href` over stringifying a `URL`.
5983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
6143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-url-href.md
5984
6144
  */
5985
6145
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
5986
6146
  /**
5987
6147
  * Prefer `URLSearchParams` over manually splitting query strings.
5988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
6148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-url-search-parameters.md
5989
6149
  */
5990
6150
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
5991
6151
  /**
5992
6152
  * Prefer putting the condition in the while statement.
5993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
6153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/prefer-while-loop-condition.md
5994
6154
  */
5995
6155
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
5996
6156
  /**
5997
6157
  * Renamed to `unicorn/name-replacements`.
5998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
6158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
5999
6159
  * @deprecated
6000
6160
  */
6001
6161
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
6002
6162
  /**
6003
6163
  * Enforce consistent relative URL style.
6004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
6164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/relative-url-style.md
6005
6165
  */
6006
6166
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
6007
6167
  /**
6008
6168
  * Enforce using the separator argument with `Array#join()`.
6009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
6169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-array-join-separator.md
6010
6170
  */
6011
6171
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
6012
6172
  /**
6013
6173
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
6014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
6174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-array-sort-compare.md
6015
6175
  */
6016
6176
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
6017
6177
  /**
6018
6178
  * Require `CSS.escape()` for interpolated values in CSS selectors.
6019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
6179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-css-escape.md
6020
6180
  */
6021
6181
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
6022
6182
  /**
6023
6183
  * Require configured YAML frontmatter fields.
6024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
6184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-frontmatter-fields.md
6025
6185
  */
6026
6186
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
6027
6187
  /**
6028
6188
  * Require non-empty module attributes for imports and exports
6029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
6189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-module-attributes.md
6030
6190
  */
6031
6191
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
6032
6192
  /**
6033
6193
  * Require non-empty specifier list in import and export statements.
6034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
6194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-module-specifiers.md
6035
6195
  */
6036
6196
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
6037
6197
  /**
6038
6198
  * Enforce using the digits argument with `Number#toFixed()`.
6039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6040
6200
  */
6041
6201
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
6042
6202
  /**
6043
6203
  * Require passive event listeners for high-frequency events.
6044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
6204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-passive-events.md
6045
6205
  */
6046
6206
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
6047
6207
  /**
6048
6208
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
6209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-post-message-target-origin.md
6050
6210
  */
6051
6211
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
6052
6212
  /**
6053
6213
  * Require boolean-returning Proxy traps to return booleans.
6054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
6214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-proxy-trap-boolean-return.md
6055
6215
  */
6056
6216
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
6057
6217
  /**
6058
6218
  * Require streaming decoding of fetch-body chunks with `TextDecoder`.
6059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
6219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/require-text-decoder-streaming.md
6060
6220
  */
6061
6221
  'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
6062
6222
  /**
6063
6223
  * Enforce a consistent style for single-line block comments.
6064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
6224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/single-line-block-comment-style.md
6065
6225
  */
6066
6226
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
6067
6227
  /**
6068
6228
  * Enforce better string content.
6069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
6229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/string-content.md
6070
6230
  */
6071
6231
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
6072
6232
  /**
6073
6233
  * Enforce consistent brace style for `case` clauses.
6074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
6234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/switch-case-braces.md
6075
6235
  */
6076
6236
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
6077
6237
  /**
6078
6238
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
6079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
6239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/switch-case-break-position.md
6080
6240
  */
6081
6241
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
6082
6242
  /**
6083
6243
  * Fix whitespace-insensitive template indentation.
6084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
6244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/template-indent.md
6085
6245
  */
6086
6246
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
6087
6247
  /**
6088
6248
  * Enforce consistent case for text encoding identifiers.
6089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
6249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/text-encoding-identifier-case.md
6090
6250
  */
6091
6251
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
6092
6252
  /**
6093
6253
  * Require `new` when creating an error.
6094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
6254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/throw-new-error.md
6095
6255
  */
6096
6256
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
6097
6257
  /**
6098
6258
  * Limit the complexity of `try` blocks.
6099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
6259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v79.0.0/docs/rules/try-complexity.md
6100
6260
  */
6101
6261
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
6102
6262
  /**
@@ -8799,6 +8959,14 @@ type CssUseLayers = [] | [{
8799
8959
  requireImportLayers?: boolean;
8800
8960
  layerNamePattern?: string;
8801
8961
  }];
8962
+ // ----- cssicorn/consistent-layer-order -----
8963
+ type CssicornConsistentLayerOrder = [] | [{
8964
+ checkUndeclaredLayers?: boolean;
8965
+ }];
8966
+ // ----- cssicorn/consistent-property-order -----
8967
+ type CssicornConsistentPropertyOrder = [] | [{
8968
+ order?: (("concentric-css" | "alphabetical") | [string, ...(string)[]]);
8969
+ }];
8802
8970
  // ----- cssicorn/no-deprecated-features -----
8803
8971
  type CssicornNoDeprecatedFeatures = [] | [{
8804
8972
  allow?: string[];
@@ -8815,6 +8983,12 @@ type CssicornNoUnknownPseudoSelectors = [] | [{
8815
8983
  type CssicornNoUnscopedNestingSelector = [] | [{
8816
8984
  scopingRootAtRules?: string[];
8817
8985
  }];
8986
+ // ----- cssicorn/prefer-existing-custom-properties -----
8987
+ type CssicornPreferExistingCustomProperties = [] | [{
8988
+ customProperties?: {
8989
+ [k: string]: string | undefined;
8990
+ };
8991
+ }];
8818
8992
  // ----- cssicorn/prefer-explicit-viewport-units -----
8819
8993
  type CssicornPreferExplicitViewportUnits = [] | [{
8820
8994
  unit?: ("dvh" | "svh" | "lvh");
@@ -9001,6 +9175,7 @@ type InitDeclarations = ([] | ["always"] | [] | ["never"] | ["never", {
9001
9175
  }]);
9002
9176
  // ----- jsdoc/check-alignment -----
9003
9177
  type JsdocCheckAlignment = [] | [{
9178
+ ignoreEmptyLines?: boolean;
9004
9179
  innerIndent?: number;
9005
9180
  }];
9006
9181
  // ----- jsdoc/check-examples -----
@@ -9028,6 +9203,7 @@ type JsdocCheckExamples = [] | [{
9028
9203
  // ----- jsdoc/check-indentation -----
9029
9204
  type JsdocCheckIndentation = [] | [{
9030
9205
  allowIndentedSections?: boolean;
9206
+ allowNoSpaceAfterAsterisk?: boolean;
9031
9207
  excludeTags?: string[];
9032
9208
  }];
9033
9209
  // ----- jsdoc/check-line-alignment -----
@@ -9063,6 +9239,10 @@ type JsdocCheckParamNames = [] | [{
9063
9239
  type JsdocCheckPropertyNames = [] | [{
9064
9240
  enableFixer?: boolean;
9065
9241
  }];
9242
+ // ----- jsdoc/check-syntax -----
9243
+ type JsdocCheckSyntax = [] | [{
9244
+ enableFixer?: boolean;
9245
+ }];
9066
9246
  // ----- jsdoc/check-tag-names -----
9067
9247
  type JsdocCheckTagNames = [] | [{
9068
9248
  definedTags?: string[];
@@ -9241,6 +9421,7 @@ type JsdocNoUndefinedTypes = [] | [{
9241
9421
  type JsdocNoUnnecessaryTypeAssertion = [] | [{
9242
9422
  checkLiteralConstAssertions?: boolean;
9243
9423
  enableFixer?: boolean;
9424
+ fixTypeChangingCasts?: boolean;
9244
9425
  preferConstToLiteralTuples?: boolean;
9245
9426
  treatAnyAsRedundant?: boolean;
9246
9427
  typesToIgnore?: string[];
@@ -9447,7 +9628,6 @@ type JsdocRequireTags = [] | [{
9447
9628
  tags?: (string | {
9448
9629
  context?: string;
9449
9630
  tag?: string;
9450
- [k: string]: unknown | undefined;
9451
9631
  })[];
9452
9632
  }];
9453
9633
  // ----- jsdoc/require-template -----
@@ -19638,6 +19818,9 @@ type UnicornClassReferenceInStaticMethods = [] | [{
19638
19818
  }];
19639
19819
  // ----- unicorn/comment-content -----
19640
19820
  type UnicornCommentContent = [] | [{
19821
+ ignore?: (string | {
19822
+ [k: string]: unknown | undefined;
19823
+ })[];
19641
19824
  checkUniformCase?: boolean;
19642
19825
  extendDefaultReplacements?: boolean;
19643
19826
  replacements?: {
@@ -19908,6 +20091,13 @@ type UnicornNoNull = [] | [{
19908
20091
  checkArguments?: boolean;
19909
20092
  checkStrictEquality?: boolean;
19910
20093
  }];
20094
+ // ----- unicorn/no-top-level-side-effects -----
20095
+ type UnicornNoTopLevelSideEffects = [] | [{
20096
+ checkUnknownCalls?: boolean;
20097
+ allow?: {
20098
+ [k: string]: string[] | undefined;
20099
+ };
20100
+ }];
19911
20101
  // ----- unicorn/no-typeof-undefined -----
19912
20102
  type UnicornNoTypeofUndefined = [] | [{
19913
20103
  checkGlobalVariables?: boolean;
@@ -19989,6 +20179,10 @@ type UnicornPreferContinue = [] | [{
19989
20179
  maximumStatements?: number;
19990
20180
  checkShortBodies?: boolean;
19991
20181
  }];
20182
+ // ----- unicorn/prefer-default-parameters -----
20183
+ type UnicornPreferDefaultParameters = [] | [{
20184
+ checkFallbackExpressions?: boolean;
20185
+ }];
19992
20186
  // ----- unicorn/prefer-dom-node-html-methods -----
19993
20187
  type UnicornPreferDomNodeHtmlMethods = [] | [{
19994
20188
  checkGetHTML?: boolean;
@@ -20070,7 +20264,10 @@ type UnicornPreferTemporal = [] | [{
20070
20264
  checkMethods?: boolean;
20071
20265
  }];
20072
20266
  // ----- unicorn/prefer-ternary -----
20073
- type UnicornPreferTernary = [] | [("always" | "only-single-line")];
20267
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
20268
+ checkVaryingBase?: boolean;
20269
+ checkComputedMemberAccess?: boolean;
20270
+ }];
20074
20271
  // ----- unicorn/relative-url-style -----
20075
20272
  type UnicornRelativeUrlStyle = [] | [("never" | "always")];
20076
20273
  // ----- unicorn/require-css-escape -----
@@ -21863,7 +22060,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
21863
22060
  onlyEquality?: boolean;
21864
22061
  }];
21865
22062
  /** Names of all configuration items returned by the default configuration. */
21866
- type ConfigNames = 'favorodera/ignores' | 'favorodera/code-in-markdown/setup' | 'favorodera/code-in-markdown/rules' | 'favorodera/css/setup' | 'favorodera/css/rules' | 'favorodera/css/cssicorn/setup' | 'favorodera/css/cssicorn/rules' | 'favorodera/imports/setup' | 'favorodera/imports/rules' | 'favorodera/javascript/setup' | 'favorodera/javascript/rules' | 'favorodera/jsdoc/setup' | 'favorodera/jsdoc/rules' | 'favorodera/jsonc/setup' | 'favorodera/jsonc/rules' | 'favorodera/jsonc/package-json/rules' | 'favorodera/jsonc/tsconfig/rules' | 'favorodera/markdown/setup' | 'favorodera/markdown/rules' | 'favorodera/node/setup' | 'favorodera/node/rules' | 'favorodera/perfectionist/setup' | 'favorodera/perfectionist/rules' | 'favorodera/pnpm/setup' | 'favorodera/pnpm/package-json/rules' | 'favorodera/pnpm/pnpm-workspace/rules' | 'favorodera/stylistic/setup' | 'favorodera/stylistic/rules' | 'favorodera/tailwind/setup' | 'favorodera/tailwind/rules' | 'favorodera/typescript/setup' | 'favorodera/typescript/rules' | 'favorodera/unicorn/setup' | 'favorodera/unicorn/rules' | 'favorodera/unused-imports/setup' | 'favorodera/unused-imports/rules' | 'favorodera/vitest/setup' | 'favorodera/vitest/rules' | 'favorodera/vue/setup' | 'favorodera/vue/rules' | 'favorodera/vue/a11y/setup' | 'favorodera/vue/a11y/rules' | 'favorodera/yaml/setup' | 'favorodera/yaml/rules' | 'favorodera/yaml/pnpm-workspace/rules';
22063
+ type ConfigNames = 'favorodera/ignores' | 'favorodera/css/setup' | 'favorodera/css/rules' | 'favorodera/css/cssicorn/setup' | 'favorodera/css/cssicorn/rules' | 'favorodera/imports/setup' | 'favorodera/imports/rules' | 'favorodera/javascript/setup' | 'favorodera/javascript/rules' | 'favorodera/jsdoc/setup' | 'favorodera/jsdoc/rules' | 'favorodera/jsonc/setup' | 'favorodera/jsonc/rules' | 'favorodera/jsonc/package-json/rules' | 'favorodera/jsonc/tsconfig/rules' | 'favorodera/markdown/setup' | 'favorodera/markdown/rules' | 'favorodera/node/setup' | 'favorodera/node/rules' | 'favorodera/perfectionist/setup' | 'favorodera/perfectionist/rules' | 'favorodera/pnpm/setup' | 'favorodera/pnpm/package-json/rules' | 'favorodera/pnpm/pnpm-workspace/rules' | 'favorodera/stylistic/setup' | 'favorodera/stylistic/rules' | 'favorodera/tailwind/setup' | 'favorodera/tailwind/rules' | 'favorodera/typescript/setup' | 'favorodera/typescript/rules' | 'favorodera/unicorn/setup' | 'favorodera/unicorn/rules' | 'favorodera/unused-imports/setup' | 'favorodera/unused-imports/rules' | 'favorodera/vitest/setup' | 'favorodera/vitest/rules' | 'favorodera/vue/setup' | 'favorodera/vue/rules' | 'favorodera/vue/a11y/setup' | 'favorodera/vue/a11y/rules' | 'favorodera/yaml/setup' | 'favorodera/yaml/rules' | 'favorodera/yaml/pnpm-workspace/rules' | 'favorodera/code-in-markdown/setup' | 'favorodera/code-in-markdown/rules';
21867
22064
  /**
21868
22065
  * Allows a configuration group to be enabled/disabled or configured with options.
21869
22066
  * @template Options - The option object accepted by the configuration group. Defaults to `SharedOptions`.