@ntnyq/eslint-config 7.0.0-beta.24 → 7.0.0-beta.26
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 +569 -411
- package/dist/index.mjs +23 -8
- package/package.json +17 -17
package/dist/index.d.mts
CHANGED
|
@@ -65,7 +65,12 @@ export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
|
65
65
|
/**
|
|
66
66
|
* Options for a Vue config branch
|
|
67
67
|
*/
|
|
68
|
-
export type
|
|
68
|
+
export type VuePerfectionistOptions = OptionsFiles & OptionsOverrides & {
|
|
69
|
+
/**
|
|
70
|
+
* Enable settings `auto-import` of `eslint-plugin-vue-perfectionist`
|
|
71
|
+
*/
|
|
72
|
+
autoImport?: boolean;
|
|
73
|
+
};
|
|
69
74
|
/**
|
|
70
75
|
* Options type of {@link configVue}
|
|
71
76
|
*/
|
|
@@ -74,7 +79,7 @@ export type ConfigVueOptions = OptionsFiles & OptionsOverrides & OptionsShareabl
|
|
|
74
79
|
* Configure vue-perfectionist plugin rules
|
|
75
80
|
* @default false
|
|
76
81
|
*/
|
|
77
|
-
vuePerfectionist?: boolean |
|
|
82
|
+
vuePerfectionist?: boolean | VuePerfectionistOptions;
|
|
78
83
|
/**
|
|
79
84
|
* Create virtual files for Vue SFC blocks to enable linting.
|
|
80
85
|
*
|
|
@@ -6526,1992 +6531,2002 @@ interface RuleOptions {
|
|
|
6526
6531
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
6527
6532
|
/**
|
|
6528
6533
|
* Prefer better DOM traversal APIs.
|
|
6529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/better-dom-traversing.md
|
|
6530
6535
|
*/
|
|
6531
6536
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
6532
6537
|
/**
|
|
6533
6538
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
6534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
6535
6540
|
* @deprecated
|
|
6536
6541
|
*/
|
|
6537
6542
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
6538
6543
|
/**
|
|
6539
6544
|
* Enforce a specific parameter name in catch clauses.
|
|
6540
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/catch-error-name.md
|
|
6541
6546
|
*/
|
|
6542
6547
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
6543
6548
|
/**
|
|
6544
6549
|
* Enforce consistent class references in static methods.
|
|
6545
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/class-reference-in-static-methods.md
|
|
6546
6551
|
*/
|
|
6547
6552
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
6548
6553
|
/**
|
|
6549
|
-
* Enforce consistent spacing before and after commas in JSON.
|
|
6550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6554
|
+
* Enforce consistent spacing before and after commas in JSON and SOML.
|
|
6555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comma-spacing.md
|
|
6551
6556
|
*/
|
|
6552
6557
|
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
6553
6558
|
/**
|
|
6554
6559
|
* Enforce better comment content.
|
|
6555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comment-content.md
|
|
6556
6561
|
*/
|
|
6557
6562
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
6558
6563
|
/**
|
|
6559
6564
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
6560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-arrow-return-style.md
|
|
6561
6566
|
*/
|
|
6562
6567
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
6563
6568
|
/**
|
|
6564
6569
|
* Enforce consistent assertion style with `node:assert`.
|
|
6565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-assert.md
|
|
6566
6571
|
*/
|
|
6567
6572
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
6568
6573
|
/**
|
|
6569
6574
|
* Enforce consistent naming for boolean names.
|
|
6570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-boolean-name.md
|
|
6571
6576
|
*/
|
|
6572
6577
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
6573
6578
|
/**
|
|
6574
6579
|
* Enforce consistent class member order.
|
|
6575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-class-member-order.md
|
|
6576
6581
|
*/
|
|
6577
6582
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
6578
6583
|
/**
|
|
6579
6584
|
* Enforce consistent spelling of compound words in identifiers.
|
|
6580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-compound-words.md
|
|
6581
6586
|
*/
|
|
6582
6587
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
6583
6588
|
/**
|
|
6584
6589
|
* Enforce consistent conditional object spread style.
|
|
6585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
6586
6591
|
*/
|
|
6587
6592
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
6588
6593
|
/**
|
|
6589
6594
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-date-clone.md
|
|
6591
6596
|
*/
|
|
6592
6597
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
6593
6598
|
/**
|
|
6594
6599
|
* Use destructured variables over properties.
|
|
6595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-destructuring.md
|
|
6596
6601
|
*/
|
|
6597
6602
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
6598
6603
|
/**
|
|
6599
6604
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-empty-array-spread.md
|
|
6601
6606
|
*/
|
|
6602
6607
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
6603
6608
|
/**
|
|
6604
6609
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-existence-index-check.md
|
|
6606
6611
|
*/
|
|
6607
6612
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
6608
6613
|
/**
|
|
6609
6614
|
* Enforce consistent decorator position on exported classes.
|
|
6610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-export-decorator-position.md
|
|
6611
6616
|
*/
|
|
6612
6617
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
6613
6618
|
/**
|
|
6614
6619
|
* Move function definitions to the highest possible scope.
|
|
6615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-scoping.md
|
|
6616
6621
|
*/
|
|
6617
6622
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6618
6623
|
/**
|
|
6619
6624
|
* Enforce function syntax by role.
|
|
6620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-style.md
|
|
6621
6626
|
*/
|
|
6622
6627
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
6623
6628
|
/**
|
|
6624
6629
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
6625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6630
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-json-file-read.md
|
|
6626
6631
|
*/
|
|
6627
6632
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
6628
6633
|
/**
|
|
6629
6634
|
* Enforce consistent optional chaining for same-base member access.
|
|
6630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-optional-chaining.md
|
|
6631
6636
|
*/
|
|
6632
6637
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
6633
6638
|
/**
|
|
6634
6639
|
* Enforce consistent style for escaping `${` in template literals.
|
|
6635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-template-literal-escape.md
|
|
6636
6641
|
*/
|
|
6637
6642
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
6638
6643
|
/**
|
|
6639
6644
|
* Enforce consistent labels on tuple type elements.
|
|
6640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-tuple-labels.md
|
|
6641
6646
|
*/
|
|
6642
6647
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
6643
6648
|
/**
|
|
6644
6649
|
* Enforce correct `Error` subclassing.
|
|
6645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/custom-error-definition.md
|
|
6646
6651
|
*/
|
|
6647
6652
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
6648
6653
|
/**
|
|
6649
6654
|
* Enforce consistent default export declarations.
|
|
6650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/default-export-style.md
|
|
6651
6656
|
*/
|
|
6652
6657
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
6653
6658
|
/**
|
|
6654
6659
|
* Enforce consistent style for DOM element dataset access.
|
|
6655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/dom-node-dataset.md
|
|
6656
6661
|
*/
|
|
6657
6662
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
6658
6663
|
/**
|
|
6659
6664
|
* Enforce no spaces between braces.
|
|
6660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/empty-brace-spaces.md
|
|
6661
6666
|
*/
|
|
6662
6667
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
6663
6668
|
/**
|
|
6664
6669
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/error-message.md
|
|
6666
6671
|
*/
|
|
6667
6672
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
6668
6673
|
/**
|
|
6669
6674
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/escape-case.md
|
|
6671
6676
|
*/
|
|
6672
6677
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
6673
6678
|
/**
|
|
6674
6679
|
* Add expiration conditions to TODO comments.
|
|
6675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/expiring-todo-comments.md
|
|
6676
6681
|
*/
|
|
6677
6682
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
6678
6683
|
/**
|
|
6679
6684
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-length-check.md
|
|
6681
6686
|
*/
|
|
6682
6687
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
6683
6688
|
/**
|
|
6684
6689
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
6685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-timer-delay.md
|
|
6686
6691
|
*/
|
|
6687
6692
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
6688
6693
|
/**
|
|
6689
6694
|
* Enforce a case style for filenames and directory names.
|
|
6690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/filename-case.md
|
|
6691
6696
|
*/
|
|
6692
6697
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
6693
6698
|
/**
|
|
6694
6699
|
* Require identifiers to match a specified regular expression.
|
|
6695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/id-match.md
|
|
6696
6701
|
*/
|
|
6697
6702
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
6698
6703
|
/**
|
|
6699
6704
|
* Enforce specific import styles per module.
|
|
6700
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/import-style.md
|
|
6701
6706
|
*/
|
|
6702
6707
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
6703
6708
|
/**
|
|
6704
6709
|
* Enforce consistent indentation in JSON and CSS.
|
|
6705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/indent.md
|
|
6706
6711
|
*/
|
|
6707
6712
|
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
6708
6713
|
/**
|
|
6709
6714
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
6710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/isolated-functions.md
|
|
6711
6716
|
*/
|
|
6712
6717
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
6713
6718
|
/**
|
|
6714
6719
|
* Enforce a consistent style for optional loop sources.
|
|
6715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/iteration-fallback-style.md
|
|
6716
6721
|
*/
|
|
6717
6722
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
6718
6723
|
/**
|
|
6719
6724
|
* Enforce a case style for data keys.
|
|
6720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/key-name-casing.md
|
|
6721
6726
|
*/
|
|
6722
6727
|
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
6723
6728
|
/**
|
|
6724
6729
|
* Require or disallow logical assignment operator shorthand
|
|
6725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/logical-assignment-operators.md
|
|
6726
6731
|
*/
|
|
6727
6732
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
6728
6733
|
/**
|
|
6729
6734
|
* Limit the depth of nested calls.
|
|
6730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6735
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/max-nested-calls.md
|
|
6731
6736
|
*/
|
|
6732
6737
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
6733
6738
|
/**
|
|
6734
6739
|
* Enforce replacements for variable, property, and filenames.
|
|
6735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/name-replacements.md
|
|
6736
6741
|
*/
|
|
6737
6742
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
6738
6743
|
/**
|
|
6739
6744
|
* Enforce correct use of `new` for builtin constructors.
|
|
6740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/new-for-builtins.md
|
|
6741
6746
|
*/
|
|
6742
6747
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
6743
6748
|
/**
|
|
6744
6749
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
6746
6751
|
*/
|
|
6747
6752
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
6748
6753
|
/**
|
|
6749
6754
|
* Disallow recursive access to `this` within getters and setters.
|
|
6750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accessor-recursion.md
|
|
6751
6756
|
*/
|
|
6752
6757
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
6753
6758
|
/**
|
|
6754
6759
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
6755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
6756
6761
|
*/
|
|
6757
6762
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
6758
6763
|
/**
|
|
6759
6764
|
* Disallow anonymous functions and classes as the default export.
|
|
6760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-anonymous-default-export.md
|
|
6761
6766
|
*/
|
|
6762
6767
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
6763
6768
|
/**
|
|
6764
6769
|
* Prevent passing a function reference directly to iterator methods.
|
|
6765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-callback-reference.md
|
|
6766
6771
|
*/
|
|
6767
6772
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
6768
6773
|
/**
|
|
6769
6774
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
6770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-concat-in-loop.md
|
|
6771
6776
|
*/
|
|
6772
6777
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
6773
6778
|
/**
|
|
6774
6779
|
* Disallow using reference values as `Array#fill()` values.
|
|
6775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
6776
6781
|
*/
|
|
6777
6782
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
6778
6783
|
/**
|
|
6779
6784
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
6780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-from-fill.md
|
|
6781
6786
|
*/
|
|
6782
6787
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
6783
6788
|
/**
|
|
6784
6789
|
* Disallow front-of-array mutation.
|
|
6785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6790
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-front-mutation.md
|
|
6786
6791
|
*/
|
|
6787
6792
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
6788
6793
|
/**
|
|
6789
6794
|
* Disallow using the `this` argument in array methods.
|
|
6790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6795
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-method-this-argument.md
|
|
6791
6796
|
*/
|
|
6792
6797
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
6793
6798
|
/**
|
|
6794
6799
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6800
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
6796
6801
|
* @deprecated
|
|
6797
6802
|
*/
|
|
6798
6803
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
6799
6804
|
/**
|
|
6800
6805
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reduce.md
|
|
6802
6807
|
*/
|
|
6803
6808
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
6804
6809
|
/**
|
|
6805
6810
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reverse.md
|
|
6807
6812
|
*/
|
|
6808
6813
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
6809
6814
|
/**
|
|
6810
6815
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort.md
|
|
6812
6817
|
*/
|
|
6813
6818
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
6814
6819
|
/**
|
|
6815
6820
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
6816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
6817
6822
|
*/
|
|
6818
6823
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
6819
6824
|
/**
|
|
6820
6825
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
6821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-splice.md
|
|
6822
6827
|
*/
|
|
6823
6828
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
6824
6829
|
/**
|
|
6825
|
-
* Disallow asterisk prefixes in multiline comments.
|
|
6826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6830
|
+
* Disallow asterisk prefixes and shared indentation in multiline comments.
|
|
6831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
6827
6832
|
*/
|
|
6828
6833
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
6829
6834
|
/**
|
|
6830
6835
|
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
6831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-iterator-callback.md
|
|
6832
6837
|
*/
|
|
6833
6838
|
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
6834
6839
|
/**
|
|
6835
6840
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
6836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-promise-finally.md
|
|
6837
6842
|
*/
|
|
6838
6843
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
6839
6844
|
/**
|
|
6840
6845
|
* Disallow member access from await expression.
|
|
6841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-expression-member.md
|
|
6842
6847
|
*/
|
|
6843
6848
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
6844
6849
|
/**
|
|
6845
6850
|
* Disallow using `await` in `Promise` method parameters.
|
|
6846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-in-promise-methods.md
|
|
6847
6852
|
*/
|
|
6848
6853
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6849
6854
|
/**
|
|
6850
6855
|
* Disallow barrel files.
|
|
6851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-barrel-files.md
|
|
6852
6857
|
*/
|
|
6853
6858
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
6854
6859
|
/**
|
|
6855
6860
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
6856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-blob-to-file.md
|
|
6857
6862
|
*/
|
|
6858
6863
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
6859
6864
|
/**
|
|
6860
6865
|
* Disallow boolean-returning sort comparators.
|
|
6861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
6862
6867
|
*/
|
|
6863
6868
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
6864
6869
|
/**
|
|
6865
6870
|
* Disallow `break` and optionally `continue` in nested loops and switches inside loops.
|
|
6866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-break-in-nested-loop.md
|
|
6867
6872
|
*/
|
|
6868
6873
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
6869
6874
|
/**
|
|
6870
6875
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
6871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-canvas-to-image.md
|
|
6872
6877
|
*/
|
|
6873
6878
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
6874
6879
|
/**
|
|
6875
6880
|
* Disallow chained comparisons such as `a < b < c`.
|
|
6876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-chained-comparison.md
|
|
6877
6882
|
*/
|
|
6878
6883
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
6879
6884
|
/**
|
|
6880
6885
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
6881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-collection-bracket-access.md
|
|
6882
6887
|
*/
|
|
6883
6888
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
6884
6889
|
/**
|
|
6885
6890
|
* Disallow dynamic object property existence checks.
|
|
6886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-computed-property-existence-check.md
|
|
6887
6892
|
*/
|
|
6888
6893
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
6889
6894
|
/**
|
|
6890
6895
|
* Disallow conflicting CSS query and HTML form constraints.
|
|
6891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-conflicting-constraints.md
|
|
6892
6897
|
*/
|
|
6893
6898
|
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
6894
6899
|
/**
|
|
6895
6900
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
6896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-splice.md
|
|
6897
6902
|
*/
|
|
6898
6903
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
6899
6904
|
/**
|
|
6900
6905
|
* Disallow confusing uses of `Array#with()`.
|
|
6901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-with.md
|
|
6902
6907
|
*/
|
|
6903
6908
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
6904
6909
|
/**
|
|
6905
6910
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-console-spaces.md
|
|
6907
6912
|
*/
|
|
6908
6913
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
6909
6914
|
/**
|
|
6910
6915
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
6911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-constant-zero-expression.md
|
|
6912
6917
|
*/
|
|
6913
6918
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
6914
6919
|
/**
|
|
6915
6920
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
6916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
6917
6922
|
*/
|
|
6918
6923
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
6919
6924
|
/**
|
|
6920
6925
|
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
6921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
6922
6927
|
* @deprecated
|
|
6923
6928
|
*/
|
|
6924
6929
|
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
6925
6930
|
/**
|
|
6926
6931
|
* Do not use `document.cookie` directly.
|
|
6927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-document-cookie.md
|
|
6928
6933
|
*/
|
|
6929
6934
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
6930
6935
|
/**
|
|
6931
6936
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
6932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-double-comparison.md
|
|
6933
6938
|
*/
|
|
6934
6939
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
6935
6940
|
/**
|
|
6936
6941
|
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
6937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
6938
6943
|
* @deprecated
|
|
6939
6944
|
*/
|
|
6940
6945
|
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
6941
6946
|
/**
|
|
6942
6947
|
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
6943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
6944
6949
|
* @deprecated
|
|
6945
6950
|
*/
|
|
6946
6951
|
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
6947
6952
|
/**
|
|
6948
6953
|
* Disallow duplicate adjacent branches in if chains.
|
|
6949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-if-branches.md
|
|
6950
6955
|
*/
|
|
6951
6956
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
6952
6957
|
/**
|
|
6953
6958
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
6954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
6955
6960
|
*/
|
|
6956
6961
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
6957
6962
|
/**
|
|
6958
6963
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
6959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-loops.md
|
|
6960
6965
|
*/
|
|
6961
6966
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
6962
6967
|
/**
|
|
6963
6968
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
6964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6969
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-set-values.md
|
|
6965
6970
|
*/
|
|
6966
6971
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
6967
6972
|
/**
|
|
6968
6973
|
* Disallow empty files.
|
|
6969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-file.md
|
|
6970
6975
|
*/
|
|
6971
6976
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
6972
6977
|
/**
|
|
6973
6978
|
* Disallow empty link text in Markdown.
|
|
6974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-link-text.md
|
|
6975
6980
|
*/
|
|
6976
6981
|
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
6977
6982
|
/**
|
|
6978
6983
|
* Disallow assigning to built-in error properties.
|
|
6979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-error-property-assignment.md
|
|
6980
6985
|
*/
|
|
6981
6986
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
6982
6987
|
/**
|
|
6983
6988
|
* Disallow exports in scripts.
|
|
6984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-exports-in-scripts.md
|
|
6985
6990
|
*/
|
|
6986
6991
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
6987
6992
|
/**
|
|
6988
6993
|
* Prefer `for…of` over the `forEach` method.
|
|
6989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-each.md
|
|
6990
6995
|
*/
|
|
6991
6996
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
6992
6997
|
/**
|
|
6993
6998
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
6994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-loop.md
|
|
6995
7000
|
*/
|
|
6996
7001
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
6997
7002
|
/**
|
|
6998
7003
|
* Disallow assigning properties on the global object.
|
|
6999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-global-object-property-assignment.md
|
|
7000
7005
|
*/
|
|
7001
7006
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7002
7007
|
/**
|
|
7003
7008
|
* Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
7004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
7005
7010
|
* @deprecated
|
|
7006
7011
|
*/
|
|
7007
7012
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7008
7013
|
/**
|
|
7009
|
-
* Disallow immediate mutation after
|
|
7010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7014
|
+
* Disallow immediate mutation after assignment and initialization immediately after declaration.
|
|
7015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-immediate-mutation.md
|
|
7011
7016
|
*/
|
|
7012
7017
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
7013
7018
|
/**
|
|
7014
7019
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
7015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-impossible-length-comparison.md
|
|
7016
7021
|
*/
|
|
7017
7022
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
7018
7023
|
/**
|
|
7019
7024
|
* Disallow class accessors that hide an inherited getter or setter.
|
|
7020
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
7021
7026
|
*/
|
|
7022
7027
|
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
7023
7028
|
/**
|
|
7024
7029
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
7025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-query-selector.md
|
|
7026
7031
|
*/
|
|
7027
7032
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
7028
7033
|
/**
|
|
7029
7034
|
* Disallow incorrect template literal interpolation syntax.
|
|
7030
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
7031
7036
|
*/
|
|
7032
7037
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
7033
7038
|
/**
|
|
7034
7039
|
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
7035
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
7036
7041
|
*/
|
|
7037
7042
|
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
7038
7043
|
/**
|
|
7039
7044
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7041
7046
|
* @deprecated
|
|
7042
7047
|
*/
|
|
7043
7048
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7044
7049
|
/**
|
|
7045
7050
|
* Disallow `instanceof` with built-in objects
|
|
7046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-instanceof-builtins.md
|
|
7047
7052
|
*/
|
|
7048
7053
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7049
7054
|
/**
|
|
7050
7055
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
7051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-argument-count.md
|
|
7052
7057
|
*/
|
|
7053
7058
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
7054
7059
|
/**
|
|
7055
7060
|
* Disallow invalid values for HTML boolean attributes.
|
|
7056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
7057
7062
|
*/
|
|
7058
7063
|
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
7059
7064
|
/**
|
|
7060
7065
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
7061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-character-comparison.md
|
|
7062
7067
|
*/
|
|
7063
7068
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
7064
7069
|
/**
|
|
7065
7070
|
* Disallow invalid DOM tokens.
|
|
7066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-dom-token.md
|
|
7067
7072
|
*/
|
|
7068
7073
|
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
7069
7074
|
/**
|
|
7070
7075
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7072
7077
|
*/
|
|
7073
7078
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7074
7079
|
/**
|
|
7075
7080
|
* Disallow invalid `accept` values on file inputs.
|
|
7076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
7077
7082
|
*/
|
|
7078
7083
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
7079
7084
|
/**
|
|
7080
7085
|
* Disallow invalid subresource integrity metadata.
|
|
7081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-integrity.md
|
|
7082
7087
|
*/
|
|
7083
7088
|
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
7084
7089
|
/**
|
|
7085
7090
|
* Disallow invalid or ignored Intl options.
|
|
7086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-intl-options.md
|
|
7087
7092
|
*/
|
|
7088
7093
|
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
7089
7094
|
/**
|
|
7090
7095
|
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
7091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
7092
7097
|
* @deprecated
|
|
7093
7098
|
*/
|
|
7094
7099
|
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
7095
7100
|
/**
|
|
7096
7101
|
* Disallow invalid property descriptors.
|
|
7097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
7098
7103
|
*/
|
|
7099
7104
|
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
7100
7105
|
/**
|
|
7101
7106
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7103
7108
|
*/
|
|
7104
7109
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7105
7110
|
/**
|
|
7106
7111
|
* Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
|
|
7107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-response-options.md
|
|
7108
7113
|
*/
|
|
7109
7114
|
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
7110
7115
|
/**
|
|
7111
7116
|
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
7112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-style-set-property.md
|
|
7113
7118
|
*/
|
|
7114
7119
|
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
7115
7120
|
/**
|
|
7116
7121
|
* Disallow statically known invalid Temporal arithmetic.
|
|
7117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
7118
7123
|
*/
|
|
7119
7124
|
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
7120
7125
|
/**
|
|
7121
7126
|
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
7122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
7123
7128
|
*/
|
|
7124
7129
|
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
7125
7130
|
/**
|
|
7126
7131
|
* Disallow invalid implementations of well-known symbol methods.
|
|
7127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
7128
7133
|
*/
|
|
7129
7134
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
7130
7135
|
/**
|
|
7131
7136
|
* Disallow `javascript:` URLs in Markdown.
|
|
7132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-javascript-url.md
|
|
7133
7138
|
*/
|
|
7134
7139
|
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
7135
7140
|
/**
|
|
7136
7141
|
* Disallow identifiers starting with `new` or `class`.
|
|
7137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-keyword-prefix.md
|
|
7138
7143
|
*/
|
|
7139
7144
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7140
7145
|
/**
|
|
7141
7146
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
7142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-current-target-access.md
|
|
7143
7148
|
*/
|
|
7144
7149
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
7145
7150
|
/**
|
|
7146
7151
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
7147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-event-control.md
|
|
7148
7153
|
*/
|
|
7149
7154
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
7150
7155
|
/**
|
|
7151
7156
|
* Disallow empty lines at the beginning of a file.
|
|
7152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-leading-empty-lines.md
|
|
7153
7158
|
*/
|
|
7154
7159
|
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
7155
7160
|
/**
|
|
7156
7161
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7158
7163
|
* @deprecated
|
|
7159
7164
|
*/
|
|
7160
7165
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7161
7166
|
/**
|
|
7162
7167
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-lonely-if.md
|
|
7164
7169
|
*/
|
|
7165
7170
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7166
7171
|
/**
|
|
7167
7172
|
* Disallow mutating a loop iterable during iteration.
|
|
7168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
7169
7174
|
*/
|
|
7170
7175
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
7171
7176
|
/**
|
|
7172
7177
|
* Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
|
|
7173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loss-of-precision.md
|
|
7174
7179
|
*/
|
|
7175
7180
|
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
7176
7181
|
/**
|
|
7177
7182
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7179
7184
|
*/
|
|
7180
7185
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7181
7186
|
/**
|
|
7182
7187
|
* Disallow manually wrapped comments.
|
|
7183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
7184
7189
|
*/
|
|
7185
7190
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
7186
7191
|
/**
|
|
7187
7192
|
* Disallow checking a Map key before accessing a different key.
|
|
7188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-mismatched-map-key.md
|
|
7189
7194
|
*/
|
|
7190
7195
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
7191
7196
|
/**
|
|
7192
7197
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
7193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-misrefactored-assignment.md
|
|
7194
7199
|
*/
|
|
7195
7200
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
7196
7201
|
/**
|
|
7197
7202
|
* Disallow references to missing local resources.
|
|
7198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-missing-local-resource.md
|
|
7199
7204
|
*/
|
|
7200
7205
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
7201
7206
|
/**
|
|
7202
7207
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
7203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
7204
7209
|
*/
|
|
7205
7210
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
7206
7211
|
/**
|
|
7207
7212
|
* Disallow named usage of default import and export.
|
|
7208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-named-default.md
|
|
7209
7214
|
*/
|
|
7210
7215
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7211
7216
|
/**
|
|
7212
7217
|
* Disallow negated array predicate calls.
|
|
7213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-array-predicate.md
|
|
7214
7219
|
*/
|
|
7215
7220
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
7216
7221
|
/**
|
|
7217
7222
|
* Disallow negated comparisons.
|
|
7218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-comparison.md
|
|
7219
7224
|
*/
|
|
7220
7225
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
7221
7226
|
/**
|
|
7222
7227
|
* Disallow negated conditions.
|
|
7223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-condition.md
|
|
7224
7229
|
*/
|
|
7225
7230
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7226
7231
|
/**
|
|
7227
7232
|
* Disallow negated expression in equality check.
|
|
7228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7229
7234
|
*/
|
|
7230
7235
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7231
7236
|
/**
|
|
7232
7237
|
* Disallow nested ternary expressions.
|
|
7233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nested-ternary.md
|
|
7234
7239
|
*/
|
|
7235
7240
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7236
7241
|
/**
|
|
7237
7242
|
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
7238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
7239
7244
|
* @deprecated
|
|
7240
7245
|
*/
|
|
7241
7246
|
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
7242
7247
|
/**
|
|
7243
7248
|
* Disallow `new Array()`.
|
|
7244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-array.md
|
|
7245
7250
|
*/
|
|
7246
7251
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7247
7252
|
/**
|
|
7248
7253
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-buffer.md
|
|
7250
7255
|
*/
|
|
7251
7256
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7252
7257
|
/**
|
|
7253
7258
|
* Disallow non-function values with function-style verb prefixes.
|
|
7254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
7255
7260
|
*/
|
|
7256
7261
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
7257
7262
|
/**
|
|
7258
7263
|
* Disallow non-standard properties on built-in objects.
|
|
7259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
7260
7265
|
*/
|
|
7261
7266
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
7262
7267
|
/**
|
|
7263
7268
|
* Disallow the use of the `null` literal.
|
|
7264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-null.md
|
|
7265
7270
|
*/
|
|
7266
7271
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7267
7272
|
/**
|
|
7268
7273
|
* Disallow the use of objects as default parameters.
|
|
7269
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7270
7275
|
*/
|
|
7271
7276
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7272
7277
|
/**
|
|
7273
7278
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
7274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-methods-with-collections.md
|
|
7275
7280
|
*/
|
|
7276
7281
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
7277
7282
|
/**
|
|
7278
7283
|
* Disallow optional chaining on undeclared variables.
|
|
7279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
7280
7285
|
*/
|
|
7281
7286
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
7282
7287
|
/**
|
|
7283
7288
|
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
7284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
7285
7290
|
*/
|
|
7286
7291
|
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
7287
7292
|
/**
|
|
7288
7293
|
* Disallow `process.exit()`.
|
|
7289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-process-exit.md
|
|
7290
7295
|
*/
|
|
7291
7296
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7292
7297
|
/**
|
|
7293
7298
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
7294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-redundant-comparison.md
|
|
7295
7300
|
*/
|
|
7296
7301
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
7297
7302
|
/**
|
|
7298
7303
|
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
7299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
7300
7305
|
* @deprecated
|
|
7301
7306
|
*/
|
|
7302
7307
|
'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
7308
|
+
/**
|
|
7309
|
+
* Disallow repeating the same wrapper at every call to a function.
|
|
7310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-repeated-call-wrappers.md
|
|
7311
|
+
*/
|
|
7312
|
+
'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
|
|
7303
7313
|
/**
|
|
7304
7314
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
7305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-return-array-push.md
|
|
7306
7316
|
*/
|
|
7307
7317
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
7308
7318
|
/**
|
|
7309
7319
|
* Disallow selector syntax in DOM names.
|
|
7310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-selector-as-dom-name.md
|
|
7311
7321
|
*/
|
|
7312
7322
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
7313
7323
|
/**
|
|
7314
7324
|
* Disallow shorthand properties that override related longhand properties.
|
|
7315
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
7316
7326
|
*/
|
|
7317
7327
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
7318
7328
|
/**
|
|
7319
7329
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7320
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7321
7331
|
*/
|
|
7322
7332
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7323
7333
|
/**
|
|
7324
7334
|
* Disallow classes that only have static members.
|
|
7325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-static-only-class.md
|
|
7326
7336
|
*/
|
|
7327
7337
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7328
7338
|
/**
|
|
7329
7339
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
7330
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-subtraction-comparison.md
|
|
7331
7341
|
*/
|
|
7332
7342
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
7333
7343
|
/**
|
|
7334
7344
|
* Disallow `then` property.
|
|
7335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-thenable.md
|
|
7336
7346
|
*/
|
|
7337
7347
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7338
7348
|
/**
|
|
7339
7349
|
* Disallow assigning `this` to a variable.
|
|
7340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-assignment.md
|
|
7341
7351
|
*/
|
|
7342
7352
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7343
7353
|
/**
|
|
7344
7354
|
* Disallow `this` outside of classes.
|
|
7345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-outside-of-class.md
|
|
7346
7356
|
*/
|
|
7347
7357
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
7348
7358
|
/**
|
|
7349
7359
|
* Disallow assigning to top-level variables from inside functions.
|
|
7350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
7351
7361
|
*/
|
|
7352
7362
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
7353
7363
|
/**
|
|
7354
7364
|
* Disallow top-level side effects in exported modules.
|
|
7355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-side-effects.md
|
|
7356
7366
|
*/
|
|
7357
|
-
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<
|
|
7367
|
+
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
|
|
7358
7368
|
/**
|
|
7359
7369
|
* Disallow `all` as a transition property.
|
|
7360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-transition-all.md
|
|
7361
7371
|
*/
|
|
7362
7372
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
7363
7373
|
/**
|
|
7364
7374
|
* Disallow comparing `undefined` using `typeof`.
|
|
7365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-typeof-undefined.md
|
|
7366
7376
|
*/
|
|
7367
7377
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7368
7378
|
/**
|
|
7369
7379
|
* Disallow referencing methods without calling them.
|
|
7370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-uncalled-method.md
|
|
7371
7381
|
*/
|
|
7372
7382
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
7373
7383
|
/**
|
|
7374
7384
|
* Require class members to be declared.
|
|
7375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-undeclared-class-members.md
|
|
7376
7386
|
*/
|
|
7377
7387
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
7378
7388
|
/**
|
|
7379
7389
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
7380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
7381
7391
|
* @deprecated
|
|
7382
7392
|
*/
|
|
7383
7393
|
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
7384
7394
|
/**
|
|
7385
7395
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
7386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
7387
7397
|
* @deprecated
|
|
7388
7398
|
*/
|
|
7389
7399
|
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
7390
7400
|
/**
|
|
7391
7401
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7393
7403
|
*/
|
|
7394
7404
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7395
7405
|
/**
|
|
7396
7406
|
* Disallow unnecessary use of `Array#flatMap()`.
|
|
7397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
7398
7408
|
*/
|
|
7399
7409
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7400
7410
|
/**
|
|
7401
7411
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7403
7413
|
*/
|
|
7404
7414
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7405
7415
|
/**
|
|
7406
7416
|
* Disallow awaiting non-promise values.
|
|
7407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-await.md
|
|
7408
7418
|
*/
|
|
7409
7419
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7410
7420
|
/**
|
|
7411
7421
|
* Disallow unnecessary comparisons against boolean literals.
|
|
7412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
7413
7423
|
*/
|
|
7414
7424
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
7425
|
+
/**
|
|
7426
|
+
* Disallow arguments that match their parameter defaults.
|
|
7427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-default-arguments.md
|
|
7428
|
+
*/
|
|
7429
|
+
'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
|
|
7415
7430
|
/**
|
|
7416
7431
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
7417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
7418
7433
|
*/
|
|
7419
7434
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7420
7435
|
/**
|
|
7421
7436
|
* Disallow unnecessary `globalThis` references.
|
|
7422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-global-this.md
|
|
7423
7438
|
*/
|
|
7424
7439
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
7425
7440
|
/**
|
|
7426
7441
|
* Disallow unnecessary nested ternary expressions.
|
|
7427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
7428
7443
|
*/
|
|
7429
7444
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7430
7445
|
/**
|
|
7431
7446
|
* Disallow parameters that receive the same value at every call.
|
|
7432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-parameters.md
|
|
7433
7448
|
*/
|
|
7434
7449
|
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
7435
7450
|
/**
|
|
7436
7451
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
7438
7453
|
*/
|
|
7439
7454
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7440
7455
|
/**
|
|
7441
7456
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
7443
7458
|
*/
|
|
7444
7459
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7445
7460
|
/**
|
|
7446
7461
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
7447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-splice.md
|
|
7448
7463
|
*/
|
|
7449
7464
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
7450
7465
|
/**
|
|
7451
7466
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
7452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
7453
7468
|
*/
|
|
7454
7469
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
7455
7470
|
/**
|
|
7456
7471
|
* Disallow unreadable array destructuring.
|
|
7457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
7458
7473
|
*/
|
|
7459
7474
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
7460
7475
|
/**
|
|
7461
7476
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
7462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
7463
7478
|
*/
|
|
7464
7479
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
7465
7480
|
/**
|
|
7466
7481
|
* Disallow unreadable IIFEs.
|
|
7467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-iife.md
|
|
7468
7483
|
*/
|
|
7469
7484
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
7470
7485
|
/**
|
|
7471
7486
|
* Disallow unreadable `new` expressions.
|
|
7472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-new-expression.md
|
|
7473
7488
|
*/
|
|
7474
7489
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
7475
7490
|
/**
|
|
7476
7491
|
* Disallow unreadable object destructuring.
|
|
7477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
7478
7493
|
*/
|
|
7479
7494
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
7480
7495
|
/**
|
|
7481
7496
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
7482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
7483
7498
|
*/
|
|
7484
7499
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
7485
7500
|
/**
|
|
7486
7501
|
* Disallow unsafe DOM HTML APIs.
|
|
7487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-dom-html.md
|
|
7488
7503
|
*/
|
|
7489
7504
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
7490
7505
|
/**
|
|
7491
7506
|
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
7492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
7493
7508
|
*/
|
|
7494
7509
|
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
7495
7510
|
/**
|
|
7496
7511
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
7497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
7498
7513
|
*/
|
|
7499
7514
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
7500
7515
|
/**
|
|
7501
7516
|
* Disallow unsafe values as property keys.
|
|
7502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-property-key.md
|
|
7503
7518
|
*/
|
|
7504
7519
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
7505
7520
|
/**
|
|
7506
7521
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
7507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
7508
7523
|
*/
|
|
7509
7524
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
7510
7525
|
/**
|
|
7511
7526
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
7512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
7513
7528
|
*/
|
|
7514
7529
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
7515
7530
|
/**
|
|
7516
7531
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
7517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
7518
7533
|
* @deprecated
|
|
7519
7534
|
*/
|
|
7520
7535
|
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
7521
7536
|
/**
|
|
7522
7537
|
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
|
|
7523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
|
|
7524
7539
|
* @deprecated
|
|
7525
7540
|
*/
|
|
7526
7541
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
7527
7542
|
/**
|
|
7528
7543
|
* Disallow ignoring the return value of selected built-in methods.
|
|
7529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-builtin-method-return.md
|
|
7530
7545
|
*/
|
|
7531
7546
|
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
7532
7547
|
/**
|
|
7533
7548
|
* Disallow discarding lazy iterator helpers.
|
|
7534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-iterator-helper.md
|
|
7535
7550
|
*/
|
|
7536
7551
|
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
7537
7552
|
/**
|
|
7538
7553
|
* Disallow unused object properties.
|
|
7539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-properties.md
|
|
7540
7555
|
*/
|
|
7541
7556
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
7542
7557
|
/**
|
|
7543
7558
|
* Disallow passing full URLs to `URLSearchParams`.
|
|
7544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-url-in-search-params.md
|
|
7545
7560
|
*/
|
|
7546
7561
|
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
7547
7562
|
/**
|
|
7548
7563
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
7549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-boolean-cast.md
|
|
7550
7565
|
*/
|
|
7551
7566
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
7552
7567
|
/**
|
|
7553
7568
|
* Disallow useless type coercions of values that are already of the target type.
|
|
7554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-coercion.md
|
|
7555
7570
|
*/
|
|
7556
7571
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
7557
7572
|
/**
|
|
7558
7573
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
7559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-collection-argument.md
|
|
7560
7575
|
*/
|
|
7561
7576
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
7562
7577
|
/**
|
|
7563
7578
|
* Disallow useless compound assignments such as `x += 0`.
|
|
7564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-compound-assignment.md
|
|
7565
7580
|
*/
|
|
7566
7581
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
7567
7582
|
/**
|
|
7568
7583
|
* Disallow useless concatenation of literals.
|
|
7569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-concat.md
|
|
7570
7585
|
*/
|
|
7571
7586
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
7572
7587
|
/**
|
|
7573
7588
|
* Disallow useless `continue` statements.
|
|
7574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-continue.md
|
|
7575
7590
|
*/
|
|
7576
7591
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
7577
7592
|
/**
|
|
7578
7593
|
* Disallow unnecessary existence checks before deletion.
|
|
7579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-delete-check.md
|
|
7580
7595
|
*/
|
|
7581
7596
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
7582
7597
|
/**
|
|
7583
7598
|
* Disallow `else` after a statement that exits.
|
|
7584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-else.md
|
|
7585
7600
|
*/
|
|
7586
7601
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
7587
7602
|
/**
|
|
7588
7603
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
7589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
7590
7605
|
*/
|
|
7591
7606
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
7592
7607
|
/**
|
|
7593
7608
|
* Disallow useless fallback when spreading in object literals.
|
|
7594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
7595
7610
|
*/
|
|
7596
7611
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
7597
7612
|
/**
|
|
7598
7613
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
7599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
7600
7615
|
*/
|
|
7601
7616
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
7602
7617
|
/**
|
|
7603
7618
|
* Disallow useless array length check.
|
|
7604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-length-check.md
|
|
7605
7620
|
*/
|
|
7606
7621
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
7607
7622
|
/**
|
|
7608
7623
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
7609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-logical-operand.md
|
|
7610
7625
|
*/
|
|
7611
7626
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
7612
7627
|
/**
|
|
7613
7628
|
* Disallow useless overrides of class methods.
|
|
7614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-override.md
|
|
7615
7630
|
*/
|
|
7616
7631
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
7617
7632
|
/**
|
|
7618
7633
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
7620
7635
|
*/
|
|
7621
7636
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
7622
7637
|
/**
|
|
7623
7638
|
* Disallow redundant re-exports.
|
|
7624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-re-export.md
|
|
7625
7640
|
*/
|
|
7626
7641
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
7627
7642
|
/**
|
|
7628
7643
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
7629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-recursion.md
|
|
7630
7645
|
*/
|
|
7631
7646
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
7632
7647
|
/**
|
|
7633
7648
|
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
7634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-set-construction.md
|
|
7635
7650
|
*/
|
|
7636
7651
|
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
7637
7652
|
/**
|
|
7638
7653
|
* Disallow unnecessary spread.
|
|
7639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-spread.md
|
|
7640
7655
|
*/
|
|
7641
7656
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
7642
7657
|
/**
|
|
7643
7658
|
* Disallow useless case in switch statements.
|
|
7644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-switch-case.md
|
|
7645
7660
|
*/
|
|
7646
7661
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
7647
7662
|
/**
|
|
7648
7663
|
* Disallow useless template literal expressions.
|
|
7649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-template-literals.md
|
|
7650
7665
|
*/
|
|
7651
7666
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
7652
7667
|
/**
|
|
7653
7668
|
* Disallow useless `undefined`.
|
|
7654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-undefined.md
|
|
7655
7670
|
*/
|
|
7656
7671
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
7657
7672
|
/**
|
|
7658
7673
|
* Disallow returning or exporting resources declared with `using`, including through capturing functions.
|
|
7659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-using-resource-escape.md
|
|
7660
7675
|
*/
|
|
7661
7676
|
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
7662
7677
|
/**
|
|
7663
7678
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
7664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
7665
7680
|
*/
|
|
7666
7681
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
7667
7682
|
/**
|
|
7668
7683
|
* Require consistent decimal numbers without redundant zeros.
|
|
7669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-zero-fractions.md
|
|
7670
7685
|
*/
|
|
7671
7686
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
7672
7687
|
/**
|
|
7673
7688
|
* Enforce proper case for numeric literals.
|
|
7674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/number-literal-case.md
|
|
7675
7690
|
*/
|
|
7676
7691
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
7677
7692
|
/**
|
|
7678
7693
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/numeric-separators-style.md
|
|
7680
7695
|
*/
|
|
7681
7696
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
7682
7697
|
/**
|
|
7683
7698
|
* Require assignment operator shorthand where possible.
|
|
7684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/operator-assignment.md
|
|
7685
7700
|
*/
|
|
7686
7701
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
7687
7702
|
/**
|
|
7688
7703
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
7689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-any.md
|
|
7690
7705
|
*/
|
|
7691
7706
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
7692
7707
|
/**
|
|
7693
7708
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
7694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
7695
7710
|
*/
|
|
7696
7711
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
7697
7712
|
/**
|
|
7698
7713
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener.md
|
|
7700
7715
|
*/
|
|
7701
7716
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
7702
7717
|
/**
|
|
7703
7718
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
7704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
7705
7720
|
*/
|
|
7706
7721
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
7707
7722
|
/**
|
|
7708
7723
|
* Prefer `AggregateError` when throwing collected errors.
|
|
7709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-aggregate-error.md
|
|
7710
7725
|
*/
|
|
7711
7726
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
7712
7727
|
/**
|
|
7713
7728
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-find.md
|
|
7715
7730
|
*/
|
|
7716
7731
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
7717
7732
|
/**
|
|
7718
7733
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat.md
|
|
7720
7735
|
*/
|
|
7721
7736
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
7722
7737
|
/**
|
|
7723
7738
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
7724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat-map.md
|
|
7725
7740
|
*/
|
|
7726
7741
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7727
7742
|
/**
|
|
7728
7743
|
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
7729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-async.md
|
|
7730
7745
|
*/
|
|
7731
7746
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
7732
7747
|
/**
|
|
7733
7748
|
* Prefer using the `Array.from()` mapping function argument.
|
|
7734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-map.md
|
|
7735
7750
|
*/
|
|
7736
7751
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
7737
7752
|
/**
|
|
7738
7753
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
7739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-range.md
|
|
7740
7755
|
*/
|
|
7741
7756
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
7742
7757
|
/**
|
|
7743
7758
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
7744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-index-of.md
|
|
7745
7760
|
*/
|
|
7746
7761
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
7747
7762
|
/**
|
|
7748
7763
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
7749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
7750
7765
|
*/
|
|
7751
7766
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
7752
7767
|
/**
|
|
7753
7768
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
7754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-last-methods.md
|
|
7755
7770
|
*/
|
|
7756
7771
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
7757
7772
|
/**
|
|
7758
7773
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
7759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-slice.md
|
|
7760
7775
|
*/
|
|
7761
7776
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
7762
7777
|
/**
|
|
7763
7778
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-some.md
|
|
7765
7780
|
*/
|
|
7766
7781
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
7767
7782
|
/**
|
|
7768
7783
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-at.md
|
|
7770
7785
|
*/
|
|
7771
7786
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
7772
7787
|
/**
|
|
7773
7788
|
* Prefer `await` over promise chaining.
|
|
7774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-await.md
|
|
7775
7790
|
*/
|
|
7776
7791
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
7777
7792
|
/**
|
|
7778
7793
|
* Prefer `BigInt` literals over the constructor.
|
|
7779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-bigint-literals.md
|
|
7780
7795
|
*/
|
|
7781
7796
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
7782
7797
|
/**
|
|
7783
7798
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
7785
7800
|
*/
|
|
7786
7801
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
7787
7802
|
/**
|
|
7788
7803
|
* Prefer block statements over IIFEs used only for scoping.
|
|
7789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
7790
7805
|
*/
|
|
7791
7806
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
7792
7807
|
/**
|
|
7793
7808
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
7794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-boolean-return.md
|
|
7795
7810
|
*/
|
|
7796
7811
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
7797
7812
|
/**
|
|
7798
7813
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
7799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-class-fields.md
|
|
7800
7815
|
*/
|
|
7801
7816
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
7802
7817
|
/**
|
|
7803
7818
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
7804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-classlist-toggle.md
|
|
7805
7820
|
*/
|
|
7806
7821
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
7807
7822
|
/**
|
|
7808
7823
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-code-point.md
|
|
7810
7825
|
*/
|
|
7811
7826
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
7812
7827
|
/**
|
|
7813
7828
|
* Prefer combining consecutive guards with identical exit statements.
|
|
7814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-combined-guards.md
|
|
7815
7830
|
*/
|
|
7816
7831
|
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
7817
7832
|
/**
|
|
7818
7833
|
* Prefer early continues over conditionals wrapping the remainder of the loop body.
|
|
7819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-continue.md
|
|
7820
7835
|
*/
|
|
7821
7836
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
7822
7837
|
/**
|
|
7823
7838
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-date-now.md
|
|
7825
7840
|
*/
|
|
7826
7841
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
7827
7842
|
/**
|
|
7828
7843
|
* Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
|
|
7829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-default-parameters.md
|
|
7830
7845
|
*/
|
|
7831
|
-
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<
|
|
7846
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
|
|
7832
7847
|
/**
|
|
7833
7848
|
* Prefer direct iteration over default iterator method calls.
|
|
7834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-direct-iteration.md
|
|
7835
7850
|
*/
|
|
7836
7851
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
7837
7852
|
/**
|
|
7838
7853
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
7839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dispose.md
|
|
7840
7855
|
*/
|
|
7841
7856
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
7842
7857
|
/**
|
|
7843
7858
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
7844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-append.md
|
|
7845
7860
|
*/
|
|
7846
7861
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
7847
7862
|
/**
|
|
7848
7863
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
7849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7864
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
7850
7865
|
* @deprecated
|
|
7851
7866
|
*/
|
|
7852
7867
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
7853
7868
|
/**
|
|
7854
7869
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
7855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
7856
7871
|
*/
|
|
7857
7872
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
7858
7873
|
/**
|
|
7859
7874
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7860
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-remove.md
|
|
7861
7876
|
*/
|
|
7862
7877
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
7863
7878
|
/**
|
|
7864
7879
|
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
7865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
7866
7881
|
*/
|
|
7867
7882
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
7868
7883
|
/**
|
|
7869
7884
|
* Prefer `.textContent` over `.innerText`.
|
|
7870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
7871
7886
|
*/
|
|
7872
7887
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
7873
7888
|
/**
|
|
7874
7889
|
* Prefer early returns over conditionals wrapping the remainder of the function body.
|
|
7875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-early-return.md
|
|
7876
7891
|
*/
|
|
7877
7892
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
7878
7893
|
/**
|
|
7879
7894
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
7880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-else-if.md
|
|
7881
7896
|
*/
|
|
7882
7897
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
7883
7898
|
/**
|
|
7884
7899
|
* Prefer `Error.isError()` when checking for errors.
|
|
7885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-error-is-error.md
|
|
7886
7901
|
*/
|
|
7887
7902
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
7888
7903
|
/**
|
|
7889
7904
|
* Prefer escape sequences for irregular whitespace characters.
|
|
7890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
7891
7906
|
*/
|
|
7892
7907
|
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
7893
7908
|
/**
|
|
7894
7909
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7910
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-event-target.md
|
|
7896
7911
|
*/
|
|
7897
7912
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
7898
7913
|
/**
|
|
7899
7914
|
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
7900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
7901
7916
|
* @deprecated
|
|
7902
7917
|
*/
|
|
7903
7918
|
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
7904
7919
|
/**
|
|
7905
7920
|
* Prefer `export…from` when re-exporting.
|
|
7906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-export-from.md
|
|
7907
7922
|
*/
|
|
7908
7923
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
7909
7924
|
/**
|
|
7910
7925
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
7911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
7912
7927
|
*/
|
|
7913
7928
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
7914
7929
|
/**
|
|
7915
7930
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
7916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
7917
7932
|
*/
|
|
7918
7933
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
7919
7934
|
/**
|
|
7920
7935
|
* Prefer global numeric constants over `Number` static properties.
|
|
7921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-number-constants.md
|
|
7922
7937
|
*/
|
|
7923
7938
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
7924
7939
|
/**
|
|
7925
7940
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-this.md
|
|
7927
7942
|
*/
|
|
7928
7943
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
7929
7944
|
/**
|
|
7930
7945
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
7931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-group-by.md
|
|
7932
7947
|
*/
|
|
7933
7948
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
7934
7949
|
/**
|
|
7935
7950
|
* Prefer `.has()` when checking existence.
|
|
7936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-has-check.md
|
|
7937
7952
|
*/
|
|
7938
7953
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
7939
7954
|
/**
|
|
7940
7955
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
7941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
7942
7957
|
*/
|
|
7943
7958
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
7944
7959
|
/**
|
|
7945
7960
|
* Prefer HTTPS over HTTP.
|
|
7946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-https.md
|
|
7947
7962
|
*/
|
|
7948
7963
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
7949
7964
|
/**
|
|
7950
7965
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
7951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
7952
7967
|
*/
|
|
7953
7968
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
7954
7969
|
/**
|
|
7955
7970
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
7956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-import-meta-properties.md
|
|
7957
7972
|
*/
|
|
7958
7973
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
7959
7974
|
/**
|
|
7960
7975
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
7961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes.md
|
|
7962
7977
|
*/
|
|
7963
7978
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
7964
7979
|
/**
|
|
7965
7980
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
7966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
7967
7982
|
*/
|
|
7968
7983
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
7969
7984
|
/**
|
|
7970
7985
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
7971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
7972
7987
|
*/
|
|
7973
7988
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
7974
7989
|
/**
|
|
7975
7990
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
7976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-concat.md
|
|
7977
7992
|
*/
|
|
7978
7993
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
7979
7994
|
/**
|
|
7980
7995
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
7981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-helpers.md
|
|
7982
7997
|
*/
|
|
7983
7998
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
7984
7999
|
/**
|
|
7985
8000
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
7986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array.md
|
|
7987
8002
|
*/
|
|
7988
8003
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
7989
8004
|
/**
|
|
7990
8005
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
7991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
7992
8007
|
*/
|
|
7993
8008
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
7994
8009
|
/**
|
|
7995
8010
|
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
7996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-zip.md
|
|
7997
8012
|
*/
|
|
7998
8013
|
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
7999
8014
|
/**
|
|
8000
8015
|
* Prefer JSON imports over reading and parsing JSON files.
|
|
8001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-json-import.md
|
|
8002
8017
|
*/
|
|
8003
8018
|
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
8004
8019
|
/**
|
|
8005
8020
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
8006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
8007
8022
|
* @deprecated
|
|
8008
8023
|
*/
|
|
8009
8024
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
8010
8025
|
/**
|
|
8011
8026
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
8012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
8013
8028
|
*/
|
|
8014
8029
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
8015
8030
|
/**
|
|
8016
8031
|
* Prefer literal printable ASCII characters over escape sequences.
|
|
8017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-literal-ascii.md
|
|
8018
8033
|
*/
|
|
8019
8034
|
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
8020
8035
|
/**
|
|
8021
8036
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
8022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-location-assign.md
|
|
8023
8038
|
*/
|
|
8024
8039
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
8025
8040
|
/**
|
|
8026
8041
|
* Prefer using a logical operator over a ternary.
|
|
8027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
8028
8043
|
*/
|
|
8029
8044
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
8030
8045
|
/**
|
|
8031
8046
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
8032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-map-from-entries.md
|
|
8033
8048
|
*/
|
|
8034
8049
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
8035
8050
|
/**
|
|
8036
8051
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
8037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-abs.md
|
|
8038
8053
|
*/
|
|
8039
8054
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
8040
8055
|
/**
|
|
8041
8056
|
* Prefer `Math` constants over their approximate numeric values.
|
|
8042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-constants.md
|
|
8043
8058
|
*/
|
|
8044
8059
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
8045
8060
|
/**
|
|
8046
8061
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
8047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-min-max.md
|
|
8048
8063
|
*/
|
|
8049
8064
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8050
8065
|
/**
|
|
8051
8066
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
8052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-trunc.md
|
|
8053
8068
|
*/
|
|
8054
8069
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
8055
8070
|
/**
|
|
8056
8071
|
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
8057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
8058
8073
|
* @deprecated
|
|
8059
8074
|
*/
|
|
8060
8075
|
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
8061
8076
|
/**
|
|
8062
8077
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
8063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-minimal-ternary.md
|
|
8064
8079
|
*/
|
|
8065
8080
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
8066
8081
|
/**
|
|
8067
8082
|
* Prefer modern DOM APIs.
|
|
8068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
8069
8084
|
*/
|
|
8070
8085
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
8071
8086
|
/**
|
|
8072
8087
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
8073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-math-apis.md
|
|
8074
8089
|
*/
|
|
8075
8090
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
8076
8091
|
/**
|
|
8077
8092
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
8078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-module.md
|
|
8079
8094
|
*/
|
|
8080
8095
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
8081
8096
|
/**
|
|
8082
8097
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
8083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
8084
8099
|
*/
|
|
8085
8100
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
8086
8101
|
/**
|
|
8087
8102
|
* Prefer negative index over `.length - index` when possible.
|
|
8088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-negative-index.md
|
|
8089
8104
|
*/
|
|
8090
8105
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
8091
8106
|
/**
|
|
8092
8107
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
8093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-node-protocol.md
|
|
8094
8109
|
*/
|
|
8095
8110
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
8096
8111
|
/**
|
|
8097
8112
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
8098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-coercion.md
|
|
8099
8114
|
*/
|
|
8100
8115
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
8101
8116
|
/**
|
|
8102
8117
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
8103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
8104
8119
|
*/
|
|
8105
8120
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
8106
8121
|
/**
|
|
8107
8122
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
8108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-properties.md
|
|
8109
8124
|
*/
|
|
8110
8125
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
8111
8126
|
/**
|
|
8112
8127
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
8113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-define-properties.md
|
|
8114
8129
|
*/
|
|
8115
8130
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
8116
8131
|
/**
|
|
8117
8132
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
8118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
8119
8134
|
*/
|
|
8120
8135
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
8121
8136
|
/**
|
|
8122
8137
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
8123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-from-entries.md
|
|
8124
8139
|
*/
|
|
8125
8140
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
8126
8141
|
/**
|
|
8127
8142
|
* Prefer the most specific `Object` iterable method.
|
|
8128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
8129
8144
|
*/
|
|
8130
8145
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
8131
8146
|
/**
|
|
8132
8147
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
8133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-observer-apis.md
|
|
8134
8149
|
*/
|
|
8135
8150
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
8136
8151
|
/**
|
|
8137
8152
|
* Prefer omitting the `catch` binding parameter.
|
|
8138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
8139
8154
|
*/
|
|
8140
8155
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
8141
8156
|
/**
|
|
8142
8157
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
8143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-path2d.md
|
|
8144
8159
|
*/
|
|
8145
8160
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
8146
8161
|
/**
|
|
8147
8162
|
* Prefer private class fields over the underscore-prefix convention.
|
|
8148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-private-class-fields.md
|
|
8149
8164
|
*/
|
|
8150
8165
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
8151
8166
|
/**
|
|
8152
8167
|
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
|
|
8153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-static-methods.md
|
|
8154
8169
|
*/
|
|
8155
8170
|
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
8156
8171
|
/**
|
|
8157
8172
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
8158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-try.md
|
|
8159
8174
|
*/
|
|
8160
8175
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
8161
8176
|
/**
|
|
8162
8177
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
8163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
8164
8179
|
*/
|
|
8165
8180
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
8166
8181
|
/**
|
|
8167
8182
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
8168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-prototype-methods.md
|
|
8169
8184
|
*/
|
|
8170
8185
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
8171
8186
|
/**
|
|
8172
8187
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
8173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-query-selector.md
|
|
8174
8189
|
*/
|
|
8175
8190
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
8176
8191
|
/**
|
|
8177
8192
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
8178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-queue-microtask.md
|
|
8179
8194
|
*/
|
|
8180
8195
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
8181
8196
|
/**
|
|
8182
8197
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
8183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-reflect-apply.md
|
|
8184
8199
|
*/
|
|
8185
8200
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
8186
8201
|
/**
|
|
8187
8202
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
8188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-escape.md
|
|
8189
8204
|
*/
|
|
8190
8205
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
8191
8206
|
/**
|
|
8192
8207
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
8193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-test.md
|
|
8194
8209
|
*/
|
|
8195
8210
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
8196
8211
|
/**
|
|
8197
8212
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
8198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-response-static-json.md
|
|
8199
8214
|
*/
|
|
8200
8215
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
8201
8216
|
/**
|
|
8202
8217
|
* Prefer `:scope` when using element query selector methods.
|
|
8203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-scoped-selector.md
|
|
8204
8219
|
*/
|
|
8205
8220
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
8206
8221
|
/**
|
|
8207
8222
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
8208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-has.md
|
|
8209
8224
|
*/
|
|
8210
8225
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
8211
8226
|
/**
|
|
8212
8227
|
* Prefer `Set` methods for Set operations.
|
|
8213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-methods.md
|
|
8214
8229
|
*/
|
|
8215
8230
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
8216
8231
|
/**
|
|
8217
8232
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
8218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-size.md
|
|
8219
8234
|
*/
|
|
8220
8235
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
8221
8236
|
/**
|
|
8222
8237
|
* Prefer arrow function properties over methods with a single return.
|
|
8223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-arrow-method.md
|
|
8224
8239
|
*/
|
|
8225
8240
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
8226
8241
|
/**
|
|
8227
8242
|
* Prefer shorter alternatives to Unicode escape sequences.
|
|
8228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
8229
8244
|
*/
|
|
8230
8245
|
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
8231
8246
|
/**
|
|
8232
8247
|
* Prefer simple conditions first in logical expressions.
|
|
8233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-condition-first.md
|
|
8234
8249
|
*/
|
|
8235
8250
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
8236
8251
|
/**
|
|
8237
8252
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
8238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
8239
8254
|
*/
|
|
8240
8255
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
8241
8256
|
/**
|
|
8242
8257
|
* Prefer simplified conditions.
|
|
8243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simplified-conditions.md
|
|
8244
8259
|
*/
|
|
8245
8260
|
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
8246
8261
|
/**
|
|
8247
8262
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
8248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-array-predicate.md
|
|
8249
8264
|
*/
|
|
8250
8265
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
8251
8266
|
/**
|
|
8252
8267
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
8253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-call.md
|
|
8254
8269
|
*/
|
|
8255
8270
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
8256
8271
|
/**
|
|
8257
8272
|
* Prefer a single object destructuring declaration per local const source.
|
|
8258
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
8259
8274
|
*/
|
|
8260
8275
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
8261
8276
|
/**
|
|
8262
8277
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
8263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-replace.md
|
|
8264
8279
|
*/
|
|
8265
8280
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
8266
8281
|
/**
|
|
8267
8282
|
* Prefer declaring variables in the smallest possible scope.
|
|
8268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-smaller-scope.md
|
|
8269
8284
|
*/
|
|
8270
8285
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
8271
8286
|
/**
|
|
8272
8287
|
* Prefer `String#split()` with a limit.
|
|
8273
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-split-limit.md
|
|
8274
8289
|
*/
|
|
8275
8290
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
8276
8291
|
/**
|
|
8277
8292
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
8278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-spread.md
|
|
8279
8294
|
*/
|
|
8280
8295
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
8281
8296
|
/**
|
|
8282
8297
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
8283
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-match-all.md
|
|
8284
8299
|
*/
|
|
8285
8300
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
8286
8301
|
/**
|
|
8287
8302
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
8288
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
8289
8304
|
*/
|
|
8290
8305
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
8291
8306
|
/**
|
|
8292
8307
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
8293
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-raw.md
|
|
8294
8309
|
*/
|
|
8295
8310
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
8296
8311
|
/**
|
|
8297
8312
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
8298
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-repeat.md
|
|
8299
8314
|
*/
|
|
8300
8315
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
8301
8316
|
/**
|
|
8302
8317
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
8303
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-replace-all.md
|
|
8304
8319
|
*/
|
|
8305
8320
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
8306
8321
|
/**
|
|
8307
8322
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
8308
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-slice.md
|
|
8309
8324
|
*/
|
|
8310
8325
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
8311
8326
|
/**
|
|
8312
8327
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
8313
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
8314
8329
|
*/
|
|
8315
8330
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
8316
8331
|
/**
|
|
8317
8332
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
8318
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
8319
8334
|
*/
|
|
8320
8335
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
8321
8336
|
/**
|
|
8322
8337
|
* Prefer using `structuredClone` to create a deep clone.
|
|
8323
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-structured-clone.md
|
|
8324
8339
|
*/
|
|
8325
8340
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
8326
8341
|
/**
|
|
8327
8342
|
* Prefer `switch` over multiple `else-if`.
|
|
8328
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-switch.md
|
|
8329
8344
|
*/
|
|
8330
8345
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
8331
8346
|
/**
|
|
8332
8347
|
* Prefer `Temporal` over `Date`.
|
|
8333
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal.md
|
|
8334
8349
|
*/
|
|
8335
8350
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
8336
8351
|
/**
|
|
8337
8352
|
* Prefer direct Temporal conversion methods.
|
|
8338
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal-conversion.md
|
|
8339
8354
|
*/
|
|
8340
8355
|
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
8341
8356
|
/**
|
|
8342
|
-
* Prefer ternary expressions over simple `if` statements
|
|
8343
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8357
|
+
* Prefer ternary expressions over simple `if` statements.
|
|
8358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-ternary.md
|
|
8344
8359
|
*/
|
|
8345
8360
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
8346
8361
|
/**
|
|
8347
8362
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
8348
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-then-catch.md
|
|
8349
8364
|
*/
|
|
8350
8365
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
8351
8366
|
/**
|
|
8352
8367
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
8353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-toggle-attribute.md
|
|
8354
8369
|
*/
|
|
8355
8370
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
8356
8371
|
/**
|
|
8357
8372
|
* Prefer top-level await over top-level promises and async function calls.
|
|
8358
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-top-level-await.md
|
|
8359
8374
|
*/
|
|
8360
8375
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
8361
8376
|
/**
|
|
8362
8377
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
8363
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-error.md
|
|
8364
8379
|
*/
|
|
8365
8380
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
8366
8381
|
/**
|
|
8367
8382
|
* Require type literals to be last in union types.
|
|
8368
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-literal-last.md
|
|
8369
8384
|
*/
|
|
8370
8385
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
8371
8386
|
/**
|
|
8372
8387
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
|
|
8373
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-base64.md
|
|
8374
8389
|
*/
|
|
8375
8390
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
8376
8391
|
/**
|
|
8377
8392
|
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
|
|
8378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-hex.md
|
|
8379
8394
|
*/
|
|
8380
8395
|
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
|
|
8381
8396
|
/**
|
|
8382
8397
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
8383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unary-minus.md
|
|
8384
8399
|
*/
|
|
8385
8400
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
8386
8401
|
/**
|
|
8387
8402
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
8388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
8389
8404
|
*/
|
|
8390
8405
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
8391
8406
|
/**
|
|
8392
8407
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
8393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-can-parse.md
|
|
8394
8409
|
*/
|
|
8395
8410
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
8396
8411
|
/**
|
|
8397
8412
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
8398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-href.md
|
|
8399
8414
|
*/
|
|
8400
8415
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
8401
8416
|
/**
|
|
8402
8417
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
8403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-search-parameters.md
|
|
8404
8419
|
*/
|
|
8405
8420
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
8406
8421
|
/**
|
|
8407
8422
|
* Prefer putting the condition in the while statement.
|
|
8408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-while-loop-condition.md
|
|
8409
8424
|
*/
|
|
8410
8425
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
8411
8426
|
/**
|
|
8412
8427
|
* Renamed to `unicorn/name-replacements`.
|
|
8413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
8414
8429
|
* @deprecated
|
|
8415
8430
|
*/
|
|
8416
8431
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
8417
8432
|
/**
|
|
8418
8433
|
* Enforce consistent relative URL style.
|
|
8419
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/relative-url-style.md
|
|
8420
8435
|
*/
|
|
8421
8436
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
8422
8437
|
/**
|
|
8423
8438
|
* Enforce using the separator argument with `Array#join()`.
|
|
8424
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-join-separator.md
|
|
8425
8440
|
*/
|
|
8426
8441
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
8427
8442
|
/**
|
|
8428
8443
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
8429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-sort-compare.md
|
|
8430
8445
|
*/
|
|
8431
8446
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
8432
8447
|
/**
|
|
8433
8448
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
8434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-css-escape.md
|
|
8435
8450
|
*/
|
|
8436
8451
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
8437
8452
|
/**
|
|
8438
8453
|
* Require configured YAML frontmatter fields.
|
|
8439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-frontmatter-fields.md
|
|
8440
8455
|
*/
|
|
8441
8456
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
8442
8457
|
/**
|
|
8443
8458
|
* Require non-empty module attributes for imports and exports
|
|
8444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-attributes.md
|
|
8445
8460
|
*/
|
|
8446
8461
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
8447
8462
|
/**
|
|
8448
8463
|
* Require non-empty specifier list in import and export statements.
|
|
8449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-specifiers.md
|
|
8450
8465
|
*/
|
|
8451
8466
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
8452
8467
|
/**
|
|
8453
8468
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
8454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
8455
8470
|
*/
|
|
8456
8471
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
8457
8472
|
/**
|
|
8458
8473
|
* Require passive event listeners for high-frequency events.
|
|
8459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-passive-events.md
|
|
8460
8475
|
*/
|
|
8461
8476
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
8462
8477
|
/**
|
|
8463
8478
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
8464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-post-message-target-origin.md
|
|
8465
8480
|
*/
|
|
8466
8481
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
8467
8482
|
/**
|
|
8468
8483
|
* Require boolean-returning Proxy traps to return booleans.
|
|
8469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
8470
8485
|
*/
|
|
8471
8486
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
8472
8487
|
/**
|
|
8473
8488
|
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
8474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-text-decoder-streaming.md
|
|
8475
8490
|
*/
|
|
8476
8491
|
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
8477
8492
|
/**
|
|
8478
8493
|
* Enforce a consistent style for single-line block comments.
|
|
8479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/single-line-block-comment-style.md
|
|
8480
8495
|
*/
|
|
8481
8496
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
8482
8497
|
/**
|
|
8483
8498
|
* Enforce better string content.
|
|
8484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/string-content.md
|
|
8485
8500
|
*/
|
|
8486
8501
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
8487
8502
|
/**
|
|
8488
8503
|
* Enforce consistent brace style for `case` clauses.
|
|
8489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-braces.md
|
|
8490
8505
|
*/
|
|
8491
8506
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
8492
8507
|
/**
|
|
8493
8508
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
8494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-break-position.md
|
|
8495
8510
|
*/
|
|
8496
8511
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
8497
8512
|
/**
|
|
8498
8513
|
* Fix whitespace-insensitive template indentation.
|
|
8499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/template-indent.md
|
|
8500
8515
|
*/
|
|
8501
8516
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
8502
8517
|
/**
|
|
8503
8518
|
* Enforce consistent case for text encoding identifiers.
|
|
8504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/text-encoding-identifier-case.md
|
|
8505
8520
|
*/
|
|
8506
8521
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
8507
8522
|
/**
|
|
8508
8523
|
* Require `new` when creating an error.
|
|
8509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/throw-new-error.md
|
|
8510
8525
|
*/
|
|
8511
8526
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
8512
8527
|
/**
|
|
8513
8528
|
* Limit the complexity of `try` blocks.
|
|
8514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/try-complexity.md
|
|
8515
8530
|
*/
|
|
8516
8531
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
8517
8532
|
/**
|
|
@@ -8990,6 +9005,26 @@ interface RuleOptions {
|
|
|
8990
9005
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/define-macros-type-style.md
|
|
8991
9006
|
*/
|
|
8992
9007
|
'vue-perfectionist/define-macros-type-style'?: Linter.RuleEntry<VuePerfectionistDefineMacrosTypeStyle>;
|
|
9008
|
+
/**
|
|
9009
|
+
* enforce a maximum number of lines in inline callbacks for Vue APIs.
|
|
9010
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/max-lines-per-callback.md
|
|
9011
|
+
*/
|
|
9012
|
+
'vue-perfectionist/max-lines-per-callback'?: Linter.RuleEntry<VuePerfectionistMaxLinesPerCallback>;
|
|
9013
|
+
/**
|
|
9014
|
+
* disallow complex expressions in Vue v-for sources.
|
|
9015
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/no-complex-v-for-source.md
|
|
9016
|
+
*/
|
|
9017
|
+
'vue-perfectionist/no-complex-v-for-source'?: Linter.RuleEntry<VuePerfectionistNoComplexVForSource>;
|
|
9018
|
+
/**
|
|
9019
|
+
* enforce blank lines between consecutive Vue template tags.
|
|
9020
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/padding-line-between-tags.md
|
|
9021
|
+
*/
|
|
9022
|
+
'vue-perfectionist/padding-line-between-tags'?: Linter.RuleEntry<VuePerfectionistPaddingLineBetweenTags>;
|
|
9023
|
+
/**
|
|
9024
|
+
* require a final options object for composable parameters.
|
|
9025
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-composable-options.md
|
|
9026
|
+
*/
|
|
9027
|
+
'vue-perfectionist/prefer-composable-options'?: Linter.RuleEntry<VuePerfectionistPreferComposableOptions>;
|
|
8993
9028
|
/**
|
|
8994
9029
|
* enforce naming patterns for function result bindings.
|
|
8995
9030
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-function-result-pattern.md
|
|
@@ -9005,16 +9040,36 @@ interface RuleOptions {
|
|
|
9005
9040
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-simple-event-handler.md
|
|
9006
9041
|
*/
|
|
9007
9042
|
'vue-perfectionist/prefer-simple-event-handler'?: Linter.RuleEntry<VuePerfectionistPreferSimpleEventHandler>;
|
|
9043
|
+
/**
|
|
9044
|
+
* require a single template literal for mixed text and interpolation.
|
|
9045
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-template-literal-in-interpolation.md
|
|
9046
|
+
*/
|
|
9047
|
+
'vue-perfectionist/prefer-template-literal-in-interpolation'?: Linter.RuleEntry<VuePerfectionistPreferTemplateLiteralInInterpolation>;
|
|
9048
|
+
/**
|
|
9049
|
+
* enforce inferred types for static Vue template refs.
|
|
9050
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-use-template-ref-inference.md
|
|
9051
|
+
*/
|
|
9052
|
+
'vue-perfectionist/prefer-use-template-ref-inference'?: Linter.RuleEntry<VuePerfectionistPreferUseTemplateRefInference>;
|
|
9008
9053
|
/**
|
|
9009
9054
|
* require configured props at Vue component usage sites.
|
|
9010
9055
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-component-props.md
|
|
9011
9056
|
*/
|
|
9012
9057
|
'vue-perfectionist/require-component-props'?: Linter.RuleEntry<VuePerfectionistRequireComponentProps>;
|
|
9058
|
+
/**
|
|
9059
|
+
* require configured slots at Vue component usage sites.
|
|
9060
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-component-slots.md
|
|
9061
|
+
*/
|
|
9062
|
+
'vue-perfectionist/require-component-slots'?: Linter.RuleEntry<VuePerfectionistRequireComponentSlots>;
|
|
9013
9063
|
/**
|
|
9014
9064
|
* require exact call-site names for Vue macro type arguments.
|
|
9015
9065
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-macro-type-name.md
|
|
9016
9066
|
*/
|
|
9017
9067
|
'vue-perfectionist/require-macro-type-name'?: Linter.RuleEntry<VuePerfectionistRequireMacroTypeName>;
|
|
9068
|
+
/**
|
|
9069
|
+
* require explicit @vue-generic comments on configured components.
|
|
9070
|
+
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-vue-generic.md
|
|
9071
|
+
*/
|
|
9072
|
+
'vue-perfectionist/require-vue-generic'?: Linter.RuleEntry<VuePerfectionistRequireVueGeneric>;
|
|
9018
9073
|
/**
|
|
9019
9074
|
* enforce consistent ordering of Vue 3 script setup statements.
|
|
9020
9075
|
* @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/sort-script-setup.md
|
|
@@ -12554,6 +12609,7 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
12554
12609
|
type JsdocNoUnnecessaryTypeAssertion = [] | [{
|
|
12555
12610
|
checkLiteralConstAssertions?: boolean;
|
|
12556
12611
|
enableFixer?: boolean;
|
|
12612
|
+
fixTypeChangingCasts?: boolean;
|
|
12557
12613
|
preferConstToLiteralTuples?: boolean;
|
|
12558
12614
|
treatAnyAsRedundant?: boolean;
|
|
12559
12615
|
typesToIgnore?: string[];
|
|
@@ -14389,7 +14445,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = [] | [{
|
|
|
14389
14445
|
type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
14390
14446
|
version?: string;
|
|
14391
14447
|
allowExperimental?: boolean;
|
|
14392
|
-
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.locks" | "navigator.locks.request" | "navigator.locks.query" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decapsulateBits" | "crypto.subtle.decapsulateKey" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encapsulateBits" | "crypto.subtle.encapsulateKey" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.getPublicKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "SubtleCrypto.supports" | "CloseEvent" | "CustomEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decapsulateBits" | "crypto.webcrypto.subtle.decapsulateKey" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encapsulateBits" | "crypto.webcrypto.subtle.encapsulateKey" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.getPublicKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.argon2" | "crypto.argon2Sync" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.decapsulate" | "crypto.diffieHellman" | "crypto.encapsulate" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.mkdtempDisposable" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.mkdtempDisposableSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.Utf8Stream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.mkdtempDisposable" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.setMaxIdleHTTPParsers" | "http.Agent()" | "http.Agent" | "http.ClientRequest()" | "http.ClientRequest" | "http.Server()" | "http.Server" | "http.ServerResponse()" | "http.ServerResponse" | "http.IncomingMessage()" | "http.IncomingMessage" | "http.OutgoingMessage()" | "http.OutgoingMessage" | "http.WebSocket()" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.Network.webSocketCreated" | "inspector.Network.webSocketHandshakeResponseReceived" | "inspector.Network.webSocketClosed" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.Network.webSocketCreated" | "inspector/promises.Network.webSocketHandshakeResponseReceived" | "inspector/promises.Network.webSocketClosed" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.BlockList.isBlockList" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.eventLoopUtilization" | "perf_hooks.timerify" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getAssetKeys" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getAssetKeys" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "_stream_duplex" | "_stream_passthrough" | "_stream_readable" | "_stream_transform" | "_stream_wrap" | "_stream_writable" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.DatabaseSync" | "sqlite.Session" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.property" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "_tls_common" | "_tls_wrap" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "v8.startCpuProfile" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.threadName" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.locks" | "worker_threads.locks.request" | "worker_threads.locks.query" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
14448
|
+
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "QuotaExceededError" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "Worker" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.locks" | "navigator.locks.request" | "navigator.locks.query" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "Buffer.stringLength" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decapsulateBits" | "crypto.subtle.decapsulateKey" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encapsulateBits" | "crypto.subtle.encapsulateKey" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.getPublicKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "SubtleCrypto.supports" | "CloseEvent" | "CustomEvent" | "ErrorEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.permission.drop" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.addUncaughtExceptionCaptureCallback" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "bench" | "bench.after" | "bench.afterEach" | "bench.before" | "bench.beforeEach" | "bench.bench" | "bench.bench.only" | "bench.bench.skip" | "bench.createRunner" | "bench.describe" | "bench.only" | "bench.run" | "bench.runFile" | "bench.skip" | "bench.suite" | "bench/reporters" | "bench/reporters.json" | "bench/reporters.spec" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isLatin1" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.Buffer.stringLength" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decapsulateBits" | "crypto.webcrypto.subtle.decapsulateKey" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encapsulateBits" | "crypto.webcrypto.subtle.encapsulateKey" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.getPublicKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.argon2" | "crypto.argon2Sync" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createMac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.decapsulate" | "crypto.diffieHellman" | "crypto.encapsulate" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.getMacs" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.parsePKCS12" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.randomUUIDv7" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.boundedChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "diagnostics_channel.BoundedChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "dtls" | "dtls.connect" | "dtls.createSecureContext" | "dtls.listen" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "ffi" | "ffi.DynamicLibrary" | "ffi.dlclose" | "ffi.dlopen" | "ffi.dlsym" | "ffi.exportArrayBuffer" | "ffi.exportArrayBufferView" | "ffi.exportBuffer" | "ffi.exportString" | "ffi.getCurrentEventLoop" | "ffi.getFloat32" | "ffi.getFloat64" | "ffi.getInt16" | "ffi.getInt32" | "ffi.getInt64" | "ffi.getInt8" | "ffi.getRawPointer" | "ffi.getUint16" | "ffi.getUint32" | "ffi.getUint64" | "ffi.getUint8" | "ffi.setFloat32" | "ffi.setFloat64" | "ffi.setInt16" | "ffi.setInt32" | "ffi.setInt64" | "ffi.setInt8" | "ffi.setUint16" | "ffi.setUint32" | "ffi.setUint64" | "ffi.setUint8" | "ffi.suffix" | "ffi.toArrayBuffer" | "ffi.toBuffer" | "ffi.toString" | "ffi.types" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.mkdtempDisposable" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.mkdtempDisposableSync" | "fs.opendirSync" | "fs.openSync" | "fs.openAsBlobSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.F_OK" | "fs.R_OK" | "fs.W_OK" | "fs.X_OK" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.Utf8Stream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.mkdtempDisposable" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.isValidHeaderName" | "http.isValidHeaderValue" | "http.websocketMask" | "http.websocketUnmask" | "http.setMaxIdleHTTPParsers" | "http.setGlobalProxyFromEnv" | "http.Agent()" | "http.Agent" | "http.ClientRequest()" | "http.ClientRequest" | "http.Server()" | "http.Server" | "http.ServerResponse()" | "http.ServerResponse" | "http.IncomingMessage()" | "http.IncomingMessage" | "http.OutgoingMessage()" | "http.OutgoingMessage" | "http.WebSocket()" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.DOMStorage.domStorageItemAdded" | "inspector.DOMStorage.domStorageItemRemoved" | "inspector.DOMStorage.domStorageItemUpdated" | "inspector.DOMStorage.domStorageItemsCleared" | "inspector.DOMStorage.registerStorage" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.Network.webSocketCreated" | "inspector.Network.webSocketHandshakeResponseReceived" | "inspector.Network.webSocketClosed" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.DOMStorage.domStorageItemAdded" | "inspector/promises.DOMStorage.domStorageItemRemoved" | "inspector/promises.DOMStorage.domStorageItemUpdated" | "inspector/promises.DOMStorage.domStorageItemsCleared" | "inspector/promises.DOMStorage.registerStorage" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.Network.webSocketCreated" | "inspector/promises.Network.webSocketHandshakeResponseReceived" | "inspector/promises.Network.webSocketClosed" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module._debug" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module._debug" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BoundSocket" | "net.BlockList" | "net.BlockList.isBlockList" | "net.BlockList.PRIVATE_RANGES" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.createSlidingWindowHistogram" | "perf_hooks.eventLoopUtilization" | "perf_hooks.importHistogram" | "perf_hooks.timerify" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getAssetKeys" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getAssetKeys" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.ReadableStreamTee" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.bytes" | "stream/consumers.json" | "stream/consumers.text" | "stream/iter" | "stream/iter.array" | "stream/iter.arrayBuffer" | "stream/iter.arrayBufferSync" | "stream/iter.arraySync" | "stream/iter.broadcast" | "stream/iter.broadcastProtocol" | "stream/iter.bytes" | "stream/iter.bytesSync" | "stream/iter.drainableProtocol" | "stream/iter.dump" | "stream/iter.dumpSync" | "stream/iter.duplex" | "stream/iter.from" | "stream/iter.fromSync" | "stream/iter.merge" | "stream/iter.ondrain" | "stream/iter.pipeTo" | "stream/iter.pipeToSync" | "stream/iter.pull" | "stream/iter.pullSync" | "stream/iter.push" | "stream/iter.share" | "stream/iter.shareProtocol" | "stream/iter.shareSync" | "stream/iter.shareSyncProtocol" | "stream/iter.tap" | "stream/iter.tapSync" | "stream/iter.text" | "stream/iter.textSync" | "stream/iter.toAsyncStreamable" | "stream/iter.toStreamable" | "stream/iter.fromReadable" | "stream/iter.fromWritable" | "stream/iter.toReadable" | "stream/iter.toReadableSync" | "stream/iter.toWritable" | "stream/iter.Broadcast" | "stream/iter.Broadcast.from" | "stream/iter.Share" | "stream/iter.Share.from" | "stream/iter.Stream" | "stream/iter.Stream.array" | "stream/iter.Stream.arrayBuffer" | "stream/iter.Stream.arrayBufferSync" | "stream/iter.Stream.arraySync" | "stream/iter.Stream.broadcast" | "stream/iter.Stream.broadcastProtocol" | "stream/iter.Stream.bytes" | "stream/iter.Stream.bytesSync" | "stream/iter.Stream.drainableProtocol" | "stream/iter.Stream.dump" | "stream/iter.Stream.dumpSync" | "stream/iter.Stream.duplex" | "stream/iter.Stream.from" | "stream/iter.Stream.fromSync" | "stream/iter.Stream.merge" | "stream/iter.Stream.ondrain" | "stream/iter.Stream.pipeTo" | "stream/iter.Stream.pipeToSync" | "stream/iter.Stream.pull" | "stream/iter.Stream.pullSync" | "stream/iter.Stream.push" | "stream/iter.Stream.share" | "stream/iter.Stream.shareProtocol" | "stream/iter.Stream.shareSync" | "stream/iter.Stream.shareSyncProtocol" | "stream/iter.Stream.tap" | "stream/iter.Stream.tapSync" | "stream/iter.Stream.text" | "stream/iter.Stream.textSync" | "stream/iter.Stream.toAsyncStreamable" | "stream/iter.Stream.toStreamable" | "stream/iter.SyncShare" | "stream/iter.SyncShare.fromSync" | "_stream_duplex" | "_stream_passthrough" | "_stream_readable" | "_stream_transform" | "_stream_wrap" | "_stream_writable" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.Database" | "sqlite.DatabaseSync" | "sqlite.Session" | "sqlite.Statement" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.getTestContext" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.property" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCertificateCompressionAlgorithms" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "_tls_common" | "_tls_wrap" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.convertProcessSignalToExitCode" | "util.debounce" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.isPartialDeepStrictEqual" | "util.markPromiseAsHandled" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.throttle" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEType.parse" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.setHeapProfileNearHeapLimit" | "v8.GCProfiler" | "v8.startCpuProfile" | "v8.startHeapProfile" | "vfs" | "vfs.ComposableProvider" | "vfs.create" | "vfs.MemoryProvider" | "vfs.registerProvider" | "vfs.RealFSProvider" | "vfs.vfsBase" | "vfs.VirtualFileSystem" | "vfs.VirtualProvider" | "vfs.ZipProvider" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.threadName" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.locks" | "worker_threads.locks.request" | "worker_threads.locks.query" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.createZipArchive" | "zlib.createZipArchiveSync" | "zlib.getMaxZipContentSize" | "zlib.setMaxZipContentSize" | "zlib.zipFiles" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib.ZipBuffer" | "zlib.ZipEntry" | "zlib.ZipEntry.create" | "zlib.ZipEntry.createStream" | "zlib.ZipEntry.createSymlink" | "zlib.ZipEntry.createSync" | "zlib.ZipEntry.read" | "zlib.ZipFile" | "zlib.ZipFile.open" | "zlib.ZipFile.openSync" | "zlib" | "zlib/iter" | "zlib/iter.compressBrotli" | "zlib/iter.compressBrotliSync" | "zlib/iter.compressDeflate" | "zlib/iter.compressDeflateSync" | "zlib/iter.compressGzip" | "zlib/iter.compressGzipSync" | "zlib/iter.compressZstd" | "zlib/iter.compressZstdSync" | "zlib/iter.decompressBrotli" | "zlib/iter.decompressBrotliSync" | "zlib/iter.decompressDeflate" | "zlib/iter.decompressDeflateSync" | "zlib/iter.decompressGzip" | "zlib/iter.decompressGzipSync" | "zlib/iter.decompressZstd" | "zlib/iter.decompressZstdSync" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
14393
14449
|
}];
|
|
14394
14450
|
// ----- node/prefer-global/buffer -----
|
|
14395
14451
|
type NodePreferGlobalBuffer = [] | [("always" | "never")];
|
|
@@ -14554,6 +14610,11 @@ type OperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [("after"
|
|
|
14554
14610
|
// ----- oxfmt/oxfmt -----
|
|
14555
14611
|
type OxfmtOxfmt = [] | [{
|
|
14556
14612
|
arrowParens?: ("always" | "avoid");
|
|
14613
|
+
astro?: (boolean | {
|
|
14614
|
+
allowShorthand?: boolean;
|
|
14615
|
+
compressHTML?: ("jsx" | "html" | "none");
|
|
14616
|
+
skipFrontmatter?: boolean;
|
|
14617
|
+
});
|
|
14557
14618
|
bracketSameLine?: boolean;
|
|
14558
14619
|
bracketSpacing?: boolean;
|
|
14559
14620
|
embeddedLanguageFormatting?: ("auto" | "off");
|
|
@@ -14631,11 +14692,21 @@ type OxfmtOxfmt = [] | [{
|
|
|
14631
14692
|
respectOxfmtDefaultIgnores?: boolean;
|
|
14632
14693
|
useConfig?: boolean;
|
|
14633
14694
|
withNodeModules?: boolean;
|
|
14695
|
+
associations?: {
|
|
14696
|
+
excludeFiles?: string[];
|
|
14697
|
+
files: string[];
|
|
14698
|
+
language: ("javascript" | "jsx" | "typescript" | "tsx" | "json" | "jsonc" | "json5" | "css" | "scss" | "less" | "graphql" | "yaml" | "markdown" | "toml" | "html" | "angular-html" | "vue" | "svelte" | "astro" | "handlebars" | "mdx");
|
|
14699
|
+
}[];
|
|
14634
14700
|
overrides?: {
|
|
14635
14701
|
excludeFiles?: string[];
|
|
14636
14702
|
files: string[];
|
|
14637
14703
|
options?: {
|
|
14638
14704
|
arrowParens?: ("always" | "avoid");
|
|
14705
|
+
astro?: (boolean | {
|
|
14706
|
+
allowShorthand?: boolean;
|
|
14707
|
+
compressHTML?: ("jsx" | "html" | "none");
|
|
14708
|
+
skipFrontmatter?: boolean;
|
|
14709
|
+
});
|
|
14639
14710
|
bracketSameLine?: boolean;
|
|
14640
14711
|
bracketSpacing?: boolean;
|
|
14641
14712
|
embeddedLanguageFormatting?: ("auto" | "off");
|
|
@@ -18945,6 +19016,12 @@ type UnicornNoNull = [] | [{
|
|
|
18945
19016
|
checkArguments?: boolean;
|
|
18946
19017
|
checkStrictEquality?: boolean;
|
|
18947
19018
|
}];
|
|
19019
|
+
// ----- unicorn/no-top-level-side-effects -----
|
|
19020
|
+
type UnicornNoTopLevelSideEffects = [] | [{
|
|
19021
|
+
allow?: {
|
|
19022
|
+
[k: string]: string[] | undefined;
|
|
19023
|
+
};
|
|
19024
|
+
}];
|
|
18948
19025
|
// ----- unicorn/no-typeof-undefined -----
|
|
18949
19026
|
type UnicornNoTypeofUndefined = [] | [{
|
|
18950
19027
|
checkGlobalVariables?: boolean;
|
|
@@ -19026,6 +19103,10 @@ type UnicornPreferContinue = [] | [{
|
|
|
19026
19103
|
maximumStatements?: number;
|
|
19027
19104
|
checkShortBodies?: boolean;
|
|
19028
19105
|
}];
|
|
19106
|
+
// ----- unicorn/prefer-default-parameters -----
|
|
19107
|
+
type UnicornPreferDefaultParameters = [] | [{
|
|
19108
|
+
checkFallbackExpressions?: boolean;
|
|
19109
|
+
}];
|
|
19029
19110
|
// ----- unicorn/prefer-dom-node-html-methods -----
|
|
19030
19111
|
type UnicornPreferDomNodeHtmlMethods = [] | [{
|
|
19031
19112
|
checkGetHTML?: boolean;
|
|
@@ -19107,7 +19188,10 @@ type UnicornPreferTemporal = [] | [{
|
|
|
19107
19188
|
checkMethods?: boolean;
|
|
19108
19189
|
}];
|
|
19109
19190
|
// ----- unicorn/prefer-ternary -----
|
|
19110
|
-
type UnicornPreferTernary = [] | [("always" | "only-single-line")]
|
|
19191
|
+
type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
|
|
19192
|
+
checkVaryingBase?: boolean;
|
|
19193
|
+
checkComputedMemberAccess?: boolean;
|
|
19194
|
+
}];
|
|
19111
19195
|
// ----- unicorn/relative-url-style -----
|
|
19112
19196
|
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
19113
19197
|
// ----- unicorn/require-css-escape -----
|
|
@@ -19293,17 +19377,18 @@ type VitestValidTitle = [] | [{
|
|
|
19293
19377
|
}];
|
|
19294
19378
|
// ----- vue-perfectionist/callback-style -----
|
|
19295
19379
|
type VuePerfectionistCallbackStyle = [] | [{
|
|
19296
|
-
groups?: ("lifecycle" | "watch" | "cleanup" | "scheduler")[];
|
|
19297
|
-
functionStyle?: ("arrow" | "any");
|
|
19298
|
-
bodyStyle?: ("block" | "any");
|
|
19299
|
-
exclude?: string[];
|
|
19300
|
-
vueGlobals?: string[];
|
|
19301
|
-
vueImportSources?: string[];
|
|
19302
19380
|
customCallbacks?: {
|
|
19303
|
-
source: string;
|
|
19304
19381
|
name: string;
|
|
19382
|
+
source: string;
|
|
19383
|
+
autoImport?: boolean;
|
|
19305
19384
|
callbackIndices: [number, ...(number)[]];
|
|
19306
19385
|
}[];
|
|
19386
|
+
exclude?: string[];
|
|
19387
|
+
groups?: ("lifecycle" | "watch" | "cleanup" | "scheduler")[];
|
|
19388
|
+
vueGlobals?: string[];
|
|
19389
|
+
vueImportSources?: string[];
|
|
19390
|
+
functionStyle?: ("arrow" | "any");
|
|
19391
|
+
bodyStyle?: ("block" | "any");
|
|
19307
19392
|
}];
|
|
19308
19393
|
// ----- vue-perfectionist/component-prop-types -----
|
|
19309
19394
|
type VuePerfectionistComponentPropTypes = [] | [{
|
|
@@ -19348,6 +19433,39 @@ type VuePerfectionistDefineMacrosTypeStyle = [] | [{
|
|
|
19348
19433
|
defineSlots?: (("inline" | "local" | "imported") | [("inline" | "local" | "imported"), ...(("inline" | "local" | "imported"))[]] | false);
|
|
19349
19434
|
};
|
|
19350
19435
|
}];
|
|
19436
|
+
// ----- vue-perfectionist/max-lines-per-callback -----
|
|
19437
|
+
type VuePerfectionistMaxLinesPerCallback = [] | [{
|
|
19438
|
+
customCallbacks?: {
|
|
19439
|
+
name: string;
|
|
19440
|
+
source: string;
|
|
19441
|
+
autoImport?: boolean;
|
|
19442
|
+
callbackIndices: [number, ...(number)[]];
|
|
19443
|
+
}[];
|
|
19444
|
+
exclude?: string[];
|
|
19445
|
+
groups?: ("lifecycle" | "watch" | "cleanup" | "scheduler")[];
|
|
19446
|
+
vueGlobals?: string[];
|
|
19447
|
+
vueImportSources?: string[];
|
|
19448
|
+
max?: number;
|
|
19449
|
+
skipBlankLines?: boolean;
|
|
19450
|
+
skipComments?: boolean;
|
|
19451
|
+
}];
|
|
19452
|
+
// ----- vue-perfectionist/no-complex-v-for-source -----
|
|
19453
|
+
type VuePerfectionistNoComplexVForSource = [] | [{
|
|
19454
|
+
allowCallExpression?: boolean;
|
|
19455
|
+
allowLiteral?: boolean;
|
|
19456
|
+
}];
|
|
19457
|
+
// ----- vue-perfectionist/padding-line-between-tags -----
|
|
19458
|
+
type VuePerfectionistPaddingLineBetweenTags = [] | [({
|
|
19459
|
+
[k: string]: unknown | undefined;
|
|
19460
|
+
} | {
|
|
19461
|
+
[k: string]: unknown | undefined;
|
|
19462
|
+
})[]];
|
|
19463
|
+
// ----- vue-perfectionist/prefer-composable-options -----
|
|
19464
|
+
type VuePerfectionistPreferComposableOptions = [] | [{
|
|
19465
|
+
maxPositionalParams?: number;
|
|
19466
|
+
functionPattern?: string;
|
|
19467
|
+
ignoreNames?: string[];
|
|
19468
|
+
}];
|
|
19351
19469
|
// ----- vue-perfectionist/prefer-function-result-pattern -----
|
|
19352
19470
|
type VuePerfectionistPreferFunctionResultPattern = [] | [{
|
|
19353
19471
|
targets?: {
|
|
@@ -19370,6 +19488,14 @@ type VuePerfectionistPreferSimpleEventHandler = [] | [{
|
|
|
19370
19488
|
allowConditional?: boolean;
|
|
19371
19489
|
allowLogical?: boolean;
|
|
19372
19490
|
}];
|
|
19491
|
+
// ----- vue-perfectionist/prefer-template-literal-in-interpolation -----
|
|
19492
|
+
type VuePerfectionistPreferTemplateLiteralInInterpolation = [] | [{
|
|
19493
|
+
reportUnfixable?: boolean;
|
|
19494
|
+
}];
|
|
19495
|
+
// ----- vue-perfectionist/prefer-use-template-ref-inference -----
|
|
19496
|
+
type VuePerfectionistPreferUseTemplateRefInference = [] | [{
|
|
19497
|
+
ignoreRefs?: string[];
|
|
19498
|
+
}];
|
|
19373
19499
|
// ----- vue-perfectionist/require-component-props -----
|
|
19374
19500
|
type VuePerfectionistRequireComponentProps = [] | [{
|
|
19375
19501
|
targets?: {
|
|
@@ -19378,6 +19504,14 @@ type VuePerfectionistRequireComponentProps = [] | [{
|
|
|
19378
19504
|
}[];
|
|
19379
19505
|
unknownBindings?: ("report" | "ignore");
|
|
19380
19506
|
}];
|
|
19507
|
+
// ----- vue-perfectionist/require-component-slots -----
|
|
19508
|
+
type VuePerfectionistRequireComponentSlots = [] | [{
|
|
19509
|
+
targets?: {
|
|
19510
|
+
components: [string, ...(string)[]];
|
|
19511
|
+
slots: [string, ...(string)[]];
|
|
19512
|
+
}[];
|
|
19513
|
+
unknownSlots?: ("report" | "ignore");
|
|
19514
|
+
}];
|
|
19381
19515
|
// ----- vue-perfectionist/require-macro-type-name -----
|
|
19382
19516
|
type VuePerfectionistRequireMacroTypeName = [] | [{
|
|
19383
19517
|
macros?: {
|
|
@@ -19386,6 +19520,26 @@ type VuePerfectionistRequireMacroTypeName = [] | [{
|
|
|
19386
19520
|
defineSlots?: (string | false);
|
|
19387
19521
|
};
|
|
19388
19522
|
}];
|
|
19523
|
+
// ----- vue-perfectionist/require-vue-generic -----
|
|
19524
|
+
type VuePerfectionistRequireVueGeneric = [] | [{
|
|
19525
|
+
targets?: {
|
|
19526
|
+
components: [string, ...(string)[]];
|
|
19527
|
+
ignoreWhen?: {
|
|
19528
|
+
props: {
|
|
19529
|
+
[k: string]: {
|
|
19530
|
+
maximum?: number;
|
|
19531
|
+
minimum?: number;
|
|
19532
|
+
enum?: [(string | number | boolean | null), ...((string | number | boolean | null))[]];
|
|
19533
|
+
maxLength?: number;
|
|
19534
|
+
minLength?: number;
|
|
19535
|
+
multipleOf?: number;
|
|
19536
|
+
pattern?: string;
|
|
19537
|
+
} | undefined;
|
|
19538
|
+
};
|
|
19539
|
+
}[];
|
|
19540
|
+
}[];
|
|
19541
|
+
unknownValues?: ("ignore" | "report");
|
|
19542
|
+
}];
|
|
19389
19543
|
// ----- vue-perfectionist/sort-script-setup -----
|
|
19390
19544
|
type VuePerfectionistSortScriptSetup = [] | [{
|
|
19391
19545
|
newlinesInside?: ((number | "ignore") | "newlinesBetween");
|
|
@@ -21259,6 +21413,10 @@ export declare const hasOxfmt: ExistChecker;
|
|
|
21259
21413
|
* Check whether Prettier is available in the current project.
|
|
21260
21414
|
*/
|
|
21261
21415
|
export declare const hasPrettier: ExistChecker;
|
|
21416
|
+
/**
|
|
21417
|
+
* Check whether AutoImport is available in the current project.
|
|
21418
|
+
*/
|
|
21419
|
+
export declare const hasAutoImport: ExistChecker;
|
|
21262
21420
|
//#endregion
|
|
21263
21421
|
//#region src/utils/getOverrides.d.ts
|
|
21264
21422
|
/**
|