@hexadrop/eslint-config 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.cts +204 -151
  2. package/dist/index.d.ts +204 -151
  3. package/package.json +17 -17
package/dist/index.d.cts CHANGED
@@ -2254,6 +2254,11 @@ interface RuleOptions {
2254
2254
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
2255
2255
  */
2256
2256
  'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>
2257
+ /**
2258
+ * enforce either `crypto` or `require("crypto").webcrypto`
2259
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
2260
+ */
2261
+ 'node/prefer-global/crypto'?: Linter.RuleEntry<NodePreferGlobalCrypto>
2257
2262
  /**
2258
2263
  * enforce either `process` or `require("process")`
2259
2264
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
@@ -2269,6 +2274,11 @@ interface RuleOptions {
2269
2274
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
2270
2275
  */
2271
2276
  'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>
2277
+ /**
2278
+ * enforce either global timer functions or `require("timers")`
2279
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
2280
+ */
2281
+ 'node/prefer-global/timers'?: Linter.RuleEntry<NodePreferGlobalTimers>
2272
2282
  /**
2273
2283
  * enforce either `URL` or `require("url").URL`
2274
2284
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
@@ -3377,6 +3387,11 @@ interface RuleOptions {
3377
3387
  * @see https://eslint.style/rules/eol-last
3378
3388
  */
3379
3389
  'style/eol-last'?: Linter.RuleEntry<StyleEolLast>
3390
+ /**
3391
+ * Enforce consistent line break styles for JSX props
3392
+ * @see https://eslint.style/rules/jsx-props-style
3393
+ */
3394
+ 'style/exp-jsx-props-style'?: Linter.RuleEntry<StyleExpJsxPropsStyle>
3380
3395
  /**
3381
3396
  * Enforce consistent spacing and line break styles inside brackets.
3382
3397
  * @see https://eslint.style/rules/list-style
@@ -4280,7 +4295,7 @@ interface RuleOptions {
4280
4295
  * Disallow default values that will never be used
4281
4296
  * @see https://typescript-eslint.io/rules/no-useless-default-assignment
4282
4297
  */
4283
- 'typescript/no-useless-default-assignment'?: Linter.RuleEntry<[]>
4298
+ 'typescript/no-useless-default-assignment'?: Linter.RuleEntry<TypescriptNoUselessDefaultAssignment>
4284
4299
  /**
4285
4300
  * Disallow empty exports that don't change anything in a module file
4286
4301
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -4497,725 +4512,730 @@ interface RuleOptions {
4497
4512
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4498
4513
  /**
4499
4514
  * Improve regexes by making them shorter, consistent, and safer.
4500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
4515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
4501
4516
  */
4502
4517
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4503
4518
  /**
4504
4519
  * Enforce a specific parameter name in catch clauses.
4505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
4520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
4506
4521
  */
4507
4522
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4508
4523
  /**
4509
4524
  * Enforce consistent assertion style with `node:assert`.
4510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
4525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
4511
4526
  */
4512
4527
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4513
4528
  /**
4514
4529
  * Prefer passing `Date` directly to the constructor when cloning.
4515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
4530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
4516
4531
  */
4517
4532
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4518
4533
  /**
4519
4534
  * Use destructured variables over properties.
4520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
4535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
4521
4536
  */
4522
4537
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4523
4538
  /**
4524
4539
  * Prefer consistent types when spreading a ternary in an array literal.
4525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
4540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
4526
4541
  */
4527
4542
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4528
4543
  /**
4529
4544
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
4545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
4531
4546
  */
4532
4547
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4533
4548
  /**
4534
4549
  * Move function definitions to the highest possible scope.
4535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
4550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
4536
4551
  */
4537
4552
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4538
4553
  /**
4539
4554
  * Enforce correct `Error` subclassing.
4540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
4555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
4541
4556
  */
4542
4557
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4543
4558
  /**
4544
4559
  * Enforce no spaces between braces.
4545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
4560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
4546
4561
  */
4547
4562
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4548
4563
  /**
4549
4564
  * Enforce passing a `message` value when creating a built-in error.
4550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
4565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
4551
4566
  */
4552
4567
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4553
4568
  /**
4554
4569
  * Require escape sequences to use uppercase or lowercase values.
4555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
4570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
4556
4571
  */
4557
4572
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
4558
4573
  /**
4559
4574
  * Add expiration conditions to TODO comments.
4560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
4575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
4561
4576
  */
4562
4577
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4563
4578
  /**
4564
4579
  * Enforce explicitly comparing the `length` or `size` property of a value.
4565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
4580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
4566
4581
  */
4567
4582
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4568
4583
  /**
4569
4584
  * Enforce a case style for filenames.
4570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
4585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
4571
4586
  */
4572
4587
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4573
4588
  /**
4574
4589
  * Enforce specific import styles per module.
4575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
4590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
4576
4591
  */
4577
4592
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4593
+ /**
4594
+ * Prevent usage of variables from outside the scope of isolated functions.
4595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
4596
+ */
4597
+ 'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
4578
4598
  /**
4579
4599
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
4600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
4581
4601
  */
4582
4602
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4583
4603
  /**
4584
4604
  * Enforce specifying rules to disable in `eslint-disable` comments.
4585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
4605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
4586
4606
  */
4587
4607
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4588
4608
  /**
4589
4609
  * Disallow recursive access to `this` within getters and setters.
4590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
4610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
4591
4611
  */
4592
4612
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
4593
4613
  /**
4594
4614
  * Disallow anonymous functions and classes as the default export.
4595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
4615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
4596
4616
  */
4597
4617
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4598
4618
  /**
4599
4619
  * Prevent passing a function reference directly to iterator methods.
4600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
4620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
4601
4621
  */
4602
4622
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4603
4623
  /**
4604
4624
  * Prefer `for…of` over the `forEach` method.
4605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
4625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
4606
4626
  */
4607
4627
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4608
4628
  /**
4609
4629
  * Disallow using the `this` argument in array methods.
4610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
4630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
4611
4631
  */
4612
4632
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4613
4633
  /**
4614
4634
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
4615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
4635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
4616
4636
  * @deprecated
4617
4637
  */
4618
4638
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
4619
4639
  /**
4620
4640
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
4641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
4622
4642
  */
4623
4643
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4624
4644
  /**
4625
4645
  * Prefer `Array#toReversed()` over `Array#reverse()`.
4626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
4646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
4627
4647
  */
4628
4648
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
4629
4649
  /**
4630
4650
  * Prefer `Array#toSorted()` over `Array#sort()`.
4631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
4651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
4632
4652
  */
4633
4653
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
4634
4654
  /**
4635
4655
  * Disallow member access from await expression.
4636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
4656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
4637
4657
  */
4638
4658
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4639
4659
  /**
4640
4660
  * Disallow using `await` in `Promise` method parameters.
4641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
4661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
4642
4662
  */
4643
4663
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4644
4664
  /**
4645
4665
  * Do not use leading/trailing space between `console.log` parameters.
4646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
4666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
4647
4667
  */
4648
4668
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4649
4669
  /**
4650
4670
  * Do not use `document.cookie` directly.
4651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
4671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
4652
4672
  */
4653
4673
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4654
4674
  /**
4655
4675
  * Disallow empty files.
4656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
4676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
4657
4677
  */
4658
4678
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4659
4679
  /**
4660
4680
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
4681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
4662
4682
  */
4663
4683
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
4664
4684
  /**
4665
4685
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
4686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
4667
4687
  */
4668
4688
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
4669
4689
  /**
4670
4690
  * Disallow immediate mutation after variable assignment.
4671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
4691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
4672
4692
  */
4673
4693
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
4674
4694
  /**
4675
4695
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
4696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
4677
4697
  * @deprecated
4678
4698
  */
4679
4699
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
4680
4700
  /**
4681
4701
  * Disallow `instanceof` with built-in objects
4682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
4702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
4683
4703
  */
4684
4704
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
4685
4705
  /**
4686
4706
  * Disallow invalid options in `fetch()` and `new Request()`.
4687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
4707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
4688
4708
  */
4689
4709
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
4690
4710
  /**
4691
4711
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
4712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
4693
4713
  */
4694
4714
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
4695
4715
  /**
4696
4716
  * Disallow identifiers starting with `new` or `class`.
4697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
4717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
4698
4718
  */
4699
4719
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
4700
4720
  /**
4701
4721
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
4703
4723
  * @deprecated
4704
4724
  */
4705
4725
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
4706
4726
  /**
4707
4727
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
4728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
4709
4729
  */
4710
4730
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
4711
4731
  /**
4712
4732
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
4733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
4714
4734
  */
4715
4735
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
4716
4736
  /**
4717
4737
  * Disallow named usage of default import and export.
4718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
4738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
4719
4739
  */
4720
4740
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
4721
4741
  /**
4722
4742
  * Disallow negated conditions.
4723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
4743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
4724
4744
  */
4725
4745
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
4726
4746
  /**
4727
4747
  * Disallow negated expression in equality check.
4728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
4748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
4729
4749
  */
4730
4750
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
4731
4751
  /**
4732
4752
  * Disallow nested ternary expressions.
4733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
4753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
4734
4754
  */
4735
4755
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
4736
4756
  /**
4737
4757
  * Disallow `new Array()`.
4738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
4758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
4739
4759
  */
4740
4760
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
4741
4761
  /**
4742
4762
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
4763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
4744
4764
  */
4745
4765
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
4746
4766
  /**
4747
4767
  * Disallow the use of the `null` literal.
4748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
4768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
4749
4769
  */
4750
4770
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
4751
4771
  /**
4752
4772
  * Disallow the use of objects as default parameters.
4753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
4773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
4754
4774
  */
4755
4775
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
4756
4776
  /**
4757
4777
  * Disallow `process.exit()`.
4758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
4778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
4759
4779
  */
4760
4780
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
4761
4781
  /**
4762
4782
  * Disallow passing single-element arrays to `Promise` methods.
4763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
4783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
4764
4784
  */
4765
4785
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
4766
4786
  /**
4767
4787
  * Disallow classes that only have static members.
4768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
4788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
4769
4789
  */
4770
4790
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
4771
4791
  /**
4772
4792
  * Disallow `then` property.
4773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
4793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
4774
4794
  */
4775
4795
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
4776
4796
  /**
4777
4797
  * Disallow assigning `this` to a variable.
4778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
4798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
4779
4799
  */
4780
4800
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
4781
4801
  /**
4782
4802
  * Disallow comparing `undefined` using `typeof`.
4783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
4803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
4784
4804
  */
4785
4805
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
4786
4806
  /**
4787
4807
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
4788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4789
4809
  */
4790
4810
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
4791
4811
  /**
4792
4812
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
4813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
4794
4814
  */
4795
4815
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
4796
4816
  /**
4797
4817
  * Disallow awaiting non-promise values.
4798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
4818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
4799
4819
  */
4800
4820
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
4801
4821
  /**
4802
4822
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
4823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
4804
4824
  */
4805
4825
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
4806
4826
  /**
4807
4827
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
4828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
4809
4829
  */
4810
4830
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
4811
4831
  /**
4812
4832
  * Disallow unreadable array destructuring.
4813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
4833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
4814
4834
  */
4815
4835
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
4816
4836
  /**
4817
4837
  * Disallow unreadable IIFEs.
4818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
4838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
4819
4839
  */
4820
4840
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
4821
4841
  /**
4822
4842
  * Disallow unused object properties.
4823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
4843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
4824
4844
  */
4825
4845
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
4826
4846
  /**
4827
4847
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
4828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
4848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
4829
4849
  */
4830
4850
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
4831
4851
  /**
4832
4852
  * Disallow unnecessary `Error.captureStackTrace(…)`.
4833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
4834
4854
  */
4835
4855
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
4836
4856
  /**
4837
4857
  * Disallow useless fallback when spreading in object literals.
4838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
4858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
4839
4859
  */
4840
4860
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
4841
4861
  /**
4842
4862
  * Disallow useless array length check.
4843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
4863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
4844
4864
  */
4845
4865
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
4846
4866
  /**
4847
4867
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
4868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
4849
4869
  */
4850
4870
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
4851
4871
  /**
4852
4872
  * Disallow unnecessary spread.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
4873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
4854
4874
  */
4855
4875
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
4856
4876
  /**
4857
4877
  * Disallow useless case in switch statements.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
4878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
4859
4879
  */
4860
4880
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
4861
4881
  /**
4862
4882
  * Disallow useless `undefined`.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
4883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
4864
4884
  */
4865
4885
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
4866
4886
  /**
4867
4887
  * Disallow number literals with zero fractions or dangling dots.
4868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
4888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
4869
4889
  */
4870
4890
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
4871
4891
  /**
4872
4892
  * Enforce proper case for numeric literals.
4873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
4893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
4874
4894
  */
4875
4895
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
4876
4896
  /**
4877
4897
  * Enforce the style of numeric separators by correctly grouping digits.
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
4898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
4879
4899
  */
4880
4900
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
4881
4901
  /**
4882
4902
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
4903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
4884
4904
  */
4885
4905
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
4886
4906
  /**
4887
4907
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
4908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
4889
4909
  */
4890
4910
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
4891
4911
  /**
4892
4912
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
4913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
4894
4914
  */
4895
4915
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
4896
4916
  /**
4897
4917
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
4918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
4899
4919
  */
4900
4920
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
4901
4921
  /**
4902
4922
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
4923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
4904
4924
  */
4905
4925
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
4906
4926
  /**
4907
4927
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
4928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
4909
4929
  */
4910
4930
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
4911
4931
  /**
4912
4932
  * Prefer `.at()` method for index access and `String#charAt()`.
4913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
4933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
4914
4934
  */
4915
4935
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
4916
4936
  /**
4917
4937
  * Prefer `BigInt` literals over the constructor.
4918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
4938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
4919
4939
  */
4920
4940
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
4921
4941
  /**
4922
4942
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
4943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
4924
4944
  */
4925
4945
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
4926
4946
  /**
4927
4947
  * Prefer class field declarations over `this` assignments in constructors.
4928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
4948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
4929
4949
  */
4930
4950
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
4931
4951
  /**
4932
4952
  * Prefer using `Element#classList.toggle()` to toggle class names.
4933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
4953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
4934
4954
  */
4935
4955
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
4936
4956
  /**
4937
4957
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
4958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
4939
4959
  */
4940
4960
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
4941
4961
  /**
4942
4962
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
4963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
4944
4964
  */
4945
4965
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
4946
4966
  /**
4947
4967
  * Prefer default parameters over reassignment.
4948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
4968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
4949
4969
  */
4950
4970
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
4951
4971
  /**
4952
4972
  * Prefer `Node#append()` over `Node#appendChild()`.
4953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
4973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
4954
4974
  */
4955
4975
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
4956
4976
  /**
4957
4977
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
4978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
4959
4979
  */
4960
4980
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
4961
4981
  /**
4962
4982
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
4983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
4964
4984
  */
4965
4985
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
4966
4986
  /**
4967
4987
  * Prefer `.textContent` over `.innerText`.
4968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
4988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
4969
4989
  */
4970
4990
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
4971
4991
  /**
4972
4992
  * Prefer `EventTarget` over `EventEmitter`.
4973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
4993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
4974
4994
  */
4975
4995
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
4976
4996
  /**
4977
4997
  * Prefer `export…from` when re-exporting.
4978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
4998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
4979
4999
  */
4980
5000
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
4981
5001
  /**
4982
5002
  * Prefer `globalThis` over `window`, `self`, and `global`.
4983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
4984
5004
  */
4985
5005
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
4986
5006
  /**
4987
5007
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
4989
5009
  */
4990
5010
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
4991
5011
  /**
4992
5012
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
4994
5014
  */
4995
5015
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
4996
5016
  /**
4997
5017
  * Prefer reading a JSON file as a buffer.
4998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
4999
5019
  */
5000
5020
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5001
5021
  /**
5002
5022
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
5004
5024
  */
5005
5025
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5006
5026
  /**
5007
5027
  * Prefer using a logical operator over a ternary.
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5009
5029
  */
5010
5030
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5011
5031
  /**
5012
5032
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
5014
5034
  */
5015
5035
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
5016
5036
  /**
5017
5037
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
5019
5039
  */
5020
5040
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5021
5041
  /**
5022
5042
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
5024
5044
  */
5025
5045
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5026
5046
  /**
5027
5047
  * Prefer modern `Math` APIs over legacy patterns.
5028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
5029
5049
  */
5030
5050
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5031
5051
  /**
5032
5052
  * Prefer JavaScript modules (ESM) over CommonJS.
5033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
5034
5054
  */
5035
5055
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5036
5056
  /**
5037
5057
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
5039
5059
  */
5040
5060
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5041
5061
  /**
5042
5062
  * Prefer negative index over `.length - index` when possible.
5043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
5044
5064
  */
5045
5065
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5046
5066
  /**
5047
5067
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
5049
5069
  */
5050
5070
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5051
5071
  /**
5052
5072
  * Prefer `Number` static properties over global ones.
5053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
5054
5074
  */
5055
5075
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5056
5076
  /**
5057
5077
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
5078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
5059
5079
  */
5060
5080
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5061
5081
  /**
5062
5082
  * Prefer omitting the `catch` binding parameter.
5063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
5083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
5064
5084
  */
5065
5085
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5066
5086
  /**
5067
5087
  * Prefer borrowing methods from the prototype instead of the instance.
5068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
5088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
5069
5089
  */
5070
5090
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5071
5091
  /**
5072
5092
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
5093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
5074
5094
  */
5075
5095
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5076
5096
  /**
5077
5097
  * Prefer `Reflect.apply()` over `Function#apply()`.
5078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
5098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
5079
5099
  */
5080
5100
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5081
5101
  /**
5082
5102
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
5103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
5084
5104
  */
5085
5105
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5086
5106
  /**
5087
5107
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
5108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
5089
5109
  */
5090
5110
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
5091
5111
  /**
5092
5112
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
5113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
5094
5114
  */
5095
5115
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5096
5116
  /**
5097
5117
  * Prefer using `Set#size` instead of `Array#length`.
5098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
5118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
5099
5119
  */
5100
5120
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5101
5121
  /**
5102
5122
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
5123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
5104
5124
  */
5105
5125
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
5106
5126
  /**
5107
5127
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
5128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
5109
5129
  */
5110
5130
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5111
5131
  /**
5112
5132
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
5133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
5114
5134
  */
5115
5135
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5116
5136
  /**
5117
5137
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
5138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
5119
5139
  */
5120
5140
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5121
5141
  /**
5122
5142
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
5143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
5124
5144
  */
5125
5145
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5126
5146
  /**
5127
5147
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
5148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
5129
5149
  */
5130
5150
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5131
5151
  /**
5132
5152
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
5153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
5134
5154
  */
5135
5155
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5136
5156
  /**
5137
5157
  * Prefer using `structuredClone` to create a deep clone.
5138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
5158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
5139
5159
  */
5140
5160
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5141
5161
  /**
5142
5162
  * Prefer `switch` over multiple `else-if`.
5143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
5163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
5144
5164
  */
5145
5165
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5146
5166
  /**
5147
5167
  * Prefer ternary expressions over simple `if-else` statements.
5148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
5168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
5149
5169
  */
5150
5170
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5151
5171
  /**
5152
5172
  * Prefer top-level await over top-level promises and async function calls.
5153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
5173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
5154
5174
  */
5155
5175
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5156
5176
  /**
5157
5177
  * Enforce throwing `TypeError` in type checking conditions.
5158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
5178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
5159
5179
  */
5160
5180
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5161
5181
  /**
5162
5182
  * Prevent abbreviations.
5163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
5183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
5164
5184
  */
5165
5185
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5166
5186
  /**
5167
5187
  * Enforce consistent relative URL style.
5168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
5188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
5169
5189
  */
5170
5190
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5171
5191
  /**
5172
5192
  * Enforce using the separator argument with `Array#join()`.
5173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
5193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
5174
5194
  */
5175
5195
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5176
5196
  /**
5177
5197
  * Require non-empty module attributes for imports and exports
5178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
5198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
5179
5199
  */
5180
5200
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
5181
5201
  /**
5182
5202
  * Require non-empty specifier list in import and export statements.
5183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
5203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
5184
5204
  */
5185
5205
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
5186
5206
  /**
5187
5207
  * Enforce using the digits argument with `Number#toFixed()`.
5188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5189
5209
  */
5190
5210
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5191
5211
  /**
5192
5212
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
5213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
5194
5214
  */
5195
5215
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5196
5216
  /**
5197
5217
  * Enforce better string content.
5198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
5218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
5199
5219
  */
5200
5220
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5201
5221
  /**
5202
5222
  * Enforce consistent brace style for `case` clauses.
5203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
5223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
5204
5224
  */
5205
5225
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5206
5226
  /**
5207
5227
  * Fix whitespace-insensitive template indentation.
5208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
5228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
5209
5229
  */
5210
5230
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5211
5231
  /**
5212
5232
  * Enforce consistent case for text encoding identifiers.
5213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
5233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
5214
5234
  */
5215
5235
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
5216
5236
  /**
5217
5237
  * Require `new` when creating an error.
5218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
5238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
5219
5239
  */
5220
5240
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5221
5241
  /**
@@ -7420,12 +7440,16 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = []|[{
7420
7440
  type NodePreferGlobalBuffer = []|[("always" | "never")]
7421
7441
  // ----- node/prefer-global/console -----
7422
7442
  type NodePreferGlobalConsole = []|[("always" | "never")]
7443
+ // ----- node/prefer-global/crypto -----
7444
+ type NodePreferGlobalCrypto = []|[("always" | "never")]
7423
7445
  // ----- node/prefer-global/process -----
7424
7446
  type NodePreferGlobalProcess = []|[("always" | "never")]
7425
7447
  // ----- node/prefer-global/text-decoder -----
7426
7448
  type NodePreferGlobalTextDecoder = []|[("always" | "never")]
7427
7449
  // ----- node/prefer-global/text-encoder -----
7428
7450
  type NodePreferGlobalTextEncoder = []|[("always" | "never")]
7451
+ // ----- node/prefer-global/timers -----
7452
+ type NodePreferGlobalTimers = []|[("always" | "never")]
7429
7453
  // ----- node/prefer-global/url -----
7430
7454
  type NodePreferGlobalUrl = []|[("always" | "never")]
7431
7455
  // ----- node/prefer-global/url-search-params -----
@@ -12483,15 +12507,25 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
12483
12507
  type StyleDotLocation = []|[("object" | "property")]
12484
12508
  // ----- style/eol-last -----
12485
12509
  type StyleEolLast = []|[("always" | "never" | "unix" | "windows")]
12510
+ // ----- style/exp-jsx-props-style -----
12511
+ type StyleExpJsxPropsStyle = []|[{
12512
+ singleLine?: {
12513
+ maxItems?: number
12514
+ }
12515
+ multiLine?: {
12516
+ minItems?: number
12517
+ maxItemsPerLine?: number
12518
+ }
12519
+ }]
12486
12520
  // ----- style/exp-list-style -----
12487
12521
  type StyleExpListStyle = []|[{
12488
12522
  singleLine?: _StyleExpListStyle_SingleLineConfig
12489
12523
  multiLine?: _StyleExpListStyle_MultiLineConfig
12490
12524
  overrides?: {
12525
+ "()"?: _StyleExpListStyle_BaseConfig
12491
12526
  "[]"?: _StyleExpListStyle_BaseConfig
12492
12527
  "{}"?: _StyleExpListStyle_BaseConfig
12493
12528
  "<>"?: _StyleExpListStyle_BaseConfig
12494
- "()"?: _StyleExpListStyle_BaseConfig
12495
12529
  ArrayExpression?: _StyleExpListStyle_BaseConfig
12496
12530
  ArrayPattern?: _StyleExpListStyle_BaseConfig
12497
12531
  ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig
@@ -12499,21 +12533,22 @@ type StyleExpListStyle = []|[{
12499
12533
  ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig
12500
12534
  FunctionDeclaration?: _StyleExpListStyle_BaseConfig
12501
12535
  FunctionExpression?: _StyleExpListStyle_BaseConfig
12502
- ImportDeclaration?: _StyleExpListStyle_BaseConfig
12536
+ IfStatement?: _StyleExpListStyle_BaseConfig
12503
12537
  ImportAttributes?: _StyleExpListStyle_BaseConfig
12538
+ ImportDeclaration?: _StyleExpListStyle_BaseConfig
12539
+ JSONArrayExpression?: _StyleExpListStyle_BaseConfig
12540
+ JSONObjectExpression?: _StyleExpListStyle_BaseConfig
12504
12541
  NewExpression?: _StyleExpListStyle_BaseConfig
12505
12542
  ObjectExpression?: _StyleExpListStyle_BaseConfig
12506
12543
  ObjectPattern?: _StyleExpListStyle_BaseConfig
12507
12544
  TSDeclareFunction?: _StyleExpListStyle_BaseConfig
12545
+ TSEnumBody?: _StyleExpListStyle_BaseConfig
12508
12546
  TSFunctionType?: _StyleExpListStyle_BaseConfig
12509
12547
  TSInterfaceBody?: _StyleExpListStyle_BaseConfig
12510
- TSEnumBody?: _StyleExpListStyle_BaseConfig
12511
12548
  TSTupleType?: _StyleExpListStyle_BaseConfig
12512
12549
  TSTypeLiteral?: _StyleExpListStyle_BaseConfig
12513
12550
  TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig
12514
12551
  TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig
12515
- JSONArrayExpression?: _StyleExpListStyle_BaseConfig
12516
- JSONObjectExpression?: _StyleExpListStyle_BaseConfig
12517
12552
  }
12518
12553
  }]
12519
12554
  interface _StyleExpListStyle_SingleLineConfig {
@@ -13431,13 +13466,17 @@ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
13431
13466
  }]
13432
13467
  // ----- style/padding-line-between-statements -----
13433
13468
  type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
13434
- type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]])
13469
+ type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementMatcher | [_StylePaddingLineBetweenStatementsStatementMatcher, ...(_StylePaddingLineBetweenStatementsStatementMatcher)[]])
13470
+ type _StylePaddingLineBetweenStatementsStatementMatcher = (_StylePaddingLineBetweenStatementsStatementType | _StylePaddingLineBetweenStatements_SelectorOption)
13435
13471
  type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type")
13436
13472
  type StylePaddingLineBetweenStatements = {
13437
13473
  blankLine: _StylePaddingLineBetweenStatementsPaddingType
13438
13474
  prev: _StylePaddingLineBetweenStatementsStatementOption
13439
13475
  next: _StylePaddingLineBetweenStatementsStatementOption
13440
13476
  }[]
13477
+ interface _StylePaddingLineBetweenStatements_SelectorOption {
13478
+ selector: string
13479
+ }
13441
13480
  // ----- style/quote-props -----
13442
13481
  type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
13443
13482
  keywords?: boolean
@@ -14449,6 +14488,11 @@ type TypescriptNoUseBeforeDefine = []|[("nofunc" | {
14449
14488
 
14450
14489
  variables?: boolean
14451
14490
  })]
14491
+ // ----- typescript/no-useless-default-assignment -----
14492
+ type TypescriptNoUselessDefaultAssignment = []|[{
14493
+
14494
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
14495
+ }]
14452
14496
  // ----- typescript/no-var-requires -----
14453
14497
  type TypescriptNoVarRequires = []|[{
14454
14498
 
@@ -14820,6 +14864,15 @@ interface _UnicornImportStyle_ModuleStyles {
14820
14864
  interface _UnicornImportStyle_BooleanObject {
14821
14865
  [k: string]: boolean | undefined
14822
14866
  }
14867
+ // ----- unicorn/isolated-functions -----
14868
+ type UnicornIsolatedFunctions = []|[{
14869
+ overrideGlobals?: {
14870
+ [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined
14871
+ }
14872
+ functions?: string[]
14873
+ selectors?: string[]
14874
+ comments?: string[]
14875
+ }]
14823
14876
  // ----- unicorn/no-array-reduce -----
14824
14877
  type UnicornNoArrayReduce = []|[{
14825
14878
  allowSimpleOperations?: boolean