@2digits/eslint-config 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -10,7 +10,7 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
10
10
  interface RuleOptions {
11
11
  /**
12
12
  * Enforce giving proper names to type parameters when there are two or more
13
- * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.0.1/packages/eslint/src/rules/type-param-names.ts
13
+ * @see https://github.com/2digits-agency/configs/blob/@2digits/eslint-plugin@2.0.3/packages/eslint/src/rules/type-param-names.ts
14
14
  */
15
15
  '@2digits/type-param-names'?: Linter.RuleEntry<[]>
16
16
  /**
@@ -4299,7 +4299,7 @@ Backward pagination arguments
4299
4299
  */
4300
4300
  'ts/restrict-template-expressions'?: Linter.RuleEntry<TsRestrictTemplateExpressions>
4301
4301
  /**
4302
- * Enforce consistent returning of awaited values
4302
+ * Enforce consistent awaiting of returned promises
4303
4303
  * @see https://typescript-eslint.io/rules/return-await
4304
4304
  */
4305
4305
  'ts/return-await'?: Linter.RuleEntry<TsReturnAwait>
@@ -4312,6 +4312,7 @@ Backward pagination arguments
4312
4312
  /**
4313
4313
  * Enforce constituents of a type union/intersection to be sorted alphabetically
4314
4314
  * @see https://typescript-eslint.io/rules/sort-type-constituents
4315
+ * @deprecated
4315
4316
  */
4316
4317
  'ts/sort-type-constituents'?: Linter.RuleEntry<TsSortTypeConstituents>
4317
4318
  /**
@@ -4385,677 +4386,682 @@ Backward pagination arguments
4385
4386
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4386
4387
  /**
4387
4388
  * Improve regexes by making them shorter, consistent, and safer.
4388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
4389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
4389
4390
  */
4390
4391
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4391
4392
  /**
4392
4393
  * Enforce a specific parameter name in catch clauses.
4393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
4394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
4394
4395
  */
4395
4396
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4396
4397
  /**
4397
4398
  * Use destructured variables over properties.
4398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
4399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
4399
4400
  */
4400
4401
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4401
4402
  /**
4402
4403
  * Prefer consistent types when spreading a ternary in an array literal.
4403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-empty-array-spread.md
4404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
4404
4405
  */
4405
4406
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4406
4407
  /**
4407
4408
  * Move function definitions to the highest possible scope.
4408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
4409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
4409
4410
  */
4410
4411
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4411
4412
  /**
4412
4413
  * Enforce correct `Error` subclassing.
4413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
4414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
4414
4415
  */
4415
4416
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4416
4417
  /**
4417
4418
  * Enforce no spaces between braces.
4418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
4419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
4419
4420
  */
4420
4421
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4421
4422
  /**
4422
4423
  * Enforce passing a `message` value when creating a built-in error.
4423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
4424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
4424
4425
  */
4425
4426
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4426
4427
  /**
4427
4428
  * Require escape sequences to use uppercase values.
4428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
4429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
4429
4430
  */
4430
4431
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4431
4432
  /**
4432
4433
  * Add expiration conditions to TODO comments.
4433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
4434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
4434
4435
  */
4435
4436
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4436
4437
  /**
4437
4438
  * Enforce explicitly comparing the `length` or `size` property of a value.
4438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
4439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
4439
4440
  */
4440
4441
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4441
4442
  /**
4442
4443
  * Enforce a case style for filenames.
4443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
4444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
4444
4445
  */
4445
4446
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4446
4447
  /**
4447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
4448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
4448
4449
  * @deprecated
4449
4450
  */
4450
4451
  'unicorn/import-index'?: Linter.RuleEntry<[]>
4451
4452
  /**
4452
4453
  * Enforce specific import styles per module.
4453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
4454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
4454
4455
  */
4455
4456
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4456
4457
  /**
4457
4458
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
4459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
4459
4460
  */
4460
4461
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4461
4462
  /**
4462
4463
  * Enforce specifying rules to disable in `eslint-disable` comments.
4463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
4464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
4464
4465
  */
4465
4466
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4466
4467
  /**
4467
4468
  * Disallow anonymous functions and classes as the default export.
4468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
4469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
4469
4470
  */
4470
4471
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4471
4472
  /**
4472
4473
  * Prevent passing a function reference directly to iterator methods.
4473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
4474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
4474
4475
  */
4475
4476
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4476
4477
  /**
4477
4478
  * Prefer `for…of` over the `forEach` method.
4478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
4479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
4479
4480
  */
4480
4481
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4481
4482
  /**
4482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
4483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
4483
4484
  * @deprecated
4484
4485
  */
4485
4486
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
4486
4487
  /**
4487
4488
  * Disallow using the `this` argument in array methods.
4488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
4489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
4489
4490
  */
4490
4491
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4491
4492
  /**
4492
4493
  * Enforce combining multiple `Array#push()` into one call.
4493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
4494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
4494
4495
  */
4495
4496
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4496
4497
  /**
4497
4498
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
4499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
4499
4500
  */
4500
4501
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4501
4502
  /**
4502
4503
  * Disallow member access from await expression.
4503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
4504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
4504
4505
  */
4505
4506
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4506
4507
  /**
4507
4508
  * Disallow using `await` in `Promise` method parameters.
4508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
4509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
4509
4510
  */
4510
4511
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4511
4512
  /**
4512
4513
  * Do not use leading/trailing space between `console.log` parameters.
4513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
4514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
4514
4515
  */
4515
4516
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4516
4517
  /**
4517
4518
  * Do not use `document.cookie` directly.
4518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
4519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
4519
4520
  */
4520
4521
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4521
4522
  /**
4522
4523
  * Disallow empty files.
4523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
4524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
4524
4525
  */
4525
4526
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4526
4527
  /**
4527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
4528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
4528
4529
  * @deprecated
4529
4530
  */
4530
4531
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
4531
4532
  /**
4532
4533
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
4534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
4534
4535
  */
4535
4536
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
4536
4537
  /**
4537
4538
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
4539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
4539
4540
  */
4540
4541
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
4541
4542
  /**
4542
4543
  * Require `Array.isArray()` instead of `instanceof Array`.
4543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
4544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
4544
4545
  */
4545
4546
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
4546
4547
  /**
4547
4548
  * Disallow invalid options in `fetch()` and `new Request()`.
4548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-fetch-options.md
4549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
4549
4550
  */
4550
4551
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
4551
4552
  /**
4552
4553
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
4554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
4554
4555
  */
4555
4556
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
4556
4557
  /**
4557
4558
  * Disallow identifiers starting with `new` or `class`.
4558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
4559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
4559
4560
  */
4560
4561
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
4561
4562
  /**
4562
4563
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
4564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
4564
4565
  */
4565
4566
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
4566
4567
  /**
4567
4568
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-magic-array-flat-depth.md
4569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
4569
4570
  */
4570
4571
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
4571
4572
  /**
4572
4573
  * Disallow negated conditions.
4573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
4574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
4574
4575
  */
4575
4576
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
4577
+ /**
4578
+ * Disallow negated expression in equality check.
4579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
4580
+ */
4581
+ 'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
4576
4582
  /**
4577
4583
  * Disallow nested ternary expressions.
4578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
4584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
4579
4585
  */
4580
4586
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
4581
4587
  /**
4582
4588
  * Disallow `new Array()`.
4583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
4589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
4584
4590
  */
4585
4591
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
4586
4592
  /**
4587
4593
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
4594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
4589
4595
  */
4590
4596
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
4591
4597
  /**
4592
4598
  * Disallow the use of the `null` literal.
4593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
4599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
4594
4600
  */
4595
4601
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
4596
4602
  /**
4597
4603
  * Disallow the use of objects as default parameters.
4598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
4604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
4599
4605
  */
4600
4606
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
4601
4607
  /**
4602
4608
  * Disallow `process.exit()`.
4603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
4609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
4604
4610
  */
4605
4611
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
4606
4612
  /**
4607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
4613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
4608
4614
  * @deprecated
4609
4615
  */
4610
4616
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
4611
4617
  /**
4612
4618
  * Disallow passing single-element arrays to `Promise` methods.
4613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
4619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
4614
4620
  */
4615
4621
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
4616
4622
  /**
4617
4623
  * Disallow classes that only have static members.
4618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
4624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
4619
4625
  */
4620
4626
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
4621
4627
  /**
4622
4628
  * Disallow `then` property.
4623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
4629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
4624
4630
  */
4625
4631
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
4626
4632
  /**
4627
4633
  * Disallow assigning `this` to a variable.
4628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
4634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
4629
4635
  */
4630
4636
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
4631
4637
  /**
4632
4638
  * Disallow comparing `undefined` using `typeof`.
4633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
4639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
4634
4640
  */
4635
4641
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
4636
4642
  /**
4637
4643
  * Disallow awaiting non-promise values.
4638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
4644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
4639
4645
  */
4640
4646
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
4641
4647
  /**
4642
4648
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
4649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
4644
4650
  */
4645
4651
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
4646
4652
  /**
4647
4653
  * Disallow unreadable array destructuring.
4648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
4654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
4649
4655
  */
4650
4656
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
4651
4657
  /**
4652
4658
  * Disallow unreadable IIFEs.
4653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
4659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
4654
4660
  */
4655
4661
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
4656
4662
  /**
4657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
4663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
4658
4664
  * @deprecated
4659
4665
  */
4660
4666
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
4661
4667
  /**
4662
4668
  * Disallow unused object properties.
4663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
4669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
4664
4670
  */
4665
4671
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
4666
4672
  /**
4667
4673
  * Disallow useless fallback when spreading in object literals.
4668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
4674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
4669
4675
  */
4670
4676
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
4671
4677
  /**
4672
4678
  * Disallow useless array length check.
4673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
4679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
4674
4680
  */
4675
4681
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
4676
4682
  /**
4677
4683
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
4684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
4679
4685
  */
4680
4686
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
4681
4687
  /**
4682
4688
  * Disallow unnecessary spread.
4683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
4689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
4684
4690
  */
4685
4691
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
4686
4692
  /**
4687
4693
  * Disallow useless case in switch statements.
4688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
4694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
4689
4695
  */
4690
4696
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
4691
4697
  /**
4692
4698
  * Disallow useless `undefined`.
4693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
4699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
4694
4700
  */
4695
4701
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
4696
4702
  /**
4697
4703
  * Disallow number literals with zero fractions or dangling dots.
4698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
4704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
4699
4705
  */
4700
4706
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
4701
4707
  /**
4702
4708
  * Enforce proper case for numeric literals.
4703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
4709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
4704
4710
  */
4705
4711
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
4706
4712
  /**
4707
4713
  * Enforce the style of numeric separators by correctly grouping digits.
4708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
4714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
4709
4715
  */
4710
4716
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
4711
4717
  /**
4712
4718
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
4719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
4714
4720
  */
4715
4721
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
4716
4722
  /**
4717
4723
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
4724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
4719
4725
  */
4720
4726
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
4721
4727
  /**
4722
4728
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
4729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
4724
4730
  */
4725
4731
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
4726
4732
  /**
4727
4733
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
4734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
4729
4735
  */
4730
4736
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
4731
4737
  /**
4732
4738
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
4739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
4734
4740
  */
4735
4741
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
4736
4742
  /**
4737
- * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
4738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
4743
+ * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
4739
4745
  */
4740
4746
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
4741
4747
  /**
4742
4748
  * Prefer `.at()` method for index access and `String#charAt()`.
4743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
4749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
4744
4750
  */
4745
4751
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
4746
4752
  /**
4747
4753
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
4754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
4749
4755
  */
4750
4756
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
4751
4757
  /**
4752
4758
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
4759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
4754
4760
  */
4755
4761
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
4756
4762
  /**
4757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
4763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
4758
4764
  * @deprecated
4759
4765
  */
4760
4766
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
4761
4767
  /**
4762
4768
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
4769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
4764
4770
  */
4765
4771
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
4766
4772
  /**
4767
4773
  * Prefer default parameters over reassignment.
4768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
4774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
4769
4775
  */
4770
4776
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
4771
4777
  /**
4772
4778
  * Prefer `Node#append()` over `Node#appendChild()`.
4773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
4779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
4774
4780
  */
4775
4781
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
4776
4782
  /**
4777
4783
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
4784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
4779
4785
  */
4780
4786
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
4781
4787
  /**
4782
4788
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
4789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
4784
4790
  */
4785
4791
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
4786
4792
  /**
4787
4793
  * Prefer `.textContent` over `.innerText`.
4788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
4794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
4789
4795
  */
4790
4796
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
4791
4797
  /**
4792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
4798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
4793
4799
  * @deprecated
4794
4800
  */
4795
4801
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
4796
4802
  /**
4797
4803
  * Prefer `EventTarget` over `EventEmitter`.
4798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
4804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
4799
4805
  */
4800
4806
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
4801
4807
  /**
4802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
4808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
4803
4809
  * @deprecated
4804
4810
  */
4805
4811
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
4806
4812
  /**
4807
4813
  * Prefer `export…from` when re-exporting.
4808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
4814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
4809
4815
  */
4810
4816
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
4811
4817
  /**
4812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
4818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
4813
4819
  * @deprecated
4814
4820
  */
4815
4821
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
4816
4822
  /**
4817
- * Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
4818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
4823
+ * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
4819
4825
  */
4820
4826
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
4821
4827
  /**
4822
4828
  * Prefer reading a JSON file as a buffer.
4823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
4829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
4824
4830
  */
4825
4831
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
4826
4832
  /**
4827
4833
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
4834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
4829
4835
  */
4830
4836
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
4831
4837
  /**
4832
4838
  * Prefer using a logical operator over a ternary.
4833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4834
4840
  */
4835
4841
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
4836
4842
  /**
4837
4843
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
4844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
4839
4845
  */
4840
4846
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
4841
4847
  /**
4842
4848
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
4849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
4844
4850
  */
4845
4851
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
4846
4852
  /**
4847
4853
  * Prefer modern `Math` APIs over legacy patterns.
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
4854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
4849
4855
  */
4850
4856
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
4851
4857
  /**
4852
4858
  * Prefer JavaScript modules (ESM) over CommonJS.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
4859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
4854
4860
  */
4855
4861
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
4856
4862
  /**
4857
4863
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
4864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
4859
4865
  */
4860
4866
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
4861
4867
  /**
4862
4868
  * Prefer negative index over `.length - index` when possible.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
4869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
4864
4870
  */
4865
4871
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
4866
4872
  /**
4867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
4873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
4868
4874
  * @deprecated
4869
4875
  */
4870
4876
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
4871
4877
  /**
4872
4878
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
4879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
4874
4880
  */
4875
4881
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
4876
4882
  /**
4877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
4883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
4878
4884
  * @deprecated
4879
4885
  */
4880
4886
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
4881
4887
  /**
4882
4888
  * Prefer `Number` static properties over global ones.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
4889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
4884
4890
  */
4885
4891
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
4886
4892
  /**
4887
4893
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
4894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
4889
4895
  */
4890
4896
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
4891
4897
  /**
4892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
4893
4899
  * @deprecated
4894
4900
  */
4895
4901
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
4896
4902
  /**
4897
4903
  * Prefer omitting the `catch` binding parameter.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
4904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
4899
4905
  */
4900
4906
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
4901
4907
  /**
4902
4908
  * Prefer borrowing methods from the prototype instead of the instance.
4903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
4909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
4904
4910
  */
4905
4911
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
4906
4912
  /**
4907
4913
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
4914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
4909
4915
  */
4910
4916
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
4911
4917
  /**
4912
4918
  * Prefer `Reflect.apply()` over `Function#apply()`.
4913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
4919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
4914
4920
  */
4915
4921
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
4916
4922
  /**
4917
4923
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
4924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
4919
4925
  */
4920
4926
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
4921
4927
  /**
4922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
4923
4929
  * @deprecated
4924
4930
  */
4925
4931
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
4926
4932
  /**
4927
4933
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
4934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
4929
4935
  */
4930
4936
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
4931
4937
  /**
4932
4938
  * Prefer using `Set#size` instead of `Array#length`.
4933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
4939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
4934
4940
  */
4935
4941
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
4936
4942
  /**
4937
4943
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
4944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
4939
4945
  */
4940
4946
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
4941
4947
  /**
4942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
4943
4949
  * @deprecated
4944
4950
  */
4945
4951
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
4946
4952
  /**
4947
4953
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-raw.md
4954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
4949
4955
  */
4950
4956
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
4951
4957
  /**
4952
4958
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
4959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
4954
4960
  */
4955
4961
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
4956
4962
  /**
4957
4963
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
4964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
4959
4965
  */
4960
4966
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
4961
4967
  /**
4962
4968
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
4969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
4964
4970
  */
4965
4971
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
4966
4972
  /**
4967
4973
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
4974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
4969
4975
  */
4970
4976
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
4971
4977
  /**
4972
4978
  * Prefer using `structuredClone` to create a deep clone.
4973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-structured-clone.md
4979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
4974
4980
  */
4975
4981
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
4976
4982
  /**
4977
4983
  * Prefer `switch` over multiple `else-if`.
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
4984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
4979
4985
  */
4980
4986
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
4981
4987
  /**
4982
4988
  * Prefer ternary expressions over simple `if-else` statements.
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
4989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
4984
4990
  */
4985
4991
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
4986
4992
  /**
4987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
4993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
4988
4994
  * @deprecated
4989
4995
  */
4990
4996
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
4991
4997
  /**
4992
4998
  * Prefer top-level await over top-level promises and async function calls.
4993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
4999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
4994
5000
  */
4995
5001
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
4996
5002
  /**
4997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
5003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
4998
5004
  * @deprecated
4999
5005
  */
5000
5006
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5001
5007
  /**
5002
5008
  * Enforce throwing `TypeError` in type checking conditions.
5003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
5009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
5004
5010
  */
5005
5011
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5006
5012
  /**
5007
5013
  * Prevent abbreviations.
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
5014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
5009
5015
  */
5010
5016
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5011
5017
  /**
5012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
5018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
5013
5019
  * @deprecated
5014
5020
  */
5015
5021
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5016
5022
  /**
5017
5023
  * Enforce consistent relative URL style.
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
5024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
5019
5025
  */
5020
5026
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5021
5027
  /**
5022
5028
  * Enforce using the separator argument with `Array#join()`.
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
5029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
5024
5030
  */
5025
5031
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5026
5032
  /**
5027
5033
  * Enforce using the digits argument with `Number#toFixed()`.
5028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5029
5035
  */
5030
5036
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5031
5037
  /**
5032
5038
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
5039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
5034
5040
  */
5035
5041
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5036
5042
  /**
5037
5043
  * Enforce better string content.
5038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
5044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
5039
5045
  */
5040
5046
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5041
5047
  /**
5042
5048
  * Enforce consistent brace style for `case` clauses.
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
5049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
5044
5050
  */
5045
5051
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5046
5052
  /**
5047
5053
  * Fix whitespace-insensitive template indentation.
5048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
5049
5055
  */
5050
5056
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5051
5057
  /**
5052
5058
  * Enforce consistent case for text encoding identifiers.
5053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
5054
5060
  */
5055
5061
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5056
5062
  /**
5057
5063
  * Require `new` when creating an error.
5058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/throw-new-error.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
5059
5065
  */
5060
5066
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5061
5067
  /**
@@ -7071,6 +7077,7 @@ type NodeNoUnpublishedImport = []|[{
7071
7077
  })[]])
7072
7078
  resolvePaths?: string[]
7073
7079
  ignoreTypeImport?: boolean
7080
+ ignorePrivate?: boolean
7074
7081
  }]
7075
7082
  // ----- node/no-unpublished-require -----
7076
7083
  type NodeNoUnpublishedRequire = []|[{
@@ -7093,6 +7100,7 @@ type NodeNoUnpublishedRequire = []|[{
7093
7100
  })[]])
7094
7101
  resolvePaths?: string[]
7095
7102
  tryExtensions?: string[]
7103
+ ignorePrivate?: boolean
7096
7104
  }]
7097
7105
  // ----- node/no-unsupported-features/es-builtins -----
7098
7106
  type NodeNoUnsupportedFeaturesEsBuiltins = []|[{