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