@zinkawaii/eslint-config 0.5.3 → 0.5.4
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 +2293 -527
- package/dist/index.mjs +416 -162
- package/package.json +21 -13
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
|
4
4
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
5
5
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
6
6
|
import { Options } from "eslint-processor-vue-blocks";
|
|
7
|
-
//#region ../../node_modules/.pnpm/@antfu+eslint-config@9.
|
|
7
|
+
//#region ../../node_modules/.pnpm/@antfu+eslint-config@9.5.1_patch_hash=9dc13306b59c15d8afccf94fd967537cd52021e0cc6b5f7a7_82aa99e15cdfa9ad8c9d1b570c3cb2c2/node_modules/@antfu/eslint-config/dist/index.d.mts
|
|
8
8
|
//#region src/typegen.d.ts
|
|
9
9
|
interface RuleOptions {
|
|
10
10
|
/**
|
|
@@ -381,7 +381,7 @@ interface RuleOptions {
|
|
|
381
381
|
* Ensures components do not opt out of the default `ChangeDetectionStrategy.OnPush` change detection strategy
|
|
382
382
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md
|
|
383
383
|
*/
|
|
384
|
-
'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<
|
|
384
|
+
'angular/prefer-on-push-component-change-detection'?: Linter.RuleEntry<AngularPreferOnPushComponentChangeDetection>;
|
|
385
385
|
/**
|
|
386
386
|
* Use `OutputEmitterRef` instead of `@Output()`
|
|
387
387
|
* @see https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-emitter-ref.md
|
|
@@ -1098,6 +1098,11 @@ interface RuleOptions {
|
|
|
1098
1098
|
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
|
|
1099
1099
|
*/
|
|
1100
1100
|
'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Avoid using TypeScript's export aliases.
|
|
1103
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/export-aliases.md
|
|
1104
|
+
*/
|
|
1105
|
+
'erasable-syntax-only/export-aliases'?: Linter.RuleEntry<[]>;
|
|
1101
1106
|
/**
|
|
1102
1107
|
* Avoid using TypeScript's import aliases.
|
|
1103
1108
|
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
|
|
@@ -1486,6 +1491,10 @@ interface RuleOptions {
|
|
|
1486
1491
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
|
|
1487
1492
|
*/
|
|
1488
1493
|
'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
|
|
1496
|
+
*/
|
|
1497
|
+
'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
|
|
1489
1498
|
/**
|
|
1490
1499
|
* Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
|
|
1491
1500
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
|
|
@@ -3158,7 +3167,7 @@ interface RuleOptions {
|
|
|
3158
3167
|
* Disallow unmodified loop conditions
|
|
3159
3168
|
* @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
|
|
3160
3169
|
*/
|
|
3161
|
-
'no-unmodified-loop-condition'?: Linter.RuleEntry<
|
|
3170
|
+
'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
|
|
3162
3171
|
/**
|
|
3163
3172
|
* Disallow ternary operators when simpler alternatives exist
|
|
3164
3173
|
* @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
|
|
@@ -3372,7 +3381,7 @@ interface RuleOptions {
|
|
|
3372
3381
|
*/
|
|
3373
3382
|
'node/no-new-require'?: Linter.RuleEntry<[]>;
|
|
3374
3383
|
/**
|
|
3375
|
-
* disallow string concatenation with `__dirname` and `
|
|
3384
|
+
* disallow string concatenation with `__dirname`, `__filename`, and `import.meta` paths
|
|
3376
3385
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
|
|
3377
3386
|
*/
|
|
3378
3387
|
'node/no-path-concat'?: Linter.RuleEntry<[]>;
|
|
@@ -3481,11 +3490,21 @@ interface RuleOptions {
|
|
|
3481
3490
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
|
|
3482
3491
|
*/
|
|
3483
3492
|
'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>;
|
|
3493
|
+
/**
|
|
3494
|
+
* enforce using `node:assert/strict` instead of `node:assert`.
|
|
3495
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-import/assert-strict.md
|
|
3496
|
+
*/
|
|
3497
|
+
'node/prefer-import/assert-strict'?: Linter.RuleEntry<[]>;
|
|
3484
3498
|
/**
|
|
3485
3499
|
* enforce using the `node:` protocol when importing Node.js builtin modules.
|
|
3486
3500
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
|
|
3487
3501
|
*/
|
|
3488
3502
|
'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>;
|
|
3503
|
+
/**
|
|
3504
|
+
* enforce using `process.getBuiltinModule()` to load Node.js built-in modules
|
|
3505
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-process-get-builtin-module.md
|
|
3506
|
+
*/
|
|
3507
|
+
'node/prefer-process-get-builtin-module'?: Linter.RuleEntry<NodePreferProcessGetBuiltinModule>;
|
|
3489
3508
|
/**
|
|
3490
3509
|
* enforce `require("dns").promises`
|
|
3491
3510
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
|
|
@@ -3700,6 +3719,11 @@ interface RuleOptions {
|
|
|
3700
3719
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
3701
3720
|
*/
|
|
3702
3721
|
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
3722
|
+
/**
|
|
3723
|
+
* Require blank lines around multi-line entries in `pnpm-workspace.yaml`, and disallow them between single-line entries
|
|
3724
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-blank-lines.test.ts
|
|
3725
|
+
*/
|
|
3726
|
+
'pnpm/yaml-blank-lines'?: Linter.RuleEntry<[]>;
|
|
3703
3727
|
/**
|
|
3704
3728
|
* Enforce settings in `pnpm-workspace.yaml`
|
|
3705
3729
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
@@ -4793,287 +4817,1778 @@ interface RuleOptions {
|
|
|
4793
4817
|
* enforce using `\d`
|
|
4794
4818
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
|
|
4795
4819
|
*/
|
|
4796
|
-
'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>;
|
|
4820
|
+
'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>;
|
|
4821
|
+
/**
|
|
4822
|
+
* enforces escape of replacement `$` character (`$$`).
|
|
4823
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
|
|
4824
|
+
*/
|
|
4825
|
+
'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>;
|
|
4826
|
+
/**
|
|
4827
|
+
* prefer lookarounds over capturing group that do not replace
|
|
4828
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
|
|
4829
|
+
*/
|
|
4830
|
+
'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>;
|
|
4831
|
+
/**
|
|
4832
|
+
* enforce using named backreferences
|
|
4833
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
|
|
4834
|
+
*/
|
|
4835
|
+
'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>;
|
|
4836
|
+
/**
|
|
4837
|
+
* enforce using named capture groups
|
|
4838
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
|
|
4839
|
+
*/
|
|
4840
|
+
'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>;
|
|
4841
|
+
/**
|
|
4842
|
+
* enforce using named replacement
|
|
4843
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
|
|
4844
|
+
*/
|
|
4845
|
+
'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>;
|
|
4846
|
+
/**
|
|
4847
|
+
* enforce using `+` quantifier
|
|
4848
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
|
|
4849
|
+
*/
|
|
4850
|
+
'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>;
|
|
4851
|
+
/**
|
|
4852
|
+
* prefer predefined assertion over equivalent lookarounds
|
|
4853
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
|
|
4854
|
+
*/
|
|
4855
|
+
'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>;
|
|
4856
|
+
/**
|
|
4857
|
+
* enforce using quantifier
|
|
4858
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
4859
|
+
*/
|
|
4860
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>;
|
|
4861
|
+
/**
|
|
4862
|
+
* enforce using `?` quantifier
|
|
4863
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
4864
|
+
*/
|
|
4865
|
+
'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>;
|
|
4866
|
+
/**
|
|
4867
|
+
* enforce using character class range
|
|
4868
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
|
|
4869
|
+
*/
|
|
4870
|
+
'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>;
|
|
4871
|
+
/**
|
|
4872
|
+
* enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
|
|
4873
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
|
|
4874
|
+
*/
|
|
4875
|
+
'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>;
|
|
4876
|
+
/**
|
|
4877
|
+
* enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
|
|
4878
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
|
|
4879
|
+
*/
|
|
4880
|
+
'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
4881
|
+
/**
|
|
4882
|
+
* enforce using result array `groups`
|
|
4883
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
|
|
4884
|
+
*/
|
|
4885
|
+
'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>;
|
|
4886
|
+
/**
|
|
4887
|
+
* prefer character class set operations instead of lookarounds
|
|
4888
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
|
|
4889
|
+
*/
|
|
4890
|
+
'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>;
|
|
4891
|
+
/**
|
|
4892
|
+
* enforce using `*` quantifier
|
|
4893
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
|
|
4894
|
+
*/
|
|
4895
|
+
'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>;
|
|
4896
|
+
/**
|
|
4897
|
+
* enforce use of unicode codepoint escapes
|
|
4898
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
|
|
4899
|
+
*/
|
|
4900
|
+
'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>;
|
|
4901
|
+
/**
|
|
4902
|
+
* enforce using `\w`
|
|
4903
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
|
|
4904
|
+
*/
|
|
4905
|
+
'regexp/prefer-w'?: Linter.RuleEntry<[]>;
|
|
4906
|
+
/**
|
|
4907
|
+
* enforce the use of the `u` flag
|
|
4908
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
|
|
4909
|
+
*/
|
|
4910
|
+
'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>;
|
|
4911
|
+
/**
|
|
4912
|
+
* enforce the use of the `v` flag
|
|
4913
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
|
|
4914
|
+
*/
|
|
4915
|
+
'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>;
|
|
4916
|
+
/**
|
|
4917
|
+
* require simplify set operations
|
|
4918
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
|
|
4919
|
+
*/
|
|
4920
|
+
'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>;
|
|
4921
|
+
/**
|
|
4922
|
+
* sort alternatives if order doesn't matter
|
|
4923
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
|
|
4924
|
+
*/
|
|
4925
|
+
'regexp/sort-alternatives'?: Linter.RuleEntry<[]>;
|
|
4926
|
+
/**
|
|
4927
|
+
* enforces elements order in character class
|
|
4928
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
|
|
4929
|
+
*/
|
|
4930
|
+
'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>;
|
|
4931
|
+
/**
|
|
4932
|
+
* require regex flags to be sorted
|
|
4933
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
|
|
4934
|
+
*/
|
|
4935
|
+
'regexp/sort-flags'?: Linter.RuleEntry<[]>;
|
|
4936
|
+
/**
|
|
4937
|
+
* disallow not strictly valid regular expressions
|
|
4938
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
|
|
4939
|
+
*/
|
|
4940
|
+
'regexp/strict'?: Linter.RuleEntry<[]>;
|
|
4941
|
+
/**
|
|
4942
|
+
* enforce consistent usage of unicode escape or unicode codepoint escape
|
|
4943
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
|
|
4944
|
+
*/
|
|
4945
|
+
'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>;
|
|
4946
|
+
/**
|
|
4947
|
+
* enforce consistent naming of unicode properties
|
|
4948
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
|
|
4949
|
+
*/
|
|
4950
|
+
'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>;
|
|
4951
|
+
/**
|
|
4952
|
+
* use the `i` flag if it simplifies the pattern
|
|
4953
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
|
|
4954
|
+
*/
|
|
4955
|
+
'regexp/use-ignore-case'?: Linter.RuleEntry<[]>;
|
|
4956
|
+
/**
|
|
4957
|
+
* Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
|
|
4958
|
+
* @see https://eslint.org/docs/latest/rules/require-atomic-updates
|
|
4959
|
+
*/
|
|
4960
|
+
'require-atomic-updates'?: Linter.RuleEntry<RequireAtomicUpdates>;
|
|
4961
|
+
/**
|
|
4962
|
+
* Disallow async functions which have no `await` expression
|
|
4963
|
+
* @see https://eslint.org/docs/latest/rules/require-await
|
|
4964
|
+
*/
|
|
4965
|
+
'require-await'?: Linter.RuleEntry<[]>;
|
|
4966
|
+
/**
|
|
4967
|
+
* Enforce the use of `u` or `v` flag on regular expressions
|
|
4968
|
+
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
4969
|
+
*/
|
|
4970
|
+
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>;
|
|
4971
|
+
/**
|
|
4972
|
+
* Require generator functions to contain `yield`
|
|
4973
|
+
* @see https://eslint.org/docs/latest/rules/require-yield
|
|
4974
|
+
*/
|
|
4975
|
+
'require-yield'?: Linter.RuleEntry<[]>;
|
|
4976
|
+
/**
|
|
4977
|
+
* Enforce spacing between rest and spread operators and their expressions
|
|
4978
|
+
* @see https://eslint.org/docs/latest/rules/rest-spread-spacing
|
|
4979
|
+
* @deprecated
|
|
4980
|
+
*/
|
|
4981
|
+
'rest-spread-spacing'?: Linter.RuleEntry<RestSpreadSpacing>;
|
|
4982
|
+
/**
|
|
4983
|
+
* Require or disallow semicolons instead of ASI
|
|
4984
|
+
* @see https://eslint.org/docs/latest/rules/semi
|
|
4985
|
+
* @deprecated
|
|
4986
|
+
*/
|
|
4987
|
+
'semi'?: Linter.RuleEntry<Semi>;
|
|
4988
|
+
/**
|
|
4989
|
+
* Enforce consistent spacing before and after semicolons
|
|
4990
|
+
* @see https://eslint.org/docs/latest/rules/semi-spacing
|
|
4991
|
+
* @deprecated
|
|
4992
|
+
*/
|
|
4993
|
+
'semi-spacing'?: Linter.RuleEntry<SemiSpacing>;
|
|
4994
|
+
/**
|
|
4995
|
+
* Enforce location of semicolons
|
|
4996
|
+
* @see https://eslint.org/docs/latest/rules/semi-style
|
|
4997
|
+
* @deprecated
|
|
4998
|
+
*/
|
|
4999
|
+
'semi-style'?: Linter.RuleEntry<SemiStyle>;
|
|
5000
|
+
/**
|
|
5001
|
+
* Limit comments by word count.
|
|
5002
|
+
*/
|
|
5003
|
+
'slop/max-comment-length'?: Linter.RuleEntry<SlopMaxCommentLength>;
|
|
5004
|
+
/**
|
|
5005
|
+
* Disallow chains of TypeScript type assertions.
|
|
5006
|
+
*/
|
|
5007
|
+
'slop/no-chained-type-assertions'?: Linter.RuleEntry<SlopNoChainedTypeAssertions>;
|
|
5008
|
+
/**
|
|
5009
|
+
* Disallow em dashes in source text.
|
|
5010
|
+
*/
|
|
5011
|
+
'slop/no-em-dash'?: Linter.RuleEntry<SlopNoEmDash>;
|
|
5012
|
+
/**
|
|
5013
|
+
* Disallow inflated vocabulary in comments.
|
|
5014
|
+
*/
|
|
5015
|
+
'slop/no-jargon'?: Linter.RuleEntry<SlopNoJargon>;
|
|
5016
|
+
/**
|
|
5017
|
+
* Disallow low-use top-level forwarding and property-access functions.
|
|
5018
|
+
*/
|
|
5019
|
+
'slop/no-trivial-functions'?: Linter.RuleEntry<SlopNoTrivialFunctions>;
|
|
5020
|
+
/**
|
|
5021
|
+
* Disallow type aliases that resolve only to a primitive or unknown.
|
|
5022
|
+
*/
|
|
5023
|
+
'slop/no-trivial-type-aliases'?: Linter.RuleEntry<SlopNoTrivialTypeAliases>;
|
|
5024
|
+
/**
|
|
5025
|
+
* Require /** *\/ rather than // for the comment documenting an export or member.
|
|
5026
|
+
*/
|
|
5027
|
+
'slop/prefer-jsdoc'?: Linter.RuleEntry<SlopPreferJsdoc>;
|
|
5028
|
+
/**
|
|
5029
|
+
* Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX.
|
|
5030
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/components-return-once.md
|
|
5031
|
+
*/
|
|
5032
|
+
'solid/components-return-once'?: Linter.RuleEntry<[]>;
|
|
5033
|
+
/**
|
|
5034
|
+
* Enforce naming DOM element event handlers consistently and prevent Solid's analysis from misunderstanding whether a prop should be an event handler.
|
|
5035
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/event-handlers.md
|
|
5036
|
+
*/
|
|
5037
|
+
'solid/event-handlers'?: Linter.RuleEntry<SolidEventHandlers>;
|
|
5038
|
+
/**
|
|
5039
|
+
* Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store".
|
|
5040
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/imports.md
|
|
5041
|
+
*/
|
|
5042
|
+
'solid/imports'?: Linter.RuleEntry<[]>;
|
|
5043
|
+
/**
|
|
5044
|
+
* Disallow passing the same prop twice in JSX.
|
|
5045
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-no-duplicate-props.md
|
|
5046
|
+
*/
|
|
5047
|
+
'solid/jsx-no-duplicate-props'?: Linter.RuleEntry<SolidJsxNoDuplicateProps>;
|
|
5048
|
+
/**
|
|
5049
|
+
* Disallow javascript: URLs.
|
|
5050
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-no-script-url.md
|
|
5051
|
+
*/
|
|
5052
|
+
'solid/jsx-no-script-url'?: Linter.RuleEntry<[]>;
|
|
5053
|
+
/**
|
|
5054
|
+
* Disallow references to undefined variables in JSX. Handles custom directives.
|
|
5055
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-no-undef.md
|
|
5056
|
+
*/
|
|
5057
|
+
'solid/jsx-no-undef'?: Linter.RuleEntry<SolidJsxNoUndef>;
|
|
5058
|
+
/**
|
|
5059
|
+
* Prevent variables used in JSX from being marked as unused.
|
|
5060
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-uses-vars.md
|
|
5061
|
+
*/
|
|
5062
|
+
'solid/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
5063
|
+
/**
|
|
5064
|
+
* Disallow passing uncalled signal accessors or other functions as value-typed DOM element attributes.
|
|
5065
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-accessor-as-prop.md
|
|
5066
|
+
*/
|
|
5067
|
+
'solid/no-accessor-as-prop'?: Linter.RuleEntry<[]>;
|
|
5068
|
+
/**
|
|
5069
|
+
* Disallow usage of type-unsafe event handlers.
|
|
5070
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
|
|
5071
|
+
*/
|
|
5072
|
+
'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
|
|
5073
|
+
/**
|
|
5074
|
+
* Disallow browser-only globals inside server functions, which run exclusively on the server.
|
|
5075
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
|
|
5076
|
+
*/
|
|
5077
|
+
'solid/no-browser-globals-in-server-function'?: Linter.RuleEntry<[]>;
|
|
5078
|
+
/**
|
|
5079
|
+
* Disallow destructuring props. In Solid, props must be used with property accesses (`props.foo`) to preserve reactivity. This rule only tracks destructuring in the parameter list.
|
|
5080
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-destructure.md
|
|
5081
|
+
*/
|
|
5082
|
+
'solid/no-destructure'?: Linter.RuleEntry<[]>;
|
|
5083
|
+
/**
|
|
5084
|
+
* Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities.
|
|
5085
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-innerhtml.md
|
|
5086
|
+
*/
|
|
5087
|
+
'solid/no-innerhtml'?: Linter.RuleEntry<SolidNoInnerhtml>;
|
|
5088
|
+
/**
|
|
5089
|
+
* Disallow server functions from capturing variables in enclosing non-module scopes, mirroring the compiler's build-time validation.
|
|
5090
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-invalid-server-capture.md
|
|
5091
|
+
*/
|
|
5092
|
+
'solid/no-invalid-server-capture'?: Linter.RuleEntry<[]>;
|
|
5093
|
+
/**
|
|
5094
|
+
* Disallow reactive primitives at module scope, where state is shared across SSR requests.
|
|
5095
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-module-scope-reactive-primitive.md
|
|
5096
|
+
*/
|
|
5097
|
+
'solid/no-module-scope-reactive-primitive'?: Linter.RuleEntry<[]>;
|
|
5098
|
+
/**
|
|
5099
|
+
* Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them.
|
|
5100
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-proxy-apis.md
|
|
5101
|
+
*/
|
|
5102
|
+
'solid/no-proxy-apis'?: Linter.RuleEntry<[]>;
|
|
5103
|
+
/**
|
|
5104
|
+
* Disallow usage of dependency arrays in `createEffect` and `createMemo`.
|
|
5105
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-react-deps.md
|
|
5106
|
+
*/
|
|
5107
|
+
'solid/no-react-deps'?: Linter.RuleEntry<[]>;
|
|
5108
|
+
/**
|
|
5109
|
+
* Disallow usage of React-specific `className`/`htmlFor` props, which were deprecated in v1.4.0.
|
|
5110
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-react-specific-props.md
|
|
5111
|
+
*/
|
|
5112
|
+
'solid/no-react-specific-props'?: Linter.RuleEntry<[]>;
|
|
5113
|
+
/**
|
|
5114
|
+
* Disallow restating a prop or option value that is already the default.
|
|
5115
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-restated-default-options.md
|
|
5116
|
+
*/
|
|
5117
|
+
'solid/no-restated-default-options'?: Linter.RuleEntry<[]>;
|
|
5118
|
+
/**
|
|
5119
|
+
* Require the two-argument `createEffect(compute, effect)` form used by Solid 2.0.
|
|
5120
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
|
|
5121
|
+
*/
|
|
5122
|
+
'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
|
|
5123
|
+
/**
|
|
5124
|
+
* Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
|
|
5125
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
|
|
5126
|
+
*/
|
|
5127
|
+
'solid/no-unknown-namespaces'?: Linter.RuleEntry<SolidNoUnknownNamespaces>;
|
|
5128
|
+
/**
|
|
5129
|
+
* Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.
|
|
5130
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-classlist.md
|
|
5131
|
+
* @deprecated
|
|
5132
|
+
*/
|
|
5133
|
+
'solid/prefer-classlist'?: Linter.RuleEntry<SolidPreferClasslist>;
|
|
5134
|
+
/**
|
|
5135
|
+
* Enforce using Solid's `<For />` component for mapping an array to JSX elements.
|
|
5136
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-for.md
|
|
5137
|
+
*/
|
|
5138
|
+
'solid/prefer-for'?: Linter.RuleEntry<[]>;
|
|
5139
|
+
/**
|
|
5140
|
+
* Enforce running side-effectful setup (timers, global listeners, observers) inside `onSettled` instead of the component body.
|
|
5141
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-onSettled-for-side-effects.md
|
|
5142
|
+
*/
|
|
5143
|
+
'solid/prefer-onSettled-for-side-effects'?: Linter.RuleEntry<[]>;
|
|
5144
|
+
/**
|
|
5145
|
+
* Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only.
|
|
5146
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-show.md
|
|
5147
|
+
*/
|
|
5148
|
+
'solid/prefer-show'?: Linter.RuleEntry<[]>;
|
|
5149
|
+
/**
|
|
5150
|
+
* Enforce using the structured array/object forms of the `class` prop over manually-built class strings.
|
|
5151
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-structured-class.md
|
|
5152
|
+
*/
|
|
5153
|
+
'solid/prefer-structured-class'?: Linter.RuleEntry<[]>;
|
|
5154
|
+
/**
|
|
5155
|
+
* Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected.
|
|
5156
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/reactivity.md
|
|
5157
|
+
*/
|
|
5158
|
+
'solid/reactivity'?: Linter.RuleEntry<SolidReactivity>;
|
|
5159
|
+
/**
|
|
5160
|
+
* Disallow Solid 1.x APIs that were removed or renamed in Solid 2.0, with migration guidance.
|
|
5161
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/removed-api.md
|
|
5162
|
+
*/
|
|
5163
|
+
'solid/removed-api'?: Linter.RuleEntry<[]>;
|
|
5164
|
+
/**
|
|
5165
|
+
* Require server functions to be async, matching their client-side contract.
|
|
5166
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/require-async-server-function.md
|
|
5167
|
+
*/
|
|
5168
|
+
'solid/require-async-server-function'?: Linter.RuleEntry<[]>;
|
|
5169
|
+
/**
|
|
5170
|
+
* Disallow extra closing tags for components without children.
|
|
5171
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/self-closing-comp.md
|
|
5172
|
+
*/
|
|
5173
|
+
'solid/self-closing-comp'?: Linter.RuleEntry<SolidSelfClosingComp>;
|
|
5174
|
+
/**
|
|
5175
|
+
* Require CSS properties in the `style` prop to be valid and kebab-cased (ex. 'font-size'), not camel-cased (ex. 'fontSize') like in React, and that property values with dimensions are strings, not numbers with implicit 'px' units.
|
|
5176
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/style-prop.md
|
|
5177
|
+
*/
|
|
5178
|
+
'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>;
|
|
5179
|
+
/**
|
|
5180
|
+
* Enforce that "use server" directives are placed where the compiler honors them, and that module-level directive files export working server functions.
|
|
5181
|
+
* @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/valid-use-server.md
|
|
5182
|
+
*/
|
|
5183
|
+
'solid/valid-use-server'?: Linter.RuleEntry<SolidValidUseServer>;
|
|
5184
|
+
/**
|
|
5185
|
+
* Alternatives in regular expressions should be grouped when used with anchors
|
|
5186
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5850/javascript
|
|
5187
|
+
*/
|
|
5188
|
+
'sonarjs/anchor-precedence'?: Linter.RuleEntry<[]>;
|
|
5189
|
+
/**
|
|
5190
|
+
* Arguments to built-in functions should match documented types
|
|
5191
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3782/javascript
|
|
5192
|
+
*/
|
|
5193
|
+
'sonarjs/argument-type'?: Linter.RuleEntry<[]>;
|
|
5194
|
+
/**
|
|
5195
|
+
* Parameters should be passed in the correct order
|
|
5196
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2234/javascript
|
|
5197
|
+
*/
|
|
5198
|
+
'sonarjs/arguments-order'?: Linter.RuleEntry<[]>;
|
|
5199
|
+
/**
|
|
5200
|
+
* "arguments" should not be accessed directly
|
|
5201
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3513/javascript
|
|
5202
|
+
*/
|
|
5203
|
+
'sonarjs/arguments-usage'?: Linter.RuleEntry<[]>;
|
|
5204
|
+
/**
|
|
5205
|
+
* Callbacks of array methods should have return statements
|
|
5206
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3796/javascript
|
|
5207
|
+
*/
|
|
5208
|
+
'sonarjs/array-callback-without-return'?: Linter.RuleEntry<[]>;
|
|
5209
|
+
/**
|
|
5210
|
+
* Array constructors should not be used
|
|
5211
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1528/javascript
|
|
5212
|
+
*/
|
|
5213
|
+
'sonarjs/array-constructor'?: Linter.RuleEntry<[]>;
|
|
5214
|
+
/**
|
|
5215
|
+
* Braces and parentheses should be used consistently with arrow functions
|
|
5216
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3524/javascript
|
|
5217
|
+
*/
|
|
5218
|
+
'sonarjs/arrow-function-convention'?: Linter.RuleEntry<SonarjsArrowFunctionConvention>;
|
|
5219
|
+
/**
|
|
5220
|
+
* Assertions should be placed inside test cases or hooks
|
|
5221
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8784/javascript
|
|
5222
|
+
*/
|
|
5223
|
+
'sonarjs/assertions-in-test-cases'?: Linter.RuleEntry<[]>;
|
|
5224
|
+
/**
|
|
5225
|
+
* Tests should include assertions
|
|
5226
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2699/javascript
|
|
5227
|
+
*/
|
|
5228
|
+
'sonarjs/assertions-in-tests'?: Linter.RuleEntry<[]>;
|
|
5229
|
+
/**
|
|
5230
|
+
* Async test assertions should be awaited or returned
|
|
5231
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8780/javascript
|
|
5232
|
+
*/
|
|
5233
|
+
'sonarjs/async-test-assertions'?: Linter.RuleEntry<[]>;
|
|
5234
|
+
/**
|
|
5235
|
+
* AWS API Gateway should require authentication
|
|
5236
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6333/javascript
|
|
5237
|
+
*/
|
|
5238
|
+
'sonarjs/aws-apigateway-public-api'?: Linter.RuleEntry<[]>;
|
|
5239
|
+
/**
|
|
5240
|
+
* Public network access to cloud resources should be disabled
|
|
5241
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6329/javascript
|
|
5242
|
+
*/
|
|
5243
|
+
'sonarjs/aws-ec2-rds-dms-public'?: Linter.RuleEntry<[]>;
|
|
5244
|
+
/**
|
|
5245
|
+
* EBS volumes should be encrypted
|
|
5246
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6275/javascript
|
|
5247
|
+
*/
|
|
5248
|
+
'sonarjs/aws-ec2-unencrypted-ebs-volume'?: Linter.RuleEntry<[]>;
|
|
5249
|
+
/**
|
|
5250
|
+
* Amazon EFS file systems should be encrypted
|
|
5251
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6332/javascript
|
|
5252
|
+
*/
|
|
5253
|
+
'sonarjs/aws-efs-unencrypted'?: Linter.RuleEntry<[]>;
|
|
5254
|
+
/**
|
|
5255
|
+
* Policies should not grant all privileges
|
|
5256
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6302/javascript
|
|
5257
|
+
*/
|
|
5258
|
+
'sonarjs/aws-iam-all-privileges'?: Linter.RuleEntry<[]>;
|
|
5259
|
+
/**
|
|
5260
|
+
* IAM policies should not grant access to all account resources
|
|
5261
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6304/javascript
|
|
5262
|
+
*/
|
|
5263
|
+
'sonarjs/aws-iam-all-resources-accessible'?: Linter.RuleEntry<[]>;
|
|
5264
|
+
/**
|
|
5265
|
+
* AWS IAM policies should limit the scope of permissions given
|
|
5266
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6317/javascript
|
|
5267
|
+
*/
|
|
5268
|
+
'sonarjs/aws-iam-privilege-escalation'?: Linter.RuleEntry<[]>;
|
|
5269
|
+
/**
|
|
5270
|
+
* AWS resource-based policies should not grant public access
|
|
5271
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6270/javascript
|
|
5272
|
+
*/
|
|
5273
|
+
'sonarjs/aws-iam-public-access'?: Linter.RuleEntry<[]>;
|
|
5274
|
+
/**
|
|
5275
|
+
* OpenSearch domains should have encryption at rest enabled
|
|
5276
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6308/javascript
|
|
5277
|
+
*/
|
|
5278
|
+
'sonarjs/aws-opensearchservice-domain'?: Linter.RuleEntry<[]>;
|
|
5279
|
+
/**
|
|
5280
|
+
* Amazon RDS resources should be encrypted at rest
|
|
5281
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6303/javascript
|
|
5282
|
+
*/
|
|
5283
|
+
'sonarjs/aws-rds-unencrypted-databases'?: Linter.RuleEntry<[]>;
|
|
5284
|
+
/**
|
|
5285
|
+
* Administration services access should be restricted to specific IP addresses
|
|
5286
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6321/javascript
|
|
5287
|
+
*/
|
|
5288
|
+
'sonarjs/aws-restricted-ip-admin-access'?: Linter.RuleEntry<[]>;
|
|
5289
|
+
/**
|
|
5290
|
+
* S3 buckets should not grant access to all users or authenticated users
|
|
5291
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6265/javascript
|
|
5292
|
+
*/
|
|
5293
|
+
'sonarjs/aws-s3-bucket-granted-access'?: Linter.RuleEntry<[]>;
|
|
5294
|
+
/**
|
|
5295
|
+
* S3 buckets should enforce HTTPS-only access
|
|
5296
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6249/javascript
|
|
5297
|
+
*/
|
|
5298
|
+
'sonarjs/aws-s3-bucket-insecure-http'?: Linter.RuleEntry<[]>;
|
|
5299
|
+
/**
|
|
5300
|
+
* Amazon S3 bucket public access should be fully blocked
|
|
5301
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6281/javascript
|
|
5302
|
+
*/
|
|
5303
|
+
'sonarjs/aws-s3-bucket-public-access'?: Linter.RuleEntry<[]>;
|
|
5304
|
+
/**
|
|
5305
|
+
* Amazon S3 buckets should have versioning enabled
|
|
5306
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6252/javascript
|
|
5307
|
+
*/
|
|
5308
|
+
'sonarjs/aws-s3-bucket-versioning'?: Linter.RuleEntry<[]>;
|
|
5309
|
+
/**
|
|
5310
|
+
* SageMaker notebook instances should be encrypted at rest
|
|
5311
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6319/javascript
|
|
5312
|
+
*/
|
|
5313
|
+
'sonarjs/aws-sagemaker-unencrypted-notebook'?: Linter.RuleEntry<[]>;
|
|
5314
|
+
/**
|
|
5315
|
+
* Amazon SNS topics should be encrypted at rest
|
|
5316
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6327/javascript
|
|
5317
|
+
*/
|
|
5318
|
+
'sonarjs/aws-sns-unencrypted-topics'?: Linter.RuleEntry<[]>;
|
|
5319
|
+
/**
|
|
5320
|
+
* SQS queues should be encrypted
|
|
5321
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6330/javascript
|
|
5322
|
+
*/
|
|
5323
|
+
'sonarjs/aws-sqs-unencrypted-queue'?: Linter.RuleEntry<[]>;
|
|
5324
|
+
/**
|
|
5325
|
+
* Bitwise operators should not be used in boolean contexts
|
|
5326
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1529/javascript
|
|
5327
|
+
*/
|
|
5328
|
+
'sonarjs/bitwise-operators'?: Linter.RuleEntry<[]>;
|
|
5329
|
+
/**
|
|
5330
|
+
* Variables should be used in the blocks where they are declared
|
|
5331
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2392/javascript
|
|
5332
|
+
*/
|
|
5333
|
+
'sonarjs/block-scoped-var'?: Linter.RuleEntry<[]>;
|
|
5334
|
+
/**
|
|
5335
|
+
* Optional boolean parameters should have default value
|
|
5336
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4798/javascript
|
|
5337
|
+
*/
|
|
5338
|
+
'sonarjs/bool-param-default'?: Linter.RuleEntry<[]>;
|
|
5339
|
+
/**
|
|
5340
|
+
* Function call arguments should not start on new lines
|
|
5341
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1472/javascript
|
|
5342
|
+
*/
|
|
5343
|
+
'sonarjs/call-argument-line'?: Linter.RuleEntry<[]>;
|
|
5344
|
+
/**
|
|
5345
|
+
* Chai assertions should have only one reason to succeed
|
|
5346
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6092/javascript
|
|
5347
|
+
*/
|
|
5348
|
+
'sonarjs/chai-determinate-assertion'?: Linter.RuleEntry<[]>;
|
|
5349
|
+
/**
|
|
5350
|
+
* Class names should comply with a naming convention
|
|
5351
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S101/javascript
|
|
5352
|
+
*/
|
|
5353
|
+
'sonarjs/class-name'?: Linter.RuleEntry<SonarjsClassName>;
|
|
5354
|
+
/**
|
|
5355
|
+
* Class methods should be used instead of "prototype" assignments
|
|
5356
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3525/javascript
|
|
5357
|
+
*/
|
|
5358
|
+
'sonarjs/class-prototype'?: Linter.RuleEntry<[]>;
|
|
5359
|
+
/**
|
|
5360
|
+
* Dynamic code execution should not use user-controlled data
|
|
5361
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1523/javascript
|
|
5362
|
+
*/
|
|
5363
|
+
'sonarjs/code-eval'?: Linter.RuleEntry<[]>;
|
|
5364
|
+
/**
|
|
5365
|
+
* Cognitive Complexity of functions should not be too high
|
|
5366
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3776/javascript
|
|
5367
|
+
*/
|
|
5368
|
+
'sonarjs/cognitive-complexity'?: Linter.RuleEntry<SonarjsCognitiveComplexity>;
|
|
5369
|
+
/**
|
|
5370
|
+
* Comma and logical OR operators should not be used in switch cases
|
|
5371
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3616/javascript
|
|
5372
|
+
*/
|
|
5373
|
+
'sonarjs/comma-or-logical-or-case'?: Linter.RuleEntry<[]>;
|
|
5374
|
+
/**
|
|
5375
|
+
* Track comments matching a regular expression
|
|
5376
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S124/javascript
|
|
5377
|
+
*/
|
|
5378
|
+
'sonarjs/comment-regex'?: Linter.RuleEntry<SonarjsCommentRegex>;
|
|
5379
|
+
/**
|
|
5380
|
+
* Regular expression quantifiers and character classes should be used concisely
|
|
5381
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6353/javascript
|
|
5382
|
+
*/
|
|
5383
|
+
'sonarjs/concise-regex'?: Linter.RuleEntry<[]>;
|
|
5384
|
+
/**
|
|
5385
|
+
* A conditionally executed single line should be denoted by indentation
|
|
5386
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3973/javascript
|
|
5387
|
+
* @deprecated
|
|
5388
|
+
*/
|
|
5389
|
+
'sonarjs/conditional-indentation'?: Linter.RuleEntry<[]>;
|
|
5390
|
+
/**
|
|
5391
|
+
* Confidential information should not be logged
|
|
5392
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5757/javascript
|
|
5393
|
+
* @deprecated
|
|
5394
|
+
*/
|
|
5395
|
+
'sonarjs/confidential-information-logging'?: Linter.RuleEntry<[]>;
|
|
5396
|
+
/**
|
|
5397
|
+
* Objects should not be created to be dropped immediately without being used
|
|
5398
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1848/javascript
|
|
5399
|
+
*/
|
|
5400
|
+
'sonarjs/constructor-for-side-effects'?: Linter.RuleEntry<[]>;
|
|
5401
|
+
/**
|
|
5402
|
+
* HTTP request content length should be limited
|
|
5403
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5693/javascript
|
|
5404
|
+
*/
|
|
5405
|
+
'sonarjs/content-length'?: Linter.RuleEntry<SonarjsContentLength>;
|
|
5406
|
+
/**
|
|
5407
|
+
* Content security policy fetch directives should not be disabled
|
|
5408
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5728/javascript
|
|
5409
|
+
*/
|
|
5410
|
+
'sonarjs/content-security-policy'?: Linter.RuleEntry<[]>;
|
|
5411
|
+
/**
|
|
5412
|
+
* Cookies should have the "HttpOnly" flag
|
|
5413
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3330/javascript
|
|
5414
|
+
*/
|
|
5415
|
+
'sonarjs/cookie-no-httponly'?: Linter.RuleEntry<[]>;
|
|
5416
|
+
/**
|
|
5417
|
+
* Cross-Origin Resource Sharing (CORS) policy should be restricted to trusted origins
|
|
5418
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5122/javascript
|
|
5419
|
+
*/
|
|
5420
|
+
'sonarjs/cors'?: Linter.RuleEntry<[]>;
|
|
5421
|
+
/**
|
|
5422
|
+
* CSRF protections should not be disabled
|
|
5423
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4502/javascript
|
|
5424
|
+
*/
|
|
5425
|
+
'sonarjs/csrf'?: Linter.RuleEntry<[]>;
|
|
5426
|
+
/**
|
|
5427
|
+
* Cyclomatic Complexity of functions should not be too high
|
|
5428
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1541/javascript
|
|
5429
|
+
*/
|
|
5430
|
+
'sonarjs/cyclomatic-complexity'?: Linter.RuleEntry<SonarjsCyclomaticComplexity>;
|
|
5431
|
+
/**
|
|
5432
|
+
* Variables and functions should not be declared in the global scope
|
|
5433
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3798/javascript
|
|
5434
|
+
*/
|
|
5435
|
+
'sonarjs/declarations-in-global-scope'?: Linter.RuleEntry<[]>;
|
|
5436
|
+
/**
|
|
5437
|
+
* Deprecated APIs should not be used
|
|
5438
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1874/javascript
|
|
5439
|
+
*/
|
|
5440
|
+
'sonarjs/deprecation'?: Linter.RuleEntry<[]>;
|
|
5441
|
+
/**
|
|
5442
|
+
* Destructuring syntax should be used for assignments
|
|
5443
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3514/javascript
|
|
5444
|
+
*/
|
|
5445
|
+
'sonarjs/destructuring-assignment-syntax'?: Linter.RuleEntry<[]>;
|
|
5446
|
+
/**
|
|
5447
|
+
* Strict equality operators should not be used with dissimilar types
|
|
5448
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3403/javascript
|
|
5449
|
+
*/
|
|
5450
|
+
'sonarjs/different-types-comparison'?: Linter.RuleEntry<[]>;
|
|
5451
|
+
/**
|
|
5452
|
+
* Auto-escaping in HTML template engines should not be disabled
|
|
5453
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5247/javascript
|
|
5454
|
+
*/
|
|
5455
|
+
'sonarjs/disabled-auto-escaping'?: Linter.RuleEntry<[]>;
|
|
5456
|
+
/**
|
|
5457
|
+
* Remote artifacts should not be used without integrity checks
|
|
5458
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5725/javascript
|
|
5459
|
+
*/
|
|
5460
|
+
'sonarjs/disabled-resource-integrity'?: Linter.RuleEntry<[]>;
|
|
5461
|
+
/**
|
|
5462
|
+
* Disabling Mocha timeouts should be explicit
|
|
5463
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6080/javascript
|
|
5464
|
+
*/
|
|
5465
|
+
'sonarjs/disabled-timeout'?: Linter.RuleEntry<[]>;
|
|
5466
|
+
/**
|
|
5467
|
+
* DOMPurify configuration should not be bypassable
|
|
5468
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8479/javascript
|
|
5469
|
+
*/
|
|
5470
|
+
'sonarjs/dompurify-unsafe-config'?: Linter.RuleEntry<[]>;
|
|
5471
|
+
/**
|
|
5472
|
+
* Character classes in regular expressions should not contain the same character twice
|
|
5473
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5869/javascript
|
|
5474
|
+
*/
|
|
5475
|
+
'sonarjs/duplicates-in-character-class'?: Linter.RuleEntry<[]>;
|
|
5476
|
+
/**
|
|
5477
|
+
* Templates should not be constructed dynamically
|
|
5478
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S7790/javascript
|
|
5479
|
+
*/
|
|
5480
|
+
'sonarjs/dynamically-constructed-templates'?: Linter.RuleEntry<[]>;
|
|
5481
|
+
/**
|
|
5482
|
+
* "if ... else if" constructs should end with "else" clauses
|
|
5483
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S126/javascript
|
|
5484
|
+
*/
|
|
5485
|
+
'sonarjs/elseif-without-else'?: Linter.RuleEntry<[]>;
|
|
5486
|
+
/**
|
|
5487
|
+
* Repeated patterns in regular expressions should not match the empty string
|
|
5488
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5842/javascript
|
|
5489
|
+
*/
|
|
5490
|
+
'sonarjs/empty-string-repetition'?: Linter.RuleEntry<[]>;
|
|
5491
|
+
/**
|
|
5492
|
+
* Encryption algorithms should be used with secure mode and padding scheme
|
|
5493
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5542/javascript
|
|
5494
|
+
*/
|
|
5495
|
+
'sonarjs/encryption-secure-mode'?: Linter.RuleEntry<[]>;
|
|
5496
|
+
/**
|
|
5497
|
+
* Replacement strings should reference existing regular expression groups
|
|
5498
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6328/javascript
|
|
5499
|
+
*/
|
|
5500
|
+
'sonarjs/existing-groups'?: Linter.RuleEntry<[]>;
|
|
5501
|
+
/**
|
|
5502
|
+
* Tests should be skipped explicitly
|
|
5503
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8968/javascript
|
|
5504
|
+
*/
|
|
5505
|
+
'sonarjs/explicit-test-skip'?: Linter.RuleEntry<[]>;
|
|
5506
|
+
/**
|
|
5507
|
+
* Expressions should not be too complex
|
|
5508
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1067/javascript
|
|
5509
|
+
*/
|
|
5510
|
+
'sonarjs/expression-complexity'?: Linter.RuleEntry<SonarjsExpressionComplexity>;
|
|
5511
|
+
/**
|
|
5512
|
+
* Track lack of copyright and license headers
|
|
5513
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1451/javascript
|
|
5514
|
+
*/
|
|
5515
|
+
'sonarjs/file-header'?: Linter.RuleEntry<SonarjsFileHeader>;
|
|
5516
|
+
/**
|
|
5517
|
+
* Default export names and file names should match
|
|
5518
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3317/javascript
|
|
5519
|
+
*/
|
|
5520
|
+
'sonarjs/file-name-differ-from-class'?: Linter.RuleEntry<[]>;
|
|
5521
|
+
/**
|
|
5522
|
+
* File permissions should not be set to world-accessible values
|
|
5523
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2612/javascript
|
|
5524
|
+
*/
|
|
5525
|
+
'sonarjs/file-permissions'?: Linter.RuleEntry<[]>;
|
|
5526
|
+
/**
|
|
5527
|
+
* File uploads should be restricted
|
|
5528
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2598/javascript
|
|
5529
|
+
*/
|
|
5530
|
+
'sonarjs/file-uploads'?: Linter.RuleEntry<[]>;
|
|
5531
|
+
/**
|
|
5532
|
+
* Track uses of "FIXME" tags
|
|
5533
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1134/javascript
|
|
5534
|
+
*/
|
|
5535
|
+
'sonarjs/fixme-tag'?: Linter.RuleEntry<[]>;
|
|
5536
|
+
/**
|
|
5537
|
+
* "for...in" loops should filter properties before acting on them
|
|
5538
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1535/javascript
|
|
5539
|
+
*/
|
|
5540
|
+
'sonarjs/for-in'?: Linter.RuleEntry<[]>;
|
|
5541
|
+
/**
|
|
5542
|
+
* A "for" loop update clause should move the counter in the right direction
|
|
5543
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2251/javascript
|
|
5544
|
+
*/
|
|
5545
|
+
'sonarjs/for-loop-increment-sign'?: Linter.RuleEntry<[]>;
|
|
5546
|
+
/**
|
|
5547
|
+
* Content Security Policy frame-ancestors directive should not be disabled
|
|
5548
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5732/javascript
|
|
5549
|
+
* @deprecated
|
|
5550
|
+
*/
|
|
5551
|
+
'sonarjs/frame-ancestors'?: Linter.RuleEntry<[]>;
|
|
5552
|
+
/**
|
|
5553
|
+
* Functions should not be defined inside loops
|
|
5554
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1515/javascript
|
|
5555
|
+
*/
|
|
5556
|
+
'sonarjs/function-inside-loop'?: Linter.RuleEntry<[]>;
|
|
5557
|
+
/**
|
|
5558
|
+
* Function and method names should comply with a naming convention
|
|
5559
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S100/javascript
|
|
5560
|
+
*/
|
|
5561
|
+
'sonarjs/function-name'?: Linter.RuleEntry<SonarjsFunctionName>;
|
|
5562
|
+
/**
|
|
5563
|
+
* Functions should always return the same type
|
|
5564
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3800/javascript
|
|
5565
|
+
*/
|
|
5566
|
+
'sonarjs/function-return-type'?: Linter.RuleEntry<[]>;
|
|
5567
|
+
/**
|
|
5568
|
+
* Future reserved words should not be used as identifiers
|
|
5569
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1527/javascript
|
|
5570
|
+
*/
|
|
5571
|
+
'sonarjs/future-reserved-words'?: Linter.RuleEntry<[]>;
|
|
5572
|
+
/**
|
|
5573
|
+
* Generators should explicitly "yield" a value
|
|
5574
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3531/javascript
|
|
5575
|
+
*/
|
|
5576
|
+
'sonarjs/generator-without-yield'?: Linter.RuleEntry<[]>;
|
|
5577
|
+
/**
|
|
5578
|
+
* Credentials should not be hard-coded
|
|
5579
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6437/javascript
|
|
5580
|
+
*/
|
|
5581
|
+
'sonarjs/hardcoded-secret-signatures'?: Linter.RuleEntry<[]>;
|
|
5582
|
+
/**
|
|
5583
|
+
* Weak hashing algorithms should not be used
|
|
5584
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4790/javascript
|
|
5585
|
+
*/
|
|
5586
|
+
'sonarjs/hashing'?: Linter.RuleEntry<[]>;
|
|
5587
|
+
/**
|
|
5588
|
+
* Hidden files should not be served statically
|
|
5589
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5691/javascript
|
|
5590
|
+
* @deprecated
|
|
5591
|
+
*/
|
|
5592
|
+
'sonarjs/hidden-files'?: Linter.RuleEntry<[]>;
|
|
5593
|
+
/**
|
|
5594
|
+
* Lifecycle hooks should not be interleaved with test cases or nested suites
|
|
5595
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8782/javascript
|
|
5596
|
+
*/
|
|
5597
|
+
'sonarjs/hooks-before-test-cases'?: Linter.RuleEntry<[]>;
|
|
5598
|
+
/**
|
|
5599
|
+
* "in" should not be used with primitive types
|
|
5600
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3785/javascript
|
|
5601
|
+
*/
|
|
5602
|
+
'sonarjs/in-operator-type-error'?: Linter.RuleEntry<[]>;
|
|
5603
|
+
/**
|
|
5604
|
+
* Functions should be called consistently with or without "new"
|
|
5605
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3686/javascript
|
|
5606
|
+
*/
|
|
5607
|
+
'sonarjs/inconsistent-function-call'?: Linter.RuleEntry<[]>;
|
|
5608
|
+
/**
|
|
5609
|
+
* "indexOf" checks should not be for positive numbers
|
|
5610
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2692/javascript
|
|
5611
|
+
*/
|
|
5612
|
+
'sonarjs/index-of-compare-to-positive-number'?: Linter.RuleEntry<[]>;
|
|
5613
|
+
/**
|
|
5614
|
+
* Cookies should have the "secure" flag
|
|
5615
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2092/javascript
|
|
5616
|
+
*/
|
|
5617
|
+
'sonarjs/insecure-cookie'?: Linter.RuleEntry<[]>;
|
|
5618
|
+
/**
|
|
5619
|
+
* JWT should be signed and verified with strong cipher algorithms
|
|
5620
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5659/javascript
|
|
5621
|
+
*/
|
|
5622
|
+
'sonarjs/insecure-jwt-token'?: Linter.RuleEntry<[]>;
|
|
5623
|
+
/**
|
|
5624
|
+
* Assertion arguments should be passed in the correct order
|
|
5625
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3415/javascript
|
|
5626
|
+
*/
|
|
5627
|
+
'sonarjs/inverted-assertion-arguments'?: Linter.RuleEntry<[]>;
|
|
5628
|
+
/**
|
|
5629
|
+
* React components should not render non-boolean condition values
|
|
5630
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6439/javascript
|
|
5631
|
+
*/
|
|
5632
|
+
'sonarjs/jsx-no-leaked-render'?: Linter.RuleEntry<[]>;
|
|
5633
|
+
/**
|
|
5634
|
+
* Only "while", "do", "for" and "switch" statements should be labelled
|
|
5635
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1439/javascript
|
|
5636
|
+
*/
|
|
5637
|
+
'sonarjs/label-position'?: Linter.RuleEntry<[]>;
|
|
5638
|
+
/**
|
|
5639
|
+
* Opened windows should not have access to the originating page
|
|
5640
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5148/javascript
|
|
5641
|
+
*/
|
|
5642
|
+
'sonarjs/link-with-target-blank'?: Linter.RuleEntry<[]>;
|
|
5643
|
+
/**
|
|
5644
|
+
* Files should not have too many lines of code
|
|
5645
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S104/javascript
|
|
5646
|
+
*/
|
|
5647
|
+
'sonarjs/max-lines'?: Linter.RuleEntry<SonarjsMaxLines>;
|
|
5648
|
+
/**
|
|
5649
|
+
* Functions should not have too many lines of code
|
|
5650
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S138/javascript
|
|
5651
|
+
*/
|
|
5652
|
+
'sonarjs/max-lines-per-function'?: Linter.RuleEntry<SonarjsMaxLinesPerFunction>;
|
|
5653
|
+
/**
|
|
5654
|
+
* "switch" statements should not have too many "case" clauses
|
|
5655
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1479/javascript
|
|
5656
|
+
*/
|
|
5657
|
+
'sonarjs/max-switch-cases'?: Linter.RuleEntry<SonarjsMaxSwitchCases>;
|
|
5658
|
+
/**
|
|
5659
|
+
* Union types should not have too many elements
|
|
5660
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4622/javascript
|
|
5661
|
+
*/
|
|
5662
|
+
'sonarjs/max-union-size'?: Linter.RuleEntry<SonarjsMaxUnionSize>;
|
|
5663
|
+
/**
|
|
5664
|
+
* Lodash and Underscore.js `memoize` calls on functions with multiple parameters should use an explicit cache key function
|
|
5665
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8932/javascript
|
|
5666
|
+
*/
|
|
5667
|
+
'sonarjs/memoize-cache-key'?: Linter.RuleEntry<[]>;
|
|
5668
|
+
/**
|
|
5669
|
+
* "for" loop increment clauses should modify the loops' counters
|
|
5670
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1994/javascript
|
|
5671
|
+
*/
|
|
5672
|
+
'sonarjs/misplaced-loop-counter'?: Linter.RuleEntry<[]>;
|
|
5673
|
+
/**
|
|
5674
|
+
* Control flow statements "if", "for", "while", "switch" and "try" should not be nested too deeply
|
|
5675
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S134/javascript
|
|
5676
|
+
*/
|
|
5677
|
+
'sonarjs/nested-control-flow'?: Linter.RuleEntry<SonarjsNestedControlFlow>;
|
|
5678
|
+
/**
|
|
5679
|
+
* "new" should only be used with functions and classes
|
|
5680
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2999/javascript
|
|
5681
|
+
*/
|
|
5682
|
+
'sonarjs/new-operator-misuse'?: Linter.RuleEntry<SonarjsNewOperatorMisuse>;
|
|
5683
|
+
/**
|
|
5684
|
+
* All branches in a conditional structure should not have exactly the same implementation
|
|
5685
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3923/javascript
|
|
5686
|
+
*/
|
|
5687
|
+
'sonarjs/no-all-duplicated-branches'?: Linter.RuleEntry<[]>;
|
|
5688
|
+
/**
|
|
5689
|
+
* "Array.prototype.sort()" and "Array.prototype.toSorted()" should use a compare function
|
|
5690
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2871/javascript
|
|
5691
|
+
*/
|
|
5692
|
+
'sonarjs/no-alphabetical-sort'?: Linter.RuleEntry<[]>;
|
|
5693
|
+
/**
|
|
5694
|
+
* Angular built-in sanitization should not be disabled
|
|
5695
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6268/javascript
|
|
5696
|
+
*/
|
|
5697
|
+
'sonarjs/no-angular-bypass-sanitization'?: Linter.RuleEntry<[]>;
|
|
5698
|
+
/**
|
|
5699
|
+
* "delete" should not be used on arrays
|
|
5700
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2870/javascript
|
|
5701
|
+
*/
|
|
5702
|
+
'sonarjs/no-array-delete'?: Linter.RuleEntry<[]>;
|
|
5703
|
+
/**
|
|
5704
|
+
* Array indexes should be numeric
|
|
5705
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3579/javascript
|
|
5706
|
+
*/
|
|
5707
|
+
'sonarjs/no-associative-arrays'?: Linter.RuleEntry<[]>;
|
|
5708
|
+
/**
|
|
5709
|
+
* Constructors should not contain asynchronous operations
|
|
5710
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S7059/javascript
|
|
5711
|
+
*/
|
|
5712
|
+
'sonarjs/no-async-constructor'?: Linter.RuleEntry<[]>;
|
|
5713
|
+
/**
|
|
5714
|
+
* Built-in objects should not be overridden
|
|
5715
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2424/javascript
|
|
5716
|
+
*/
|
|
5717
|
+
'sonarjs/no-built-in-override'?: Linter.RuleEntry<[]>;
|
|
5718
|
+
/**
|
|
5719
|
+
* "switch" statements should not contain non-case labels
|
|
5720
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1219/javascript
|
|
5721
|
+
*/
|
|
5722
|
+
'sonarjs/no-case-label-in-switch'?: Linter.RuleEntry<[]>;
|
|
5723
|
+
/**
|
|
5724
|
+
* Clear-text protocols should not be used
|
|
5725
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5332/javascript
|
|
5726
|
+
*/
|
|
5727
|
+
'sonarjs/no-clear-text-protocols'?: Linter.RuleEntry<[]>;
|
|
5728
|
+
/**
|
|
5729
|
+
* Tests should not execute any code after "done()" is called
|
|
5730
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6079/javascript
|
|
5731
|
+
*/
|
|
5732
|
+
'sonarjs/no-code-after-done'?: Linter.RuleEntry<[]>;
|
|
5733
|
+
/**
|
|
5734
|
+
* Mergeable "if" statements should be combined
|
|
5735
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1066/javascript
|
|
5736
|
+
*/
|
|
5737
|
+
'sonarjs/no-collapsible-if'?: Linter.RuleEntry<[]>;
|
|
5738
|
+
/**
|
|
5739
|
+
* Collection size and array length comparisons should make sense
|
|
5740
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3981/javascript
|
|
5741
|
+
*/
|
|
5742
|
+
'sonarjs/no-collection-size-mischeck'?: Linter.RuleEntry<[]>;
|
|
5743
|
+
/**
|
|
5744
|
+
* Sections of code should not be commented out
|
|
5745
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S125/javascript
|
|
5746
|
+
*/
|
|
5747
|
+
'sonarjs/no-commented-code'?: Linter.RuleEntry<[]>;
|
|
5748
|
+
/**
|
|
5749
|
+
* Regular expressions should not contain control characters
|
|
5750
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6324/javascript
|
|
5751
|
+
*/
|
|
5752
|
+
'sonarjs/no-control-regex'?: Linter.RuleEntry<[]>;
|
|
5753
|
+
/**
|
|
5754
|
+
* Unused assignments should be removed
|
|
5755
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1854/javascript
|
|
5756
|
+
*/
|
|
5757
|
+
'sonarjs/no-dead-store'?: Linter.RuleEntry<[]>;
|
|
5758
|
+
/**
|
|
5759
|
+
* UI test debug commands should not be committed to version control
|
|
5760
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8959/javascript
|
|
5761
|
+
*/
|
|
5762
|
+
'sonarjs/no-debug-commands-in-ui-tests'?: Linter.RuleEntry<[]>;
|
|
5763
|
+
/**
|
|
5764
|
+
* Default imports from modular utility libraries should not be used
|
|
5765
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8927/javascript
|
|
5766
|
+
*/
|
|
5767
|
+
'sonarjs/no-default-utility-imports'?: Linter.RuleEntry<[]>;
|
|
5768
|
+
/**
|
|
5769
|
+
* "delete" should be used only with object properties
|
|
5770
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3001/javascript
|
|
5771
|
+
*/
|
|
5772
|
+
'sonarjs/no-delete-var'?: Linter.RuleEntry<[]>;
|
|
5773
|
+
/**
|
|
5774
|
+
* Union and intersection types should not include duplicated constituents
|
|
5775
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4621/javascript
|
|
5776
|
+
*/
|
|
5777
|
+
'sonarjs/no-duplicate-in-composite'?: Linter.RuleEntry<[]>;
|
|
5778
|
+
/**
|
|
5779
|
+
* String literals should not be duplicated
|
|
5780
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1192/javascript
|
|
5781
|
+
*/
|
|
5782
|
+
'sonarjs/no-duplicate-string'?: Linter.RuleEntry<SonarjsNoDuplicateString>;
|
|
5783
|
+
/**
|
|
5784
|
+
* Test titles should be unique within the same suite
|
|
5785
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8754/javascript
|
|
5786
|
+
*/
|
|
5787
|
+
'sonarjs/no-duplicate-test-title'?: Linter.RuleEntry<[]>;
|
|
5788
|
+
/**
|
|
5789
|
+
* Two branches in a conditional structure should not have exactly the same implementation
|
|
5790
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1871/javascript
|
|
5791
|
+
*/
|
|
5792
|
+
'sonarjs/no-duplicated-branches'?: Linter.RuleEntry<[]>;
|
|
5793
|
+
/**
|
|
5794
|
+
* Collection elements should not be replaced unconditionally
|
|
5795
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4143/javascript
|
|
5796
|
+
*/
|
|
5797
|
+
'sonarjs/no-element-overwrite'?: Linter.RuleEntry<[]>;
|
|
5798
|
+
/**
|
|
5799
|
+
* Reluctant quantifiers in regular expressions should be followed by an expression that can't match the empty string
|
|
5800
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6019/javascript
|
|
5801
|
+
*/
|
|
5802
|
+
'sonarjs/no-empty-after-reluctant'?: Linter.RuleEntry<[]>;
|
|
5803
|
+
/**
|
|
5804
|
+
* Alternation in regular expressions should not contain empty alternatives
|
|
5805
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6323/javascript
|
|
5806
|
+
*/
|
|
5807
|
+
'sonarjs/no-empty-alternatives'?: Linter.RuleEntry<[]>;
|
|
5808
|
+
/**
|
|
5809
|
+
* Empty character classes should not be used
|
|
5810
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2639/javascript
|
|
5811
|
+
*/
|
|
5812
|
+
'sonarjs/no-empty-character-class'?: Linter.RuleEntry<[]>;
|
|
5813
|
+
/**
|
|
5814
|
+
* Empty collections should not be accessed or iterated
|
|
5815
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4158/javascript
|
|
5816
|
+
*/
|
|
5817
|
+
'sonarjs/no-empty-collection'?: Linter.RuleEntry<[]>;
|
|
5818
|
+
/**
|
|
5819
|
+
* Regular expressions should not contain empty groups
|
|
5820
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6331/javascript
|
|
5821
|
+
*/
|
|
5822
|
+
'sonarjs/no-empty-group'?: Linter.RuleEntry<[]>;
|
|
5823
|
+
/**
|
|
5824
|
+
* Test files should contain at least one test case
|
|
5825
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2187/javascript
|
|
5826
|
+
*/
|
|
5827
|
+
'sonarjs/no-empty-test-file'?: Linter.RuleEntry<[]>;
|
|
5828
|
+
/**
|
|
5829
|
+
* Test and suite titles should not be empty or whitespace-only
|
|
5830
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8781/javascript
|
|
5831
|
+
*/
|
|
5832
|
+
'sonarjs/no-empty-test-title'?: Linter.RuleEntry<[]>;
|
|
5833
|
+
/**
|
|
5834
|
+
* Equality operators should not be used in "for" loop termination conditions
|
|
5835
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S888/javascript
|
|
5836
|
+
*/
|
|
5837
|
+
'sonarjs/no-equals-in-for-termination'?: Linter.RuleEntry<[]>;
|
|
5838
|
+
/**
|
|
5839
|
+
* Exclusive tests should not be committed to version control
|
|
5840
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6426/javascript
|
|
5841
|
+
*/
|
|
5842
|
+
'sonarjs/no-exclusive-tests'?: Linter.RuleEntry<[]>;
|
|
5843
|
+
/**
|
|
5844
|
+
* Function calls should not pass extra arguments
|
|
5845
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S930/javascript
|
|
5846
|
+
*/
|
|
5847
|
+
'sonarjs/no-extra-arguments'?: Linter.RuleEntry<[]>;
|
|
5848
|
+
/**
|
|
5849
|
+
* Switch cases should end with an unconditional "break" statement
|
|
5850
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S128/javascript
|
|
5851
|
+
*/
|
|
5852
|
+
'sonarjs/no-fallthrough'?: Linter.RuleEntry<[]>;
|
|
5853
|
+
/**
|
|
5854
|
+
* Fixed waits should not be used in tests
|
|
5855
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2925/javascript
|
|
5856
|
+
*/
|
|
5857
|
+
'sonarjs/no-fixed-wait-in-tests'?: Linter.RuleEntry<[]>;
|
|
5858
|
+
/**
|
|
5859
|
+
* Floating point numbers should not be tested for equality
|
|
5860
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1244/javascript
|
|
5861
|
+
*/
|
|
5862
|
+
'sonarjs/no-floating-point-equality'?: Linter.RuleEntry<[]>;
|
|
5863
|
+
/**
|
|
5864
|
+
* "for in" should not be used with iterables
|
|
5865
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4139/javascript
|
|
5866
|
+
*/
|
|
5867
|
+
'sonarjs/no-for-in-iterable'?: Linter.RuleEntry<[]>;
|
|
5868
|
+
/**
|
|
5869
|
+
* Forced browser interactions should not bypass actionability checks
|
|
5870
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8783/javascript
|
|
5871
|
+
*/
|
|
5872
|
+
'sonarjs/no-forced-browser-interaction'?: Linter.RuleEntry<[]>;
|
|
5873
|
+
/**
|
|
5874
|
+
* Function declarations should not be made within blocks
|
|
5875
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1530/javascript
|
|
5876
|
+
*/
|
|
5877
|
+
'sonarjs/no-function-declaration-in-block'?: Linter.RuleEntry<[]>;
|
|
5878
|
+
/**
|
|
5879
|
+
* The global "this" object should not be used
|
|
5880
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2990/javascript
|
|
5881
|
+
*/
|
|
5882
|
+
'sonarjs/no-global-this'?: Linter.RuleEntry<[]>;
|
|
5883
|
+
/**
|
|
5884
|
+
* Special identifiers should not be bound or assigned
|
|
5885
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2137/javascript
|
|
5886
|
+
*/
|
|
5887
|
+
'sonarjs/no-globals-shadowing'?: Linter.RuleEntry<[]>;
|
|
5888
|
+
/**
|
|
5889
|
+
* Boolean expressions should not be gratuitous
|
|
5890
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2589/javascript
|
|
5891
|
+
*/
|
|
5892
|
+
'sonarjs/no-gratuitous-expressions'?: Linter.RuleEntry<[]>;
|
|
5893
|
+
/**
|
|
5894
|
+
* IP addresses should not be hardcoded
|
|
5895
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1313/javascript
|
|
5896
|
+
*/
|
|
5897
|
+
'sonarjs/no-hardcoded-ip'?: Linter.RuleEntry<[]>;
|
|
5898
|
+
/**
|
|
5899
|
+
* Credentials should not be hard-coded
|
|
5900
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2068/javascript
|
|
5901
|
+
*/
|
|
5902
|
+
'sonarjs/no-hardcoded-passwords'?: Linter.RuleEntry<SonarjsNoHardcodedPasswords>;
|
|
5903
|
+
/**
|
|
5904
|
+
* Secrets should not be hard-coded
|
|
5905
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6418/javascript
|
|
5906
|
+
*/
|
|
5907
|
+
'sonarjs/no-hardcoded-secrets'?: Linter.RuleEntry<SonarjsNoHardcodedSecrets>;
|
|
5908
|
+
/**
|
|
5909
|
+
* React's useState hook should not be used directly in the render function or body of a component
|
|
5910
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6442/javascript
|
|
5911
|
+
*/
|
|
5912
|
+
'sonarjs/no-hook-setter-in-body'?: Linter.RuleEntry<[]>;
|
|
5913
|
+
/**
|
|
5914
|
+
* "if/else if" chains and "switch" cases should not have the same condition
|
|
5915
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1862/javascript
|
|
5916
|
+
*/
|
|
5917
|
+
'sonarjs/no-identical-conditions'?: Linter.RuleEntry<[]>;
|
|
5918
|
+
/**
|
|
5919
|
+
* Identical expressions should not be used on both sides of a binary operator
|
|
5920
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1764/javascript
|
|
5921
|
+
*/
|
|
5922
|
+
'sonarjs/no-identical-expressions'?: Linter.RuleEntry<[]>;
|
|
5923
|
+
/**
|
|
5924
|
+
* Functions should not have identical implementations
|
|
5925
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4144/javascript
|
|
5926
|
+
*/
|
|
5927
|
+
'sonarjs/no-identical-functions'?: Linter.RuleEntry<SonarjsNoIdenticalFunctions>;
|
|
5928
|
+
/**
|
|
5929
|
+
* Exceptions should not be ignored
|
|
5930
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2486/javascript
|
|
5931
|
+
*/
|
|
5932
|
+
'sonarjs/no-ignored-exceptions'?: Linter.RuleEntry<[]>;
|
|
5933
|
+
/**
|
|
5934
|
+
* Return values from functions without side effects should not be ignored
|
|
5935
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2201/javascript
|
|
5936
|
+
*/
|
|
5937
|
+
'sonarjs/no-ignored-return'?: Linter.RuleEntry<[]>;
|
|
5938
|
+
/**
|
|
5939
|
+
* Dependencies should be explicit
|
|
5940
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4328/javascript
|
|
5941
|
+
*/
|
|
5942
|
+
'sonarjs/no-implicit-dependencies'?: Linter.RuleEntry<SonarjsNoImplicitDependencies>;
|
|
5943
|
+
/**
|
|
5944
|
+
* Variables should be declared explicitly
|
|
5945
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2703/javascript
|
|
5946
|
+
*/
|
|
5947
|
+
'sonarjs/no-implicit-global'?: Linter.RuleEntry<[]>;
|
|
5948
|
+
/**
|
|
5949
|
+
* "in" should not be used on arrays
|
|
5950
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4619/javascript
|
|
5951
|
+
*/
|
|
5952
|
+
'sonarjs/no-in-misuse'?: Linter.RuleEntry<[]>;
|
|
5953
|
+
/**
|
|
5954
|
+
* Assertions comparing incompatible types should not be made
|
|
5955
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5845/javascript
|
|
5956
|
+
*/
|
|
5957
|
+
'sonarjs/no-incompatible-assertion-types'?: Linter.RuleEntry<[]>;
|
|
5958
|
+
/**
|
|
5959
|
+
* Assertions should be complete
|
|
5960
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2970/javascript
|
|
5961
|
+
*/
|
|
5962
|
+
'sonarjs/no-incomplete-assertions'?: Linter.RuleEntry<[]>;
|
|
5963
|
+
/**
|
|
5964
|
+
* Functions should use "return" consistently
|
|
5965
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3801/javascript
|
|
5966
|
+
*/
|
|
5967
|
+
'sonarjs/no-inconsistent-returns'?: Linter.RuleEntry<[]>;
|
|
5968
|
+
/**
|
|
5969
|
+
* Strings and non-strings should not be added
|
|
5970
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3402/javascript
|
|
5971
|
+
*/
|
|
5972
|
+
'sonarjs/no-incorrect-string-concat'?: Linter.RuleEntry<[]>;
|
|
5973
|
+
/**
|
|
5974
|
+
* Users should not use internal APIs
|
|
5975
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6627/javascript
|
|
5976
|
+
*/
|
|
5977
|
+
'sonarjs/no-internal-api-use'?: Linter.RuleEntry<[]>;
|
|
5978
|
+
/**
|
|
5979
|
+
* Inline snapshots should not contain interpolations
|
|
5980
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8967/javascript
|
|
5981
|
+
*/
|
|
5982
|
+
'sonarjs/no-interpolation-in-inline-snapshots'?: Linter.RuleEntry<[]>;
|
|
5983
|
+
/**
|
|
5984
|
+
* Sensitive permissions should not be requested unnecessarily
|
|
5985
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5604/javascript
|
|
5986
|
+
* @deprecated
|
|
5987
|
+
*/
|
|
5988
|
+
'sonarjs/no-intrusive-permissions'?: Linter.RuleEntry<SonarjsNoIntrusivePermissions>;
|
|
5989
|
+
/**
|
|
5990
|
+
* Regular expressions should be syntactically valid
|
|
5991
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5856/javascript
|
|
5992
|
+
*/
|
|
5993
|
+
'sonarjs/no-invalid-regexp'?: Linter.RuleEntry<[]>;
|
|
5994
|
+
/**
|
|
5995
|
+
* Function returns should not be invariant
|
|
5996
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3516/javascript
|
|
5997
|
+
*/
|
|
5998
|
+
'sonarjs/no-invariant-returns'?: Linter.RuleEntry<[]>;
|
|
5999
|
+
/**
|
|
6000
|
+
* Boolean checks should not be inverted
|
|
6001
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1940/javascript
|
|
6002
|
+
*/
|
|
6003
|
+
'sonarjs/no-inverted-boolean-check'?: Linter.RuleEntry<[]>;
|
|
6004
|
+
/**
|
|
6005
|
+
* Client IP address should not be forwarded to proxies
|
|
6006
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5759/javascript
|
|
6007
|
+
* @deprecated
|
|
6008
|
+
*/
|
|
6009
|
+
'sonarjs/no-ip-forward'?: Linter.RuleEntry<[]>;
|
|
6010
|
+
/**
|
|
6011
|
+
* Labels should not be used
|
|
6012
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1119/javascript
|
|
6013
|
+
*/
|
|
6014
|
+
'sonarjs/no-labels'?: Linter.RuleEntry<[]>;
|
|
6015
|
+
/**
|
|
6016
|
+
* Literals should not be used as functions
|
|
6017
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6958/javascript
|
|
6018
|
+
*/
|
|
6019
|
+
'sonarjs/no-literal-call'?: Linter.RuleEntry<[]>;
|
|
6020
|
+
/**
|
|
6021
|
+
* Browsers should not be allowed to perform MIME type sniffing
|
|
6022
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5734/javascript
|
|
6023
|
+
*/
|
|
6024
|
+
'sonarjs/no-mime-sniff'?: Linter.RuleEntry<[]>;
|
|
6025
|
+
/**
|
|
6026
|
+
* Array-mutating methods should not be used misleadingly
|
|
6027
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4043/javascript
|
|
6028
|
+
*/
|
|
6029
|
+
'sonarjs/no-misleading-array-reverse'?: Linter.RuleEntry<[]>;
|
|
6030
|
+
/**
|
|
6031
|
+
* Unicode Grapheme Clusters should be avoided inside regex character classes
|
|
6032
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5868/javascript
|
|
6033
|
+
*/
|
|
6034
|
+
'sonarjs/no-misleading-character-class'?: Linter.RuleEntry<[]>;
|
|
6035
|
+
/**
|
|
6036
|
+
* Test and hook callbacks should use a single completion style
|
|
6037
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8960/javascript
|
|
6038
|
+
*/
|
|
6039
|
+
'sonarjs/no-mixed-completion-style'?: Linter.RuleEntry<[]>;
|
|
6040
|
+
/**
|
|
6041
|
+
* Content Security Policy should block mixed-content
|
|
6042
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5730/javascript
|
|
6043
|
+
* @deprecated
|
|
6044
|
+
*/
|
|
6045
|
+
'sonarjs/no-mixed-content'?: Linter.RuleEntry<[]>;
|
|
6046
|
+
/**
|
|
6047
|
+
* Assignments should not be made from within sub-expressions
|
|
6048
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1121/javascript
|
|
6049
|
+
*/
|
|
6050
|
+
'sonarjs/no-nested-assignment'?: Linter.RuleEntry<[]>;
|
|
6051
|
+
/**
|
|
6052
|
+
* Ternary operators should not be nested
|
|
6053
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3358/javascript
|
|
6054
|
+
*/
|
|
6055
|
+
'sonarjs/no-nested-conditional'?: Linter.RuleEntry<[]>;
|
|
6056
|
+
/**
|
|
6057
|
+
* Functions should not be nested too deeply
|
|
6058
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2004/javascript
|
|
6059
|
+
*/
|
|
6060
|
+
'sonarjs/no-nested-functions'?: Linter.RuleEntry<SonarjsNoNestedFunctions>;
|
|
6061
|
+
/**
|
|
6062
|
+
* Increment (++) and decrement (--) operators should not be used in a method call or mixed with other operators in an expression
|
|
6063
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S881/javascript
|
|
6064
|
+
*/
|
|
6065
|
+
'sonarjs/no-nested-incdec'?: Linter.RuleEntry<[]>;
|
|
6066
|
+
/**
|
|
6067
|
+
* "switch" statements should not be nested
|
|
6068
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1821/javascript
|
|
6069
|
+
*/
|
|
6070
|
+
'sonarjs/no-nested-switch'?: Linter.RuleEntry<[]>;
|
|
6071
|
+
/**
|
|
6072
|
+
* Template literals should not be nested
|
|
6073
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4624/javascript
|
|
6074
|
+
*/
|
|
6075
|
+
'sonarjs/no-nested-template-literals'?: Linter.RuleEntry<[]>;
|
|
6076
|
+
/**
|
|
6077
|
+
* OS commands should not rely on PATH resolution
|
|
6078
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4036/javascript
|
|
6079
|
+
*/
|
|
6080
|
+
'sonarjs/no-os-command-from-path'?: Linter.RuleEntry<[]>;
|
|
6081
|
+
/**
|
|
6082
|
+
* Initial values of parameters, caught exceptions, and loop variables should not be ignored
|
|
6083
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1226/javascript
|
|
6084
|
+
*/
|
|
6085
|
+
'sonarjs/no-parameter-reassignment'?: Linter.RuleEntry<[]>;
|
|
6086
|
+
/**
|
|
6087
|
+
* Wrapper objects should not be used for primitive types
|
|
6088
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1533/javascript
|
|
6089
|
+
*/
|
|
6090
|
+
'sonarjs/no-primitive-wrappers'?: Linter.RuleEntry<[]>;
|
|
6091
|
+
/**
|
|
6092
|
+
* Assignments should not be redundant
|
|
6093
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4165/javascript
|
|
6094
|
+
*/
|
|
6095
|
+
'sonarjs/no-redundant-assignments'?: Linter.RuleEntry<[]>;
|
|
6096
|
+
/**
|
|
6097
|
+
* Boolean literals should not be used in comparisons
|
|
6098
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1125/javascript
|
|
6099
|
+
*/
|
|
6100
|
+
'sonarjs/no-redundant-boolean'?: Linter.RuleEntry<[]>;
|
|
6101
|
+
/**
|
|
6102
|
+
* Jump statements should not be redundant
|
|
6103
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3626/javascript
|
|
6104
|
+
*/
|
|
6105
|
+
'sonarjs/no-redundant-jump'?: Linter.RuleEntry<[]>;
|
|
6106
|
+
/**
|
|
6107
|
+
* Optional property declarations should not use both '?' and 'undefined' syntax
|
|
6108
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4782/javascript
|
|
6109
|
+
*/
|
|
6110
|
+
'sonarjs/no-redundant-optional'?: Linter.RuleEntry<[]>;
|
|
6111
|
+
/**
|
|
6112
|
+
* Unnecessary parentheses should be removed
|
|
6113
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1110/javascript
|
|
6114
|
+
* @deprecated
|
|
6115
|
+
*/
|
|
6116
|
+
'sonarjs/no-redundant-parentheses'?: Linter.RuleEntry<[]>;
|
|
6117
|
+
/**
|
|
6118
|
+
* Variables should be defined before being used
|
|
6119
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3827/javascript
|
|
6120
|
+
*/
|
|
6121
|
+
'sonarjs/no-reference-error'?: Linter.RuleEntry<[]>;
|
|
6122
|
+
/**
|
|
6123
|
+
* HTTP Referrer-Policy should not be set to an unsafe value
|
|
6124
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5736/javascript
|
|
6125
|
+
*/
|
|
6126
|
+
'sonarjs/no-referrer-policy'?: Linter.RuleEntry<[]>;
|
|
6127
|
+
/**
|
|
6128
|
+
* Regular expressions should not contain multiple spaces
|
|
6129
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6326/javascript
|
|
6130
|
+
*/
|
|
6131
|
+
'sonarjs/no-regex-spaces'?: Linter.RuleEntry<[]>;
|
|
6132
|
+
/**
|
|
6133
|
+
* "import" should be used to include external code
|
|
6134
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3533/javascript
|
|
6135
|
+
*/
|
|
6136
|
+
'sonarjs/no-require-or-define'?: Linter.RuleEntry<[]>;
|
|
6137
|
+
/**
|
|
6138
|
+
* Primitive return types should be used
|
|
6139
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4324/javascript
|
|
6140
|
+
*/
|
|
6141
|
+
'sonarjs/no-return-type-any'?: Linter.RuleEntry<[]>;
|
|
6142
|
+
/**
|
|
6143
|
+
* Assertions should not be given twice the same argument
|
|
6144
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5863/javascript
|
|
6145
|
+
*/
|
|
6146
|
+
'sonarjs/no-same-argument-assert'?: Linter.RuleEntry<[]>;
|
|
6147
|
+
/**
|
|
6148
|
+
* Conditionals should start on new lines
|
|
6149
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3972/javascript
|
|
6150
|
+
*/
|
|
6151
|
+
'sonarjs/no-same-line-conditional'?: Linter.RuleEntry<[]>;
|
|
6152
|
+
/**
|
|
6153
|
+
* Methods should not contain selector parameters
|
|
6154
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2301/javascript
|
|
6155
|
+
*/
|
|
6156
|
+
'sonarjs/no-selector-parameter'?: Linter.RuleEntry<[]>;
|
|
6157
|
+
/**
|
|
6158
|
+
* Static Assets should not serve session cookies
|
|
6159
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8441/javascript
|
|
6160
|
+
*/
|
|
6161
|
+
'sonarjs/no-session-cookies-on-static-assets'?: Linter.RuleEntry<[]>;
|
|
6162
|
+
/**
|
|
6163
|
+
* Tests should not be skipped without providing a reason
|
|
6164
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1607/javascript
|
|
6165
|
+
*/
|
|
6166
|
+
'sonarjs/no-skipped-tests'?: Linter.RuleEntry<[]>;
|
|
6167
|
+
/**
|
|
6168
|
+
* "if" statements should be preferred over "switch" when simpler
|
|
6169
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1301/javascript
|
|
6170
|
+
*/
|
|
6171
|
+
'sonarjs/no-small-switch'?: Linter.RuleEntry<[]>;
|
|
6172
|
+
/**
|
|
6173
|
+
* Track uses of "NOSONAR" comments
|
|
6174
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1291/javascript
|
|
6175
|
+
*/
|
|
6176
|
+
'sonarjs/no-sonar-comments'?: Linter.RuleEntry<[]>;
|
|
6177
|
+
/**
|
|
6178
|
+
* Tabulation characters should not be used
|
|
6179
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S105/javascript
|
|
6180
|
+
* @deprecated
|
|
6181
|
+
*/
|
|
6182
|
+
'sonarjs/no-tab'?: Linter.RuleEntry<[]>;
|
|
6183
|
+
/**
|
|
6184
|
+
* HTML "<table>" should not be used for layout purposes
|
|
6185
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5257/javascript
|
|
6186
|
+
*/
|
|
6187
|
+
'sonarjs/no-table-as-layout'?: Linter.RuleEntry<[]>;
|
|
6188
|
+
/**
|
|
6189
|
+
* Assertions should not be trivially true
|
|
6190
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5914/javascript
|
|
6191
|
+
*/
|
|
6192
|
+
'sonarjs/no-trivial-assertions'?: Linter.RuleEntry<[]>;
|
|
6193
|
+
/**
|
|
6194
|
+
* Promise rejections should not be caught by "try" blocks
|
|
6195
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4822/javascript
|
|
6196
|
+
*/
|
|
6197
|
+
'sonarjs/no-try-promise'?: Linter.RuleEntry<[]>;
|
|
6198
|
+
/**
|
|
6199
|
+
* "undefined" should not be passed as the value of optional parameters
|
|
6200
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4623/javascript
|
|
6201
|
+
*/
|
|
6202
|
+
'sonarjs/no-undefined-argument'?: Linter.RuleEntry<[]>;
|
|
6203
|
+
/**
|
|
6204
|
+
* "undefined" should not be assigned
|
|
6205
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2138/javascript
|
|
6206
|
+
*/
|
|
6207
|
+
'sonarjs/no-undefined-assignment'?: Linter.RuleEntry<[]>;
|
|
6208
|
+
/**
|
|
6209
|
+
* Multiline blocks should be enclosed in curly braces
|
|
6210
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2681/javascript
|
|
6211
|
+
*/
|
|
6212
|
+
'sonarjs/no-unenclosed-multiline-block'?: Linter.RuleEntry<[]>;
|
|
6213
|
+
/**
|
|
6214
|
+
* JSX list components keys should match up between renders
|
|
6215
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6486/javascript
|
|
6216
|
+
*/
|
|
6217
|
+
'sonarjs/no-uniq-key'?: Linter.RuleEntry<[]>;
|
|
6218
|
+
/**
|
|
6219
|
+
* Expanding archive files should not be done without controlling resource consumption
|
|
6220
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5042/javascript
|
|
6221
|
+
* @deprecated
|
|
6222
|
+
*/
|
|
6223
|
+
'sonarjs/no-unsafe-unzip'?: Linter.RuleEntry<[]>;
|
|
6224
|
+
/**
|
|
6225
|
+
* Errors should not be created without being thrown
|
|
6226
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3984/javascript
|
|
6227
|
+
*/
|
|
6228
|
+
'sonarjs/no-unthrown-error'?: Linter.RuleEntry<[]>;
|
|
6229
|
+
/**
|
|
6230
|
+
* Collection contents should be used
|
|
6231
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4030/javascript
|
|
6232
|
+
*/
|
|
6233
|
+
'sonarjs/no-unused-collection'?: Linter.RuleEntry<[]>;
|
|
6234
|
+
/**
|
|
6235
|
+
* Unused function parameters should be removed
|
|
6236
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1172/javascript
|
|
6237
|
+
*/
|
|
6238
|
+
'sonarjs/no-unused-function-argument'?: Linter.RuleEntry<[]>;
|
|
6239
|
+
/**
|
|
6240
|
+
* Unused local variables and functions should be removed
|
|
6241
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1481/javascript
|
|
6242
|
+
*/
|
|
6243
|
+
'sonarjs/no-unused-vars'?: Linter.RuleEntry<[]>;
|
|
6244
|
+
/**
|
|
6245
|
+
* The return value of void functions should not be used
|
|
6246
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3699/javascript
|
|
6247
|
+
*/
|
|
6248
|
+
'sonarjs/no-use-of-empty-return-value'?: Linter.RuleEntry<[]>;
|
|
6249
|
+
/**
|
|
6250
|
+
* "catch" clauses should do more than rethrow
|
|
6251
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2737/javascript
|
|
6252
|
+
*/
|
|
6253
|
+
'sonarjs/no-useless-catch'?: Linter.RuleEntry<[]>;
|
|
6254
|
+
/**
|
|
6255
|
+
* Values should not be uselessly incremented
|
|
6256
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2123/javascript
|
|
6257
|
+
*/
|
|
6258
|
+
'sonarjs/no-useless-increment'?: Linter.RuleEntry<[]>;
|
|
6259
|
+
/**
|
|
6260
|
+
* Type intersections should use meaningful types
|
|
6261
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4335/javascript
|
|
6262
|
+
*/
|
|
6263
|
+
'sonarjs/no-useless-intersection'?: Linter.RuleEntry<[]>;
|
|
6264
|
+
/**
|
|
6265
|
+
* React state setter function should not be called with its matching state variable
|
|
6266
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6443/javascript
|
|
6267
|
+
*/
|
|
6268
|
+
'sonarjs/no-useless-react-setstate'?: Linter.RuleEntry<[]>;
|
|
6269
|
+
/**
|
|
6270
|
+
* Variables declared with "var" should be declared before they are used
|
|
6271
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1526/javascript
|
|
6272
|
+
*/
|
|
6273
|
+
'sonarjs/no-variable-usage-before-declaration'?: Linter.RuleEntry<[]>;
|
|
6274
|
+
/**
|
|
6275
|
+
* Cipher algorithms should be robust
|
|
6276
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5547/javascript
|
|
6277
|
+
*/
|
|
6278
|
+
'sonarjs/no-weak-cipher'?: Linter.RuleEntry<[]>;
|
|
6279
|
+
/**
|
|
6280
|
+
* Cryptographic keys should be robust
|
|
6281
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4426/javascript
|
|
6282
|
+
*/
|
|
6283
|
+
'sonarjs/no-weak-keys'?: Linter.RuleEntry<[]>;
|
|
6284
|
+
/**
|
|
6285
|
+
* Wildcard imports should not be used
|
|
6286
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2208/javascript
|
|
6287
|
+
*/
|
|
6288
|
+
'sonarjs/no-wildcard-import'?: Linter.RuleEntry<[]>;
|
|
6289
|
+
/**
|
|
6290
|
+
* Non-existent operators '=+', '=-' and '=!' should not be used
|
|
6291
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2757/javascript
|
|
6292
|
+
*/
|
|
6293
|
+
'sonarjs/non-existent-operator'?: Linter.RuleEntry<[]>;
|
|
6294
|
+
/**
|
|
6295
|
+
* Arithmetic operators should only have numbers as operands
|
|
6296
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3760/javascript
|
|
6297
|
+
*/
|
|
6298
|
+
'sonarjs/non-number-in-arithmetic-expression'?: Linter.RuleEntry<[]>;
|
|
6299
|
+
/**
|
|
6300
|
+
* Properties of variables with "null" or "undefined" values should not be accessed
|
|
6301
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2259/javascript
|
|
6302
|
+
*/
|
|
6303
|
+
'sonarjs/null-dereference'?: Linter.RuleEntry<[]>;
|
|
6304
|
+
/**
|
|
6305
|
+
* "<object>" tags should provide an alternative content
|
|
6306
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5264/javascript
|
|
6307
|
+
*/
|
|
6308
|
+
'sonarjs/object-alt-content'?: Linter.RuleEntry<[]>;
|
|
6309
|
+
/**
|
|
6310
|
+
* Arithmetic operations should not result in "NaN"
|
|
6311
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3757/javascript
|
|
6312
|
+
*/
|
|
6313
|
+
'sonarjs/operation-returning-nan'?: Linter.RuleEntry<[]>;
|
|
4797
6314
|
/**
|
|
4798
|
-
*
|
|
4799
|
-
* @see https://
|
|
6315
|
+
* OS commands should not be executed using a shell interpreter
|
|
6316
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4721/javascript
|
|
6317
|
+
* @deprecated
|
|
4800
6318
|
*/
|
|
4801
|
-
'
|
|
6319
|
+
'sonarjs/os-command'?: Linter.RuleEntry<[]>;
|
|
4802
6320
|
/**
|
|
4803
|
-
*
|
|
4804
|
-
* @see https://
|
|
6321
|
+
* Similar tests should be grouped in a single Parameterized test
|
|
6322
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5976/javascript
|
|
4805
6323
|
*/
|
|
4806
|
-
'
|
|
6324
|
+
'sonarjs/parameterized-tests'?: Linter.RuleEntry<[]>;
|
|
4807
6325
|
/**
|
|
4808
|
-
*
|
|
4809
|
-
* @see https://
|
|
6326
|
+
* Origins should be verified during cross-origin communications
|
|
6327
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2819/javascript
|
|
4810
6328
|
*/
|
|
4811
|
-
'
|
|
6329
|
+
'sonarjs/post-message'?: Linter.RuleEntry<[]>;
|
|
4812
6330
|
/**
|
|
4813
|
-
*
|
|
4814
|
-
* @see https://
|
|
6331
|
+
* "default" clauses should be last
|
|
6332
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4524/javascript
|
|
4815
6333
|
*/
|
|
4816
|
-
'
|
|
6334
|
+
'sonarjs/prefer-default-last'?: Linter.RuleEntry<[]>;
|
|
4817
6335
|
/**
|
|
4818
|
-
*
|
|
4819
|
-
* @see https://
|
|
6336
|
+
* Local variables should not be declared and then immediately returned or thrown
|
|
6337
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1488/javascript
|
|
4820
6338
|
*/
|
|
4821
|
-
'
|
|
6339
|
+
'sonarjs/prefer-immediate-return'?: Linter.RuleEntry<[]>;
|
|
4822
6340
|
/**
|
|
4823
|
-
*
|
|
4824
|
-
* @see https://
|
|
6341
|
+
* Native APIs should be preferred over Lodash and Underscore.js methods
|
|
6342
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8907/javascript
|
|
4825
6343
|
*/
|
|
4826
|
-
'
|
|
6344
|
+
'sonarjs/prefer-native-lodash-alternative'?: Linter.RuleEntry<[]>;
|
|
4827
6345
|
/**
|
|
4828
|
-
*
|
|
4829
|
-
* @see https://
|
|
6346
|
+
* Object literal syntax should be used
|
|
6347
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2428/javascript
|
|
4830
6348
|
*/
|
|
4831
|
-
'
|
|
6349
|
+
'sonarjs/prefer-object-literal'?: Linter.RuleEntry<[]>;
|
|
4832
6350
|
/**
|
|
4833
|
-
*
|
|
4834
|
-
* @see https://
|
|
6351
|
+
* Shorthand promises should be used
|
|
6352
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4634/javascript
|
|
4835
6353
|
*/
|
|
4836
|
-
'
|
|
6354
|
+
'sonarjs/prefer-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4837
6355
|
/**
|
|
4838
|
-
*
|
|
4839
|
-
* @see https://
|
|
6356
|
+
* React props should be read-only
|
|
6357
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6759/javascript
|
|
4840
6358
|
*/
|
|
4841
|
-
'
|
|
6359
|
+
'sonarjs/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
4842
6360
|
/**
|
|
4843
|
-
*
|
|
4844
|
-
* @see https://
|
|
6361
|
+
* "RegExp.exec()" should be preferred over "String.match()"
|
|
6362
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6594/javascript
|
|
4845
6363
|
*/
|
|
4846
|
-
'
|
|
6364
|
+
'sonarjs/prefer-regexp-exec'?: Linter.RuleEntry<[]>;
|
|
4847
6365
|
/**
|
|
4848
|
-
*
|
|
4849
|
-
* @see https://
|
|
6366
|
+
* Return of boolean expressions should not be wrapped into an "if-then-else" statement
|
|
6367
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1126/javascript
|
|
4850
6368
|
*/
|
|
4851
|
-
'
|
|
6369
|
+
'sonarjs/prefer-single-boolean-return'?: Linter.RuleEntry<[]>;
|
|
4852
6370
|
/**
|
|
4853
|
-
*
|
|
4854
|
-
* @see https://
|
|
6371
|
+
* The most specific assertion should be used
|
|
6372
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5906/javascript
|
|
4855
6373
|
*/
|
|
4856
|
-
'
|
|
6374
|
+
'sonarjs/prefer-specific-assertions'?: Linter.RuleEntry<[]>;
|
|
4857
6375
|
/**
|
|
4858
|
-
*
|
|
4859
|
-
* @see https://
|
|
6376
|
+
* Type predicates should be used
|
|
6377
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4322/javascript
|
|
4860
6378
|
*/
|
|
4861
|
-
'
|
|
6379
|
+
'sonarjs/prefer-type-guard'?: Linter.RuleEntry<[]>;
|
|
4862
6380
|
/**
|
|
4863
|
-
*
|
|
4864
|
-
* @see https://
|
|
6381
|
+
* A "while" loop should be used instead of a "for" loop
|
|
6382
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1264/javascript
|
|
4865
6383
|
*/
|
|
4866
|
-
'
|
|
6384
|
+
'sonarjs/prefer-while'?: Linter.RuleEntry<[]>;
|
|
4867
6385
|
/**
|
|
4868
|
-
*
|
|
4869
|
-
* @see https://
|
|
6386
|
+
* Debugging features should not be enabled in production
|
|
6387
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4507/javascript
|
|
4870
6388
|
*/
|
|
4871
|
-
'
|
|
6389
|
+
'sonarjs/production-debug'?: Linter.RuleEntry<[]>;
|
|
4872
6390
|
/**
|
|
4873
|
-
*
|
|
4874
|
-
* @see https://
|
|
6391
|
+
* Pseudorandom number generators (PRNGs) should not be used in security contexts
|
|
6392
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2245/javascript
|
|
4875
6393
|
*/
|
|
4876
|
-
'
|
|
6394
|
+
'sonarjs/pseudo-random'?: Linter.RuleEntry<[]>;
|
|
4877
6395
|
/**
|
|
4878
|
-
*
|
|
4879
|
-
* @see https://
|
|
6396
|
+
* Public "static" fields should be read-only
|
|
6397
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1444/javascript
|
|
4880
6398
|
*/
|
|
4881
|
-
'
|
|
6399
|
+
'sonarjs/public-static-readonly'?: Linter.RuleEntry<[]>;
|
|
4882
6400
|
/**
|
|
4883
|
-
*
|
|
4884
|
-
* @see https://
|
|
6401
|
+
* Temporary files should not be created in publicly writable directories
|
|
6402
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5443/javascript
|
|
4885
6403
|
*/
|
|
4886
|
-
'
|
|
6404
|
+
'sonarjs/publicly-writable-directories'?: Linter.RuleEntry<[]>;
|
|
4887
6405
|
/**
|
|
4888
|
-
*
|
|
4889
|
-
* @see https://
|
|
6406
|
+
* "Array.reduce()" calls should include an initial value
|
|
6407
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6959/javascript
|
|
4890
6408
|
*/
|
|
4891
|
-
'
|
|
6409
|
+
'sonarjs/reduce-initial-value'?: Linter.RuleEntry<[]>;
|
|
4892
6410
|
/**
|
|
4893
|
-
*
|
|
4894
|
-
* @see https://
|
|
6411
|
+
* Redundant type aliases should not be used
|
|
6412
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6564/javascript
|
|
4895
6413
|
*/
|
|
4896
|
-
'
|
|
6414
|
+
'sonarjs/redundant-type-aliases'?: Linter.RuleEntry<[]>;
|
|
4897
6415
|
/**
|
|
4898
|
-
*
|
|
4899
|
-
* @see https://
|
|
6416
|
+
* Regular expressions should not be too complicated
|
|
6417
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5843/javascript
|
|
4900
6418
|
*/
|
|
4901
|
-
'
|
|
6419
|
+
'sonarjs/regex-complexity'?: Linter.RuleEntry<SonarjsRegexComplexity>;
|
|
4902
6420
|
/**
|
|
4903
|
-
*
|
|
4904
|
-
* @see https://
|
|
6421
|
+
* Wallet phrases should not be hard-coded
|
|
6422
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S7639/javascript
|
|
4905
6423
|
*/
|
|
4906
|
-
'
|
|
6424
|
+
'sonarjs/review-blockchain-mnemonic'?: Linter.RuleEntry<[]>;
|
|
4907
6425
|
/**
|
|
4908
|
-
*
|
|
4909
|
-
* @see https://
|
|
6426
|
+
* A new session should be created during user authentication
|
|
6427
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5876/javascript
|
|
4910
6428
|
*/
|
|
4911
|
-
'
|
|
6429
|
+
'sonarjs/session-regeneration'?: Linter.RuleEntry<[]>;
|
|
4912
6430
|
/**
|
|
4913
|
-
*
|
|
4914
|
-
* @see https://
|
|
6431
|
+
* Shorthand object properties should be grouped at the beginning or end of an object declaration
|
|
6432
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3499/javascript
|
|
4915
6433
|
*/
|
|
4916
|
-
'
|
|
6434
|
+
'sonarjs/shorthand-property-grouping'?: Linter.RuleEntry<[]>;
|
|
4917
6435
|
/**
|
|
4918
|
-
*
|
|
4919
|
-
* @see https://
|
|
6436
|
+
* Character classes in regular expressions should not contain only one character
|
|
6437
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6397/javascript
|
|
4920
6438
|
*/
|
|
4921
|
-
'
|
|
6439
|
+
'sonarjs/single-char-in-character-classes'?: Linter.RuleEntry<[]>;
|
|
4922
6440
|
/**
|
|
4923
|
-
*
|
|
4924
|
-
* @see https://
|
|
6441
|
+
* Single-character alternations in regular expressions should be replaced with character classes
|
|
6442
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6035/javascript
|
|
4925
6443
|
*/
|
|
4926
|
-
'
|
|
6444
|
+
'sonarjs/single-character-alternation'?: Linter.RuleEntry<[]>;
|
|
4927
6445
|
/**
|
|
4928
|
-
*
|
|
4929
|
-
* @see https://
|
|
6446
|
+
* Regular expressions should not cause catastrophic backtracking
|
|
6447
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5852/javascript
|
|
4930
6448
|
*/
|
|
4931
|
-
'
|
|
6449
|
+
'sonarjs/slow-regex'?: Linter.RuleEntry<[]>;
|
|
4932
6450
|
/**
|
|
4933
|
-
*
|
|
4934
|
-
* @see https://
|
|
6451
|
+
* SQL queries should not be dynamically formatted
|
|
6452
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2077/javascript
|
|
4935
6453
|
*/
|
|
4936
|
-
'
|
|
6454
|
+
'sonarjs/sql-queries'?: Linter.RuleEntry<[]>;
|
|
4937
6455
|
/**
|
|
4938
|
-
*
|
|
4939
|
-
* @see https://
|
|
6456
|
+
* Tests should be stable
|
|
6457
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5973/javascript
|
|
4940
6458
|
*/
|
|
4941
|
-
'
|
|
6459
|
+
'sonarjs/stable-tests'?: Linter.RuleEntry<[]>;
|
|
4942
6460
|
/**
|
|
4943
|
-
*
|
|
4944
|
-
* @see https://
|
|
6461
|
+
* Regular expressions with the global flag should be used with caution
|
|
6462
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S6351/javascript
|
|
4945
6463
|
*/
|
|
4946
|
-
'
|
|
6464
|
+
'sonarjs/stateful-regex'?: Linter.RuleEntry<[]>;
|
|
4947
6465
|
/**
|
|
4948
|
-
*
|
|
4949
|
-
* @see https://
|
|
6466
|
+
* HTTP Strict-Transport-Security policy should not be disabled
|
|
6467
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5739/javascript
|
|
4950
6468
|
*/
|
|
4951
|
-
'
|
|
6469
|
+
'sonarjs/strict-transport-security'?: Linter.RuleEntry<[]>;
|
|
4952
6470
|
/**
|
|
4953
|
-
*
|
|
4954
|
-
* @see https://
|
|
4955
|
-
* @deprecated
|
|
6471
|
+
* Comparison operators should not be used with strings
|
|
6472
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3003/javascript
|
|
4956
6473
|
*/
|
|
4957
|
-
'
|
|
6474
|
+
'sonarjs/strings-comparison'?: Linter.RuleEntry<[]>;
|
|
4958
6475
|
/**
|
|
4959
|
-
*
|
|
4960
|
-
* @see https://
|
|
4961
|
-
* @deprecated
|
|
6476
|
+
* Regular expressions should not cause non-linear backtracking
|
|
6477
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8786/javascript
|
|
4962
6478
|
*/
|
|
4963
|
-
'
|
|
6479
|
+
'sonarjs/super-linear-regex'?: Linter.RuleEntry<[]>;
|
|
4964
6480
|
/**
|
|
4965
|
-
*
|
|
4966
|
-
* @see https://
|
|
4967
|
-
* @deprecated
|
|
6481
|
+
* Tests should not be registered asynchronously in suite callbacks
|
|
6482
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S8785/javascript
|
|
4968
6483
|
*/
|
|
4969
|
-
'
|
|
6484
|
+
'sonarjs/synchronous-suite-callback'?: Linter.RuleEntry<[]>;
|
|
4970
6485
|
/**
|
|
4971
|
-
*
|
|
4972
|
-
* @see https://
|
|
4973
|
-
* @deprecated
|
|
6486
|
+
* Tables should have headers
|
|
6487
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5256/javascript
|
|
4974
6488
|
*/
|
|
4975
|
-
'
|
|
6489
|
+
'sonarjs/table-header'?: Linter.RuleEntry<[]>;
|
|
4976
6490
|
/**
|
|
4977
|
-
*
|
|
4978
|
-
* @see https://github.
|
|
6491
|
+
* Table cells should reference their headers
|
|
6492
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5260/javascript
|
|
4979
6493
|
*/
|
|
4980
|
-
'
|
|
6494
|
+
'sonarjs/table-header-reference'?: Linter.RuleEntry<[]>;
|
|
4981
6495
|
/**
|
|
4982
|
-
*
|
|
4983
|
-
* @see https://github.
|
|
6496
|
+
* Tests should check which exception is thrown
|
|
6497
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5958/javascript
|
|
4984
6498
|
*/
|
|
4985
|
-
'
|
|
6499
|
+
'sonarjs/test-check-exception'?: Linter.RuleEntry<[]>;
|
|
4986
6500
|
/**
|
|
4987
|
-
*
|
|
4988
|
-
* @see https://github.
|
|
6501
|
+
* Track uses of "TODO" tags
|
|
6502
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1135/javascript
|
|
4989
6503
|
*/
|
|
4990
|
-
'
|
|
6504
|
+
'sonarjs/todo-tag'?: Linter.RuleEntry<[]>;
|
|
4991
6505
|
/**
|
|
4992
|
-
*
|
|
4993
|
-
* @see https://github.
|
|
6506
|
+
* Loops should not contain more than a single "break" or "continue" statement
|
|
6507
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S135/javascript
|
|
4994
6508
|
*/
|
|
4995
|
-
'
|
|
6509
|
+
'sonarjs/too-many-break-or-continue-in-loop'?: Linter.RuleEntry<[]>;
|
|
4996
6510
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
* @see https://github.
|
|
6511
|
+
* Regular expressions using Unicode character classes or property escapes should enable the unicode flag
|
|
6512
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5867/javascript
|
|
4999
6513
|
*/
|
|
5000
|
-
'
|
|
6514
|
+
'sonarjs/unicode-aware-regex'?: Linter.RuleEntry<[]>;
|
|
5001
6515
|
/**
|
|
5002
|
-
*
|
|
5003
|
-
* @see https://github.
|
|
6516
|
+
* Unnecessary imports should be removed
|
|
6517
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1128/javascript
|
|
5004
6518
|
*/
|
|
5005
|
-
'
|
|
6519
|
+
'sonarjs/unused-import'?: Linter.RuleEntry<[]>;
|
|
5006
6520
|
/**
|
|
5007
|
-
*
|
|
5008
|
-
* @see https://github.
|
|
6521
|
+
* Names of regular expressions named groups should be used
|
|
6522
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5860/javascript
|
|
5009
6523
|
*/
|
|
5010
|
-
'
|
|
6524
|
+
'sonarjs/unused-named-groups'?: Linter.RuleEntry<[]>;
|
|
5011
6525
|
/**
|
|
5012
|
-
*
|
|
5013
|
-
* @see https://github.
|
|
6526
|
+
* Server certificates should be verified during SSL/TLS connections
|
|
6527
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4830/javascript
|
|
5014
6528
|
*/
|
|
5015
|
-
'
|
|
6529
|
+
'sonarjs/unverified-certificate'?: Linter.RuleEntry<[]>;
|
|
5016
6530
|
/**
|
|
5017
|
-
*
|
|
5018
|
-
* @see https://github.
|
|
6531
|
+
* Server hostnames should be verified during SSL/TLS connections
|
|
6532
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5527/javascript
|
|
5019
6533
|
*/
|
|
5020
|
-
'
|
|
6534
|
+
'sonarjs/unverified-hostname'?: Linter.RuleEntry<[]>;
|
|
5021
6535
|
/**
|
|
5022
|
-
*
|
|
5023
|
-
* @see https://github.
|
|
6536
|
+
* "const" variables should not be reassigned
|
|
6537
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3500/javascript
|
|
5024
6538
|
*/
|
|
5025
|
-
'
|
|
6539
|
+
'sonarjs/updated-const-var'?: Linter.RuleEntry<[]>;
|
|
5026
6540
|
/**
|
|
5027
|
-
*
|
|
5028
|
-
* @see https://github.
|
|
6541
|
+
* Loop counters should not be assigned within the loop body
|
|
6542
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2310/javascript
|
|
5029
6543
|
*/
|
|
5030
|
-
'
|
|
6544
|
+
'sonarjs/updated-loop-counter'?: Linter.RuleEntry<[]>;
|
|
5031
6545
|
/**
|
|
5032
|
-
*
|
|
5033
|
-
* @see https://github.
|
|
6546
|
+
* Type aliases should be used
|
|
6547
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4323/javascript
|
|
5034
6548
|
*/
|
|
5035
|
-
'
|
|
6549
|
+
'sonarjs/use-type-alias'?: Linter.RuleEntry<[]>;
|
|
5036
6550
|
/**
|
|
5037
|
-
*
|
|
5038
|
-
* @see https://github.
|
|
6551
|
+
* Results of operations on strings should not be ignored
|
|
6552
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S1154/javascript
|
|
6553
|
+
* @deprecated
|
|
5039
6554
|
*/
|
|
5040
|
-
'
|
|
6555
|
+
'sonarjs/useless-string-operation'?: Linter.RuleEntry<[]>;
|
|
5041
6556
|
/**
|
|
5042
|
-
*
|
|
5043
|
-
* @see https://github.
|
|
6557
|
+
* Values not convertible to numbers should not be used in numeric comparisons
|
|
6558
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3758/javascript
|
|
5044
6559
|
*/
|
|
5045
|
-
'
|
|
6560
|
+
'sonarjs/values-not-convertible-to-numbers'?: Linter.RuleEntry<[]>;
|
|
5046
6561
|
/**
|
|
5047
|
-
*
|
|
5048
|
-
* @see https://github.
|
|
5049
|
-
* @deprecated
|
|
6562
|
+
* Variable, property and parameter names should comply with a naming convention
|
|
6563
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S117/javascript
|
|
5050
6564
|
*/
|
|
5051
|
-
'
|
|
6565
|
+
'sonarjs/variable-name'?: Linter.RuleEntry<SonarjsVariableName>;
|
|
5052
6566
|
/**
|
|
5053
|
-
*
|
|
5054
|
-
* @see https://github.
|
|
6567
|
+
* "void" should not be used
|
|
6568
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S3735/javascript
|
|
5055
6569
|
*/
|
|
5056
|
-
'
|
|
6570
|
+
'sonarjs/void-use'?: Linter.RuleEntry<[]>;
|
|
5057
6571
|
/**
|
|
5058
|
-
*
|
|
5059
|
-
* @see https://github.
|
|
6572
|
+
* Weak SSL/TLS protocols should not be used
|
|
6573
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S4423/javascript
|
|
5060
6574
|
*/
|
|
5061
|
-
'
|
|
6575
|
+
'sonarjs/weak-ssl'?: Linter.RuleEntry<[]>;
|
|
5062
6576
|
/**
|
|
5063
|
-
*
|
|
5064
|
-
* @see https://github.
|
|
6577
|
+
* Web SQL databases should not be used
|
|
6578
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2817/javascript
|
|
6579
|
+
* @deprecated
|
|
5065
6580
|
*/
|
|
5066
|
-
'
|
|
6581
|
+
'sonarjs/web-sql-database'?: Linter.RuleEntry<[]>;
|
|
5067
6582
|
/**
|
|
5068
|
-
*
|
|
5069
|
-
* @see https://github.
|
|
6583
|
+
* Web application technologies should not disclose version information
|
|
6584
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S5689/javascript
|
|
5070
6585
|
*/
|
|
5071
|
-
'
|
|
6586
|
+
'sonarjs/x-powered-by'?: Linter.RuleEntry<[]>;
|
|
5072
6587
|
/**
|
|
5073
|
-
*
|
|
5074
|
-
* @see https://github.
|
|
6588
|
+
* XML parsers should not be vulnerable to XXE attacks
|
|
6589
|
+
* @see https://sonarsource.github.io/rspec/#/rspec/S2755/javascript
|
|
5075
6590
|
*/
|
|
5076
|
-
'
|
|
6591
|
+
'sonarjs/xml-parser-xxe'?: Linter.RuleEntry<[]>;
|
|
5077
6592
|
/**
|
|
5078
6593
|
* Enforce sorted `import` declarations within modules
|
|
5079
6594
|
* @see https://eslint.org/docs/latest/rules/sort-imports
|
|
@@ -5932,6 +7447,11 @@ interface RuleOptions {
|
|
|
5932
7447
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-useless-mustaches/
|
|
5933
7448
|
*/
|
|
5934
7449
|
'svelte/no-useless-mustaches'?: Linter.RuleEntry<SvelteNoUselessMustaches>;
|
|
7450
|
+
/**
|
|
7451
|
+
* require attribute interpolation instead of template literals
|
|
7452
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-attribute-interpolation/
|
|
7453
|
+
*/
|
|
7454
|
+
'svelte/prefer-attribute-interpolation'?: Linter.RuleEntry<[]>;
|
|
5935
7455
|
/**
|
|
5936
7456
|
* require class directives instead of ternary expressions
|
|
5937
7457
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-class-directive/
|
|
@@ -7293,1740 +8813,1740 @@ interface RuleOptions {
|
|
|
7293
8813
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7294
8814
|
/**
|
|
7295
8815
|
* Prefer better DOM traversal APIs.
|
|
7296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/better-dom-traversing.md
|
|
7297
8817
|
*/
|
|
7298
8818
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
7299
8819
|
/**
|
|
7300
8820
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
7301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
7302
8822
|
* @deprecated
|
|
7303
8823
|
*/
|
|
7304
8824
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
7305
8825
|
/**
|
|
7306
8826
|
* Enforce a specific parameter name in catch clauses.
|
|
7307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/catch-error-name.md
|
|
7308
8828
|
*/
|
|
7309
8829
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
7310
8830
|
/**
|
|
7311
8831
|
* Enforce consistent class references in static methods.
|
|
7312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/class-reference-in-static-methods.md
|
|
7313
8833
|
*/
|
|
7314
8834
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
7315
8835
|
/**
|
|
7316
8836
|
* Enforce better comment content.
|
|
7317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/comment-content.md
|
|
7318
8838
|
*/
|
|
7319
8839
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
7320
8840
|
/**
|
|
7321
8841
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
7322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-arrow-return-style.md
|
|
7323
8843
|
*/
|
|
7324
8844
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
7325
8845
|
/**
|
|
7326
8846
|
* Enforce consistent assertion style with `node:assert`.
|
|
7327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-assert.md
|
|
7328
8848
|
*/
|
|
7329
8849
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
7330
8850
|
/**
|
|
7331
8851
|
* Enforce consistent naming for boolean names.
|
|
7332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-boolean-name.md
|
|
7333
8853
|
*/
|
|
7334
8854
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
7335
8855
|
/**
|
|
7336
8856
|
* Enforce consistent class member order.
|
|
7337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-class-member-order.md
|
|
7338
8858
|
*/
|
|
7339
8859
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
7340
8860
|
/**
|
|
7341
8861
|
* Enforce consistent spelling of compound words in identifiers.
|
|
7342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-compound-words.md
|
|
7343
8863
|
*/
|
|
7344
8864
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
7345
8865
|
/**
|
|
7346
8866
|
* Enforce consistent conditional object spread style.
|
|
7347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
7348
8868
|
*/
|
|
7349
8869
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
7350
8870
|
/**
|
|
7351
8871
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-date-clone.md
|
|
7353
8873
|
*/
|
|
7354
8874
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
7355
8875
|
/**
|
|
7356
8876
|
* Use destructured variables over properties.
|
|
7357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-destructuring.md
|
|
7358
8878
|
*/
|
|
7359
8879
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
7360
8880
|
/**
|
|
7361
8881
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-empty-array-spread.md
|
|
7363
8883
|
*/
|
|
7364
8884
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
7365
8885
|
/**
|
|
7366
8886
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-existence-index-check.md
|
|
7368
8888
|
*/
|
|
7369
8889
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
7370
8890
|
/**
|
|
7371
8891
|
* Enforce consistent decorator position on exported classes.
|
|
7372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-export-decorator-position.md
|
|
7373
8893
|
*/
|
|
7374
8894
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
7375
8895
|
/**
|
|
7376
8896
|
* Move function definitions to the highest possible scope.
|
|
7377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-scoping.md
|
|
7378
8898
|
*/
|
|
7379
8899
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
7380
8900
|
/**
|
|
7381
8901
|
* Enforce function syntax by role.
|
|
7382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-function-style.md
|
|
7383
8903
|
*/
|
|
7384
8904
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
7385
8905
|
/**
|
|
7386
8906
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
7387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-json-file-read.md
|
|
7388
8908
|
*/
|
|
7389
8909
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
7390
8910
|
/**
|
|
7391
8911
|
* Enforce consistent optional chaining for same-base member access.
|
|
7392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-optional-chaining.md
|
|
7393
8913
|
*/
|
|
7394
8914
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
7395
8915
|
/**
|
|
7396
8916
|
* Enforce consistent style for escaping `${` in template literals.
|
|
7397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-template-literal-escape.md
|
|
7398
8918
|
*/
|
|
7399
8919
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
7400
8920
|
/**
|
|
7401
8921
|
* Enforce consistent labels on tuple type elements.
|
|
7402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/consistent-tuple-labels.md
|
|
7403
8923
|
*/
|
|
7404
8924
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
7405
8925
|
/**
|
|
7406
8926
|
* Enforce correct `Error` subclassing.
|
|
7407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/custom-error-definition.md
|
|
7408
8928
|
*/
|
|
7409
8929
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
7410
8930
|
/**
|
|
7411
8931
|
* Enforce consistent default export declarations.
|
|
7412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/default-export-style.md
|
|
7413
8933
|
*/
|
|
7414
8934
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
7415
8935
|
/**
|
|
7416
8936
|
* Enforce consistent style for DOM element dataset access.
|
|
7417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/dom-node-dataset.md
|
|
7418
8938
|
*/
|
|
7419
8939
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
7420
8940
|
/**
|
|
7421
8941
|
* Enforce no spaces between braces.
|
|
7422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/empty-brace-spaces.md
|
|
7423
8943
|
*/
|
|
7424
8944
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
7425
8945
|
/**
|
|
7426
8946
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/error-message.md
|
|
7428
8948
|
*/
|
|
7429
8949
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
7430
8950
|
/**
|
|
7431
8951
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/escape-case.md
|
|
7433
8953
|
*/
|
|
7434
8954
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
7435
8955
|
/**
|
|
7436
8956
|
* Add expiration conditions to TODO comments.
|
|
7437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/expiring-todo-comments.md
|
|
7438
8958
|
*/
|
|
7439
8959
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
7440
8960
|
/**
|
|
7441
8961
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-length-check.md
|
|
7443
8963
|
*/
|
|
7444
8964
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
7445
8965
|
/**
|
|
7446
8966
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
7447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/explicit-timer-delay.md
|
|
7448
8968
|
*/
|
|
7449
8969
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
7450
8970
|
/**
|
|
7451
8971
|
* Enforce a case style for filenames and directory names.
|
|
7452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/filename-case.md
|
|
7453
8973
|
*/
|
|
7454
8974
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
7455
8975
|
/**
|
|
7456
8976
|
* Require identifiers to match a specified regular expression.
|
|
7457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/id-match.md
|
|
7458
8978
|
*/
|
|
7459
8979
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
7460
8980
|
/**
|
|
7461
8981
|
* Enforce specific import styles per module.
|
|
7462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/import-style.md
|
|
7463
8983
|
*/
|
|
7464
8984
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
7465
8985
|
/**
|
|
7466
8986
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
7467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/isolated-functions.md
|
|
7468
8988
|
*/
|
|
7469
8989
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
7470
8990
|
/**
|
|
7471
8991
|
* Enforce a consistent style for optional loop sources.
|
|
7472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/iteration-fallback-style.md
|
|
7473
8993
|
*/
|
|
7474
8994
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
7475
8995
|
/**
|
|
7476
8996
|
* Require or disallow logical assignment operator shorthand
|
|
7477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/logical-assignment-operators.md
|
|
7478
8998
|
*/
|
|
7479
8999
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
7480
9000
|
/**
|
|
7481
9001
|
* Limit the depth of nested calls.
|
|
7482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/max-nested-calls.md
|
|
7483
9003
|
*/
|
|
7484
9004
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
7485
9005
|
/**
|
|
7486
9006
|
* Enforce replacements for variable, property, and filenames.
|
|
7487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/name-replacements.md
|
|
7488
9008
|
*/
|
|
7489
9009
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
7490
9010
|
/**
|
|
7491
9011
|
* Enforce correct use of `new` for builtin constructors.
|
|
7492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/new-for-builtins.md
|
|
7493
9013
|
*/
|
|
7494
9014
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
7495
9015
|
/**
|
|
7496
9016
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
7498
9018
|
*/
|
|
7499
9019
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
7500
9020
|
/**
|
|
7501
9021
|
* Disallow recursive access to `this` within getters and setters.
|
|
7502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accessor-recursion.md
|
|
7503
9023
|
*/
|
|
7504
9024
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
7505
9025
|
/**
|
|
7506
9026
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
7507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
7508
9028
|
*/
|
|
7509
9029
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
7510
9030
|
/**
|
|
7511
9031
|
* Disallow anonymous functions and classes as the default export.
|
|
7512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-anonymous-default-export.md
|
|
7513
9033
|
*/
|
|
7514
9034
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
7515
9035
|
/**
|
|
7516
9036
|
* Prevent passing a function reference directly to iterator methods.
|
|
7517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-callback-reference.md
|
|
7518
9038
|
*/
|
|
7519
9039
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
7520
9040
|
/**
|
|
7521
9041
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
7522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-concat-in-loop.md
|
|
7523
9043
|
*/
|
|
7524
9044
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
7525
9045
|
/**
|
|
7526
9046
|
* Disallow using reference values as `Array#fill()` values.
|
|
7527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
7528
9048
|
*/
|
|
7529
9049
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
7530
9050
|
/**
|
|
7531
9051
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
7532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-from-fill.md
|
|
7533
9053
|
*/
|
|
7534
9054
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
7535
9055
|
/**
|
|
7536
9056
|
* Disallow front-of-array mutation.
|
|
7537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-front-mutation.md
|
|
7538
9058
|
*/
|
|
7539
9059
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
7540
9060
|
/**
|
|
7541
9061
|
* Disallow using the `this` argument in array methods.
|
|
7542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-method-this-argument.md
|
|
7543
9063
|
*/
|
|
7544
9064
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
7545
9065
|
/**
|
|
7546
9066
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
7548
9068
|
* @deprecated
|
|
7549
9069
|
*/
|
|
7550
9070
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
7551
9071
|
/**
|
|
7552
9072
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7553
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reduce.md
|
|
7554
9074
|
*/
|
|
7555
9075
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
7556
9076
|
/**
|
|
7557
9077
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
7558
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-reverse.md
|
|
7559
9079
|
*/
|
|
7560
9080
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
7561
9081
|
/**
|
|
7562
9082
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
7563
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort.md
|
|
7564
9084
|
*/
|
|
7565
9085
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
7566
9086
|
/**
|
|
7567
9087
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
7568
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
7569
9089
|
*/
|
|
7570
9090
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
7571
9091
|
/**
|
|
7572
9092
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
7573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-array-splice.md
|
|
7574
9094
|
*/
|
|
7575
9095
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
7576
9096
|
/**
|
|
7577
9097
|
* Disallow asterisk prefixes in documentation comments.
|
|
7578
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
7579
9099
|
*/
|
|
7580
9100
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
7581
9101
|
/**
|
|
7582
9102
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
7583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-async-promise-finally.md
|
|
7584
9104
|
*/
|
|
7585
9105
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
7586
9106
|
/**
|
|
7587
9107
|
* Disallow member access from await expression.
|
|
7588
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-expression-member.md
|
|
7589
9109
|
*/
|
|
7590
9110
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
7591
9111
|
/**
|
|
7592
9112
|
* Disallow using `await` in `Promise` method parameters.
|
|
7593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-await-in-promise-methods.md
|
|
7594
9114
|
*/
|
|
7595
9115
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7596
9116
|
/**
|
|
7597
9117
|
* Disallow barrel files.
|
|
7598
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-barrel-files.md
|
|
7599
9119
|
*/
|
|
7600
9120
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
7601
9121
|
/**
|
|
7602
9122
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
7603
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-blob-to-file.md
|
|
7604
9124
|
*/
|
|
7605
9125
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
7606
9126
|
/**
|
|
7607
9127
|
* Disallow boolean-returning sort comparators.
|
|
7608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
7609
9129
|
*/
|
|
7610
9130
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
7611
9131
|
/**
|
|
7612
9132
|
* Disallow `break` and `continue` in nested loops and switches inside loops.
|
|
7613
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-break-in-nested-loop.md
|
|
7614
9134
|
*/
|
|
7615
9135
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
|
|
7616
9136
|
/**
|
|
7617
9137
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
7618
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-canvas-to-image.md
|
|
7619
9139
|
*/
|
|
7620
9140
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
7621
9141
|
/**
|
|
7622
9142
|
* Disallow chained comparisons such as `a < b < c`.
|
|
7623
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-chained-comparison.md
|
|
7624
9144
|
*/
|
|
7625
9145
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
7626
9146
|
/**
|
|
7627
9147
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
7628
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-collection-bracket-access.md
|
|
7629
9149
|
*/
|
|
7630
9150
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
7631
9151
|
/**
|
|
7632
9152
|
* Disallow dynamic object property existence checks.
|
|
7633
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-computed-property-existence-check.md
|
|
7634
9154
|
*/
|
|
7635
9155
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
7636
9156
|
/**
|
|
7637
9157
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
7638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-splice.md
|
|
7639
9159
|
*/
|
|
7640
9160
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
7641
9161
|
/**
|
|
7642
9162
|
* Disallow confusing uses of `Array#with()`.
|
|
7643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-confusing-array-with.md
|
|
7644
9164
|
*/
|
|
7645
9165
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
7646
9166
|
/**
|
|
7647
9167
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-console-spaces.md
|
|
7649
9169
|
*/
|
|
7650
9170
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
7651
9171
|
/**
|
|
7652
9172
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
7653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-constant-zero-expression.md
|
|
7654
9174
|
*/
|
|
7655
9175
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
7656
9176
|
/**
|
|
7657
9177
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
7658
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
7659
9179
|
*/
|
|
7660
9180
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
7661
9181
|
/**
|
|
7662
9182
|
* Do not use `document.cookie` directly.
|
|
7663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-document-cookie.md
|
|
7664
9184
|
*/
|
|
7665
9185
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
7666
9186
|
/**
|
|
7667
9187
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
7668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-double-comparison.md
|
|
7669
9189
|
*/
|
|
7670
9190
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
7671
9191
|
/**
|
|
7672
9192
|
* Disallow duplicate adjacent branches in if chains.
|
|
7673
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-if-branches.md
|
|
7674
9194
|
*/
|
|
7675
9195
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
7676
9196
|
/**
|
|
7677
9197
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
7678
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
7679
9199
|
*/
|
|
7680
9200
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
7681
9201
|
/**
|
|
7682
9202
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
7683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-loops.md
|
|
7684
9204
|
*/
|
|
7685
9205
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
7686
9206
|
/**
|
|
7687
9207
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
7688
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-duplicate-set-values.md
|
|
7689
9209
|
*/
|
|
7690
9210
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
7691
9211
|
/**
|
|
7692
9212
|
* Disallow empty files.
|
|
7693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-empty-file.md
|
|
7694
9214
|
*/
|
|
7695
9215
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
7696
9216
|
/**
|
|
7697
9217
|
* Disallow assigning to built-in error properties.
|
|
7698
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-error-property-assignment.md
|
|
7699
9219
|
*/
|
|
7700
9220
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7701
9221
|
/**
|
|
7702
9222
|
* Disallow exports in scripts.
|
|
7703
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-exports-in-scripts.md
|
|
7704
9224
|
*/
|
|
7705
9225
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
7706
9226
|
/**
|
|
7707
9227
|
* Prefer `for…of` over the `forEach` method.
|
|
7708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-each.md
|
|
7709
9229
|
*/
|
|
7710
9230
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
7711
9231
|
/**
|
|
7712
9232
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-for-loop.md
|
|
7714
9234
|
*/
|
|
7715
9235
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7716
9236
|
/**
|
|
7717
9237
|
* Disallow assigning properties on the global object.
|
|
7718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-global-object-property-assignment.md
|
|
7719
9239
|
*/
|
|
7720
9240
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7721
9241
|
/**
|
|
7722
9242
|
* Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
|
|
7723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
7724
9244
|
* @deprecated
|
|
7725
9245
|
*/
|
|
7726
9246
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7727
9247
|
/**
|
|
7728
9248
|
* Disallow immediate mutation after variable assignment.
|
|
7729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-immediate-mutation.md
|
|
7730
9250
|
*/
|
|
7731
9251
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
7732
9252
|
/**
|
|
7733
9253
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
7734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-impossible-length-comparison.md
|
|
7735
9255
|
*/
|
|
7736
9256
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
7737
9257
|
/**
|
|
7738
9258
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
7739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-query-selector.md
|
|
7740
9260
|
*/
|
|
7741
9261
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
7742
9262
|
/**
|
|
7743
9263
|
* Disallow incorrect template literal interpolation syntax.
|
|
7744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
7745
9265
|
*/
|
|
7746
9266
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
7747
9267
|
/**
|
|
7748
9268
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7750
9270
|
* @deprecated
|
|
7751
9271
|
*/
|
|
7752
9272
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7753
9273
|
/**
|
|
7754
9274
|
* Disallow `instanceof` with built-in objects
|
|
7755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-instanceof-builtins.md
|
|
7756
9276
|
*/
|
|
7757
9277
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7758
9278
|
/**
|
|
7759
9279
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
7760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-argument-count.md
|
|
7761
9281
|
*/
|
|
7762
9282
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
7763
9283
|
/**
|
|
7764
9284
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
7765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-character-comparison.md
|
|
7766
9286
|
*/
|
|
7767
9287
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
7768
9288
|
/**
|
|
7769
9289
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7771
9291
|
*/
|
|
7772
9292
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7773
9293
|
/**
|
|
7774
9294
|
* Disallow invalid `accept` values on file inputs.
|
|
7775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
7776
9296
|
*/
|
|
7777
9297
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
7778
9298
|
/**
|
|
7779
9299
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7781
9301
|
*/
|
|
7782
9302
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7783
9303
|
/**
|
|
7784
9304
|
* Disallow invalid implementations of well-known symbol methods.
|
|
7785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
7786
9306
|
*/
|
|
7787
9307
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
7788
9308
|
/**
|
|
7789
9309
|
* Disallow identifiers starting with `new` or `class`.
|
|
7790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-keyword-prefix.md
|
|
7791
9311
|
*/
|
|
7792
9312
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7793
9313
|
/**
|
|
7794
9314
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
7795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-current-target-access.md
|
|
7796
9316
|
*/
|
|
7797
9317
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
7798
9318
|
/**
|
|
7799
9319
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
7800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-late-event-control.md
|
|
7801
9321
|
*/
|
|
7802
9322
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
7803
9323
|
/**
|
|
7804
9324
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7806
9326
|
* @deprecated
|
|
7807
9327
|
*/
|
|
7808
9328
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7809
9329
|
/**
|
|
7810
9330
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-lonely-if.md
|
|
7812
9332
|
*/
|
|
7813
9333
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7814
9334
|
/**
|
|
7815
9335
|
* Disallow mutating a loop iterable during iteration.
|
|
7816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
7817
9337
|
*/
|
|
7818
9338
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
7819
9339
|
/**
|
|
7820
9340
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7822
9342
|
*/
|
|
7823
9343
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7824
9344
|
/**
|
|
7825
9345
|
* Disallow manually wrapped comments.
|
|
7826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
7827
9347
|
*/
|
|
7828
9348
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
7829
9349
|
/**
|
|
7830
9350
|
* Disallow checking a Map key before accessing a different key.
|
|
7831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-mismatched-map-key.md
|
|
7832
9352
|
*/
|
|
7833
9353
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
7834
9354
|
/**
|
|
7835
9355
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
7836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9356
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-misrefactored-assignment.md
|
|
7837
9357
|
*/
|
|
7838
9358
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
7839
9359
|
/**
|
|
7840
9360
|
* Disallow references to missing local resources.
|
|
7841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-missing-local-resource.md
|
|
7842
9362
|
*/
|
|
7843
9363
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
7844
9364
|
/**
|
|
7845
9365
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
7846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
7847
9367
|
*/
|
|
7848
9368
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
7849
9369
|
/**
|
|
7850
9370
|
* Disallow named usage of default import and export.
|
|
7851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9371
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-named-default.md
|
|
7852
9372
|
*/
|
|
7853
9373
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7854
9374
|
/**
|
|
7855
9375
|
* Disallow negated array predicate calls.
|
|
7856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-array-predicate.md
|
|
7857
9377
|
*/
|
|
7858
9378
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
7859
9379
|
/**
|
|
7860
9380
|
* Disallow negated comparisons.
|
|
7861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-comparison.md
|
|
7862
9382
|
*/
|
|
7863
9383
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
7864
9384
|
/**
|
|
7865
9385
|
* Disallow negated conditions.
|
|
7866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negated-condition.md
|
|
7867
9387
|
*/
|
|
7868
9388
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7869
9389
|
/**
|
|
7870
9390
|
* Disallow negated expression in equality check.
|
|
7871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7872
9392
|
*/
|
|
7873
9393
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7874
9394
|
/**
|
|
7875
9395
|
* Disallow nested ternary expressions.
|
|
7876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nested-ternary.md
|
|
7877
9397
|
*/
|
|
7878
9398
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7879
9399
|
/**
|
|
7880
9400
|
* Disallow `new Array()`.
|
|
7881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-array.md
|
|
7882
9402
|
*/
|
|
7883
9403
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7884
9404
|
/**
|
|
7885
9405
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-new-buffer.md
|
|
7887
9407
|
*/
|
|
7888
9408
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7889
9409
|
/**
|
|
7890
9410
|
* Disallow non-function values with function-style verb prefixes.
|
|
7891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
7892
9412
|
*/
|
|
7893
9413
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
7894
9414
|
/**
|
|
7895
9415
|
* Disallow non-standard properties on built-in objects.
|
|
7896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
7897
9417
|
*/
|
|
7898
9418
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
7899
9419
|
/**
|
|
7900
9420
|
* Disallow the use of the `null` literal.
|
|
7901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-null.md
|
|
7902
9422
|
*/
|
|
7903
9423
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7904
9424
|
/**
|
|
7905
9425
|
* Disallow the use of objects as default parameters.
|
|
7906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7907
9427
|
*/
|
|
7908
9428
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7909
9429
|
/**
|
|
7910
9430
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
7911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-object-methods-with-collections.md
|
|
7912
9432
|
*/
|
|
7913
9433
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
7914
9434
|
/**
|
|
7915
9435
|
* Disallow optional chaining on undeclared variables.
|
|
7916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9436
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
7917
9437
|
*/
|
|
7918
9438
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
7919
9439
|
/**
|
|
7920
9440
|
* Disallow `process.exit()`.
|
|
7921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9441
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-process-exit.md
|
|
7922
9442
|
*/
|
|
7923
9443
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7924
9444
|
/**
|
|
7925
9445
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
7926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9446
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-redundant-comparison.md
|
|
7927
9447
|
*/
|
|
7928
9448
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
7929
9449
|
/**
|
|
7930
9450
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
7931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-return-array-push.md
|
|
7932
9452
|
*/
|
|
7933
9453
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
7934
9454
|
/**
|
|
7935
9455
|
* Disallow selector syntax in DOM names.
|
|
7936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9456
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-selector-as-dom-name.md
|
|
7937
9457
|
*/
|
|
7938
9458
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
7939
9459
|
/**
|
|
7940
9460
|
* Disallow shorthand properties that override related longhand properties.
|
|
7941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
7942
9462
|
*/
|
|
7943
9463
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
7944
9464
|
/**
|
|
7945
9465
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7947
9467
|
*/
|
|
7948
9468
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7949
9469
|
/**
|
|
7950
9470
|
* Disallow classes that only have static members.
|
|
7951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-static-only-class.md
|
|
7952
9472
|
*/
|
|
7953
9473
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7954
9474
|
/**
|
|
7955
9475
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
7956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-subtraction-comparison.md
|
|
7957
9477
|
*/
|
|
7958
9478
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
7959
9479
|
/**
|
|
7960
9480
|
* Disallow `then` property.
|
|
7961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-thenable.md
|
|
7962
9482
|
*/
|
|
7963
9483
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7964
9484
|
/**
|
|
7965
9485
|
* Disallow assigning `this` to a variable.
|
|
7966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-assignment.md
|
|
7967
9487
|
*/
|
|
7968
9488
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7969
9489
|
/**
|
|
7970
9490
|
* Disallow `this` outside of classes.
|
|
7971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-this-outside-of-class.md
|
|
7972
9492
|
*/
|
|
7973
9493
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
7974
9494
|
/**
|
|
7975
9495
|
* Disallow assigning to top-level variables from inside functions.
|
|
7976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9496
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
7977
9497
|
*/
|
|
7978
9498
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
7979
9499
|
/**
|
|
7980
9500
|
* Disallow top-level side effects in exported modules.
|
|
7981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-top-level-side-effects.md
|
|
7982
9502
|
*/
|
|
7983
9503
|
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
|
|
7984
9504
|
/**
|
|
7985
9505
|
* Disallow `all` as a transition property.
|
|
7986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-transition-all.md
|
|
7987
9507
|
*/
|
|
7988
9508
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
7989
9509
|
/**
|
|
7990
9510
|
* Disallow comparing `undefined` using `typeof`.
|
|
7991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-typeof-undefined.md
|
|
7992
9512
|
*/
|
|
7993
9513
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7994
9514
|
/**
|
|
7995
9515
|
* Disallow referencing methods without calling them.
|
|
7996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-uncalled-method.md
|
|
7997
9517
|
*/
|
|
7998
9518
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
7999
9519
|
/**
|
|
8000
9520
|
* Require class members to be declared.
|
|
8001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-undeclared-class-members.md
|
|
8002
9522
|
*/
|
|
8003
9523
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
8004
9524
|
/**
|
|
8005
9525
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
8006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
8007
9527
|
*/
|
|
8008
9528
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
8009
9529
|
/**
|
|
8010
9530
|
* Disallow `Array#flatMap()` callbacks that only wrap a single item.
|
|
8011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
8012
9532
|
*/
|
|
8013
9533
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
8014
9534
|
/**
|
|
8015
9535
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
8016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
8017
9537
|
*/
|
|
8018
9538
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
8019
9539
|
/**
|
|
8020
9540
|
* Disallow awaiting non-promise values.
|
|
8021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-await.md
|
|
8022
9542
|
*/
|
|
8023
9543
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
8024
9544
|
/**
|
|
8025
9545
|
* Disallow unnecessary comparisons against boolean literals.
|
|
8026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
8027
9547
|
*/
|
|
8028
9548
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
8029
9549
|
/**
|
|
8030
9550
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
8031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
8032
9552
|
*/
|
|
8033
9553
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
8034
9554
|
/**
|
|
8035
9555
|
* Disallow unnecessary `globalThis` references.
|
|
8036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-global-this.md
|
|
8037
9557
|
*/
|
|
8038
9558
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
8039
9559
|
/**
|
|
8040
9560
|
* Disallow unnecessary nested ternary expressions.
|
|
8041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
8042
9562
|
*/
|
|
8043
9563
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
8044
9564
|
/**
|
|
8045
9565
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
8046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
8047
9567
|
*/
|
|
8048
9568
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
8049
9569
|
/**
|
|
8050
9570
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
8051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
8052
9572
|
*/
|
|
8053
9573
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
8054
9574
|
/**
|
|
8055
9575
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
8056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-splice.md
|
|
8057
9577
|
*/
|
|
8058
9578
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
8059
9579
|
/**
|
|
8060
9580
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
8061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
8062
9582
|
*/
|
|
8063
9583
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
8064
9584
|
/**
|
|
8065
9585
|
* Disallow unreadable array destructuring.
|
|
8066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
8067
9587
|
*/
|
|
8068
9588
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
8069
9589
|
/**
|
|
8070
9590
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
8071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
8072
9592
|
*/
|
|
8073
9593
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
8074
9594
|
/**
|
|
8075
9595
|
* Disallow unreadable IIFEs.
|
|
8076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-iife.md
|
|
8077
9597
|
*/
|
|
8078
9598
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
8079
9599
|
/**
|
|
8080
9600
|
* Disallow unreadable `new` expressions.
|
|
8081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-new-expression.md
|
|
8082
9602
|
*/
|
|
8083
9603
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
8084
9604
|
/**
|
|
8085
9605
|
* Disallow unreadable object destructuring.
|
|
8086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
8087
9607
|
*/
|
|
8088
9608
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
8089
9609
|
/**
|
|
8090
9610
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
8091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
8092
9612
|
*/
|
|
8093
9613
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
8094
9614
|
/**
|
|
8095
9615
|
* Disallow unsafe DOM HTML APIs.
|
|
8096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-dom-html.md
|
|
8097
9617
|
*/
|
|
8098
9618
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
8099
9619
|
/**
|
|
8100
9620
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
8101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
8102
9622
|
*/
|
|
8103
9623
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
8104
9624
|
/**
|
|
8105
9625
|
* Disallow unsafe values as property keys.
|
|
8106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-property-key.md
|
|
8107
9627
|
*/
|
|
8108
9628
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
8109
9629
|
/**
|
|
8110
9630
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
8111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
8112
9632
|
*/
|
|
8113
9633
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
8114
9634
|
/**
|
|
8115
9635
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
8116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
8117
9637
|
*/
|
|
8118
9638
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
8119
9639
|
/**
|
|
8120
9640
|
* Disallow ignoring the return value of selected array methods.
|
|
8121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-array-method-return.md
|
|
8122
9642
|
*/
|
|
8123
9643
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
8124
9644
|
/**
|
|
8125
9645
|
* Disallow unused object properties.
|
|
8126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-unused-properties.md
|
|
8127
9647
|
*/
|
|
8128
9648
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
8129
9649
|
/**
|
|
8130
9650
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
8131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-boolean-cast.md
|
|
8132
9652
|
*/
|
|
8133
9653
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
8134
9654
|
/**
|
|
8135
9655
|
* Disallow useless type coercions of values that are already of the target type.
|
|
8136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-coercion.md
|
|
8137
9657
|
*/
|
|
8138
9658
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
8139
9659
|
/**
|
|
8140
9660
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
8141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-collection-argument.md
|
|
8142
9662
|
*/
|
|
8143
9663
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
8144
9664
|
/**
|
|
8145
9665
|
* Disallow useless compound assignments such as `x += 0`.
|
|
8146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-compound-assignment.md
|
|
8147
9667
|
*/
|
|
8148
9668
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
8149
9669
|
/**
|
|
8150
9670
|
* Disallow useless concatenation of literals.
|
|
8151
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-concat.md
|
|
8152
9672
|
*/
|
|
8153
9673
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
8154
9674
|
/**
|
|
8155
9675
|
* Disallow useless `continue` statements.
|
|
8156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-continue.md
|
|
8157
9677
|
*/
|
|
8158
9678
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
8159
9679
|
/**
|
|
8160
9680
|
* Disallow unnecessary existence checks before deletion.
|
|
8161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-delete-check.md
|
|
8162
9682
|
*/
|
|
8163
9683
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
8164
9684
|
/**
|
|
8165
9685
|
* Disallow `else` after a statement that exits.
|
|
8166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-else.md
|
|
8167
9687
|
*/
|
|
8168
9688
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
8169
9689
|
/**
|
|
8170
9690
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
8171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
8172
9692
|
*/
|
|
8173
9693
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
8174
9694
|
/**
|
|
8175
9695
|
* Disallow useless fallback when spreading in object literals.
|
|
8176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
8177
9697
|
*/
|
|
8178
9698
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
8179
9699
|
/**
|
|
8180
9700
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
8181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
8182
9702
|
*/
|
|
8183
9703
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
8184
9704
|
/**
|
|
8185
9705
|
* Disallow useless array length check.
|
|
8186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-length-check.md
|
|
8187
9707
|
*/
|
|
8188
9708
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
8189
9709
|
/**
|
|
8190
9710
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
8191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-logical-operand.md
|
|
8192
9712
|
*/
|
|
8193
9713
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
8194
9714
|
/**
|
|
8195
9715
|
* Disallow useless overrides of class methods.
|
|
8196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-override.md
|
|
8197
9717
|
*/
|
|
8198
9718
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
8199
9719
|
/**
|
|
8200
9720
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
8201
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
8202
9722
|
*/
|
|
8203
9723
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
8204
9724
|
/**
|
|
8205
9725
|
* Disallow redundant re-exports.
|
|
8206
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-re-export.md
|
|
8207
9727
|
*/
|
|
8208
9728
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
8209
9729
|
/**
|
|
8210
9730
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
8211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-recursion.md
|
|
8212
9732
|
*/
|
|
8213
9733
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
8214
9734
|
/**
|
|
8215
9735
|
* Disallow unnecessary spread.
|
|
8216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-spread.md
|
|
8217
9737
|
*/
|
|
8218
9738
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
8219
9739
|
/**
|
|
8220
9740
|
* Disallow useless case in switch statements.
|
|
8221
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-switch-case.md
|
|
8222
9742
|
*/
|
|
8223
9743
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
8224
9744
|
/**
|
|
8225
9745
|
* Disallow useless template literal expressions.
|
|
8226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-template-literals.md
|
|
8227
9747
|
*/
|
|
8228
9748
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
8229
9749
|
/**
|
|
8230
9750
|
* Disallow useless `undefined`.
|
|
8231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-useless-undefined.md
|
|
8232
9752
|
*/
|
|
8233
9753
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
8234
9754
|
/**
|
|
8235
9755
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
8236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
8237
9757
|
*/
|
|
8238
9758
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
8239
9759
|
/**
|
|
8240
9760
|
* Disallow number literals with zero fractions or dangling dots.
|
|
8241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/no-zero-fractions.md
|
|
8242
9762
|
*/
|
|
8243
9763
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
8244
9764
|
/**
|
|
8245
9765
|
* Enforce proper case for numeric literals.
|
|
8246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/number-literal-case.md
|
|
8247
9767
|
*/
|
|
8248
9768
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
8249
9769
|
/**
|
|
8250
9770
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
8251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/numeric-separators-style.md
|
|
8252
9772
|
*/
|
|
8253
9773
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
8254
9774
|
/**
|
|
8255
9775
|
* Require assignment operator shorthand where possible.
|
|
8256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/operator-assignment.md
|
|
8257
9777
|
*/
|
|
8258
9778
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
8259
9779
|
/**
|
|
8260
9780
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
8261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-any.md
|
|
8262
9782
|
*/
|
|
8263
9783
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
8264
9784
|
/**
|
|
8265
9785
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
8266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
8267
9787
|
*/
|
|
8268
9788
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
8269
9789
|
/**
|
|
8270
9790
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
8271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener.md
|
|
8272
9792
|
*/
|
|
8273
9793
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
8274
9794
|
/**
|
|
8275
9795
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
8276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
8277
9797
|
*/
|
|
8278
9798
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
8279
9799
|
/**
|
|
8280
9800
|
* Prefer `AggregateError` when throwing collected errors.
|
|
8281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-aggregate-error.md
|
|
8282
9802
|
*/
|
|
8283
9803
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
8284
9804
|
/**
|
|
8285
9805
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
8286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-find.md
|
|
8287
9807
|
*/
|
|
8288
9808
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
8289
9809
|
/**
|
|
8290
9810
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
8291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat.md
|
|
8292
9812
|
*/
|
|
8293
9813
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
8294
9814
|
/**
|
|
8295
9815
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
8296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-flat-map.md
|
|
8297
9817
|
*/
|
|
8298
9818
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
8299
9819
|
/**
|
|
8300
9820
|
* Prefer `Array.fromAsync()` over `for await…of` array accumulation.
|
|
8301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-async.md
|
|
8302
9822
|
*/
|
|
8303
9823
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
8304
9824
|
/**
|
|
8305
9825
|
* Prefer using the `Array.from()` mapping function argument.
|
|
8306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-map.md
|
|
8307
9827
|
*/
|
|
8308
9828
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
8309
9829
|
/**
|
|
8310
9830
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
8311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-from-range.md
|
|
8312
9832
|
*/
|
|
8313
9833
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
8314
9834
|
/**
|
|
8315
9835
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
8316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-index-of.md
|
|
8317
9837
|
*/
|
|
8318
9838
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
8319
9839
|
/**
|
|
8320
9840
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
8321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
8322
9842
|
*/
|
|
8323
9843
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
8324
9844
|
/**
|
|
8325
9845
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
8326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-last-methods.md
|
|
8327
9847
|
*/
|
|
8328
9848
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
8329
9849
|
/**
|
|
8330
9850
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
8331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-slice.md
|
|
8332
9852
|
*/
|
|
8333
9853
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
8334
9854
|
/**
|
|
8335
9855
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
8336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-array-some.md
|
|
8337
9857
|
*/
|
|
8338
9858
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
8339
9859
|
/**
|
|
8340
9860
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
8341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-at.md
|
|
8342
9862
|
*/
|
|
8343
9863
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
8344
9864
|
/**
|
|
8345
9865
|
* Prefer `await` over promise chaining.
|
|
8346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-await.md
|
|
8347
9867
|
*/
|
|
8348
9868
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
8349
9869
|
/**
|
|
8350
9870
|
* Prefer `BigInt` literals over the constructor.
|
|
8351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-bigint-literals.md
|
|
8352
9872
|
*/
|
|
8353
9873
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
8354
9874
|
/**
|
|
8355
9875
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
8356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
8357
9877
|
*/
|
|
8358
9878
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
8359
9879
|
/**
|
|
8360
9880
|
* Prefer block statements over IIFEs used only for scoping.
|
|
8361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
8362
9882
|
*/
|
|
8363
9883
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
8364
9884
|
/**
|
|
8365
9885
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
8366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-boolean-return.md
|
|
8367
9887
|
*/
|
|
8368
9888
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
8369
9889
|
/**
|
|
8370
9890
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
8371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-class-fields.md
|
|
8372
9892
|
*/
|
|
8373
9893
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
8374
9894
|
/**
|
|
8375
9895
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
8376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-classlist-toggle.md
|
|
8377
9897
|
*/
|
|
8378
9898
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
8379
9899
|
/**
|
|
8380
9900
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
8381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-code-point.md
|
|
8382
9902
|
*/
|
|
8383
9903
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
8384
9904
|
/**
|
|
8385
9905
|
* Prefer early continues over whole-loop conditional wrapping.
|
|
8386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-continue.md
|
|
8387
9907
|
*/
|
|
8388
9908
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
8389
9909
|
/**
|
|
8390
9910
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
8391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-date-now.md
|
|
8392
9912
|
*/
|
|
8393
9913
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
8394
9914
|
/**
|
|
8395
9915
|
* Prefer default parameters over reassignment.
|
|
8396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-default-parameters.md
|
|
8397
9917
|
*/
|
|
8398
9918
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
8399
9919
|
/**
|
|
8400
9920
|
* Prefer direct iteration over default iterator method calls.
|
|
8401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-direct-iteration.md
|
|
8402
9922
|
*/
|
|
8403
9923
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
8404
9924
|
/**
|
|
8405
9925
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
8406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dispose.md
|
|
8407
9927
|
*/
|
|
8408
9928
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
8409
9929
|
/**
|
|
8410
9930
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
8411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-append.md
|
|
8412
9932
|
*/
|
|
8413
9933
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
8414
9934
|
/**
|
|
8415
9935
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
8416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
8417
9937
|
* @deprecated
|
|
8418
9938
|
*/
|
|
8419
9939
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
8420
9940
|
/**
|
|
8421
9941
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
8422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
8423
9943
|
*/
|
|
8424
9944
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
8425
9945
|
/**
|
|
8426
9946
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
8427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-remove.md
|
|
8428
9948
|
*/
|
|
8429
9949
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
8430
9950
|
/**
|
|
8431
9951
|
* Prefer `.replaceChildren()` when emptying DOM children.
|
|
8432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
8433
9953
|
*/
|
|
8434
9954
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
8435
9955
|
/**
|
|
8436
9956
|
* Prefer `.textContent` over `.innerText`.
|
|
8437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
8438
9958
|
*/
|
|
8439
9959
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
8440
9960
|
/**
|
|
8441
9961
|
* Prefer early returns over full-function conditional wrapping.
|
|
8442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-early-return.md
|
|
8443
9963
|
*/
|
|
8444
9964
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
8445
9965
|
/**
|
|
8446
9966
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
8447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-else-if.md
|
|
8448
9968
|
*/
|
|
8449
9969
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
8450
9970
|
/**
|
|
8451
9971
|
* Prefer `Error.isError()` when checking for errors.
|
|
8452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-error-is-error.md
|
|
8453
9973
|
*/
|
|
8454
9974
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
8455
9975
|
/**
|
|
8456
9976
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
8457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-event-target.md
|
|
8458
9978
|
*/
|
|
8459
9979
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
8460
9980
|
/**
|
|
8461
9981
|
* Prefer explicit viewport units.
|
|
8462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-explicit-viewport-units.md
|
|
8463
9983
|
*/
|
|
8464
9984
|
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
|
|
8465
9985
|
/**
|
|
8466
9986
|
* Prefer `export…from` when re-exporting.
|
|
8467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-export-from.md
|
|
8468
9988
|
*/
|
|
8469
9989
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
8470
9990
|
/**
|
|
8471
9991
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
8472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
8473
9993
|
*/
|
|
8474
9994
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8475
9995
|
/**
|
|
8476
9996
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
8477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
9997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
8478
9998
|
*/
|
|
8479
9999
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
8480
10000
|
/**
|
|
8481
10001
|
* Prefer global numeric constants over `Number` static properties.
|
|
8482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-number-constants.md
|
|
8483
10003
|
*/
|
|
8484
10004
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
8485
10005
|
/**
|
|
8486
10006
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
8487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-global-this.md
|
|
8488
10008
|
*/
|
|
8489
10009
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
8490
10010
|
/**
|
|
8491
10011
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
|
|
8492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-group-by.md
|
|
8493
10013
|
*/
|
|
8494
10014
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
8495
10015
|
/**
|
|
8496
10016
|
* Prefer `.has()` when checking existence.
|
|
8497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-has-check.md
|
|
8498
10018
|
*/
|
|
8499
10019
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
8500
10020
|
/**
|
|
8501
10021
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
8502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
8503
10023
|
*/
|
|
8504
10024
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
8505
10025
|
/**
|
|
8506
10026
|
* Prefer HTTPS over HTTP.
|
|
8507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-https.md
|
|
8508
10028
|
*/
|
|
8509
10029
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
8510
10030
|
/**
|
|
8511
10031
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
8512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
8513
10033
|
*/
|
|
8514
10034
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
8515
10035
|
/**
|
|
8516
10036
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
8517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-import-meta-properties.md
|
|
8518
10038
|
*/
|
|
8519
10039
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
8520
10040
|
/**
|
|
8521
10041
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
8522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes.md
|
|
8523
10043
|
*/
|
|
8524
10044
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
8525
10045
|
/**
|
|
8526
10046
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
8527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
8528
10048
|
*/
|
|
8529
10049
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
8530
10050
|
/**
|
|
8531
10051
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
8532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
8533
10053
|
*/
|
|
8534
10054
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
8535
10055
|
/**
|
|
8536
10056
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
8537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-concat.md
|
|
8538
10058
|
*/
|
|
8539
10059
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
8540
10060
|
/**
|
|
8541
10061
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
8542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-helpers.md
|
|
8543
10063
|
*/
|
|
8544
10064
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
8545
10065
|
/**
|
|
8546
10066
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
8547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array.md
|
|
8548
10068
|
*/
|
|
8549
10069
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
8550
10070
|
/**
|
|
8551
10071
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
8552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
8553
10073
|
*/
|
|
8554
10074
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
8555
10075
|
/**
|
|
8556
10076
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
8557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
8558
10078
|
* @deprecated
|
|
8559
10079
|
*/
|
|
8560
10080
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
8561
10081
|
/**
|
|
8562
10082
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
8563
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
8564
10084
|
*/
|
|
8565
10085
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
8566
10086
|
/**
|
|
8567
10087
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
8568
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-location-assign.md
|
|
8569
10089
|
*/
|
|
8570
10090
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
8571
10091
|
/**
|
|
8572
10092
|
* Prefer using a logical operator over a ternary.
|
|
8573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
8574
10094
|
*/
|
|
8575
10095
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
8576
10096
|
/**
|
|
8577
10097
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
8578
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-map-from-entries.md
|
|
8579
10099
|
*/
|
|
8580
10100
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
8581
10101
|
/**
|
|
8582
10102
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
8583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-abs.md
|
|
8584
10104
|
*/
|
|
8585
10105
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
8586
10106
|
/**
|
|
8587
10107
|
* Prefer `Math` constants over their approximate numeric values.
|
|
8588
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-constants.md
|
|
8589
10109
|
*/
|
|
8590
10110
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
8591
10111
|
/**
|
|
8592
10112
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
8593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-min-max.md
|
|
8594
10114
|
*/
|
|
8595
10115
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8596
10116
|
/**
|
|
8597
10117
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
8598
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-math-trunc.md
|
|
8599
10119
|
*/
|
|
8600
10120
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
8601
10121
|
/**
|
|
8602
10122
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
8603
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-minimal-ternary.md
|
|
8604
10124
|
*/
|
|
8605
10125
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
8606
10126
|
/**
|
|
8607
10127
|
* Prefer modern DOM APIs.
|
|
8608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
8609
10129
|
*/
|
|
8610
10130
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
8611
10131
|
/**
|
|
8612
10132
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
8613
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-modern-math-apis.md
|
|
8614
10134
|
*/
|
|
8615
10135
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
8616
10136
|
/**
|
|
8617
10137
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
8618
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-module.md
|
|
8619
10139
|
*/
|
|
8620
10140
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
8621
10141
|
/**
|
|
8622
10142
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
8623
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
8624
10144
|
*/
|
|
8625
10145
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
8626
10146
|
/**
|
|
8627
10147
|
* Prefer negative index over `.length - index` when possible.
|
|
8628
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-negative-index.md
|
|
8629
10149
|
*/
|
|
8630
10150
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
8631
10151
|
/**
|
|
8632
10152
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
8633
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-node-protocol.md
|
|
8634
10154
|
*/
|
|
8635
10155
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
8636
10156
|
/**
|
|
8637
10157
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
8638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-coercion.md
|
|
8639
10159
|
*/
|
|
8640
10160
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
8641
10161
|
/**
|
|
8642
10162
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
8643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
8644
10164
|
*/
|
|
8645
10165
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
8646
10166
|
/**
|
|
8647
10167
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
8648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-number-properties.md
|
|
8649
10169
|
*/
|
|
8650
10170
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
8651
10171
|
/**
|
|
8652
10172
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
8653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-define-properties.md
|
|
8654
10174
|
*/
|
|
8655
10175
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
8656
10176
|
/**
|
|
8657
10177
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
8658
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
8659
10179
|
*/
|
|
8660
10180
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
8661
10181
|
/**
|
|
8662
10182
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
8663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-from-entries.md
|
|
8664
10184
|
*/
|
|
8665
10185
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
8666
10186
|
/**
|
|
8667
10187
|
* Prefer the most specific `Object` iterable method.
|
|
8668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
8669
10189
|
*/
|
|
8670
10190
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
8671
10191
|
/**
|
|
8672
10192
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
8673
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-observer-apis.md
|
|
8674
10194
|
*/
|
|
8675
10195
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
8676
10196
|
/**
|
|
8677
10197
|
* Prefer omitting the `catch` binding parameter.
|
|
8678
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
8679
10199
|
*/
|
|
8680
10200
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
8681
10201
|
/**
|
|
8682
10202
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
8683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-path2d.md
|
|
8684
10204
|
*/
|
|
8685
10205
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
8686
10206
|
/**
|
|
8687
10207
|
* Prefer private class fields over the underscore-prefix convention.
|
|
8688
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-private-class-fields.md
|
|
8689
10209
|
*/
|
|
8690
10210
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
8691
10211
|
/**
|
|
8692
10212
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
8693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-try.md
|
|
8694
10214
|
*/
|
|
8695
10215
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
8696
10216
|
/**
|
|
8697
10217
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
8698
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
8699
10219
|
*/
|
|
8700
10220
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
8701
10221
|
/**
|
|
8702
10222
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
8703
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-prototype-methods.md
|
|
8704
10224
|
*/
|
|
8705
10225
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
8706
10226
|
/**
|
|
8707
10227
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
8708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-query-selector.md
|
|
8709
10229
|
*/
|
|
8710
10230
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
8711
10231
|
/**
|
|
8712
10232
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
8713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-queue-microtask.md
|
|
8714
10234
|
*/
|
|
8715
10235
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
8716
10236
|
/**
|
|
8717
10237
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
8718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-reflect-apply.md
|
|
8719
10239
|
*/
|
|
8720
10240
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
8721
10241
|
/**
|
|
8722
10242
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
8723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-escape.md
|
|
8724
10244
|
*/
|
|
8725
10245
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
8726
10246
|
/**
|
|
8727
10247
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
8728
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-regexp-test.md
|
|
8729
10249
|
*/
|
|
8730
10250
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
8731
10251
|
/**
|
|
8732
10252
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
8733
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-response-static-json.md
|
|
8734
10254
|
*/
|
|
8735
10255
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
8736
10256
|
/**
|
|
8737
10257
|
* Prefer `:scope` when using element query selector methods.
|
|
8738
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-scoped-selector.md
|
|
8739
10259
|
*/
|
|
8740
10260
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
8741
10261
|
/**
|
|
8742
10262
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
8743
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-has.md
|
|
8744
10264
|
*/
|
|
8745
10265
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
8746
10266
|
/**
|
|
8747
10267
|
* Prefer `Set` methods for Set operations.
|
|
8748
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-methods.md
|
|
8749
10269
|
*/
|
|
8750
10270
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
8751
10271
|
/**
|
|
8752
10272
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
8753
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-set-size.md
|
|
8754
10274
|
*/
|
|
8755
10275
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
8756
10276
|
/**
|
|
8757
10277
|
* Prefer arrow function properties over methods with a single return.
|
|
8758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-short-arrow-method.md
|
|
8759
10279
|
*/
|
|
8760
10280
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
8761
10281
|
/**
|
|
8762
10282
|
* Prefer simple conditions first in logical expressions.
|
|
8763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-condition-first.md
|
|
8764
10284
|
*/
|
|
8765
10285
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
8766
10286
|
/**
|
|
8767
10287
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
8768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
8769
10289
|
*/
|
|
8770
10290
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
8771
10291
|
/**
|
|
8772
10292
|
* Prefer simplified conditions.
|
|
8773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-simplified-conditions.md
|
|
8774
10294
|
*/
|
|
8775
10295
|
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
|
|
8776
10296
|
/**
|
|
8777
10297
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
8778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-array-predicate.md
|
|
8779
10299
|
*/
|
|
8780
10300
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
8781
10301
|
/**
|
|
8782
10302
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
8783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-call.md
|
|
8784
10304
|
*/
|
|
8785
10305
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
8786
10306
|
/**
|
|
8787
10307
|
* Prefer a single object destructuring declaration per local const source.
|
|
8788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
8789
10309
|
*/
|
|
8790
10310
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
8791
10311
|
/**
|
|
8792
10312
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
8793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-single-replace.md
|
|
8794
10314
|
*/
|
|
8795
10315
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
8796
10316
|
/**
|
|
8797
10317
|
* Prefer declaring variables in the smallest possible scope.
|
|
8798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-smaller-scope.md
|
|
8799
10319
|
*/
|
|
8800
10320
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
8801
10321
|
/**
|
|
8802
10322
|
* Prefer `String#split()` with a limit.
|
|
8803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-split-limit.md
|
|
8804
10324
|
*/
|
|
8805
10325
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
8806
10326
|
/**
|
|
8807
10327
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
8808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-spread.md
|
|
8809
10329
|
*/
|
|
8810
10330
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
8811
10331
|
/**
|
|
8812
10332
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
8813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-match-all.md
|
|
8814
10334
|
*/
|
|
8815
10335
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
8816
10336
|
/**
|
|
8817
10337
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
8818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
8819
10339
|
*/
|
|
8820
10340
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
8821
10341
|
/**
|
|
8822
10342
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
8823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-raw.md
|
|
8824
10344
|
*/
|
|
8825
10345
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
8826
10346
|
/**
|
|
8827
10347
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
8828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-repeat.md
|
|
8829
10349
|
*/
|
|
8830
10350
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
8831
10351
|
/**
|
|
8832
10352
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
8833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-replace-all.md
|
|
8834
10354
|
*/
|
|
8835
10355
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
8836
10356
|
/**
|
|
8837
10357
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
8838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-slice.md
|
|
8839
10359
|
*/
|
|
8840
10360
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
8841
10361
|
/**
|
|
8842
10362
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
8843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
8844
10364
|
*/
|
|
8845
10365
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
8846
10366
|
/**
|
|
8847
10367
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
8848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
8849
10369
|
*/
|
|
8850
10370
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
8851
10371
|
/**
|
|
8852
10372
|
* Prefer using `structuredClone` to create a deep clone.
|
|
8853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-structured-clone.md
|
|
8854
10374
|
*/
|
|
8855
10375
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
8856
10376
|
/**
|
|
8857
10377
|
* Prefer `switch` over multiple `else-if`.
|
|
8858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-switch.md
|
|
8859
10379
|
*/
|
|
8860
10380
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
8861
10381
|
/**
|
|
8862
10382
|
* Prefer `Temporal` over `Date`.
|
|
8863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-temporal.md
|
|
8864
10384
|
*/
|
|
8865
10385
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
8866
10386
|
/**
|
|
8867
10387
|
* Prefer ternary expressions over simple `if` statements that return or assign values.
|
|
8868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-ternary.md
|
|
8869
10389
|
*/
|
|
8870
10390
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
8871
10391
|
/**
|
|
8872
10392
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
8873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-then-catch.md
|
|
8874
10394
|
*/
|
|
8875
10395
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
8876
10396
|
/**
|
|
8877
10397
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
8878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-toggle-attribute.md
|
|
8879
10399
|
*/
|
|
8880
10400
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
8881
10401
|
/**
|
|
8882
10402
|
* Prefer top-level await over top-level promises and async function calls.
|
|
8883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-top-level-await.md
|
|
8884
10404
|
*/
|
|
8885
10405
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
8886
10406
|
/**
|
|
8887
10407
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
8888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-error.md
|
|
8889
10409
|
*/
|
|
8890
10410
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
8891
10411
|
/**
|
|
8892
10412
|
* Require type literals to be last in union types.
|
|
8893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-type-literal-last.md
|
|
8894
10414
|
*/
|
|
8895
10415
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
8896
10416
|
/**
|
|
8897
10417
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
|
|
8898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-uint8array-base64.md
|
|
8899
10419
|
*/
|
|
8900
10420
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
8901
10421
|
/**
|
|
8902
10422
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
8903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unary-minus.md
|
|
8904
10424
|
*/
|
|
8905
10425
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
8906
10426
|
/**
|
|
8907
10427
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
8908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
8909
10429
|
*/
|
|
8910
10430
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
8911
10431
|
/**
|
|
8912
10432
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
8913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-can-parse.md
|
|
8914
10434
|
*/
|
|
8915
10435
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
8916
10436
|
/**
|
|
8917
10437
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
8918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-href.md
|
|
8919
10439
|
*/
|
|
8920
10440
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
8921
10441
|
/**
|
|
8922
10442
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
8923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-url-search-parameters.md
|
|
8924
10444
|
*/
|
|
8925
10445
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
8926
10446
|
/**
|
|
8927
10447
|
* Prefer putting the condition in the while statement.
|
|
8928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/prefer-while-loop-condition.md
|
|
8929
10449
|
*/
|
|
8930
10450
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
8931
10451
|
/**
|
|
8932
10452
|
* Renamed to `unicorn/name-replacements`.
|
|
8933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
8934
10454
|
* @deprecated
|
|
8935
10455
|
*/
|
|
8936
10456
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
8937
10457
|
/**
|
|
8938
10458
|
* Enforce consistent relative URL style.
|
|
8939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/relative-url-style.md
|
|
8940
10460
|
*/
|
|
8941
10461
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
8942
10462
|
/**
|
|
8943
10463
|
* Enforce using the separator argument with `Array#join()`.
|
|
8944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-join-separator.md
|
|
8945
10465
|
*/
|
|
8946
10466
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
8947
10467
|
/**
|
|
8948
10468
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
8949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-array-sort-compare.md
|
|
8950
10470
|
*/
|
|
8951
10471
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
8952
10472
|
/**
|
|
8953
10473
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
8954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-css-escape.md
|
|
8955
10475
|
*/
|
|
8956
10476
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
8957
10477
|
/**
|
|
8958
10478
|
* Require configured YAML frontmatter fields.
|
|
8959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-frontmatter-fields.md
|
|
8960
10480
|
*/
|
|
8961
10481
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
8962
10482
|
/**
|
|
8963
10483
|
* Require non-empty module attributes for imports and exports
|
|
8964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-attributes.md
|
|
8965
10485
|
*/
|
|
8966
10486
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
8967
10487
|
/**
|
|
8968
10488
|
* Require non-empty specifier list in import and export statements.
|
|
8969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-module-specifiers.md
|
|
8970
10490
|
*/
|
|
8971
10491
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
8972
10492
|
/**
|
|
8973
10493
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
8974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
8975
10495
|
*/
|
|
8976
10496
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
8977
10497
|
/**
|
|
8978
10498
|
* Require passive event listeners for high-frequency events.
|
|
8979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-passive-events.md
|
|
8980
10500
|
*/
|
|
8981
10501
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
8982
10502
|
/**
|
|
8983
10503
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
8984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-post-message-target-origin.md
|
|
8985
10505
|
*/
|
|
8986
10506
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
8987
10507
|
/**
|
|
8988
10508
|
* Require boolean-returning Proxy traps to return booleans.
|
|
8989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
8990
10510
|
*/
|
|
8991
10511
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
8992
10512
|
/**
|
|
8993
10513
|
* Enforce a consistent style for single-line block comments.
|
|
8994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/single-line-block-comment-style.md
|
|
8995
10515
|
*/
|
|
8996
10516
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
8997
10517
|
/**
|
|
8998
10518
|
* Enforce better string content.
|
|
8999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/string-content.md
|
|
9000
10520
|
*/
|
|
9001
10521
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
9002
10522
|
/**
|
|
9003
10523
|
* Enforce consistent brace style for `case` clauses.
|
|
9004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-braces.md
|
|
9005
10525
|
*/
|
|
9006
10526
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
9007
10527
|
/**
|
|
9008
10528
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
9009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/switch-case-break-position.md
|
|
9010
10530
|
*/
|
|
9011
10531
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
9012
10532
|
/**
|
|
9013
10533
|
* Fix whitespace-insensitive template indentation.
|
|
9014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/template-indent.md
|
|
9015
10535
|
*/
|
|
9016
10536
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
9017
10537
|
/**
|
|
9018
10538
|
* Enforce consistent case for text encoding identifiers.
|
|
9019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/text-encoding-identifier-case.md
|
|
9020
10540
|
*/
|
|
9021
10541
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
9022
10542
|
/**
|
|
9023
10543
|
* Require `new` when creating an error.
|
|
9024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/throw-new-error.md
|
|
9025
10545
|
*/
|
|
9026
10546
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
9027
10547
|
/**
|
|
9028
10548
|
* Limit the complexity of `try` blocks.
|
|
9029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
10549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v74.0.0/docs/rules/try-complexity.md
|
|
9030
10550
|
*/
|
|
9031
10551
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
9032
10552
|
/**
|
|
@@ -10778,6 +12298,10 @@ type AngularNoInputRename = [] | [{
|
|
|
10778
12298
|
type AngularPipePrefix = [] | [{
|
|
10779
12299
|
prefixes?: string[];
|
|
10780
12300
|
}];
|
|
12301
|
+
// ----- angular/prefer-on-push-component-change-detection -----
|
|
12302
|
+
type AngularPreferOnPushComponentChangeDetection = [] | [{
|
|
12303
|
+
allowExplicitOnPush?: boolean;
|
|
12304
|
+
}];
|
|
10781
12305
|
// ----- angular/prefer-signals -----
|
|
10782
12306
|
type AngularPreferSignals = [] | [{
|
|
10783
12307
|
preferReadonlySignalProperties?: boolean;
|
|
@@ -11424,12 +12948,16 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
|
|
|
11424
12948
|
// ----- jsdoc/check-param-names -----
|
|
11425
12949
|
type JsdocCheckParamNames = [] | [{
|
|
11426
12950
|
allowExtraTrailingParamDocs?: boolean;
|
|
12951
|
+
badParamNames?: boolean;
|
|
12952
|
+
badParamOrder?: boolean;
|
|
11427
12953
|
checkDestructured?: boolean;
|
|
11428
12954
|
checkRestProperty?: boolean;
|
|
11429
12955
|
checkTypesPattern?: string;
|
|
11430
12956
|
disableExtraPropertyReporting?: boolean;
|
|
11431
12957
|
disableMissingParamChecks?: boolean;
|
|
12958
|
+
duplicateParams?: boolean;
|
|
11432
12959
|
enableFixer?: boolean;
|
|
12960
|
+
extraParams?: boolean;
|
|
11433
12961
|
useDefaultObjectProperties?: boolean;
|
|
11434
12962
|
}];
|
|
11435
12963
|
// ----- jsdoc/check-property-names -----
|
|
@@ -11610,6 +13138,13 @@ type JsdocNoUndefinedTypes = [] | [{
|
|
|
11610
13138
|
disableReporting?: boolean;
|
|
11611
13139
|
markVariablesAsUsed?: boolean;
|
|
11612
13140
|
}];
|
|
13141
|
+
// ----- jsdoc/no-unnecessary-type-assertion -----
|
|
13142
|
+
type JsdocNoUnnecessaryTypeAssertion = [] | [{
|
|
13143
|
+
checkLiteralConstAssertions?: boolean;
|
|
13144
|
+
enableFixer?: boolean;
|
|
13145
|
+
treatAnyAsRedundant?: boolean;
|
|
13146
|
+
typesToIgnore?: string[];
|
|
13147
|
+
}];
|
|
11613
13148
|
// ----- jsdoc/normalize-see-links -----
|
|
11614
13149
|
type JsdocNormalizeSeeLinks = [] | [{
|
|
11615
13150
|
canonicalForm?: ("pipe" | "prefix");
|
|
@@ -13321,6 +14856,10 @@ type NoUnderscoreDangle = [] | [{
|
|
|
13321
14856
|
allowInArrayDestructuring?: boolean;
|
|
13322
14857
|
allowInObjectDestructuring?: boolean;
|
|
13323
14858
|
}];
|
|
14859
|
+
// ----- no-unmodified-loop-condition -----
|
|
14860
|
+
type NoUnmodifiedLoopCondition = [] | [{
|
|
14861
|
+
checkConditionalExpressions?: boolean;
|
|
14862
|
+
}];
|
|
13324
14863
|
// ----- no-unneeded-ternary -----
|
|
13325
14864
|
type NoUnneededTernary = [] | [{
|
|
13326
14865
|
defaultAssignment?: boolean;
|
|
@@ -13644,6 +15183,10 @@ type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
|
|
|
13644
15183
|
type NodePreferNodeProtocol = [] | [{
|
|
13645
15184
|
version?: string;
|
|
13646
15185
|
}];
|
|
15186
|
+
// ----- node/prefer-process-get-builtin-module -----
|
|
15187
|
+
type NodePreferProcessGetBuiltinModule = [] | [{
|
|
15188
|
+
version?: string;
|
|
15189
|
+
}];
|
|
13647
15190
|
// ----- node/shebang -----
|
|
13648
15191
|
type NodeShebang = [] | [{
|
|
13649
15192
|
convertPath?: ({
|
|
@@ -16808,6 +18351,69 @@ type SemiSpacing = [] | [{
|
|
|
16808
18351
|
}];
|
|
16809
18352
|
// ----- semi-style -----
|
|
16810
18353
|
type SemiStyle = [] | [("last" | "first")];
|
|
18354
|
+
// ----- slop/max-comment-length -----
|
|
18355
|
+
type SlopMaxCommentLength = [] | [{
|
|
18356
|
+
cwd?: string;
|
|
18357
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18358
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18359
|
+
tracebackCommits?: number;
|
|
18360
|
+
});
|
|
18361
|
+
ignoreJSDoc?: boolean;
|
|
18362
|
+
maximumWords?: number;
|
|
18363
|
+
}];
|
|
18364
|
+
// ----- slop/no-chained-type-assertions -----
|
|
18365
|
+
type SlopNoChainedTypeAssertions = [] | [{
|
|
18366
|
+
cwd?: string;
|
|
18367
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18368
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18369
|
+
tracebackCommits?: number;
|
|
18370
|
+
});
|
|
18371
|
+
}];
|
|
18372
|
+
// ----- slop/no-em-dash -----
|
|
18373
|
+
type SlopNoEmDash = [] | [{
|
|
18374
|
+
cwd?: string;
|
|
18375
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18376
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18377
|
+
tracebackCommits?: number;
|
|
18378
|
+
});
|
|
18379
|
+
}];
|
|
18380
|
+
// ----- slop/no-jargon -----
|
|
18381
|
+
type SlopNoJargon = [] | [{
|
|
18382
|
+
cwd?: string;
|
|
18383
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18384
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18385
|
+
tracebackCommits?: number;
|
|
18386
|
+
});
|
|
18387
|
+
allow?: string[];
|
|
18388
|
+
extraWords?: string[];
|
|
18389
|
+
ignoreJSDoc?: boolean;
|
|
18390
|
+
words?: string[];
|
|
18391
|
+
}];
|
|
18392
|
+
// ----- slop/no-trivial-functions -----
|
|
18393
|
+
type SlopNoTrivialFunctions = [] | [{
|
|
18394
|
+
cwd?: string;
|
|
18395
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18396
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18397
|
+
tracebackCommits?: number;
|
|
18398
|
+
});
|
|
18399
|
+
minimumReferences?: number;
|
|
18400
|
+
}];
|
|
18401
|
+
// ----- slop/no-trivial-type-aliases -----
|
|
18402
|
+
type SlopNoTrivialTypeAliases = [] | [{
|
|
18403
|
+
cwd?: string;
|
|
18404
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18405
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18406
|
+
tracebackCommits?: number;
|
|
18407
|
+
});
|
|
18408
|
+
}];
|
|
18409
|
+
// ----- slop/prefer-jsdoc -----
|
|
18410
|
+
type SlopPreferJsdoc = [] | [{
|
|
18411
|
+
cwd?: string;
|
|
18412
|
+
inspection?: (("full" | "uncommitted" | "recent-changes") | {
|
|
18413
|
+
mode: ("full" | "uncommitted" | "recent-changes");
|
|
18414
|
+
tracebackCommits?: number;
|
|
18415
|
+
});
|
|
18416
|
+
}];
|
|
16811
18417
|
// ----- solid/event-handlers -----
|
|
16812
18418
|
type SolidEventHandlers = [] | [{
|
|
16813
18419
|
ignoreCase?: boolean;
|
|
@@ -16816,7 +18422,6 @@ type SolidEventHandlers = [] | [{
|
|
|
16816
18422
|
// ----- solid/jsx-no-duplicate-props -----
|
|
16817
18423
|
type SolidJsxNoDuplicateProps = [] | [{
|
|
16818
18424
|
ignoreCase?: boolean;
|
|
16819
|
-
[k: string]: unknown | undefined;
|
|
16820
18425
|
}];
|
|
16821
18426
|
// ----- solid/jsx-no-undef -----
|
|
16822
18427
|
type SolidJsxNoUndef = [] | [{
|
|
@@ -16850,6 +18455,107 @@ type SolidStyleProp = [] | [{
|
|
|
16850
18455
|
styleProps?: [string, ...(string)[]];
|
|
16851
18456
|
allowString?: boolean;
|
|
16852
18457
|
}];
|
|
18458
|
+
// ----- solid/valid-use-server -----
|
|
18459
|
+
type SolidValidUseServer = [] | [{
|
|
18460
|
+
clientWrappers?: string[];
|
|
18461
|
+
}];
|
|
18462
|
+
// ----- sonarjs/arrow-function-convention -----
|
|
18463
|
+
type SonarjsArrowFunctionConvention = [] | [{
|
|
18464
|
+
requireParameterParentheses?: boolean;
|
|
18465
|
+
requireBodyBraces?: boolean;
|
|
18466
|
+
}];
|
|
18467
|
+
// ----- sonarjs/class-name -----
|
|
18468
|
+
type SonarjsClassName = [] | [{
|
|
18469
|
+
format?: string;
|
|
18470
|
+
}];
|
|
18471
|
+
// ----- sonarjs/cognitive-complexity -----
|
|
18472
|
+
type SonarjsCognitiveComplexity = [] | [(number | "silence-issues")] | [(number | "silence-issues"), "silence-issues"];
|
|
18473
|
+
// ----- sonarjs/comment-regex -----
|
|
18474
|
+
type SonarjsCommentRegex = [] | [{
|
|
18475
|
+
regularExpression?: string;
|
|
18476
|
+
message?: string;
|
|
18477
|
+
flags?: string;
|
|
18478
|
+
}];
|
|
18479
|
+
// ----- sonarjs/content-length -----
|
|
18480
|
+
type SonarjsContentLength = [] | [{
|
|
18481
|
+
fileUploadSizeLimit?: number;
|
|
18482
|
+
standardSizeLimit?: number;
|
|
18483
|
+
}];
|
|
18484
|
+
// ----- sonarjs/cyclomatic-complexity -----
|
|
18485
|
+
type SonarjsCyclomaticComplexity = [] | [{
|
|
18486
|
+
threshold?: number;
|
|
18487
|
+
}];
|
|
18488
|
+
// ----- sonarjs/expression-complexity -----
|
|
18489
|
+
type SonarjsExpressionComplexity = [] | [{
|
|
18490
|
+
max?: number;
|
|
18491
|
+
}];
|
|
18492
|
+
// ----- sonarjs/file-header -----
|
|
18493
|
+
type SonarjsFileHeader = [] | [{
|
|
18494
|
+
headerFormat?: string;
|
|
18495
|
+
isRegularExpression?: boolean;
|
|
18496
|
+
}];
|
|
18497
|
+
// ----- sonarjs/function-name -----
|
|
18498
|
+
type SonarjsFunctionName = [] | [{
|
|
18499
|
+
format?: string;
|
|
18500
|
+
}];
|
|
18501
|
+
// ----- sonarjs/max-lines -----
|
|
18502
|
+
type SonarjsMaxLines = [] | [{
|
|
18503
|
+
maximum?: number;
|
|
18504
|
+
}];
|
|
18505
|
+
// ----- sonarjs/max-lines-per-function -----
|
|
18506
|
+
type SonarjsMaxLinesPerFunction = [] | [{
|
|
18507
|
+
maximum?: number;
|
|
18508
|
+
}];
|
|
18509
|
+
// ----- sonarjs/max-switch-cases -----
|
|
18510
|
+
type SonarjsMaxSwitchCases = [] | [number];
|
|
18511
|
+
// ----- sonarjs/max-union-size -----
|
|
18512
|
+
type SonarjsMaxUnionSize = [] | [{
|
|
18513
|
+
threshold?: number;
|
|
18514
|
+
}];
|
|
18515
|
+
// ----- sonarjs/nested-control-flow -----
|
|
18516
|
+
type SonarjsNestedControlFlow = [] | [{
|
|
18517
|
+
maximumNestingLevel?: number;
|
|
18518
|
+
}];
|
|
18519
|
+
// ----- sonarjs/new-operator-misuse -----
|
|
18520
|
+
type SonarjsNewOperatorMisuse = [] | [{
|
|
18521
|
+
considerJSDoc?: boolean;
|
|
18522
|
+
}];
|
|
18523
|
+
// ----- sonarjs/no-duplicate-string -----
|
|
18524
|
+
type SonarjsNoDuplicateString = [] | [{
|
|
18525
|
+
threshold?: number;
|
|
18526
|
+
ignoreStrings?: string;
|
|
18527
|
+
}];
|
|
18528
|
+
// ----- sonarjs/no-hardcoded-passwords -----
|
|
18529
|
+
type SonarjsNoHardcodedPasswords = [] | [{
|
|
18530
|
+
passwordWords?: string[];
|
|
18531
|
+
}];
|
|
18532
|
+
// ----- sonarjs/no-hardcoded-secrets -----
|
|
18533
|
+
type SonarjsNoHardcodedSecrets = [] | [{
|
|
18534
|
+
secretWords?: string;
|
|
18535
|
+
randomnessSensibility?: number;
|
|
18536
|
+
}];
|
|
18537
|
+
// ----- sonarjs/no-identical-functions -----
|
|
18538
|
+
type SonarjsNoIdenticalFunctions = [] | [number];
|
|
18539
|
+
// ----- sonarjs/no-implicit-dependencies -----
|
|
18540
|
+
type SonarjsNoImplicitDependencies = [] | [{
|
|
18541
|
+
whitelist?: string[];
|
|
18542
|
+
}];
|
|
18543
|
+
// ----- sonarjs/no-intrusive-permissions -----
|
|
18544
|
+
type SonarjsNoIntrusivePermissions = [] | [{
|
|
18545
|
+
permissions?: string[];
|
|
18546
|
+
}];
|
|
18547
|
+
// ----- sonarjs/no-nested-functions -----
|
|
18548
|
+
type SonarjsNoNestedFunctions = [] | [{
|
|
18549
|
+
threshold?: number;
|
|
18550
|
+
}];
|
|
18551
|
+
// ----- sonarjs/regex-complexity -----
|
|
18552
|
+
type SonarjsRegexComplexity = [] | [{
|
|
18553
|
+
threshold?: number;
|
|
18554
|
+
}];
|
|
18555
|
+
// ----- sonarjs/variable-name -----
|
|
18556
|
+
type SonarjsVariableName = [] | [{
|
|
18557
|
+
format?: string;
|
|
18558
|
+
}];
|
|
16853
18559
|
// ----- sort-imports -----
|
|
16854
18560
|
type SortImports = [] | [{
|
|
16855
18561
|
ignoreCase?: boolean;
|
|
@@ -21713,7 +23419,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
21713
23419
|
onlyEquality?: boolean;
|
|
21714
23420
|
}];
|
|
21715
23421
|
// Names of all the configs
|
|
21716
|
-
type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/setup' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files';
|
|
23422
|
+
type ConfigNames = 'antfu/gitignore' | 'antfu/ignores' | 'antfu/javascript/setup' | 'antfu/javascript/rules' | 'antfu/eslint-comments/rules' | 'antfu/command/rules' | 'antfu/perfectionist/setup' | 'antfu/node/setup' | 'antfu/node/rules' | 'antfu/jsdoc/setup' | 'antfu/jsdoc/rules' | 'antfu/imports/rules' | 'antfu/e18e/rules' | 'antfu/unicorn/setup' | 'antfu/unicorn/rules' | 'antfu/jsx/setup' | 'antfu/typescript/setup' | 'antfu/typescript/parser' | 'antfu/typescript/type-aware-parser' | 'antfu/typescript/rules' | 'antfu/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'antfu/antislop/setup' | 'antfu/antislop/rules/universal' | 'antfu/antislop/rules/javascript' | 'antfu/stylistic/rules' | 'antfu/regexp/rules' | 'antfu/test/setup' | 'antfu/test/rules' | 'antfu/vue/setup' | 'antfu/vue/rules' | 'antfu/react/setup' | 'antfu/react/rules' | 'antfu/react/typescript' | 'antfu/react/type-aware-rules' | 'antfu/nextjs/setup' | 'antfu/nextjs/rules' | 'antfu/solid/setup' | 'antfu/solid/rules' | 'antfu/svelte/setup' | 'antfu/svelte/rules' | 'antfu/unocss' | 'antfu/astro/setup' | 'antfu/astro/rules' | 'antfu/angular/setup' | 'antfu/angular/rules/ts' | 'antfu/angular/rules/template' | 'antfu/jsonc/setup' | 'antfu/jsonc/rules' | 'antfu/sort/package-json' | 'antfu/sort/tsconfig-json' | 'antfu/pnpm/package-json' | 'antfu/pnpm/pnpm-workspace-yaml' | 'antfu/pnpm/pnpm-workspace-yaml-stylistic' | 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'antfu/yaml/setup' | 'antfu/yaml/rules' | 'antfu/toml/setup' | 'antfu/toml/rules' | 'antfu/markdown/setup' | 'antfu/markdown/processor' | 'antfu/markdown/parser' | 'antfu/markdown/rules' | 'antfu/markdown/disables/code' | 'antfu/formatter/setup' | 'antfu/formatter/css' | 'antfu/formatter/scss' | 'antfu/formatter/less' | 'antfu/formatter/html' | 'antfu/formatter/xml' | 'antfu/formatter/svg' | 'antfu/formatter/markdown' | 'antfu/formatter/astro' | 'antfu/formatter/astro/disables' | 'antfu/formatter/graphql' | 'antfu/disables/scripts' | 'antfu/disables/cli' | 'antfu/disables/bin' | 'antfu/disables/dts' | 'antfu/disables/cjs' | 'antfu/disables/config-files';
|
|
21717
23423
|
//#endregion
|
|
21718
23424
|
//#region src/vender/prettier-types.d.ts
|
|
21719
23425
|
/**
|
|
@@ -21787,7 +23493,7 @@ interface VendoredPrettierOptionsRequired {
|
|
|
21787
23493
|
/**
|
|
21788
23494
|
* Provide ability to support new languages to prettier.
|
|
21789
23495
|
*/
|
|
21790
|
-
plugins: Array<string |
|
|
23496
|
+
plugins: Array<string | Record<string, unknown>>;
|
|
21791
23497
|
/**
|
|
21792
23498
|
* How to handle whitespaces in HTML.
|
|
21793
23499
|
* @default "css"
|
|
@@ -21995,6 +23701,42 @@ interface OptionsE18e extends OptionsOverrides {
|
|
|
21995
23701
|
*/
|
|
21996
23702
|
performanceImprovements?: boolean;
|
|
21997
23703
|
}
|
|
23704
|
+
interface OptionsSlop {
|
|
23705
|
+
cwd?: string;
|
|
23706
|
+
inspection?: 'full' | 'uncommitted' | 'recent-changes' | {
|
|
23707
|
+
mode: 'full' | 'uncommitted';
|
|
23708
|
+
} | {
|
|
23709
|
+
mode: 'recent-changes';
|
|
23710
|
+
tracebackCommits?: number;
|
|
23711
|
+
};
|
|
23712
|
+
}
|
|
23713
|
+
interface OptionsAntislop extends OptionsOverrides {
|
|
23714
|
+
/**
|
|
23715
|
+
* Enable rules from `eslint-plugin-slop`.
|
|
23716
|
+
*
|
|
23717
|
+
* Passing an object enables the rules and forwards it to the plugin
|
|
23718
|
+
* via `settings.slop`, controlling the working directory and inspection mode.
|
|
23719
|
+
*
|
|
23720
|
+
* @see https://github.com/antfu/eslint-plugin-slop
|
|
23721
|
+
* @default true
|
|
23722
|
+
*/
|
|
23723
|
+
slop?: boolean | OptionsSlop;
|
|
23724
|
+
/**
|
|
23725
|
+
* Enable the curated subset of rules from `eslint-plugin-sonarjs`.
|
|
23726
|
+
*
|
|
23727
|
+
* @see https://github.com/SonarSource/SonarJS
|
|
23728
|
+
* @default true
|
|
23729
|
+
*/
|
|
23730
|
+
sonarjs?: boolean;
|
|
23731
|
+
/**
|
|
23732
|
+
* Maximum allowed cognitive complexity for `sonarjs/cognitive-complexity`.
|
|
23733
|
+
*
|
|
23734
|
+
* Pass `false` to disable the rule entirely.
|
|
23735
|
+
*
|
|
23736
|
+
* @default 15
|
|
23737
|
+
*/
|
|
23738
|
+
cognitiveComplexity?: number | false;
|
|
23739
|
+
}
|
|
21998
23740
|
interface OptionsUnicorn extends OptionsOverrides {
|
|
21999
23741
|
/**
|
|
22000
23742
|
* Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
|
|
@@ -22078,7 +23820,7 @@ interface OptionsRegExp {
|
|
|
22078
23820
|
interface OptionsIsInEditor {
|
|
22079
23821
|
isInEditor?: boolean;
|
|
22080
23822
|
}
|
|
22081
|
-
interface OptionsPnpm extends OptionsIsInEditor {
|
|
23823
|
+
interface OptionsPnpm extends OptionsIsInEditor, OptionsStylistic {
|
|
22082
23824
|
/**
|
|
22083
23825
|
* Requires catalogs usage
|
|
22084
23826
|
*
|
|
@@ -22255,6 +23997,26 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
22255
23997
|
* @default false
|
|
22256
23998
|
*/
|
|
22257
23999
|
angular?: boolean | OptionsOverrides;
|
|
24000
|
+
/**
|
|
24001
|
+
* Enable anti-slop rules, guarding against low-value code patterns
|
|
24002
|
+
* commonly introduced by AI agents.
|
|
24003
|
+
*
|
|
24004
|
+
* Enables [eslint-plugin-slop](https://github.com/antfu/eslint-plugin-slop) and
|
|
24005
|
+
* a curated subset of [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS).
|
|
24006
|
+
*
|
|
24007
|
+
* We also recommend pairing this with [jscpd](https://github.com/kucherenko/jscpd)
|
|
24008
|
+
* and [knip](https://github.com/webpro-nl/knip) to catch copy-paste duplication
|
|
24009
|
+
* and unused files, dependencies, and exports.
|
|
24010
|
+
*
|
|
24011
|
+
* Requires installing:
|
|
24012
|
+
* - `eslint-plugin-slop`
|
|
24013
|
+
* - `eslint-plugin-sonarjs`
|
|
24014
|
+
*
|
|
24015
|
+
* @experimental The enabled rule set is maintained in-house and may change
|
|
24016
|
+
* in any release without following semver.
|
|
24017
|
+
* @default false
|
|
24018
|
+
*/
|
|
24019
|
+
antislop?: boolean | OptionsAntislop;
|
|
22258
24020
|
/**
|
|
22259
24021
|
* Enable linting for **code snippets** in Markdown and the markdown content itself.
|
|
22260
24022
|
*
|
|
@@ -22403,12 +24165,16 @@ declare function resolveSubOptions<K extends keyof OptionsConfig>(options: Optio
|
|
|
22403
24165
|
declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
22404
24166
|
//#endregion
|
|
22405
24167
|
//#region src/config-presets.d.ts
|
|
24168
|
+
/** @keep-sorted */
|
|
22406
24169
|
declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
|
|
22407
24170
|
declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
|
|
22408
24171
|
//#endregion
|
|
22409
24172
|
//#region src/configs/angular.d.ts
|
|
22410
24173
|
declare function angular(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
22411
24174
|
//#endregion
|
|
24175
|
+
//#region src/configs/antislop.d.ts
|
|
24176
|
+
declare function antislop(options?: OptionsAntislop & OptionsHasTypeScript): Promise<TypedFlatConfigItem[]>;
|
|
24177
|
+
//#endregion
|
|
22412
24178
|
//#region src/configs/astro.d.ts
|
|
22413
24179
|
declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
22414
24180
|
//#endregion
|
|
@@ -22422,7 +24188,7 @@ declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
|
22422
24188
|
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
22423
24189
|
//#endregion
|
|
22424
24190
|
//#region src/configs/formatters.d.ts
|
|
22425
|
-
declare function formatters(
|
|
24191
|
+
declare function formatters(rawOptions?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
22426
24192
|
//#endregion
|
|
22427
24193
|
//#region src/configs/ignores.d.ts
|
|
22428
24194
|
declare function ignores(userIgnores?: string[] | ((originals: string[]) => string[]), ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
|
|
@@ -22624,4 +24390,4 @@ declare function isInGitHooksOrLintStaged(): boolean;
|
|
|
22624
24390
|
//#region src/index.d.ts
|
|
22625
24391
|
declare const zin: typeof antfu;
|
|
22626
24392
|
//#endregion
|
|
22627
|
-
export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsMarkdown, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, type RuleOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, angular, antfu, astro, combine, command, comments, zin as default, zin, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
24393
|
+
export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsAntislop, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsMarkdown, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsSlop, OptionsStylistic, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, type RuleOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, angular, antfu, antislop, astro, combine, command, comments, zin as default, zin, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, solid, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|