@2digits/eslint-config 5.1.7 → 5.1.9
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 +206 -158
- package/dist/index.mjs +1 -1
- package/package.json +19 -19
package/dist/index.d.mts
CHANGED
|
@@ -5567,6 +5567,11 @@ interface RuleOptions {
|
|
|
5567
5567
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
5568
5568
|
*/
|
|
5569
5569
|
'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>;
|
|
5570
|
+
/**
|
|
5571
|
+
* enforce either `crypto` or `require("crypto").webcrypto`
|
|
5572
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
5573
|
+
*/
|
|
5574
|
+
'node/prefer-global/crypto'?: Linter.RuleEntry<NodePreferGlobalCrypto>;
|
|
5570
5575
|
/**
|
|
5571
5576
|
* enforce either `process` or `require("process")`
|
|
5572
5577
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
@@ -5582,6 +5587,11 @@ interface RuleOptions {
|
|
|
5582
5587
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
5583
5588
|
*/
|
|
5584
5589
|
'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>;
|
|
5590
|
+
/**
|
|
5591
|
+
* enforce either global timer functions or `require("timers")`
|
|
5592
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
5593
|
+
*/
|
|
5594
|
+
'node/prefer-global/timers'?: Linter.RuleEntry<NodePreferGlobalTimers>;
|
|
5585
5595
|
/**
|
|
5586
5596
|
* enforce either `URL` or `require("url").URL`
|
|
5587
5597
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
@@ -5904,7 +5914,7 @@ interface RuleOptions {
|
|
|
5904
5914
|
*/
|
|
5905
5915
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
5906
5916
|
/**
|
|
5907
|
-
* Prevents
|
|
5917
|
+
* Prevents unintentional '$' sign before expression.
|
|
5908
5918
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
5909
5919
|
*/
|
|
5910
5920
|
'react-extra/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
@@ -6367,6 +6377,11 @@ interface RuleOptions {
|
|
|
6367
6377
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
6368
6378
|
*/
|
|
6369
6379
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
6380
|
+
/**
|
|
6381
|
+
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
6382
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
6383
|
+
*/
|
|
6384
|
+
'react-naming-convention/id-name'?: Linter.RuleEntry<[]>;
|
|
6370
6385
|
/**
|
|
6371
6386
|
* Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
|
|
6372
6387
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
@@ -7539,12 +7554,12 @@ interface RuleOptions {
|
|
|
7539
7554
|
*/
|
|
7540
7555
|
'sonar/no-hardcoded-ip'?: Linter.RuleEntry<[]>;
|
|
7541
7556
|
/**
|
|
7542
|
-
*
|
|
7557
|
+
* Credentials should not be hard-coded
|
|
7543
7558
|
* @see https://sonarsource.github.io/rspec/#/rspec/S2068/javascript
|
|
7544
7559
|
*/
|
|
7545
7560
|
'sonar/no-hardcoded-passwords'?: Linter.RuleEntry<SonarNoHardcodedPasswords>;
|
|
7546
7561
|
/**
|
|
7547
|
-
*
|
|
7562
|
+
* Secrets should not be hard-coded
|
|
7548
7563
|
* @see https://sonarsource.github.io/rspec/#/rspec/S6418/javascript
|
|
7549
7564
|
*/
|
|
7550
7565
|
'sonar/no-hardcoded-secrets'?: Linter.RuleEntry<SonarNoHardcodedSecrets>;
|
|
@@ -8424,6 +8439,11 @@ interface RuleOptions {
|
|
|
8424
8439
|
* @see https://eslint.style/rules/eol-last
|
|
8425
8440
|
*/
|
|
8426
8441
|
'stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>;
|
|
8442
|
+
/**
|
|
8443
|
+
* Enforce consistent line break styles for JSX props
|
|
8444
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
8445
|
+
*/
|
|
8446
|
+
'stylistic/exp-jsx-props-style'?: Linter.RuleEntry<StylisticExpJsxPropsStyle>;
|
|
8427
8447
|
/**
|
|
8428
8448
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
8429
8449
|
* @see https://eslint.style/rules/list-style
|
|
@@ -9523,7 +9543,7 @@ interface RuleOptions {
|
|
|
9523
9543
|
* Disallow default values that will never be used
|
|
9524
9544
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
9525
9545
|
*/
|
|
9526
|
-
'ts/no-useless-default-assignment'?: Linter.RuleEntry<
|
|
9546
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<TsNoUselessDefaultAssignment>;
|
|
9527
9547
|
/**
|
|
9528
9548
|
* Disallow empty exports that don't change anything in a module file
|
|
9529
9549
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -9745,725 +9765,730 @@ interface RuleOptions {
|
|
|
9745
9765
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
9746
9766
|
/**
|
|
9747
9767
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
9748
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
|
|
9749
9769
|
*/
|
|
9750
9770
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
9751
9771
|
/**
|
|
9752
9772
|
* Enforce a specific parameter name in catch clauses.
|
|
9753
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
|
|
9754
9774
|
*/
|
|
9755
9775
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
9756
9776
|
/**
|
|
9757
9777
|
* Enforce consistent assertion style with `node:assert`.
|
|
9758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
|
|
9759
9779
|
*/
|
|
9760
9780
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
9761
9781
|
/**
|
|
9762
9782
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
9763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
|
|
9764
9784
|
*/
|
|
9765
9785
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
9766
9786
|
/**
|
|
9767
9787
|
* Use destructured variables over properties.
|
|
9768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
|
|
9769
9789
|
*/
|
|
9770
9790
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
9771
9791
|
/**
|
|
9772
9792
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
9773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
|
|
9774
9794
|
*/
|
|
9775
9795
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
9776
9796
|
/**
|
|
9777
9797
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
9778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
|
|
9779
9799
|
*/
|
|
9780
9800
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
9781
9801
|
/**
|
|
9782
9802
|
* Move function definitions to the highest possible scope.
|
|
9783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
|
|
9784
9804
|
*/
|
|
9785
9805
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
9786
9806
|
/**
|
|
9787
9807
|
* Enforce correct `Error` subclassing.
|
|
9788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
|
|
9789
9809
|
*/
|
|
9790
9810
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
9791
9811
|
/**
|
|
9792
9812
|
* Enforce no spaces between braces.
|
|
9793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
|
|
9794
9814
|
*/
|
|
9795
9815
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
9796
9816
|
/**
|
|
9797
9817
|
* Enforce passing a `message` value when creating a built-in error.
|
|
9798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
|
|
9799
9819
|
*/
|
|
9800
9820
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
9801
9821
|
/**
|
|
9802
9822
|
* Require escape sequences to use uppercase or lowercase values.
|
|
9803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
|
|
9804
9824
|
*/
|
|
9805
9825
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
9806
9826
|
/**
|
|
9807
9827
|
* Add expiration conditions to TODO comments.
|
|
9808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
|
|
9809
9829
|
*/
|
|
9810
9830
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
9811
9831
|
/**
|
|
9812
9832
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
9813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
|
|
9814
9834
|
*/
|
|
9815
9835
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
9816
9836
|
/**
|
|
9817
9837
|
* Enforce a case style for filenames.
|
|
9818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
|
|
9819
9839
|
*/
|
|
9820
9840
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
9821
9841
|
/**
|
|
9822
9842
|
* Enforce specific import styles per module.
|
|
9823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
|
|
9824
9844
|
*/
|
|
9825
9845
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
9846
|
+
/**
|
|
9847
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
9848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
|
|
9849
|
+
*/
|
|
9850
|
+
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
9826
9851
|
/**
|
|
9827
9852
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
9828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
|
|
9829
9854
|
*/
|
|
9830
9855
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
9831
9856
|
/**
|
|
9832
9857
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
9833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
9834
9859
|
*/
|
|
9835
9860
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
9836
9861
|
/**
|
|
9837
9862
|
* Disallow recursive access to `this` within getters and setters.
|
|
9838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
|
|
9839
9864
|
*/
|
|
9840
9865
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
9841
9866
|
/**
|
|
9842
9867
|
* Disallow anonymous functions and classes as the default export.
|
|
9843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
|
|
9844
9869
|
*/
|
|
9845
9870
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
9846
9871
|
/**
|
|
9847
9872
|
* Prevent passing a function reference directly to iterator methods.
|
|
9848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
|
|
9849
9874
|
*/
|
|
9850
9875
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
9851
9876
|
/**
|
|
9852
9877
|
* Prefer `for…of` over the `forEach` method.
|
|
9853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
|
|
9854
9879
|
*/
|
|
9855
9880
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
9856
9881
|
/**
|
|
9857
9882
|
* Disallow using the `this` argument in array methods.
|
|
9858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
|
|
9859
9884
|
*/
|
|
9860
9885
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
9861
9886
|
/**
|
|
9862
9887
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
9863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
9864
9889
|
* @deprecated
|
|
9865
9890
|
*/
|
|
9866
9891
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
9867
9892
|
/**
|
|
9868
9893
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
9869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
|
|
9870
9895
|
*/
|
|
9871
9896
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
9872
9897
|
/**
|
|
9873
9898
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
9874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
|
|
9875
9900
|
*/
|
|
9876
9901
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
9877
9902
|
/**
|
|
9878
9903
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
9879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
|
|
9880
9905
|
*/
|
|
9881
9906
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
9882
9907
|
/**
|
|
9883
9908
|
* Disallow member access from await expression.
|
|
9884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
|
|
9885
9910
|
*/
|
|
9886
9911
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
9887
9912
|
/**
|
|
9888
9913
|
* Disallow using `await` in `Promise` method parameters.
|
|
9889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
|
|
9890
9915
|
*/
|
|
9891
9916
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
9892
9917
|
/**
|
|
9893
9918
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
9894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
|
|
9895
9920
|
*/
|
|
9896
9921
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
9897
9922
|
/**
|
|
9898
9923
|
* Do not use `document.cookie` directly.
|
|
9899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
|
|
9900
9925
|
*/
|
|
9901
9926
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
9902
9927
|
/**
|
|
9903
9928
|
* Disallow empty files.
|
|
9904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
|
|
9905
9930
|
*/
|
|
9906
9931
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
9907
9932
|
/**
|
|
9908
9933
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
9909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
|
|
9910
9935
|
*/
|
|
9911
9936
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
9912
9937
|
/**
|
|
9913
9938
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
9914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
|
|
9915
9940
|
*/
|
|
9916
9941
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
9917
9942
|
/**
|
|
9918
9943
|
* Disallow immediate mutation after variable assignment.
|
|
9919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
|
|
9920
9945
|
*/
|
|
9921
9946
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
9922
9947
|
/**
|
|
9923
9948
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
9924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
9925
9950
|
* @deprecated
|
|
9926
9951
|
*/
|
|
9927
9952
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
9928
9953
|
/**
|
|
9929
9954
|
* Disallow `instanceof` with built-in objects
|
|
9930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
|
|
9931
9956
|
*/
|
|
9932
9957
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
9933
9958
|
/**
|
|
9934
9959
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
9935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
|
|
9936
9961
|
*/
|
|
9937
9962
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
9938
9963
|
/**
|
|
9939
9964
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
9940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
9941
9966
|
*/
|
|
9942
9967
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
9943
9968
|
/**
|
|
9944
9969
|
* Disallow identifiers starting with `new` or `class`.
|
|
9945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
|
|
9946
9971
|
*/
|
|
9947
9972
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
9948
9973
|
/**
|
|
9949
9974
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
9950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
9951
9976
|
* @deprecated
|
|
9952
9977
|
*/
|
|
9953
9978
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
9954
9979
|
/**
|
|
9955
9980
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
9956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
|
|
9957
9982
|
*/
|
|
9958
9983
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
9959
9984
|
/**
|
|
9960
9985
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
9961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
9962
9987
|
*/
|
|
9963
9988
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
9964
9989
|
/**
|
|
9965
9990
|
* Disallow named usage of default import and export.
|
|
9966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
|
|
9967
9992
|
*/
|
|
9968
9993
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
9969
9994
|
/**
|
|
9970
9995
|
* Disallow negated conditions.
|
|
9971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
|
|
9972
9997
|
*/
|
|
9973
9998
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
9974
9999
|
/**
|
|
9975
10000
|
* Disallow negated expression in equality check.
|
|
9976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
|
|
9977
10002
|
*/
|
|
9978
10003
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
9979
10004
|
/**
|
|
9980
10005
|
* Disallow nested ternary expressions.
|
|
9981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
|
|
9982
10007
|
*/
|
|
9983
10008
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
9984
10009
|
/**
|
|
9985
10010
|
* Disallow `new Array()`.
|
|
9986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
|
|
9987
10012
|
*/
|
|
9988
10013
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
9989
10014
|
/**
|
|
9990
10015
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
9991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
|
|
9992
10017
|
*/
|
|
9993
10018
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
9994
10019
|
/**
|
|
9995
10020
|
* Disallow the use of the `null` literal.
|
|
9996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
|
|
9997
10022
|
*/
|
|
9998
10023
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
9999
10024
|
/**
|
|
10000
10025
|
* Disallow the use of objects as default parameters.
|
|
10001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
|
|
10002
10027
|
*/
|
|
10003
10028
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
10004
10029
|
/**
|
|
10005
10030
|
* Disallow `process.exit()`.
|
|
10006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
|
|
10007
10032
|
*/
|
|
10008
10033
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
10009
10034
|
/**
|
|
10010
10035
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
10011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
10012
10037
|
*/
|
|
10013
10038
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
10014
10039
|
/**
|
|
10015
10040
|
* Disallow classes that only have static members.
|
|
10016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
|
|
10017
10042
|
*/
|
|
10018
10043
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
10019
10044
|
/**
|
|
10020
10045
|
* Disallow `then` property.
|
|
10021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
|
|
10022
10047
|
*/
|
|
10023
10048
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
10024
10049
|
/**
|
|
10025
10050
|
* Disallow assigning `this` to a variable.
|
|
10026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
|
|
10027
10052
|
*/
|
|
10028
10053
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
10029
10054
|
/**
|
|
10030
10055
|
* Disallow comparing `undefined` using `typeof`.
|
|
10031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
|
|
10032
10057
|
*/
|
|
10033
10058
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
10034
10059
|
/**
|
|
10035
10060
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
10036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
10037
10062
|
*/
|
|
10038
10063
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
10039
10064
|
/**
|
|
10040
10065
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
10041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
10042
10067
|
*/
|
|
10043
10068
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
10044
10069
|
/**
|
|
10045
10070
|
* Disallow awaiting non-promise values.
|
|
10046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
|
|
10047
10072
|
*/
|
|
10048
10073
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
10049
10074
|
/**
|
|
10050
10075
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
10051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
10052
10077
|
*/
|
|
10053
10078
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
10054
10079
|
/**
|
|
10055
10080
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
10056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
10057
10082
|
*/
|
|
10058
10083
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
10059
10084
|
/**
|
|
10060
10085
|
* Disallow unreadable array destructuring.
|
|
10061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
10062
10087
|
*/
|
|
10063
10088
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
10064
10089
|
/**
|
|
10065
10090
|
* Disallow unreadable IIFEs.
|
|
10066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
|
|
10067
10092
|
*/
|
|
10068
10093
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
10069
10094
|
/**
|
|
10070
10095
|
* Disallow unused object properties.
|
|
10071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
|
|
10072
10097
|
*/
|
|
10073
10098
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
10074
10099
|
/**
|
|
10075
10100
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
10076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
|
|
10077
10102
|
*/
|
|
10078
10103
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
10079
10104
|
/**
|
|
10080
10105
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
10081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
10082
10107
|
*/
|
|
10083
10108
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
10084
10109
|
/**
|
|
10085
10110
|
* Disallow useless fallback when spreading in object literals.
|
|
10086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
10087
10112
|
*/
|
|
10088
10113
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
10089
10114
|
/**
|
|
10090
10115
|
* Disallow useless array length check.
|
|
10091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
|
|
10092
10117
|
*/
|
|
10093
10118
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
10094
10119
|
/**
|
|
10095
10120
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
10096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
10097
10122
|
*/
|
|
10098
10123
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
10099
10124
|
/**
|
|
10100
10125
|
* Disallow unnecessary spread.
|
|
10101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
|
|
10102
10127
|
*/
|
|
10103
10128
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
10104
10129
|
/**
|
|
10105
10130
|
* Disallow useless case in switch statements.
|
|
10106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
|
|
10107
10132
|
*/
|
|
10108
10133
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
10109
10134
|
/**
|
|
10110
10135
|
* Disallow useless `undefined`.
|
|
10111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
|
|
10112
10137
|
*/
|
|
10113
10138
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
10114
10139
|
/**
|
|
10115
10140
|
* Disallow number literals with zero fractions or dangling dots.
|
|
10116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
|
|
10117
10142
|
*/
|
|
10118
10143
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
10119
10144
|
/**
|
|
10120
10145
|
* Enforce proper case for numeric literals.
|
|
10121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
|
|
10122
10147
|
*/
|
|
10123
10148
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
10124
10149
|
/**
|
|
10125
10150
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
10126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
|
|
10127
10152
|
*/
|
|
10128
10153
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
10129
10154
|
/**
|
|
10130
10155
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
10131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
|
|
10132
10157
|
*/
|
|
10133
10158
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
10134
10159
|
/**
|
|
10135
10160
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
10136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
|
|
10137
10162
|
*/
|
|
10138
10163
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
10139
10164
|
/**
|
|
10140
10165
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
10141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
|
|
10142
10167
|
*/
|
|
10143
10168
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
10144
10169
|
/**
|
|
10145
10170
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
10146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
|
|
10147
10172
|
*/
|
|
10148
10173
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
10149
10174
|
/**
|
|
10150
10175
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
10151
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
|
|
10152
10177
|
*/
|
|
10153
10178
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
10154
10179
|
/**
|
|
10155
10180
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
10156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
|
|
10157
10182
|
*/
|
|
10158
10183
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
10159
10184
|
/**
|
|
10160
10185
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
10161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
|
|
10162
10187
|
*/
|
|
10163
10188
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
10164
10189
|
/**
|
|
10165
10190
|
* Prefer `BigInt` literals over the constructor.
|
|
10166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
|
|
10167
10192
|
*/
|
|
10168
10193
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
10169
10194
|
/**
|
|
10170
10195
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
10171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
10172
10197
|
*/
|
|
10173
10198
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
10174
10199
|
/**
|
|
10175
10200
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
10176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
|
|
10177
10202
|
*/
|
|
10178
10203
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
10179
10204
|
/**
|
|
10180
10205
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
10181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
|
|
10182
10207
|
*/
|
|
10183
10208
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
10184
10209
|
/**
|
|
10185
10210
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
10186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
|
|
10187
10212
|
*/
|
|
10188
10213
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
10189
10214
|
/**
|
|
10190
10215
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
10191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
|
|
10192
10217
|
*/
|
|
10193
10218
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
10194
10219
|
/**
|
|
10195
10220
|
* Prefer default parameters over reassignment.
|
|
10196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
|
|
10197
10222
|
*/
|
|
10198
10223
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
10199
10224
|
/**
|
|
10200
10225
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
10201
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
|
|
10202
10227
|
*/
|
|
10203
10228
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
10204
10229
|
/**
|
|
10205
10230
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
10206
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10231
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
10207
10232
|
*/
|
|
10208
10233
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
10209
10234
|
/**
|
|
10210
10235
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
10211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
|
|
10212
10237
|
*/
|
|
10213
10238
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
10214
10239
|
/**
|
|
10215
10240
|
* Prefer `.textContent` over `.innerText`.
|
|
10216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
10217
10242
|
*/
|
|
10218
10243
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
10219
10244
|
/**
|
|
10220
10245
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
10221
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
|
|
10222
10247
|
*/
|
|
10223
10248
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
10224
10249
|
/**
|
|
10225
10250
|
* Prefer `export…from` when re-exporting.
|
|
10226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
|
|
10227
10252
|
*/
|
|
10228
10253
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
10229
10254
|
/**
|
|
10230
10255
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
10231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
|
|
10232
10257
|
*/
|
|
10233
10258
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
10234
10259
|
/**
|
|
10235
10260
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
10236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
|
|
10237
10262
|
*/
|
|
10238
10263
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
10239
10264
|
/**
|
|
10240
10265
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
10241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
|
|
10242
10267
|
*/
|
|
10243
10268
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
10244
10269
|
/**
|
|
10245
10270
|
* Prefer reading a JSON file as a buffer.
|
|
10246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10271
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
10247
10272
|
*/
|
|
10248
10273
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
10249
10274
|
/**
|
|
10250
10275
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
10251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10276
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
10252
10277
|
*/
|
|
10253
10278
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
10254
10279
|
/**
|
|
10255
10280
|
* Prefer using a logical operator over a ternary.
|
|
10256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10281
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
10257
10282
|
*/
|
|
10258
10283
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
10259
10284
|
/**
|
|
10260
10285
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
10261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10286
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
|
|
10262
10287
|
*/
|
|
10263
10288
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
10264
10289
|
/**
|
|
10265
10290
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
10266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10291
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
|
|
10267
10292
|
*/
|
|
10268
10293
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
10269
10294
|
/**
|
|
10270
10295
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
10271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
10272
10297
|
*/
|
|
10273
10298
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
10274
10299
|
/**
|
|
10275
10300
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
10276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10301
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
|
|
10277
10302
|
*/
|
|
10278
10303
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
10279
10304
|
/**
|
|
10280
10305
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
10281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
|
|
10282
10307
|
*/
|
|
10283
10308
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
10284
10309
|
/**
|
|
10285
10310
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
10286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
10287
10312
|
*/
|
|
10288
10313
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
10289
10314
|
/**
|
|
10290
10315
|
* Prefer negative index over `.length - index` when possible.
|
|
10291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
|
|
10292
10317
|
*/
|
|
10293
10318
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
10294
10319
|
/**
|
|
10295
10320
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
10296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10321
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
|
|
10297
10322
|
*/
|
|
10298
10323
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
10299
10324
|
/**
|
|
10300
10325
|
* Prefer `Number` static properties over global ones.
|
|
10301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10326
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
|
|
10302
10327
|
*/
|
|
10303
10328
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
10304
10329
|
/**
|
|
10305
10330
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
10306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
|
|
10307
10332
|
*/
|
|
10308
10333
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
10309
10334
|
/**
|
|
10310
10335
|
* Prefer omitting the `catch` binding parameter.
|
|
10311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
10312
10337
|
*/
|
|
10313
10338
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
10314
10339
|
/**
|
|
10315
10340
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
10316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
|
|
10317
10342
|
*/
|
|
10318
10343
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
10319
10344
|
/**
|
|
10320
10345
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
10321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
|
|
10322
10347
|
*/
|
|
10323
10348
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
10324
10349
|
/**
|
|
10325
10350
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
10326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
|
|
10327
10352
|
*/
|
|
10328
10353
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
10329
10354
|
/**
|
|
10330
10355
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
10331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10356
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
|
|
10332
10357
|
*/
|
|
10333
10358
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
10334
10359
|
/**
|
|
10335
10360
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
10336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
|
|
10337
10362
|
*/
|
|
10338
10363
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
10339
10364
|
/**
|
|
10340
10365
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
10341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
|
|
10342
10367
|
*/
|
|
10343
10368
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
10344
10369
|
/**
|
|
10345
10370
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
10346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10371
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
|
|
10347
10372
|
*/
|
|
10348
10373
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
10349
10374
|
/**
|
|
10350
10375
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
10351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
|
|
10352
10377
|
*/
|
|
10353
10378
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
10354
10379
|
/**
|
|
10355
10380
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
10356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
|
|
10357
10382
|
*/
|
|
10358
10383
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
10359
10384
|
/**
|
|
10360
10385
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
10361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
|
|
10362
10387
|
*/
|
|
10363
10388
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
10364
10389
|
/**
|
|
10365
10390
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
10366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
|
|
10367
10392
|
*/
|
|
10368
10393
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
10369
10394
|
/**
|
|
10370
10395
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
10371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
|
|
10372
10397
|
*/
|
|
10373
10398
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
10374
10399
|
/**
|
|
10375
10400
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
10376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
10377
10402
|
*/
|
|
10378
10403
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
10379
10404
|
/**
|
|
10380
10405
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
10381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
10382
10407
|
*/
|
|
10383
10408
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
10384
10409
|
/**
|
|
10385
10410
|
* Prefer using `structuredClone` to create a deep clone.
|
|
10386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
|
|
10387
10412
|
*/
|
|
10388
10413
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
10389
10414
|
/**
|
|
10390
10415
|
* Prefer `switch` over multiple `else-if`.
|
|
10391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
|
|
10392
10417
|
*/
|
|
10393
10418
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
10394
10419
|
/**
|
|
10395
10420
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
10396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
|
|
10397
10422
|
*/
|
|
10398
10423
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
10399
10424
|
/**
|
|
10400
10425
|
* Prefer top-level await over top-level promises and async function calls.
|
|
10401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
|
|
10402
10427
|
*/
|
|
10403
10428
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
10404
10429
|
/**
|
|
10405
10430
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
10406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
|
|
10407
10432
|
*/
|
|
10408
10433
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
10409
10434
|
/**
|
|
10410
10435
|
* Prevent abbreviations.
|
|
10411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10436
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
|
|
10412
10437
|
*/
|
|
10413
10438
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
10414
10439
|
/**
|
|
10415
10440
|
* Enforce consistent relative URL style.
|
|
10416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10441
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
|
|
10417
10442
|
*/
|
|
10418
10443
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
10419
10444
|
/**
|
|
10420
10445
|
* Enforce using the separator argument with `Array#join()`.
|
|
10421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10446
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
|
|
10422
10447
|
*/
|
|
10423
10448
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
10424
10449
|
/**
|
|
10425
10450
|
* Require non-empty module attributes for imports and exports
|
|
10426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
|
|
10427
10452
|
*/
|
|
10428
10453
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
10429
10454
|
/**
|
|
10430
10455
|
* Require non-empty specifier list in import and export statements.
|
|
10431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10456
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
|
|
10432
10457
|
*/
|
|
10433
10458
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
10434
10459
|
/**
|
|
10435
10460
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
10436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
10437
10462
|
*/
|
|
10438
10463
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
10439
10464
|
/**
|
|
10440
10465
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
10441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
|
|
10442
10467
|
*/
|
|
10443
10468
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
10444
10469
|
/**
|
|
10445
10470
|
* Enforce better string content.
|
|
10446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
|
|
10447
10472
|
*/
|
|
10448
10473
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
10449
10474
|
/**
|
|
10450
10475
|
* Enforce consistent brace style for `case` clauses.
|
|
10451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
|
|
10452
10477
|
*/
|
|
10453
10478
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
10454
10479
|
/**
|
|
10455
10480
|
* Fix whitespace-insensitive template indentation.
|
|
10456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
|
|
10457
10482
|
*/
|
|
10458
10483
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
10459
10484
|
/**
|
|
10460
10485
|
* Enforce consistent case for text encoding identifiers.
|
|
10461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
|
|
10462
10487
|
*/
|
|
10463
10488
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
10464
10489
|
/**
|
|
10465
10490
|
* Require `new` when creating an error.
|
|
10466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
|
|
10467
10492
|
*/
|
|
10468
10493
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
10469
10494
|
/**
|
|
@@ -13354,10 +13379,12 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
|
13354
13379
|
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.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.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "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.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "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.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.diffieHellman" | "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.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.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.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.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.ClientRequest" | "http.Server" | "http.ServerResponse" | "http.IncomingMessage" | "http.OutgoingMessage" | "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.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.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.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.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "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" | "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.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.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" | "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" | "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.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "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")[];
|
|
13355
13380
|
}]; // ----- node/prefer-global/buffer -----
|
|
13356
13381
|
type NodePreferGlobalBuffer = [] | [("always" | "never")]; // ----- node/prefer-global/console -----
|
|
13357
|
-
type NodePreferGlobalConsole = [] | [("always" | "never")]; // ----- node/prefer-global/
|
|
13382
|
+
type NodePreferGlobalConsole = [] | [("always" | "never")]; // ----- node/prefer-global/crypto -----
|
|
13383
|
+
type NodePreferGlobalCrypto = [] | [("always" | "never")]; // ----- node/prefer-global/process -----
|
|
13358
13384
|
type NodePreferGlobalProcess = [] | [("always" | "never")]; // ----- node/prefer-global/text-decoder -----
|
|
13359
13385
|
type NodePreferGlobalTextDecoder = [] | [("always" | "never")]; // ----- node/prefer-global/text-encoder -----
|
|
13360
|
-
type NodePreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- node/prefer-global/
|
|
13386
|
+
type NodePreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- node/prefer-global/timers -----
|
|
13387
|
+
type NodePreferGlobalTimers = [] | [("always" | "never")]; // ----- node/prefer-global/url -----
|
|
13361
13388
|
type NodePreferGlobalUrl = [] | [("always" | "never")]; // ----- node/prefer-global/url-search-params -----
|
|
13362
13389
|
type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")]; // ----- node/prefer-node-protocol -----
|
|
13363
13390
|
type NodePreferNodeProtocol = [] | [{
|
|
@@ -14112,15 +14139,24 @@ type StylisticCurlyNewline = [] | [(("always" | "never") | {
|
|
|
14112
14139
|
consistent?: boolean;
|
|
14113
14140
|
})]; // ----- stylistic/dot-location -----
|
|
14114
14141
|
type StylisticDotLocation = [] | [("object" | "property")]; // ----- stylistic/eol-last -----
|
|
14115
|
-
type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- stylistic/exp-
|
|
14142
|
+
type StylisticEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- stylistic/exp-jsx-props-style -----
|
|
14143
|
+
type StylisticExpJsxPropsStyle = [] | [{
|
|
14144
|
+
singleLine?: {
|
|
14145
|
+
maxItems?: number;
|
|
14146
|
+
};
|
|
14147
|
+
multiLine?: {
|
|
14148
|
+
minItems?: number;
|
|
14149
|
+
maxItemsPerLine?: number;
|
|
14150
|
+
};
|
|
14151
|
+
}]; // ----- stylistic/exp-list-style -----
|
|
14116
14152
|
type StylisticExpListStyle = [] | [{
|
|
14117
14153
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
14118
14154
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
14119
14155
|
overrides?: {
|
|
14156
|
+
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
14120
14157
|
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
14121
14158
|
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
14122
14159
|
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
14123
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
14124
14160
|
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14125
14161
|
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
14126
14162
|
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
@@ -14128,21 +14164,22 @@ type StylisticExpListStyle = [] | [{
|
|
|
14128
14164
|
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
14129
14165
|
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
14130
14166
|
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14131
|
-
|
|
14167
|
+
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
14132
14168
|
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
14169
|
+
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
14170
|
+
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14171
|
+
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14133
14172
|
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14134
14173
|
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14135
14174
|
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
14136
14175
|
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
14176
|
+
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
14137
14177
|
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
14138
14178
|
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
14139
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
14140
14179
|
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
14141
14180
|
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
14142
14181
|
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
14143
14182
|
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
14144
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14145
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
14146
14183
|
};
|
|
14147
14184
|
}];
|
|
14148
14185
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -15975,7 +16012,10 @@ type TsNoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
15975
16012
|
ignoreTypeReferences?: boolean;
|
|
15976
16013
|
typedefs?: boolean;
|
|
15977
16014
|
variables?: boolean;
|
|
15978
|
-
})]; // ----- ts/no-
|
|
16015
|
+
})]; // ----- ts/no-useless-default-assignment -----
|
|
16016
|
+
type TsNoUselessDefaultAssignment = [] | [{
|
|
16017
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
16018
|
+
}]; // ----- ts/no-var-requires -----
|
|
15979
16019
|
type TsNoVarRequires = [] | [{
|
|
15980
16020
|
allow?: string[];
|
|
15981
16021
|
}]; // ----- ts/only-throw-error -----
|
|
@@ -16226,7 +16266,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
16226
16266
|
}
|
|
16227
16267
|
interface _UnicornImportStyle_BooleanObject {
|
|
16228
16268
|
[k: string]: boolean | undefined;
|
|
16229
|
-
} // ----- unicorn/
|
|
16269
|
+
} // ----- unicorn/isolated-functions -----
|
|
16270
|
+
type UnicornIsolatedFunctions = [] | [{
|
|
16271
|
+
overrideGlobals?: {
|
|
16272
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
|
|
16273
|
+
};
|
|
16274
|
+
functions?: string[];
|
|
16275
|
+
selectors?: string[];
|
|
16276
|
+
comments?: string[];
|
|
16277
|
+
}]; // ----- unicorn/no-array-reduce -----
|
|
16230
16278
|
type UnicornNoArrayReduce = [] | [{
|
|
16231
16279
|
allowSimpleOperations?: boolean;
|
|
16232
16280
|
}]; // ----- unicorn/no-array-reverse -----
|