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