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