@2digits/eslint-config 4.4.11 → 4.4.12
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.mts +133 -133
- package/dist/index.d.ts +133 -133
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -6497,670 +6497,670 @@ Backward pagination arguments
|
|
|
6497
6497
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
6498
6498
|
/**
|
|
6499
6499
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
6500
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
|
|
6501
6501
|
*/
|
|
6502
6502
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
6503
6503
|
/**
|
|
6504
6504
|
* Enforce a specific parameter name in catch clauses.
|
|
6505
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
|
|
6506
6506
|
*/
|
|
6507
6507
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
6508
6508
|
/**
|
|
6509
6509
|
* Enforce consistent assertion style with `node:assert`.
|
|
6510
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
|
|
6511
6511
|
*/
|
|
6512
6512
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
6513
6513
|
/**
|
|
6514
6514
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6515
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
|
|
6516
6516
|
*/
|
|
6517
6517
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
6518
6518
|
/**
|
|
6519
6519
|
* Use destructured variables over properties.
|
|
6520
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
|
|
6521
6521
|
*/
|
|
6522
6522
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
6523
6523
|
/**
|
|
6524
6524
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
|
|
6526
6526
|
*/
|
|
6527
6527
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
6528
6528
|
/**
|
|
6529
6529
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6530
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
|
|
6531
6531
|
*/
|
|
6532
6532
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
6533
6533
|
/**
|
|
6534
6534
|
* Move function definitions to the highest possible scope.
|
|
6535
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
|
|
6536
6536
|
*/
|
|
6537
6537
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
6538
6538
|
/**
|
|
6539
6539
|
* Enforce correct `Error` subclassing.
|
|
6540
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
|
|
6541
6541
|
*/
|
|
6542
6542
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
6543
6543
|
/**
|
|
6544
6544
|
* Enforce no spaces between braces.
|
|
6545
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
|
|
6546
6546
|
*/
|
|
6547
6547
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
6548
6548
|
/**
|
|
6549
6549
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
|
|
6551
6551
|
*/
|
|
6552
6552
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
6553
6553
|
/**
|
|
6554
6554
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
|
|
6556
6556
|
*/
|
|
6557
6557
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
6558
6558
|
/**
|
|
6559
6559
|
* Add expiration conditions to TODO comments.
|
|
6560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
|
|
6561
6561
|
*/
|
|
6562
6562
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
6563
6563
|
/**
|
|
6564
6564
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
|
|
6566
6566
|
*/
|
|
6567
6567
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
6568
6568
|
/**
|
|
6569
6569
|
* Enforce a case style for filenames.
|
|
6570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
|
|
6571
6571
|
*/
|
|
6572
6572
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
6573
6573
|
/**
|
|
6574
6574
|
* Enforce specific import styles per module.
|
|
6575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
|
|
6576
6576
|
*/
|
|
6577
6577
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
6578
6578
|
/**
|
|
6579
6579
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
6580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
|
|
6581
6581
|
*/
|
|
6582
6582
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
6583
6583
|
/**
|
|
6584
6584
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
|
|
6586
6586
|
*/
|
|
6587
6587
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
6588
6588
|
/**
|
|
6589
6589
|
* Disallow recursive access to `this` within getters and setters.
|
|
6590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
|
|
6591
6591
|
*/
|
|
6592
6592
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
6593
6593
|
/**
|
|
6594
6594
|
* Disallow anonymous functions and classes as the default export.
|
|
6595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
|
|
6596
6596
|
*/
|
|
6597
6597
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
6598
6598
|
/**
|
|
6599
6599
|
* Prevent passing a function reference directly to iterator methods.
|
|
6600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
|
|
6601
6601
|
*/
|
|
6602
6602
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
6603
6603
|
/**
|
|
6604
6604
|
* Prefer `for…of` over the `forEach` method.
|
|
6605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
|
|
6606
6606
|
*/
|
|
6607
6607
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
6608
6608
|
/**
|
|
6609
6609
|
* Disallow using the `this` argument in array methods.
|
|
6610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
|
|
6611
6611
|
*/
|
|
6612
6612
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
6613
6613
|
/**
|
|
6614
6614
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
|
|
6616
6616
|
* @deprecated
|
|
6617
6617
|
*/
|
|
6618
6618
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
6619
6619
|
/**
|
|
6620
6620
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
|
|
6622
6622
|
*/
|
|
6623
6623
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
6624
6624
|
/**
|
|
6625
6625
|
* Disallow member access from await expression.
|
|
6626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
|
|
6627
6627
|
*/
|
|
6628
6628
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
6629
6629
|
/**
|
|
6630
6630
|
* Disallow using `await` in `Promise` method parameters.
|
|
6631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
|
|
6632
6632
|
*/
|
|
6633
6633
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
6634
6634
|
/**
|
|
6635
6635
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
|
|
6637
6637
|
*/
|
|
6638
6638
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
6639
6639
|
/**
|
|
6640
6640
|
* Do not use `document.cookie` directly.
|
|
6641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
|
|
6642
6642
|
*/
|
|
6643
6643
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
6644
6644
|
/**
|
|
6645
6645
|
* Disallow empty files.
|
|
6646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
|
|
6647
6647
|
*/
|
|
6648
6648
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
6649
6649
|
/**
|
|
6650
6650
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
6651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
|
|
6652
6652
|
*/
|
|
6653
6653
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
6654
6654
|
/**
|
|
6655
6655
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
6656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
|
|
6657
6657
|
*/
|
|
6658
6658
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
6659
6659
|
/**
|
|
6660
6660
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
6661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
|
|
6662
6662
|
* @deprecated
|
|
6663
6663
|
*/
|
|
6664
6664
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
6665
6665
|
/**
|
|
6666
6666
|
* Disallow `instanceof` with built-in objects
|
|
6667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
|
|
6668
6668
|
*/
|
|
6669
6669
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
6670
6670
|
/**
|
|
6671
6671
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
6672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
|
|
6673
6673
|
*/
|
|
6674
6674
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
6675
6675
|
/**
|
|
6676
6676
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
6677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
|
|
6678
6678
|
*/
|
|
6679
6679
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
6680
6680
|
/**
|
|
6681
6681
|
* Disallow identifiers starting with `new` or `class`.
|
|
6682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
|
|
6683
6683
|
*/
|
|
6684
6684
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
6685
6685
|
/**
|
|
6686
6686
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
6687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
|
|
6688
6688
|
* @deprecated
|
|
6689
6689
|
*/
|
|
6690
6690
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
6691
6691
|
/**
|
|
6692
6692
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
6693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
|
|
6694
6694
|
*/
|
|
6695
6695
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
6696
6696
|
/**
|
|
6697
6697
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
6698
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
|
|
6699
6699
|
*/
|
|
6700
6700
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
6701
6701
|
/**
|
|
6702
6702
|
* Disallow named usage of default import and export.
|
|
6703
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
|
|
6704
6704
|
*/
|
|
6705
6705
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
6706
6706
|
/**
|
|
6707
6707
|
* Disallow negated conditions.
|
|
6708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
|
|
6709
6709
|
*/
|
|
6710
6710
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
6711
6711
|
/**
|
|
6712
6712
|
* Disallow negated expression in equality check.
|
|
6713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
|
|
6714
6714
|
*/
|
|
6715
6715
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
6716
6716
|
/**
|
|
6717
6717
|
* Disallow nested ternary expressions.
|
|
6718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
|
|
6719
6719
|
*/
|
|
6720
6720
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
6721
6721
|
/**
|
|
6722
6722
|
* Disallow `new Array()`.
|
|
6723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
|
|
6724
6724
|
*/
|
|
6725
6725
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
6726
6726
|
/**
|
|
6727
6727
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
6728
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
|
|
6729
6729
|
*/
|
|
6730
6730
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
6731
6731
|
/**
|
|
6732
6732
|
* Disallow the use of the `null` literal.
|
|
6733
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
|
|
6734
6734
|
*/
|
|
6735
6735
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
6736
6736
|
/**
|
|
6737
6737
|
* Disallow the use of objects as default parameters.
|
|
6738
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
|
|
6739
6739
|
*/
|
|
6740
6740
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
6741
6741
|
/**
|
|
6742
6742
|
* Disallow `process.exit()`.
|
|
6743
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
|
|
6744
6744
|
*/
|
|
6745
6745
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
6746
6746
|
/**
|
|
6747
6747
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
6748
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
|
|
6749
6749
|
*/
|
|
6750
6750
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
6751
6751
|
/**
|
|
6752
6752
|
* Disallow classes that only have static members.
|
|
6753
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
|
|
6754
6754
|
*/
|
|
6755
6755
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
6756
6756
|
/**
|
|
6757
6757
|
* Disallow `then` property.
|
|
6758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
|
|
6759
6759
|
*/
|
|
6760
6760
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
6761
6761
|
/**
|
|
6762
6762
|
* Disallow assigning `this` to a variable.
|
|
6763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
|
|
6764
6764
|
*/
|
|
6765
6765
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
6766
6766
|
/**
|
|
6767
6767
|
* Disallow comparing `undefined` using `typeof`.
|
|
6768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
|
|
6769
6769
|
*/
|
|
6770
6770
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
6771
6771
|
/**
|
|
6772
6772
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
6773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
|
|
6774
6774
|
*/
|
|
6775
6775
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
6776
6776
|
/**
|
|
6777
6777
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
6778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
|
|
6779
6779
|
*/
|
|
6780
6780
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
6781
6781
|
/**
|
|
6782
6782
|
* Disallow awaiting non-promise values.
|
|
6783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
|
|
6784
6784
|
*/
|
|
6785
6785
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
6786
6786
|
/**
|
|
6787
6787
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
6788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
|
|
6789
6789
|
*/
|
|
6790
6790
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
6791
6791
|
/**
|
|
6792
6792
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
6793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
|
|
6794
6794
|
*/
|
|
6795
6795
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
6796
6796
|
/**
|
|
6797
6797
|
* Disallow unreadable array destructuring.
|
|
6798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
|
|
6799
6799
|
*/
|
|
6800
6800
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
6801
6801
|
/**
|
|
6802
6802
|
* Disallow unreadable IIFEs.
|
|
6803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
|
|
6804
6804
|
*/
|
|
6805
6805
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
6806
6806
|
/**
|
|
6807
6807
|
* Disallow unused object properties.
|
|
6808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
|
|
6809
6809
|
*/
|
|
6810
6810
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
6811
6811
|
/**
|
|
6812
6812
|
* Disallow useless fallback when spreading in object literals.
|
|
6813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
|
|
6814
6814
|
*/
|
|
6815
6815
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
6816
6816
|
/**
|
|
6817
6817
|
* Disallow useless array length check.
|
|
6818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
|
|
6819
6819
|
*/
|
|
6820
6820
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
6821
6821
|
/**
|
|
6822
6822
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
6823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
|
|
6824
6824
|
*/
|
|
6825
6825
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
6826
6826
|
/**
|
|
6827
6827
|
* Disallow unnecessary spread.
|
|
6828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
|
|
6829
6829
|
*/
|
|
6830
6830
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
6831
6831
|
/**
|
|
6832
6832
|
* Disallow useless case in switch statements.
|
|
6833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
|
|
6834
6834
|
*/
|
|
6835
6835
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
6836
6836
|
/**
|
|
6837
6837
|
* Disallow useless `undefined`.
|
|
6838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
|
|
6839
6839
|
*/
|
|
6840
6840
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
6841
6841
|
/**
|
|
6842
6842
|
* Disallow number literals with zero fractions or dangling dots.
|
|
6843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
|
|
6844
6844
|
*/
|
|
6845
6845
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
6846
6846
|
/**
|
|
6847
6847
|
* Enforce proper case for numeric literals.
|
|
6848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
|
|
6849
6849
|
*/
|
|
6850
6850
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
6851
6851
|
/**
|
|
6852
6852
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
|
|
6854
6854
|
*/
|
|
6855
6855
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
6856
6856
|
/**
|
|
6857
6857
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
|
|
6859
6859
|
*/
|
|
6860
6860
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
6861
6861
|
/**
|
|
6862
6862
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
|
|
6864
6864
|
*/
|
|
6865
6865
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
6866
6866
|
/**
|
|
6867
6867
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
|
|
6869
6869
|
*/
|
|
6870
6870
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
6871
6871
|
/**
|
|
6872
6872
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
6873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
|
|
6874
6874
|
*/
|
|
6875
6875
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
6876
6876
|
/**
|
|
6877
6877
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
|
|
6879
6879
|
*/
|
|
6880
6880
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
6881
6881
|
/**
|
|
6882
6882
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
|
|
6884
6884
|
*/
|
|
6885
6885
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
6886
6886
|
/**
|
|
6887
6887
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
|
|
6889
6889
|
*/
|
|
6890
6890
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
6891
6891
|
/**
|
|
6892
6892
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
|
|
6894
6894
|
*/
|
|
6895
6895
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
6896
6896
|
/**
|
|
6897
6897
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
|
|
6899
6899
|
*/
|
|
6900
6900
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
6901
6901
|
/**
|
|
6902
6902
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
|
|
6904
6904
|
*/
|
|
6905
6905
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
6906
6906
|
/**
|
|
6907
6907
|
* Prefer default parameters over reassignment.
|
|
6908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
|
|
6909
6909
|
*/
|
|
6910
6910
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
6911
6911
|
/**
|
|
6912
6912
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
|
|
6914
6914
|
*/
|
|
6915
6915
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
6916
6916
|
/**
|
|
6917
6917
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
|
|
6919
6919
|
*/
|
|
6920
6920
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
6921
6921
|
/**
|
|
6922
6922
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
|
|
6924
6924
|
*/
|
|
6925
6925
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
6926
6926
|
/**
|
|
6927
6927
|
* Prefer `.textContent` over `.innerText`.
|
|
6928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
|
|
6929
6929
|
*/
|
|
6930
6930
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
6931
6931
|
/**
|
|
6932
6932
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
|
|
6934
6934
|
*/
|
|
6935
6935
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
6936
6936
|
/**
|
|
6937
6937
|
* Prefer `export…from` when re-exporting.
|
|
6938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
|
|
6939
6939
|
*/
|
|
6940
6940
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
6941
6941
|
/**
|
|
6942
6942
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
|
|
6944
6944
|
*/
|
|
6945
6945
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
6946
6946
|
/**
|
|
6947
6947
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
|
|
6949
6949
|
*/
|
|
6950
6950
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
6951
6951
|
/**
|
|
6952
6952
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
|
|
6954
6954
|
*/
|
|
6955
6955
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
6956
6956
|
/**
|
|
6957
6957
|
* Prefer reading a JSON file as a buffer.
|
|
6958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
|
|
6959
6959
|
*/
|
|
6960
6960
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
6961
6961
|
/**
|
|
6962
6962
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
|
|
6964
6964
|
*/
|
|
6965
6965
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
6966
6966
|
/**
|
|
6967
6967
|
* Prefer using a logical operator over a ternary.
|
|
6968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6969
6969
|
*/
|
|
6970
6970
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
6971
6971
|
/**
|
|
6972
6972
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
|
|
6974
6974
|
*/
|
|
6975
6975
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
6976
6976
|
/**
|
|
6977
6977
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
|
|
6979
6979
|
*/
|
|
6980
6980
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
6981
6981
|
/**
|
|
6982
6982
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
|
|
6984
6984
|
*/
|
|
6985
6985
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
6986
6986
|
/**
|
|
6987
6987
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
|
|
6989
6989
|
*/
|
|
6990
6990
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
6991
6991
|
/**
|
|
6992
6992
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
|
|
6994
6994
|
*/
|
|
6995
6995
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
6996
6996
|
/**
|
|
6997
6997
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
6998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
|
|
6999
6999
|
*/
|
|
7000
7000
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
7001
7001
|
/**
|
|
7002
7002
|
* Prefer negative index over `.length - index` when possible.
|
|
7003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
|
|
7004
7004
|
*/
|
|
7005
7005
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
7006
7006
|
/**
|
|
7007
7007
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
7008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
|
|
7009
7009
|
*/
|
|
7010
7010
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
7011
7011
|
/**
|
|
7012
7012
|
* Prefer `Number` static properties over global ones.
|
|
7013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
|
|
7014
7014
|
*/
|
|
7015
7015
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
7016
7016
|
/**
|
|
7017
7017
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
7018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
|
|
7019
7019
|
*/
|
|
7020
7020
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
7021
7021
|
/**
|
|
7022
7022
|
* Prefer omitting the `catch` binding parameter.
|
|
7023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
|
|
7024
7024
|
*/
|
|
7025
7025
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
7026
7026
|
/**
|
|
7027
7027
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
7028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
|
|
7029
7029
|
*/
|
|
7030
7030
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
7031
7031
|
/**
|
|
7032
7032
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
7033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
|
|
7034
7034
|
*/
|
|
7035
7035
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
7036
7036
|
/**
|
|
7037
7037
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
7038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
|
|
7039
7039
|
*/
|
|
7040
7040
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
7041
7041
|
/**
|
|
7042
7042
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
7043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
|
|
7044
7044
|
*/
|
|
7045
7045
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
7046
7046
|
/**
|
|
7047
7047
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
7048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
|
|
7049
7049
|
*/
|
|
7050
7050
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
7051
7051
|
/**
|
|
7052
7052
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
7053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
|
|
7054
7054
|
*/
|
|
7055
7055
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
7056
7056
|
/**
|
|
7057
7057
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
7058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
|
|
7059
7059
|
*/
|
|
7060
7060
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
7061
7061
|
/**
|
|
7062
7062
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
7063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
|
|
7064
7064
|
*/
|
|
7065
7065
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
7066
7066
|
/**
|
|
7067
7067
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
7068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
|
|
7069
7069
|
*/
|
|
7070
7070
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
7071
7071
|
/**
|
|
7072
7072
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
7073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
|
|
7074
7074
|
*/
|
|
7075
7075
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
7076
7076
|
/**
|
|
7077
7077
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
7078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
|
|
7079
7079
|
*/
|
|
7080
7080
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
7081
7081
|
/**
|
|
7082
7082
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
7083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
|
|
7084
7084
|
*/
|
|
7085
7085
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
7086
7086
|
/**
|
|
7087
7087
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
7088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
|
|
7089
7089
|
*/
|
|
7090
7090
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
7091
7091
|
/**
|
|
7092
7092
|
* Prefer using `structuredClone` to create a deep clone.
|
|
7093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
|
|
7094
7094
|
*/
|
|
7095
7095
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
7096
7096
|
/**
|
|
7097
7097
|
* Prefer `switch` over multiple `else-if`.
|
|
7098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
|
|
7099
7099
|
*/
|
|
7100
7100
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
7101
7101
|
/**
|
|
7102
7102
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
7103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
|
|
7104
7104
|
*/
|
|
7105
7105
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
7106
7106
|
/**
|
|
7107
7107
|
* Prefer top-level await over top-level promises and async function calls.
|
|
7108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
|
|
7109
7109
|
*/
|
|
7110
7110
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
7111
7111
|
/**
|
|
7112
7112
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
7113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
|
|
7114
7114
|
*/
|
|
7115
7115
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
7116
7116
|
/**
|
|
7117
7117
|
* Prevent abbreviations.
|
|
7118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
|
|
7119
7119
|
*/
|
|
7120
7120
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
7121
7121
|
/**
|
|
7122
7122
|
* Enforce consistent relative URL style.
|
|
7123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
|
|
7124
7124
|
*/
|
|
7125
7125
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
7126
7126
|
/**
|
|
7127
7127
|
* Enforce using the separator argument with `Array#join()`.
|
|
7128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
|
|
7129
7129
|
*/
|
|
7130
7130
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
7131
7131
|
/**
|
|
7132
7132
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7134
7134
|
*/
|
|
7135
7135
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
7136
7136
|
/**
|
|
7137
7137
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
|
|
7139
7139
|
*/
|
|
7140
7140
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
7141
7141
|
/**
|
|
7142
7142
|
* Enforce better string content.
|
|
7143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
|
|
7144
7144
|
*/
|
|
7145
7145
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
7146
7146
|
/**
|
|
7147
7147
|
* Enforce consistent brace style for `case` clauses.
|
|
7148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
|
|
7149
7149
|
*/
|
|
7150
7150
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
7151
7151
|
/**
|
|
7152
7152
|
* Fix whitespace-insensitive template indentation.
|
|
7153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
|
|
7154
7154
|
*/
|
|
7155
7155
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
7156
7156
|
/**
|
|
7157
7157
|
* Enforce consistent case for text encoding identifiers.
|
|
7158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
|
|
7159
7159
|
*/
|
|
7160
7160
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
7161
7161
|
/**
|
|
7162
7162
|
* Require `new` when creating an error.
|
|
7163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.
|
|
7163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
|
|
7164
7164
|
*/
|
|
7165
7165
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
7166
7166
|
/**
|