@biomejs/wasm-nodejs 2.3.14 → 2.4.0
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/biome_wasm.d.ts +656 -384
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -2,36 +2,16 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
interface SupportsFeatureParams {
|
|
4
4
|
features: FeatureName;
|
|
5
|
+
inlineConfig?: Configuration;
|
|
6
|
+
/**
|
|
7
|
+
* Features that shouldn't be enabled
|
|
8
|
+
*/
|
|
9
|
+
notRequestedFeatures?: FeatureName;
|
|
5
10
|
path: BiomePath;
|
|
6
11
|
projectKey: ProjectKey;
|
|
7
12
|
skipIgnoreCheck?: boolean;
|
|
8
13
|
}
|
|
9
14
|
type FeatureName = FeatureKind[];
|
|
10
|
-
type BiomePath = string;
|
|
11
|
-
type ProjectKey = number;
|
|
12
|
-
type FeatureKind =
|
|
13
|
-
| "format"
|
|
14
|
-
| "lint"
|
|
15
|
-
| "search"
|
|
16
|
-
| "assist"
|
|
17
|
-
| "debug"
|
|
18
|
-
| "htmlFullSupport";
|
|
19
|
-
interface FileFeaturesResult {
|
|
20
|
-
featuresSupported: FeaturesSupported;
|
|
21
|
-
}
|
|
22
|
-
type FeaturesSupported = { [K in FeatureKind]?: SupportKind };
|
|
23
|
-
type SupportKind =
|
|
24
|
-
| "supported"
|
|
25
|
-
| "ignored"
|
|
26
|
-
| "protected"
|
|
27
|
-
| "featureNotEnabled"
|
|
28
|
-
| "fileNotSupported";
|
|
29
|
-
interface UpdateSettingsParams {
|
|
30
|
-
configuration: Configuration;
|
|
31
|
-
extendedConfigurations?: [BiomePath, Configuration][];
|
|
32
|
-
projectKey: ProjectKey;
|
|
33
|
-
workspaceDirectory?: BiomePath;
|
|
34
|
-
}
|
|
35
15
|
interface Configuration {
|
|
36
16
|
/**
|
|
37
17
|
* A field for the [JSON schema](https://json-schema.org/) specification
|
|
@@ -99,6 +79,15 @@ project. By default, this is `true`.
|
|
|
99
79
|
*/
|
|
100
80
|
vcs?: VcsConfiguration;
|
|
101
81
|
}
|
|
82
|
+
type BiomePath = string;
|
|
83
|
+
type ProjectKey = number;
|
|
84
|
+
type FeatureKind =
|
|
85
|
+
| "format"
|
|
86
|
+
| "lint"
|
|
87
|
+
| "search"
|
|
88
|
+
| "assist"
|
|
89
|
+
| "debug"
|
|
90
|
+
| "htmlFullSupport";
|
|
102
91
|
type Schema = string;
|
|
103
92
|
interface AssistConfiguration {
|
|
104
93
|
/**
|
|
@@ -212,10 +201,23 @@ match these patterns.
|
|
|
212
201
|
*/
|
|
213
202
|
lineWidth?: LineWidth;
|
|
214
203
|
/**
|
|
204
|
+
* Whether to add a trailing newline at the end of the file.
|
|
205
|
+
|
|
206
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
207
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
208
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
209
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
210
|
+
|
|
211
|
+
Disable the option at your own risk.
|
|
212
|
+
|
|
213
|
+
Defaults to true.
|
|
214
|
+
*/
|
|
215
|
+
trailingNewline?: TrailingNewline;
|
|
216
|
+
/**
|
|
215
217
|
* Use any `.editorconfig` files to configure the formatter. Configuration
|
|
216
218
|
in `biome.json` will override `.editorconfig` configuration.
|
|
217
219
|
|
|
218
|
-
Default: `
|
|
220
|
+
Default: `false`.
|
|
219
221
|
*/
|
|
220
222
|
useEditorconfig?: Bool;
|
|
221
223
|
}
|
|
@@ -268,6 +270,10 @@ interface JsConfiguration {
|
|
|
268
270
|
* Assist options
|
|
269
271
|
*/
|
|
270
272
|
assist?: JsAssistConfiguration;
|
|
273
|
+
/**
|
|
274
|
+
* Enables support for embedding snippets.
|
|
275
|
+
*/
|
|
276
|
+
experimentalEmbeddedSnippetsEnabled?: Bool;
|
|
271
277
|
/**
|
|
272
278
|
* Formatting options
|
|
273
279
|
*/
|
|
@@ -398,6 +404,19 @@ interface CssFormatterConfiguration {
|
|
|
398
404
|
* The type of quotes used in CSS code. Defaults to double.
|
|
399
405
|
*/
|
|
400
406
|
quoteStyle?: QuoteStyle;
|
|
407
|
+
/**
|
|
408
|
+
* Whether to add a trailing newline at the end of the file.
|
|
409
|
+
|
|
410
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
411
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
412
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
413
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
414
|
+
|
|
415
|
+
Disable the option at your own risk.
|
|
416
|
+
|
|
417
|
+
Defaults to true.
|
|
418
|
+
*/
|
|
419
|
+
trailingNewline?: TrailingNewline;
|
|
401
420
|
}
|
|
402
421
|
interface CssLinterConfiguration {
|
|
403
422
|
/**
|
|
@@ -411,7 +430,8 @@ interface CssParserConfiguration {
|
|
|
411
430
|
*/
|
|
412
431
|
allowWrongLineComments?: Bool;
|
|
413
432
|
/**
|
|
414
|
-
|
|
433
|
+
* Enables parsing of CSS Modules specific features. Enable this feature only
|
|
434
|
+
when your files don't end in `.module.css`.
|
|
415
435
|
*/
|
|
416
436
|
cssModules?: Bool;
|
|
417
437
|
/**
|
|
@@ -428,6 +448,7 @@ type IndentStyle = "tab" | "space";
|
|
|
428
448
|
type IndentWidth = number;
|
|
429
449
|
type LineEnding = "lf" | "crlf" | "cr" | "auto";
|
|
430
450
|
type LineWidth = number;
|
|
451
|
+
type TrailingNewline = boolean;
|
|
431
452
|
interface GraphqlAssistConfiguration {
|
|
432
453
|
/**
|
|
433
454
|
* Control the formatter for GraphQL files.
|
|
@@ -463,6 +484,19 @@ interface GraphqlFormatterConfiguration {
|
|
|
463
484
|
* The type of quotes used in GraphQL code. Defaults to double.
|
|
464
485
|
*/
|
|
465
486
|
quoteStyle?: QuoteStyle;
|
|
487
|
+
/**
|
|
488
|
+
* Whether to add a trailing newline at the end of the file.
|
|
489
|
+
|
|
490
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
491
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
492
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
493
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
494
|
+
|
|
495
|
+
Disable the option at your own risk.
|
|
496
|
+
|
|
497
|
+
Defaults to true.
|
|
498
|
+
*/
|
|
499
|
+
trailingNewline?: TrailingNewline;
|
|
466
500
|
}
|
|
467
501
|
interface GraphqlLinterConfiguration {
|
|
468
502
|
/**
|
|
@@ -497,6 +531,19 @@ interface GritFormatterConfiguration {
|
|
|
497
531
|
* What's the max width of a line applied to Grit files. Defaults to 80.
|
|
498
532
|
*/
|
|
499
533
|
lineWidth?: LineWidth;
|
|
534
|
+
/**
|
|
535
|
+
* Whether to add a trailing newline at the end of the file.
|
|
536
|
+
|
|
537
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
538
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
539
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
540
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
541
|
+
|
|
542
|
+
Disable the option at your own risk.
|
|
543
|
+
|
|
544
|
+
Defaults to true.
|
|
545
|
+
*/
|
|
546
|
+
trailingNewline?: TrailingNewline;
|
|
500
547
|
}
|
|
501
548
|
interface GritLinterConfiguration {
|
|
502
549
|
/**
|
|
@@ -547,6 +594,19 @@ interface HtmlFormatterConfiguration {
|
|
|
547
594
|
* Whether void elements should be self-closed. Defaults to never.
|
|
548
595
|
*/
|
|
549
596
|
selfCloseVoidElements?: SelfCloseVoidElements;
|
|
597
|
+
/**
|
|
598
|
+
* Whether to add a trailing newline at the end of the file.
|
|
599
|
+
|
|
600
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
601
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
602
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
603
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
604
|
+
|
|
605
|
+
Disable the option at your own risk.
|
|
606
|
+
|
|
607
|
+
Defaults to true.
|
|
608
|
+
*/
|
|
609
|
+
trailingNewline?: TrailingNewline;
|
|
550
610
|
/**
|
|
551
611
|
* Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to "css".
|
|
552
612
|
*/
|
|
@@ -640,6 +700,19 @@ When formatting `package.json`, Biome will use `always` unless configured otherw
|
|
|
640
700
|
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "all".
|
|
641
701
|
*/
|
|
642
702
|
trailingCommas?: JsTrailingCommas;
|
|
703
|
+
/**
|
|
704
|
+
* Whether to add a trailing newline at the end of the file.
|
|
705
|
+
|
|
706
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
707
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
708
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
709
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
710
|
+
|
|
711
|
+
Disable the option at your own risk.
|
|
712
|
+
|
|
713
|
+
Defaults to true.
|
|
714
|
+
*/
|
|
715
|
+
trailingNewline?: TrailingNewline;
|
|
643
716
|
}
|
|
644
717
|
type JsxRuntime = "transparent" | "reactClassic";
|
|
645
718
|
interface JsLinterConfiguration {
|
|
@@ -711,6 +784,19 @@ When formatting `package.json`, Biome will use `always` unless configured otherw
|
|
|
711
784
|
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to "none".
|
|
712
785
|
*/
|
|
713
786
|
trailingCommas?: JsonTrailingCommas;
|
|
787
|
+
/**
|
|
788
|
+
* Whether to add a trailing newline at the end of the file.
|
|
789
|
+
|
|
790
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
791
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
792
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
793
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
794
|
+
|
|
795
|
+
Disable the option at your own risk.
|
|
796
|
+
|
|
797
|
+
Defaults to true.
|
|
798
|
+
*/
|
|
799
|
+
trailingNewline?: TrailingNewline;
|
|
714
800
|
}
|
|
715
801
|
interface JsonLinterConfiguration {
|
|
716
802
|
/**
|
|
@@ -797,6 +883,11 @@ match these patterns.
|
|
|
797
883
|
type PluginConfiguration = string;
|
|
798
884
|
type VcsClientKind = "git";
|
|
799
885
|
interface Source {
|
|
886
|
+
/**
|
|
887
|
+
* Remove duplicate CSS classes.
|
|
888
|
+
See https://biomejs.dev/assist/actions/no-duplicate-classes
|
|
889
|
+
*/
|
|
890
|
+
noDuplicateClasses?: NoDuplicateClassesConfiguration;
|
|
800
891
|
/**
|
|
801
892
|
* Provides a code action to sort the imports and exports in the file using a built-in or custom order.
|
|
802
893
|
See https://biomejs.dev/assist/actions/organize-imports
|
|
@@ -812,6 +903,11 @@ See https://biomejs.dev/assist/actions/use-sorted-attributes
|
|
|
812
903
|
*/
|
|
813
904
|
useSortedAttributes?: UseSortedAttributesConfiguration;
|
|
814
905
|
/**
|
|
906
|
+
* Sort interface members by key.
|
|
907
|
+
See https://biomejs.dev/assist/actions/use-sorted-interface-members
|
|
908
|
+
*/
|
|
909
|
+
useSortedInterfaceMembers?: UseSortedInterfaceMembersConfiguration;
|
|
910
|
+
/**
|
|
815
911
|
* Sort the keys of a JSON object in natural order.
|
|
816
912
|
See https://biomejs.dev/assist/actions/use-sorted-keys
|
|
817
913
|
*/
|
|
@@ -841,7 +937,8 @@ type RuleDomain =
|
|
|
841
937
|
| "vue"
|
|
842
938
|
| "project"
|
|
843
939
|
| "tailwind"
|
|
844
|
-
| "turborepo"
|
|
940
|
+
| "turborepo"
|
|
941
|
+
| "types";
|
|
845
942
|
type RuleDomainValue = "all" | "none" | "recommended";
|
|
846
943
|
type SeverityOrA11y = GroupPlainConfiguration | A11y;
|
|
847
944
|
type SeverityOrComplexity = GroupPlainConfiguration | Complexity;
|
|
@@ -915,6 +1012,19 @@ has syntax errors
|
|
|
915
1012
|
* What's the max width of a line. Defaults to 80.
|
|
916
1013
|
*/
|
|
917
1014
|
lineWidth?: LineWidth;
|
|
1015
|
+
/**
|
|
1016
|
+
* Whether to add a trailing newline at the end of the file.
|
|
1017
|
+
|
|
1018
|
+
Setting this option to `false` is **highly discouraged** because it could cause many problems with other tools:
|
|
1019
|
+
- <https://thoughtbot.com/blog/no-newline-at-end-of-file>
|
|
1020
|
+
- <https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804>
|
|
1021
|
+
- <https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files>
|
|
1022
|
+
|
|
1023
|
+
Disable the option at your own risk.
|
|
1024
|
+
|
|
1025
|
+
Defaults to true.
|
|
1026
|
+
*/
|
|
1027
|
+
trailingNewline?: TrailingNewline;
|
|
918
1028
|
}
|
|
919
1029
|
type OverrideGlobs = Glob[];
|
|
920
1030
|
interface OverrideLinterConfiguration {
|
|
@@ -931,12 +1041,18 @@ interface OverrideLinterConfiguration {
|
|
|
931
1041
|
*/
|
|
932
1042
|
rules?: Rules;
|
|
933
1043
|
}
|
|
1044
|
+
type NoDuplicateClassesConfiguration =
|
|
1045
|
+
| RuleAssistPlainConfiguration
|
|
1046
|
+
| RuleAssistWithNoDuplicateClassesOptions;
|
|
934
1047
|
type OrganizeImportsConfiguration =
|
|
935
1048
|
| RuleAssistPlainConfiguration
|
|
936
1049
|
| RuleAssistWithOrganizeImportsOptions;
|
|
937
1050
|
type UseSortedAttributesConfiguration =
|
|
938
1051
|
| RuleAssistPlainConfiguration
|
|
939
1052
|
| RuleAssistWithUseSortedAttributesOptions;
|
|
1053
|
+
type UseSortedInterfaceMembersConfiguration =
|
|
1054
|
+
| RuleAssistPlainConfiguration
|
|
1055
|
+
| RuleAssistWithUseSortedInterfaceMembersOptions;
|
|
940
1056
|
type UseSortedKeysConfiguration =
|
|
941
1057
|
| RuleAssistPlainConfiguration
|
|
942
1058
|
| RuleAssistWithUseSortedKeysOptions;
|
|
@@ -946,7 +1062,7 @@ type UseSortedPropertiesConfiguration =
|
|
|
946
1062
|
type GroupPlainConfiguration = "off" | "on" | "info" | "warn" | "error";
|
|
947
1063
|
interface A11y {
|
|
948
1064
|
/**
|
|
949
|
-
* Enforce that the
|
|
1065
|
+
* Enforce that the accesskey attribute is not used on any HTML element.
|
|
950
1066
|
See https://biomejs.dev/linter/rules/no-access-key
|
|
951
1067
|
*/
|
|
952
1068
|
noAccessKey?: NoAccessKeyConfiguration;
|
|
@@ -961,7 +1077,7 @@ See https://biomejs.dev/linter/rules/no-aria-unsupported-elements
|
|
|
961
1077
|
*/
|
|
962
1078
|
noAriaUnsupportedElements?: NoAriaUnsupportedElementsConfiguration;
|
|
963
1079
|
/**
|
|
964
|
-
* Enforce that
|
|
1080
|
+
* Enforce that the autofocus attribute is not used on elements.
|
|
965
1081
|
See https://biomejs.dev/linter/rules/no-autofocus
|
|
966
1082
|
*/
|
|
967
1083
|
noAutofocus?: NoAutofocusConfiguration;
|
|
@@ -1001,7 +1117,7 @@ See https://biomejs.dev/linter/rules/no-noninteractive-tabindex
|
|
|
1001
1117
|
*/
|
|
1002
1118
|
noNoninteractiveTabindex?: NoNoninteractiveTabindexConfiguration;
|
|
1003
1119
|
/**
|
|
1004
|
-
* Prevent the usage of positive integers on
|
|
1120
|
+
* Prevent the usage of positive integers on tabindex attribute.
|
|
1005
1121
|
See https://biomejs.dev/linter/rules/no-positive-tabindex
|
|
1006
1122
|
*/
|
|
1007
1123
|
noPositiveTabindex?: NoPositiveTabindexConfiguration;
|
|
@@ -1055,7 +1171,7 @@ See https://biomejs.dev/linter/rules/use-aria-props-supported-by-role
|
|
|
1055
1171
|
*/
|
|
1056
1172
|
useAriaPropsSupportedByRole?: UseAriaPropsSupportedByRoleConfiguration;
|
|
1057
1173
|
/**
|
|
1058
|
-
* Enforces the usage of the attribute type for the element button.
|
|
1174
|
+
* Enforces the usage and validity of the attribute type for the element button.
|
|
1059
1175
|
See https://biomejs.dev/linter/rules/use-button-type
|
|
1060
1176
|
*/
|
|
1061
1177
|
useButtonType?: UseButtonTypeConfiguration;
|
|
@@ -1217,6 +1333,11 @@ See https://biomejs.dev/linter/rules/no-useless-catch
|
|
|
1217
1333
|
*/
|
|
1218
1334
|
noUselessCatch?: NoUselessCatchConfiguration;
|
|
1219
1335
|
/**
|
|
1336
|
+
* Disallow unused catch bindings.
|
|
1337
|
+
See https://biomejs.dev/linter/rules/no-useless-catch-binding
|
|
1338
|
+
*/
|
|
1339
|
+
noUselessCatchBinding?: NoUselessCatchBindingConfiguration;
|
|
1340
|
+
/**
|
|
1220
1341
|
* Disallow unnecessary constructors.
|
|
1221
1342
|
See https://biomejs.dev/linter/rules/no-useless-constructor
|
|
1222
1343
|
*/
|
|
@@ -1287,6 +1408,11 @@ See https://biomejs.dev/linter/rules/no-useless-type-constraint
|
|
|
1287
1408
|
*/
|
|
1288
1409
|
noUselessTypeConstraint?: NoUselessTypeConstraintConfiguration;
|
|
1289
1410
|
/**
|
|
1411
|
+
* Disallow the use of useless undefined.
|
|
1412
|
+
See https://biomejs.dev/linter/rules/no-useless-undefined
|
|
1413
|
+
*/
|
|
1414
|
+
noUselessUndefined?: NoUselessUndefinedConfiguration;
|
|
1415
|
+
/**
|
|
1290
1416
|
* Disallow initializing variables to undefined.
|
|
1291
1417
|
See https://biomejs.dev/linter/rules/no-useless-undefined-initialization
|
|
1292
1418
|
*/
|
|
@@ -1326,6 +1452,11 @@ See https://biomejs.dev/linter/rules/use-literal-keys
|
|
|
1326
1452
|
*/
|
|
1327
1453
|
useLiteralKeys?: UseLiteralKeysConfiguration;
|
|
1328
1454
|
/**
|
|
1455
|
+
* Enforce a maximum number of parameters in function definitions.
|
|
1456
|
+
See https://biomejs.dev/linter/rules/use-max-params
|
|
1457
|
+
*/
|
|
1458
|
+
useMaxParams?: UseMaxParamsConfiguration;
|
|
1459
|
+
/**
|
|
1329
1460
|
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals.
|
|
1330
1461
|
See https://biomejs.dev/linter/rules/use-numeric-literals
|
|
1331
1462
|
*/
|
|
@@ -1448,6 +1579,11 @@ See https://biomejs.dev/linter/rules/no-nested-component-definitions
|
|
|
1448
1579
|
*/
|
|
1449
1580
|
noNestedComponentDefinitions?: NoNestedComponentDefinitionsConfiguration;
|
|
1450
1581
|
/**
|
|
1582
|
+
* Prevent client components from being async functions.
|
|
1583
|
+
See https://biomejs.dev/linter/rules/no-next-async-client-component
|
|
1584
|
+
*/
|
|
1585
|
+
noNextAsyncClientComponent?: NoNextAsyncClientComponentConfiguration;
|
|
1586
|
+
/**
|
|
1451
1587
|
* Forbid the use of Node.js builtin modules.
|
|
1452
1588
|
See https://biomejs.dev/linter/rules/no-nodejs-modules
|
|
1453
1589
|
*/
|
|
@@ -1578,6 +1714,11 @@ See https://biomejs.dev/linter/rules/no-unreachable-super
|
|
|
1578
1714
|
*/
|
|
1579
1715
|
noUnreachableSuper?: NoUnreachableSuperConfiguration;
|
|
1580
1716
|
/**
|
|
1717
|
+
* Warn when importing non-existing exports.
|
|
1718
|
+
See https://biomejs.dev/linter/rules/no-unresolved-imports
|
|
1719
|
+
*/
|
|
1720
|
+
noUnresolvedImports?: NoUnresolvedImportsConfiguration;
|
|
1721
|
+
/**
|
|
1581
1722
|
* Disallow control flow statements in finally blocks.
|
|
1582
1723
|
See https://biomejs.dev/linter/rules/no-unsafe-finally
|
|
1583
1724
|
*/
|
|
@@ -1622,6 +1763,31 @@ See https://biomejs.dev/linter/rules/no-void-elements-with-children
|
|
|
1622
1763
|
See https://biomejs.dev/linter/rules/no-void-type-return
|
|
1623
1764
|
*/
|
|
1624
1765
|
noVoidTypeReturn?: NoVoidTypeReturnConfiguration;
|
|
1766
|
+
/**
|
|
1767
|
+
* Enforce that Vue component data options are declared as functions.
|
|
1768
|
+
See https://biomejs.dev/linter/rules/no-vue-data-object-declaration
|
|
1769
|
+
*/
|
|
1770
|
+
noVueDataObjectDeclaration?: NoVueDataObjectDeclarationConfiguration;
|
|
1771
|
+
/**
|
|
1772
|
+
* Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
|
|
1773
|
+
See https://biomejs.dev/linter/rules/no-vue-duplicate-keys
|
|
1774
|
+
*/
|
|
1775
|
+
noVueDuplicateKeys?: NoVueDuplicateKeysConfiguration;
|
|
1776
|
+
/**
|
|
1777
|
+
* Disallow reserved keys in Vue component data and computed properties.
|
|
1778
|
+
See https://biomejs.dev/linter/rules/no-vue-reserved-keys
|
|
1779
|
+
*/
|
|
1780
|
+
noVueReservedKeys?: NoVueReservedKeysConfiguration;
|
|
1781
|
+
/**
|
|
1782
|
+
* Disallow reserved names to be used as props.
|
|
1783
|
+
See https://biomejs.dev/linter/rules/no-vue-reserved-props
|
|
1784
|
+
*/
|
|
1785
|
+
noVueReservedProps?: NoVueReservedPropsConfiguration;
|
|
1786
|
+
/**
|
|
1787
|
+
* Disallow destructuring of props passed to setup in Vue projects.
|
|
1788
|
+
See https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss
|
|
1789
|
+
*/
|
|
1790
|
+
noVueSetupPropsReactivityLoss?: NoVueSetupPropsReactivityLossConfiguration;
|
|
1625
1791
|
/**
|
|
1626
1792
|
* Enables the recommended rules for this group
|
|
1627
1793
|
*/
|
|
@@ -1677,6 +1843,16 @@ See https://biomejs.dev/linter/rules/use-qwik-classlist
|
|
|
1677
1843
|
*/
|
|
1678
1844
|
useQwikClasslist?: UseQwikClasslistConfiguration;
|
|
1679
1845
|
/**
|
|
1846
|
+
* Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
|
|
1847
|
+
See https://biomejs.dev/linter/rules/use-qwik-method-usage
|
|
1848
|
+
*/
|
|
1849
|
+
useQwikMethodUsage?: UseQwikMethodUsageConfiguration;
|
|
1850
|
+
/**
|
|
1851
|
+
* Disallow unserializable expressions in Qwik dollar ($) scopes.
|
|
1852
|
+
See https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope
|
|
1853
|
+
*/
|
|
1854
|
+
useQwikValidLexicalScope?: UseQwikValidLexicalScopeConfiguration;
|
|
1855
|
+
/**
|
|
1680
1856
|
* Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
|
|
1681
1857
|
See https://biomejs.dev/linter/rules/use-single-js-doc-asterisk
|
|
1682
1858
|
*/
|
|
@@ -1719,11 +1895,6 @@ See https://biomejs.dev/linter/rules/no-continue
|
|
|
1719
1895
|
*/
|
|
1720
1896
|
noContinue?: NoContinueConfiguration;
|
|
1721
1897
|
/**
|
|
1722
|
-
* Restrict imports of deprecated exports.
|
|
1723
|
-
See https://biomejs.dev/linter/rules/no-deprecated-imports
|
|
1724
|
-
*/
|
|
1725
|
-
noDeprecatedImports?: NoDeprecatedImportsConfiguration;
|
|
1726
|
-
/**
|
|
1727
1898
|
* Disallow deprecated media types.
|
|
1728
1899
|
See https://biomejs.dev/linter/rules/no-deprecated-media-type
|
|
1729
1900
|
*/
|
|
@@ -1744,11 +1915,6 @@ See https://biomejs.dev/linter/rules/no-duplicate-attributes
|
|
|
1744
1915
|
*/
|
|
1745
1916
|
noDuplicateAttributes?: NoDuplicateAttributesConfiguration;
|
|
1746
1917
|
/**
|
|
1747
|
-
* Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
|
|
1748
|
-
See https://biomejs.dev/linter/rules/no-duplicate-dependencies
|
|
1749
|
-
*/
|
|
1750
|
-
noDuplicateDependencies?: NoDuplicateDependenciesConfiguration;
|
|
1751
|
-
/**
|
|
1752
1918
|
* Require all enum value names to be unique.
|
|
1753
1919
|
See https://biomejs.dev/linter/rules/no-duplicate-enum-value-names
|
|
1754
1920
|
*/
|
|
@@ -1784,11 +1950,6 @@ See https://biomejs.dev/linter/rules/no-duplicated-spread-props
|
|
|
1784
1950
|
*/
|
|
1785
1951
|
noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration;
|
|
1786
1952
|
/**
|
|
1787
|
-
* Disallow empty sources.
|
|
1788
|
-
See https://biomejs.dev/linter/rules/no-empty-source
|
|
1789
|
-
*/
|
|
1790
|
-
noEmptySource?: NoEmptySourceConfiguration;
|
|
1791
|
-
/**
|
|
1792
1953
|
* Require the use of === or !== for comparison with null.
|
|
1793
1954
|
See https://biomejs.dev/linter/rules/no-equals-to-null
|
|
1794
1955
|
*/
|
|
@@ -1824,21 +1985,11 @@ See https://biomejs.dev/linter/rules/no-hex-colors
|
|
|
1824
1985
|
*/
|
|
1825
1986
|
noHexColors?: NoHexColorsConfiguration;
|
|
1826
1987
|
/**
|
|
1827
|
-
* Prevent import cycles.
|
|
1828
|
-
See https://biomejs.dev/linter/rules/no-import-cycles
|
|
1829
|
-
*/
|
|
1830
|
-
noImportCycles?: NoImportCyclesConfiguration;
|
|
1831
|
-
/**
|
|
1832
1988
|
* Disallows the usage of the unary operators ++ and --.
|
|
1833
1989
|
See https://biomejs.dev/linter/rules/no-increment-decrement
|
|
1834
1990
|
*/
|
|
1835
1991
|
noIncrementDecrement?: NoIncrementDecrementConfiguration;
|
|
1836
1992
|
/**
|
|
1837
|
-
* Disallow string literals inside JSX elements.
|
|
1838
|
-
See https://biomejs.dev/linter/rules/no-jsx-literals
|
|
1839
|
-
*/
|
|
1840
|
-
noJsxLiterals?: NoJsxLiteralsConfiguration;
|
|
1841
|
-
/**
|
|
1842
1993
|
* Disallow .bind(), arrow functions, or function expressions in JSX props.
|
|
1843
1994
|
See https://biomejs.dev/linter/rules/no-jsx-props-bind
|
|
1844
1995
|
*/
|
|
@@ -1864,10 +2015,10 @@ See https://biomejs.dev/linter/rules/no-multi-str
|
|
|
1864
2015
|
*/
|
|
1865
2016
|
noMultiStr?: NoMultiStrConfiguration;
|
|
1866
2017
|
/**
|
|
1867
|
-
*
|
|
1868
|
-
See https://biomejs.dev/linter/rules/no-
|
|
2018
|
+
* Disallow nested .then() or .catch() promise calls.
|
|
2019
|
+
See https://biomejs.dev/linter/rules/no-nested-promises
|
|
1869
2020
|
*/
|
|
1870
|
-
|
|
2021
|
+
noNestedPromises?: NoNestedPromisesConfiguration;
|
|
1871
2022
|
/**
|
|
1872
2023
|
* Disallow function parameters that are only used in recursive calls.
|
|
1873
2024
|
See https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion
|
|
@@ -1879,11 +2030,6 @@ See https://biomejs.dev/linter/rules/no-proto
|
|
|
1879
2030
|
*/
|
|
1880
2031
|
noProto?: NoProtoConfiguration;
|
|
1881
2032
|
/**
|
|
1882
|
-
* Replaces usages of forwardRef with passing ref as a prop.
|
|
1883
|
-
See https://biomejs.dev/linter/rules/no-react-forward-ref
|
|
1884
|
-
*/
|
|
1885
|
-
noReactForwardRef?: NoReactForwardRefConfiguration;
|
|
1886
|
-
/**
|
|
1887
2033
|
* Checks if a default export exports the same symbol as a named export.
|
|
1888
2034
|
See https://biomejs.dev/linter/rules/no-redundant-default-export
|
|
1889
2035
|
*/
|
|
@@ -1934,61 +2080,21 @@ See https://biomejs.dev/linter/rules/no-unnecessary-conditions
|
|
|
1934
2080
|
*/
|
|
1935
2081
|
noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration;
|
|
1936
2082
|
/**
|
|
1937
|
-
*
|
|
1938
|
-
See https://biomejs.dev/linter/rules/no-
|
|
1939
|
-
*/
|
|
1940
|
-
noUnresolvedImports?: NoUnresolvedImportsConfiguration;
|
|
1941
|
-
/**
|
|
1942
|
-
* Disallow expression statements that are neither a function call nor an assignment.
|
|
1943
|
-
See https://biomejs.dev/linter/rules/no-unused-expressions
|
|
1944
|
-
*/
|
|
1945
|
-
noUnusedExpressions?: NoUnusedExpressionsConfiguration;
|
|
1946
|
-
/**
|
|
1947
|
-
* Disallow unused catch bindings.
|
|
1948
|
-
See https://biomejs.dev/linter/rules/no-useless-catch-binding
|
|
1949
|
-
*/
|
|
1950
|
-
noUselessCatchBinding?: NoUselessCatchBindingConfiguration;
|
|
1951
|
-
/**
|
|
1952
|
-
* Disallow the use of useless undefined.
|
|
1953
|
-
See https://biomejs.dev/linter/rules/no-useless-undefined
|
|
2083
|
+
* Disallow redundant return statements.
|
|
2084
|
+
See https://biomejs.dev/linter/rules/no-useless-return
|
|
1954
2085
|
*/
|
|
1955
|
-
|
|
2086
|
+
noUselessReturn?: NoUselessReturnConfiguration;
|
|
1956
2087
|
/**
|
|
1957
2088
|
* Disallows using arrow functions when defining a watcher.
|
|
1958
2089
|
See https://biomejs.dev/linter/rules/no-vue-arrow-func-in-watch
|
|
1959
2090
|
*/
|
|
1960
2091
|
noVueArrowFuncInWatch?: NoVueArrowFuncInWatchConfiguration;
|
|
1961
2092
|
/**
|
|
1962
|
-
* Enforce that Vue component data options are declared as functions.
|
|
1963
|
-
See https://biomejs.dev/linter/rules/no-vue-data-object-declaration
|
|
1964
|
-
*/
|
|
1965
|
-
noVueDataObjectDeclaration?: NoVueDataObjectDeclarationConfiguration;
|
|
1966
|
-
/**
|
|
1967
|
-
* Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
|
|
1968
|
-
See https://biomejs.dev/linter/rules/no-vue-duplicate-keys
|
|
1969
|
-
*/
|
|
1970
|
-
noVueDuplicateKeys?: NoVueDuplicateKeysConfiguration;
|
|
1971
|
-
/**
|
|
1972
2093
|
* Disallow the use of Vue Options API.
|
|
1973
2094
|
See https://biomejs.dev/linter/rules/no-vue-options-api
|
|
1974
2095
|
*/
|
|
1975
2096
|
noVueOptionsApi?: NoVueOptionsApiConfiguration;
|
|
1976
2097
|
/**
|
|
1977
|
-
* Disallow reserved keys in Vue component data and computed properties.
|
|
1978
|
-
See https://biomejs.dev/linter/rules/no-vue-reserved-keys
|
|
1979
|
-
*/
|
|
1980
|
-
noVueReservedKeys?: NoVueReservedKeysConfiguration;
|
|
1981
|
-
/**
|
|
1982
|
-
* Disallow reserved names to be used as props.
|
|
1983
|
-
See https://biomejs.dev/linter/rules/no-vue-reserved-props
|
|
1984
|
-
*/
|
|
1985
|
-
noVueReservedProps?: NoVueReservedPropsConfiguration;
|
|
1986
|
-
/**
|
|
1987
|
-
* Disallow destructuring of props passed to setup in Vue projects.
|
|
1988
|
-
See https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss
|
|
1989
|
-
*/
|
|
1990
|
-
noVueSetupPropsReactivityLoss?: NoVueSetupPropsReactivityLossConfiguration;
|
|
1991
|
-
/**
|
|
1992
2098
|
* Disallow using v-if and v-for directives on the same element.
|
|
1993
2099
|
See https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for
|
|
1994
2100
|
*/
|
|
@@ -2008,11 +2114,6 @@ See https://biomejs.dev/linter/rules/use-await-thenable
|
|
|
2008
2114
|
*/
|
|
2009
2115
|
useAwaitThenable?: UseAwaitThenableConfiguration;
|
|
2010
2116
|
/**
|
|
2011
|
-
* Enforce consistent arrow function bodies.
|
|
2012
|
-
See https://biomejs.dev/linter/rules/use-consistent-arrow-return
|
|
2013
|
-
*/
|
|
2014
|
-
useConsistentArrowReturn?: UseConsistentArrowReturnConfiguration;
|
|
2015
|
-
/**
|
|
2016
2117
|
* Disallow enums from having both number and string members.
|
|
2017
2118
|
See https://biomejs.dev/linter/rules/use-consistent-enum-value-type
|
|
2018
2119
|
*/
|
|
@@ -2028,11 +2129,6 @@ See https://biomejs.dev/linter/rules/use-consistent-method-signatures
|
|
|
2028
2129
|
*/
|
|
2029
2130
|
useConsistentMethodSignatures?: UseConsistentMethodSignaturesConfiguration;
|
|
2030
2131
|
/**
|
|
2031
|
-
* Require the @deprecated directive to specify a deletion date.
|
|
2032
|
-
See https://biomejs.dev/linter/rules/use-deprecated-date
|
|
2033
|
-
*/
|
|
2034
|
-
useDeprecatedDate?: UseDeprecatedDateConfiguration;
|
|
2035
|
-
/**
|
|
2036
2132
|
* Require destructuring from arrays and/or objects.
|
|
2037
2133
|
See https://biomejs.dev/linter/rules/use-destructuring
|
|
2038
2134
|
*/
|
|
@@ -2083,21 +2179,6 @@ See https://biomejs.dev/linter/rules/use-lone-executable-definition
|
|
|
2083
2179
|
*/
|
|
2084
2180
|
useLoneExecutableDefinition?: UseLoneExecutableDefinitionConfiguration;
|
|
2085
2181
|
/**
|
|
2086
|
-
* Enforce a maximum number of parameters in function definitions.
|
|
2087
|
-
See https://biomejs.dev/linter/rules/use-max-params
|
|
2088
|
-
*/
|
|
2089
|
-
useMaxParams?: UseMaxParamsConfiguration;
|
|
2090
|
-
/**
|
|
2091
|
-
* Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
|
|
2092
|
-
See https://biomejs.dev/linter/rules/use-qwik-method-usage
|
|
2093
|
-
*/
|
|
2094
|
-
useQwikMethodUsage?: UseQwikMethodUsageConfiguration;
|
|
2095
|
-
/**
|
|
2096
|
-
* Disallow unserializable expressions in Qwik dollar ($) scopes.
|
|
2097
|
-
See https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope
|
|
2098
|
-
*/
|
|
2099
|
-
useQwikValidLexicalScope?: UseQwikValidLexicalScopeConfiguration;
|
|
2100
|
-
/**
|
|
2101
2182
|
* Enforce RegExp#exec over String#match if no global flag is provided.
|
|
2102
2183
|
See https://biomejs.dev/linter/rules/use-regexp-exec
|
|
2103
2184
|
*/
|
|
@@ -2357,6 +2438,11 @@ See https://biomejs.dev/linter/rules/no-inferrable-types
|
|
|
2357
2438
|
*/
|
|
2358
2439
|
noInferrableTypes?: NoInferrableTypesConfiguration;
|
|
2359
2440
|
/**
|
|
2441
|
+
* Disallow string literals inside JSX elements.
|
|
2442
|
+
See https://biomejs.dev/linter/rules/no-jsx-literals
|
|
2443
|
+
*/
|
|
2444
|
+
noJsxLiterals?: NoJsxLiteralsConfiguration;
|
|
2445
|
+
/**
|
|
2360
2446
|
* Reports usage of "magic numbers" — numbers used directly instead of being assigned to named constants.
|
|
2361
2447
|
See https://biomejs.dev/linter/rules/no-magic-numbers
|
|
2362
2448
|
*/
|
|
@@ -2432,7 +2518,7 @@ See https://biomejs.dev/linter/rules/no-useless-else
|
|
|
2432
2518
|
*/
|
|
2433
2519
|
noUselessElse?: NoUselessElseConfiguration;
|
|
2434
2520
|
/**
|
|
2435
|
-
* Disallow use of @value rule in
|
|
2521
|
+
* Disallow use of @value rule in CSS modules.
|
|
2436
2522
|
See https://biomejs.dev/linter/rules/no-value-at-rule
|
|
2437
2523
|
*/
|
|
2438
2524
|
noValueAtRule?: NoValueAtRuleConfiguration;
|
|
@@ -2486,6 +2572,11 @@ See https://biomejs.dev/linter/rules/use-consistent-array-type
|
|
|
2486
2572
|
*/
|
|
2487
2573
|
useConsistentArrayType?: UseConsistentArrayTypeConfiguration;
|
|
2488
2574
|
/**
|
|
2575
|
+
* Enforce consistent arrow function bodies.
|
|
2576
|
+
See https://biomejs.dev/linter/rules/use-consistent-arrow-return
|
|
2577
|
+
*/
|
|
2578
|
+
useConsistentArrowReturn?: UseConsistentArrowReturnConfiguration;
|
|
2579
|
+
/**
|
|
2489
2580
|
* Enforce the use of new for all builtins, except String, Number and Boolean.
|
|
2490
2581
|
See https://biomejs.dev/linter/rules/use-consistent-builtin-instantiation
|
|
2491
2582
|
*/
|
|
@@ -2773,8 +2864,13 @@ See https://biomejs.dev/linter/rules/no-debugger
|
|
|
2773
2864
|
*/
|
|
2774
2865
|
noDebugger?: NoDebuggerConfiguration;
|
|
2775
2866
|
/**
|
|
2776
|
-
*
|
|
2777
|
-
See https://biomejs.dev/linter/rules/no-
|
|
2867
|
+
* Restrict imports of deprecated exports.
|
|
2868
|
+
See https://biomejs.dev/linter/rules/no-deprecated-imports
|
|
2869
|
+
*/
|
|
2870
|
+
noDeprecatedImports?: NoDeprecatedImportsConfiguration;
|
|
2871
|
+
/**
|
|
2872
|
+
* Disallow direct assignments to document.cookie.
|
|
2873
|
+
See https://biomejs.dev/linter/rules/no-document-cookie
|
|
2778
2874
|
*/
|
|
2779
2875
|
noDocumentCookie?: NoDocumentCookieConfiguration;
|
|
2780
2876
|
/**
|
|
@@ -2808,6 +2904,11 @@ See https://biomejs.dev/linter/rules/no-duplicate-custom-properties
|
|
|
2808
2904
|
*/
|
|
2809
2905
|
noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration;
|
|
2810
2906
|
/**
|
|
2907
|
+
* Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
|
|
2908
|
+
See https://biomejs.dev/linter/rules/no-duplicate-dependencies
|
|
2909
|
+
*/
|
|
2910
|
+
noDuplicateDependencies?: NoDuplicateDependenciesConfiguration;
|
|
2911
|
+
/**
|
|
2811
2912
|
* Disallow duplicate conditions in if-else-if chains.
|
|
2812
2913
|
See https://biomejs.dev/linter/rules/no-duplicate-else-if
|
|
2813
2914
|
*/
|
|
@@ -2868,6 +2969,11 @@ See https://biomejs.dev/linter/rules/no-empty-interface
|
|
|
2868
2969
|
*/
|
|
2869
2970
|
noEmptyInterface?: NoEmptyInterfaceConfiguration;
|
|
2870
2971
|
/**
|
|
2972
|
+
* Disallow empty sources.
|
|
2973
|
+
See https://biomejs.dev/linter/rules/no-empty-source
|
|
2974
|
+
*/
|
|
2975
|
+
noEmptySource?: NoEmptySourceConfiguration;
|
|
2976
|
+
/**
|
|
2871
2977
|
* Disallow variables from evolving into any type through reassignments.
|
|
2872
2978
|
See https://biomejs.dev/linter/rules/no-evolving-types
|
|
2873
2979
|
*/
|
|
@@ -2933,6 +3039,11 @@ See https://biomejs.dev/linter/rules/no-import-assign
|
|
|
2933
3039
|
*/
|
|
2934
3040
|
noImportAssign?: NoImportAssignConfiguration;
|
|
2935
3041
|
/**
|
|
3042
|
+
* Prevent import cycles.
|
|
3043
|
+
See https://biomejs.dev/linter/rules/no-import-cycles
|
|
3044
|
+
*/
|
|
3045
|
+
noImportCycles?: NoImportCyclesConfiguration;
|
|
3046
|
+
/**
|
|
2936
3047
|
* Disallow invalid !important within keyframe declarations.
|
|
2937
3048
|
See https://biomejs.dev/linter/rules/no-important-in-keyframe
|
|
2938
3049
|
*/
|
|
@@ -2988,6 +3099,11 @@ See https://biomejs.dev/linter/rules/no-quickfix-biome
|
|
|
2988
3099
|
*/
|
|
2989
3100
|
noQuickfixBiome?: NoQuickfixBiomeConfiguration;
|
|
2990
3101
|
/**
|
|
3102
|
+
* Replaces usages of forwardRef with passing ref as a prop.
|
|
3103
|
+
See https://biomejs.dev/linter/rules/no-react-forward-ref
|
|
3104
|
+
*/
|
|
3105
|
+
noReactForwardRef?: NoReactForwardRefConfiguration;
|
|
3106
|
+
/**
|
|
2991
3107
|
* Prevents React-specific JSX properties from being used.
|
|
2992
3108
|
See https://biomejs.dev/linter/rules/no-react-specific-props
|
|
2993
3109
|
*/
|
|
@@ -3068,6 +3184,11 @@ See https://biomejs.dev/linter/rules/no-unsafe-negation
|
|
|
3068
3184
|
*/
|
|
3069
3185
|
noUnsafeNegation?: NoUnsafeNegationConfiguration;
|
|
3070
3186
|
/**
|
|
3187
|
+
* Disallow expression statements that are neither a function call nor an assignment.
|
|
3188
|
+
See https://biomejs.dev/linter/rules/no-unused-expressions
|
|
3189
|
+
*/
|
|
3190
|
+
noUnusedExpressions?: NoUnusedExpressionsConfiguration;
|
|
3191
|
+
/**
|
|
3071
3192
|
* Disallow unnecessary escapes in string literals.
|
|
3072
3193
|
See https://biomejs.dev/linter/rules/no-useless-escape-in-string
|
|
3073
3194
|
*/
|
|
@@ -3112,6 +3233,11 @@ See https://biomejs.dev/linter/rules/use-default-switch-clause-last
|
|
|
3112
3233
|
*/
|
|
3113
3234
|
useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration;
|
|
3114
3235
|
/**
|
|
3236
|
+
* Require the @deprecated directive to specify a deletion date.
|
|
3237
|
+
See https://biomejs.dev/linter/rules/use-deprecated-date
|
|
3238
|
+
*/
|
|
3239
|
+
useDeprecatedDate?: UseDeprecatedDateConfiguration;
|
|
3240
|
+
/**
|
|
3115
3241
|
* Enforce passing a message value when creating a built-in error.
|
|
3116
3242
|
See https://biomejs.dev/linter/rules/use-error-message
|
|
3117
3243
|
*/
|
|
@@ -3164,6 +3290,10 @@ See https://biomejs.dev/linter/rules/use-strict-mode
|
|
|
3164
3290
|
}
|
|
3165
3291
|
type Glob = string;
|
|
3166
3292
|
type RuleAssistPlainConfiguration = "off" | "on";
|
|
3293
|
+
interface RuleAssistWithNoDuplicateClassesOptions {
|
|
3294
|
+
level: RuleAssistPlainConfiguration;
|
|
3295
|
+
options: NoDuplicateClassesOptions;
|
|
3296
|
+
}
|
|
3167
3297
|
interface RuleAssistWithOrganizeImportsOptions {
|
|
3168
3298
|
level: RuleAssistPlainConfiguration;
|
|
3169
3299
|
options: OrganizeImportsOptions;
|
|
@@ -3172,6 +3302,10 @@ interface RuleAssistWithUseSortedAttributesOptions {
|
|
|
3172
3302
|
level: RuleAssistPlainConfiguration;
|
|
3173
3303
|
options: UseSortedAttributesOptions;
|
|
3174
3304
|
}
|
|
3305
|
+
interface RuleAssistWithUseSortedInterfaceMembersOptions {
|
|
3306
|
+
level: RuleAssistPlainConfiguration;
|
|
3307
|
+
options: UseSortedInterfaceMembersOptions;
|
|
3308
|
+
}
|
|
3175
3309
|
interface RuleAssistWithUseSortedKeysOptions {
|
|
3176
3310
|
level: RuleAssistPlainConfiguration;
|
|
3177
3311
|
options: UseSortedKeysOptions;
|
|
@@ -3337,6 +3471,9 @@ type NoThisInStaticConfiguration =
|
|
|
3337
3471
|
type NoUselessCatchConfiguration =
|
|
3338
3472
|
| RulePlainConfiguration
|
|
3339
3473
|
| RuleWithNoUselessCatchOptions;
|
|
3474
|
+
type NoUselessCatchBindingConfiguration =
|
|
3475
|
+
| RulePlainConfiguration
|
|
3476
|
+
| RuleWithNoUselessCatchBindingOptions;
|
|
3340
3477
|
type NoUselessConstructorConfiguration =
|
|
3341
3478
|
| RulePlainConfiguration
|
|
3342
3479
|
| RuleWithNoUselessConstructorOptions;
|
|
@@ -3379,6 +3516,9 @@ type NoUselessThisAliasConfiguration =
|
|
|
3379
3516
|
type NoUselessTypeConstraintConfiguration =
|
|
3380
3517
|
| RulePlainConfiguration
|
|
3381
3518
|
| RuleWithNoUselessTypeConstraintOptions;
|
|
3519
|
+
type NoUselessUndefinedConfiguration =
|
|
3520
|
+
| RulePlainConfiguration
|
|
3521
|
+
| RuleWithNoUselessUndefinedOptions;
|
|
3382
3522
|
type NoUselessUndefinedInitializationConfiguration =
|
|
3383
3523
|
| RulePlainConfiguration
|
|
3384
3524
|
| RuleWithNoUselessUndefinedInitializationOptions;
|
|
@@ -3398,6 +3538,9 @@ type UseIndexOfConfiguration =
|
|
|
3398
3538
|
type UseLiteralKeysConfiguration =
|
|
3399
3539
|
| RulePlainConfiguration
|
|
3400
3540
|
| RuleWithUseLiteralKeysOptions;
|
|
3541
|
+
type UseMaxParamsConfiguration =
|
|
3542
|
+
| RulePlainConfiguration
|
|
3543
|
+
| RuleWithUseMaxParamsOptions;
|
|
3401
3544
|
type UseNumericLiteralsConfiguration =
|
|
3402
3545
|
| RulePlainConfiguration
|
|
3403
3546
|
| RuleWithUseNumericLiteralsOptions;
|
|
@@ -3468,6 +3611,9 @@ type NoMissingVarFunctionConfiguration =
|
|
|
3468
3611
|
type NoNestedComponentDefinitionsConfiguration =
|
|
3469
3612
|
| RulePlainConfiguration
|
|
3470
3613
|
| RuleWithNoNestedComponentDefinitionsOptions;
|
|
3614
|
+
type NoNextAsyncClientComponentConfiguration =
|
|
3615
|
+
| RulePlainConfiguration
|
|
3616
|
+
| RuleWithNoNextAsyncClientComponentOptions;
|
|
3471
3617
|
type NoNodejsModulesConfiguration =
|
|
3472
3618
|
| RulePlainConfiguration
|
|
3473
3619
|
| RuleWithNoNodejsModulesOptions;
|
|
@@ -3546,6 +3692,9 @@ type NoUnreachableConfiguration =
|
|
|
3546
3692
|
type NoUnreachableSuperConfiguration =
|
|
3547
3693
|
| RulePlainConfiguration
|
|
3548
3694
|
| RuleWithNoUnreachableSuperOptions;
|
|
3695
|
+
type NoUnresolvedImportsConfiguration =
|
|
3696
|
+
| RulePlainConfiguration
|
|
3697
|
+
| RuleWithNoUnresolvedImportsOptions;
|
|
3549
3698
|
type NoUnsafeFinallyConfiguration =
|
|
3550
3699
|
| RulePlainConfiguration
|
|
3551
3700
|
| RuleWithNoUnsafeFinallyOptions;
|
|
@@ -3573,6 +3722,21 @@ type NoVoidElementsWithChildrenConfiguration =
|
|
|
3573
3722
|
type NoVoidTypeReturnConfiguration =
|
|
3574
3723
|
| RulePlainConfiguration
|
|
3575
3724
|
| RuleWithNoVoidTypeReturnOptions;
|
|
3725
|
+
type NoVueDataObjectDeclarationConfiguration =
|
|
3726
|
+
| RulePlainConfiguration
|
|
3727
|
+
| RuleWithNoVueDataObjectDeclarationOptions;
|
|
3728
|
+
type NoVueDuplicateKeysConfiguration =
|
|
3729
|
+
| RulePlainConfiguration
|
|
3730
|
+
| RuleWithNoVueDuplicateKeysOptions;
|
|
3731
|
+
type NoVueReservedKeysConfiguration =
|
|
3732
|
+
| RulePlainConfiguration
|
|
3733
|
+
| RuleWithNoVueReservedKeysOptions;
|
|
3734
|
+
type NoVueReservedPropsConfiguration =
|
|
3735
|
+
| RulePlainConfiguration
|
|
3736
|
+
| RuleWithNoVueReservedPropsOptions;
|
|
3737
|
+
type NoVueSetupPropsReactivityLossConfiguration =
|
|
3738
|
+
| RulePlainConfiguration
|
|
3739
|
+
| RuleWithNoVueSetupPropsReactivityLossOptions;
|
|
3576
3740
|
type UseExhaustiveDependenciesConfiguration =
|
|
3577
3741
|
| RulePlainConfiguration
|
|
3578
3742
|
| RuleWithUseExhaustiveDependenciesOptions;
|
|
@@ -3601,6 +3765,12 @@ type UseParseIntRadixConfiguration =
|
|
|
3601
3765
|
type UseQwikClasslistConfiguration =
|
|
3602
3766
|
| RulePlainConfiguration
|
|
3603
3767
|
| RuleWithUseQwikClasslistOptions;
|
|
3768
|
+
type UseQwikMethodUsageConfiguration =
|
|
3769
|
+
| RulePlainConfiguration
|
|
3770
|
+
| RuleWithUseQwikMethodUsageOptions;
|
|
3771
|
+
type UseQwikValidLexicalScopeConfiguration =
|
|
3772
|
+
| RulePlainConfiguration
|
|
3773
|
+
| RuleWithUseQwikValidLexicalScopeOptions;
|
|
3604
3774
|
type UseSingleJsDocAsteriskConfiguration =
|
|
3605
3775
|
| RulePlainConfiguration
|
|
3606
3776
|
| RuleWithUseSingleJsDocAsteriskOptions;
|
|
@@ -3623,9 +3793,6 @@ type NoBeforeInteractiveScriptOutsideDocumentConfiguration =
|
|
|
3623
3793
|
type NoContinueConfiguration =
|
|
3624
3794
|
| RulePlainConfiguration
|
|
3625
3795
|
| RuleWithNoContinueOptions;
|
|
3626
|
-
type NoDeprecatedImportsConfiguration =
|
|
3627
|
-
| RulePlainConfiguration
|
|
3628
|
-
| RuleWithNoDeprecatedImportsOptions;
|
|
3629
3796
|
type NoDeprecatedMediaTypeConfiguration =
|
|
3630
3797
|
| RulePlainConfiguration
|
|
3631
3798
|
| RuleWithNoDeprecatedMediaTypeOptions;
|
|
@@ -3638,9 +3805,6 @@ type NoDuplicateArgumentNamesConfiguration =
|
|
|
3638
3805
|
type NoDuplicateAttributesConfiguration =
|
|
3639
3806
|
| RulePlainConfiguration
|
|
3640
3807
|
| RuleWithNoDuplicateAttributesOptions;
|
|
3641
|
-
type NoDuplicateDependenciesConfiguration =
|
|
3642
|
-
| RulePlainConfiguration
|
|
3643
|
-
| RuleWithNoDuplicateDependenciesOptions;
|
|
3644
3808
|
type NoDuplicateEnumValueNamesConfiguration =
|
|
3645
3809
|
| RulePlainConfiguration
|
|
3646
3810
|
| RuleWithNoDuplicateEnumValueNamesOptions;
|
|
@@ -3662,9 +3826,6 @@ type NoDuplicateVariableNamesConfiguration =
|
|
|
3662
3826
|
type NoDuplicatedSpreadPropsConfiguration =
|
|
3663
3827
|
| RulePlainConfiguration
|
|
3664
3828
|
| RuleWithNoDuplicatedSpreadPropsOptions;
|
|
3665
|
-
type NoEmptySourceConfiguration =
|
|
3666
|
-
| RulePlainConfiguration
|
|
3667
|
-
| RuleWithNoEmptySourceOptions;
|
|
3668
3829
|
type NoEqualsToNullConfiguration =
|
|
3669
3830
|
| RulePlainConfiguration
|
|
3670
3831
|
| RuleWithNoEqualsToNullOptions;
|
|
@@ -3684,15 +3845,9 @@ type NoForInConfiguration = RulePlainConfiguration | RuleWithNoForInOptions;
|
|
|
3684
3845
|
type NoHexColorsConfiguration =
|
|
3685
3846
|
| RulePlainConfiguration
|
|
3686
3847
|
| RuleWithNoHexColorsOptions;
|
|
3687
|
-
type NoImportCyclesConfiguration =
|
|
3688
|
-
| RulePlainConfiguration
|
|
3689
|
-
| RuleWithNoImportCyclesOptions;
|
|
3690
3848
|
type NoIncrementDecrementConfiguration =
|
|
3691
3849
|
| RulePlainConfiguration
|
|
3692
3850
|
| RuleWithNoIncrementDecrementOptions;
|
|
3693
|
-
type NoJsxLiteralsConfiguration =
|
|
3694
|
-
| RulePlainConfiguration
|
|
3695
|
-
| RuleWithNoJsxLiteralsOptions;
|
|
3696
3851
|
type NoJsxPropsBindConfiguration =
|
|
3697
3852
|
| RulePlainConfiguration
|
|
3698
3853
|
| RuleWithNoJsxPropsBindOptions;
|
|
@@ -3708,16 +3863,13 @@ type NoMultiAssignConfiguration =
|
|
|
3708
3863
|
type NoMultiStrConfiguration =
|
|
3709
3864
|
| RulePlainConfiguration
|
|
3710
3865
|
| RuleWithNoMultiStrOptions;
|
|
3711
|
-
type
|
|
3866
|
+
type NoNestedPromisesConfiguration =
|
|
3712
3867
|
| RulePlainConfiguration
|
|
3713
|
-
|
|
|
3868
|
+
| RuleWithNoNestedPromisesOptions;
|
|
3714
3869
|
type NoParametersOnlyUsedInRecursionConfiguration =
|
|
3715
3870
|
| RulePlainConfiguration
|
|
3716
3871
|
| RuleWithNoParametersOnlyUsedInRecursionOptions;
|
|
3717
3872
|
type NoProtoConfiguration = RulePlainConfiguration | RuleWithNoProtoOptions;
|
|
3718
|
-
type NoReactForwardRefConfiguration =
|
|
3719
|
-
| RulePlainConfiguration
|
|
3720
|
-
| RuleWithNoReactForwardRefOptions;
|
|
3721
3873
|
type NoRedundantDefaultExportConfiguration =
|
|
3722
3874
|
| RulePlainConfiguration
|
|
3723
3875
|
| RuleWithNoRedundantDefaultExportOptions;
|
|
@@ -3744,39 +3896,15 @@ type NoUnknownAttributeConfiguration =
|
|
|
3744
3896
|
type NoUnnecessaryConditionsConfiguration =
|
|
3745
3897
|
| RulePlainConfiguration
|
|
3746
3898
|
| RuleWithNoUnnecessaryConditionsOptions;
|
|
3747
|
-
type
|
|
3748
|
-
| RulePlainConfiguration
|
|
3749
|
-
| RuleWithNoUnresolvedImportsOptions;
|
|
3750
|
-
type NoUnusedExpressionsConfiguration =
|
|
3899
|
+
type NoUselessReturnConfiguration =
|
|
3751
3900
|
| RulePlainConfiguration
|
|
3752
|
-
|
|
|
3753
|
-
type NoUselessCatchBindingConfiguration =
|
|
3754
|
-
| RulePlainConfiguration
|
|
3755
|
-
| RuleWithNoUselessCatchBindingOptions;
|
|
3756
|
-
type NoUselessUndefinedConfiguration =
|
|
3757
|
-
| RulePlainConfiguration
|
|
3758
|
-
| RuleWithNoUselessUndefinedOptions;
|
|
3901
|
+
| RuleWithNoUselessReturnOptions;
|
|
3759
3902
|
type NoVueArrowFuncInWatchConfiguration =
|
|
3760
3903
|
| RulePlainConfiguration
|
|
3761
3904
|
| RuleWithNoVueArrowFuncInWatchOptions;
|
|
3762
|
-
type NoVueDataObjectDeclarationConfiguration =
|
|
3763
|
-
| RulePlainConfiguration
|
|
3764
|
-
| RuleWithNoVueDataObjectDeclarationOptions;
|
|
3765
|
-
type NoVueDuplicateKeysConfiguration =
|
|
3766
|
-
| RulePlainConfiguration
|
|
3767
|
-
| RuleWithNoVueDuplicateKeysOptions;
|
|
3768
3905
|
type NoVueOptionsApiConfiguration =
|
|
3769
3906
|
| RulePlainConfiguration
|
|
3770
3907
|
| RuleWithNoVueOptionsApiOptions;
|
|
3771
|
-
type NoVueReservedKeysConfiguration =
|
|
3772
|
-
| RulePlainConfiguration
|
|
3773
|
-
| RuleWithNoVueReservedKeysOptions;
|
|
3774
|
-
type NoVueReservedPropsConfiguration =
|
|
3775
|
-
| RulePlainConfiguration
|
|
3776
|
-
| RuleWithNoVueReservedPropsOptions;
|
|
3777
|
-
type NoVueSetupPropsReactivityLossConfiguration =
|
|
3778
|
-
| RulePlainConfiguration
|
|
3779
|
-
| RuleWithNoVueSetupPropsReactivityLossOptions;
|
|
3780
3908
|
type NoVueVIfWithVForConfiguration =
|
|
3781
3909
|
| RulePlainConfiguration
|
|
3782
3910
|
| RuleWithNoVueVIfWithVForOptions;
|
|
@@ -3786,9 +3914,6 @@ type UseArraySortCompareConfiguration =
|
|
|
3786
3914
|
type UseAwaitThenableConfiguration =
|
|
3787
3915
|
| RulePlainConfiguration
|
|
3788
3916
|
| RuleWithUseAwaitThenableOptions;
|
|
3789
|
-
type UseConsistentArrowReturnConfiguration =
|
|
3790
|
-
| RulePlainConfiguration
|
|
3791
|
-
| RuleWithUseConsistentArrowReturnOptions;
|
|
3792
3917
|
type UseConsistentEnumValueTypeConfiguration =
|
|
3793
3918
|
| RulePlainConfiguration
|
|
3794
3919
|
| RuleWithUseConsistentEnumValueTypeOptions;
|
|
@@ -3798,9 +3923,6 @@ type UseConsistentGraphqlDescriptionsConfiguration =
|
|
|
3798
3923
|
type UseConsistentMethodSignaturesConfiguration =
|
|
3799
3924
|
| RulePlainConfiguration
|
|
3800
3925
|
| RuleWithUseConsistentMethodSignaturesOptions;
|
|
3801
|
-
type UseDeprecatedDateConfiguration =
|
|
3802
|
-
| RulePlainConfiguration
|
|
3803
|
-
| RuleWithUseDeprecatedDateOptions;
|
|
3804
3926
|
type UseDestructuringConfiguration =
|
|
3805
3927
|
| RulePlainConfiguration
|
|
3806
3928
|
| RuleWithUseDestructuringOptions;
|
|
@@ -3829,15 +3951,6 @@ type UseLoneAnonymousOperationConfiguration =
|
|
|
3829
3951
|
type UseLoneExecutableDefinitionConfiguration =
|
|
3830
3952
|
| RulePlainConfiguration
|
|
3831
3953
|
| RuleWithUseLoneExecutableDefinitionOptions;
|
|
3832
|
-
type UseMaxParamsConfiguration =
|
|
3833
|
-
| RulePlainConfiguration
|
|
3834
|
-
| RuleWithUseMaxParamsOptions;
|
|
3835
|
-
type UseQwikMethodUsageConfiguration =
|
|
3836
|
-
| RulePlainConfiguration
|
|
3837
|
-
| RuleWithUseQwikMethodUsageOptions;
|
|
3838
|
-
type UseQwikValidLexicalScopeConfiguration =
|
|
3839
|
-
| RulePlainConfiguration
|
|
3840
|
-
| RuleWithUseQwikValidLexicalScopeOptions;
|
|
3841
3954
|
type UseRegexpExecConfiguration =
|
|
3842
3955
|
| RulePlainConfiguration
|
|
3843
3956
|
| RuleWithUseRegexpExecOptions;
|
|
@@ -3977,6 +4090,9 @@ type NoImplicitBooleanConfiguration =
|
|
|
3977
4090
|
type NoInferrableTypesConfiguration =
|
|
3978
4091
|
| RulePlainConfiguration
|
|
3979
4092
|
| RuleWithNoInferrableTypesOptions;
|
|
4093
|
+
type NoJsxLiteralsConfiguration =
|
|
4094
|
+
| RulePlainConfiguration
|
|
4095
|
+
| RuleWithNoJsxLiteralsOptions;
|
|
3980
4096
|
type NoMagicNumbersConfiguration =
|
|
3981
4097
|
| RulePlainConfiguration
|
|
3982
4098
|
| RuleWithNoMagicNumbersOptions;
|
|
@@ -4050,6 +4166,9 @@ type UseComponentExportOnlyModulesConfiguration =
|
|
|
4050
4166
|
type UseConsistentArrayTypeConfiguration =
|
|
4051
4167
|
| RulePlainConfiguration
|
|
4052
4168
|
| RuleWithUseConsistentArrayTypeOptions;
|
|
4169
|
+
type UseConsistentArrowReturnConfiguration =
|
|
4170
|
+
| RulePlainConfiguration
|
|
4171
|
+
| RuleWithUseConsistentArrowReturnOptions;
|
|
4053
4172
|
type UseConsistentBuiltinInstantiationConfiguration =
|
|
4054
4173
|
| RulePlainConfiguration
|
|
4055
4174
|
| RuleWithUseConsistentBuiltinInstantiationOptions;
|
|
@@ -4213,6 +4332,9 @@ type NoControlCharactersInRegexConfiguration =
|
|
|
4213
4332
|
type NoDebuggerConfiguration =
|
|
4214
4333
|
| RulePlainConfiguration
|
|
4215
4334
|
| RuleWithNoDebuggerOptions;
|
|
4335
|
+
type NoDeprecatedImportsConfiguration =
|
|
4336
|
+
| RulePlainConfiguration
|
|
4337
|
+
| RuleWithNoDeprecatedImportsOptions;
|
|
4216
4338
|
type NoDocumentCookieConfiguration =
|
|
4217
4339
|
| RulePlainConfiguration
|
|
4218
4340
|
| RuleWithNoDocumentCookieOptions;
|
|
@@ -4234,6 +4356,9 @@ type NoDuplicateClassMembersConfiguration =
|
|
|
4234
4356
|
type NoDuplicateCustomPropertiesConfiguration =
|
|
4235
4357
|
| RulePlainConfiguration
|
|
4236
4358
|
| RuleWithNoDuplicateCustomPropertiesOptions;
|
|
4359
|
+
type NoDuplicateDependenciesConfiguration =
|
|
4360
|
+
| RulePlainConfiguration
|
|
4361
|
+
| RuleWithNoDuplicateDependenciesOptions;
|
|
4237
4362
|
type NoDuplicateElseIfConfiguration =
|
|
4238
4363
|
| RulePlainConfiguration
|
|
4239
4364
|
| RuleWithNoDuplicateElseIfOptions;
|
|
@@ -4270,6 +4395,9 @@ type NoEmptyBlockStatementsConfiguration =
|
|
|
4270
4395
|
type NoEmptyInterfaceConfiguration =
|
|
4271
4396
|
| RulePlainConfiguration
|
|
4272
4397
|
| RuleWithNoEmptyInterfaceOptions;
|
|
4398
|
+
type NoEmptySourceConfiguration =
|
|
4399
|
+
| RulePlainConfiguration
|
|
4400
|
+
| RuleWithNoEmptySourceOptions;
|
|
4273
4401
|
type NoEvolvingTypesConfiguration =
|
|
4274
4402
|
| RulePlainConfiguration
|
|
4275
4403
|
| RuleWithNoEvolvingTypesOptions;
|
|
@@ -4309,6 +4437,9 @@ type NoImplicitAnyLetConfiguration =
|
|
|
4309
4437
|
type NoImportAssignConfiguration =
|
|
4310
4438
|
| RulePlainConfiguration
|
|
4311
4439
|
| RuleWithNoImportAssignOptions;
|
|
4440
|
+
type NoImportCyclesConfiguration =
|
|
4441
|
+
| RulePlainConfiguration
|
|
4442
|
+
| RuleWithNoImportCyclesOptions;
|
|
4312
4443
|
type NoImportantInKeyframeConfiguration =
|
|
4313
4444
|
| RulePlainConfiguration
|
|
4314
4445
|
| RuleWithNoImportantInKeyframeOptions;
|
|
@@ -4342,6 +4473,9 @@ type NoPrototypeBuiltinsConfiguration =
|
|
|
4342
4473
|
type NoQuickfixBiomeConfiguration =
|
|
4343
4474
|
| RulePlainConfiguration
|
|
4344
4475
|
| RuleWithNoQuickfixBiomeOptions;
|
|
4476
|
+
type NoReactForwardRefConfiguration =
|
|
4477
|
+
| RulePlainConfiguration
|
|
4478
|
+
| RuleWithNoReactForwardRefOptions;
|
|
4345
4479
|
type NoReactSpecificPropsConfiguration =
|
|
4346
4480
|
| RulePlainConfiguration
|
|
4347
4481
|
| RuleWithNoReactSpecificPropsOptions;
|
|
@@ -4390,6 +4524,9 @@ type NoUnsafeDeclarationMergingConfiguration =
|
|
|
4390
4524
|
type NoUnsafeNegationConfiguration =
|
|
4391
4525
|
| RulePlainConfiguration
|
|
4392
4526
|
| RuleWithNoUnsafeNegationOptions;
|
|
4527
|
+
type NoUnusedExpressionsConfiguration =
|
|
4528
|
+
| RulePlainConfiguration
|
|
4529
|
+
| RuleWithNoUnusedExpressionsOptions;
|
|
4393
4530
|
type NoUselessEscapeInStringConfiguration =
|
|
4394
4531
|
| RulePlainConfiguration
|
|
4395
4532
|
| RuleWithNoUselessEscapeInStringOptions;
|
|
@@ -4408,6 +4545,9 @@ type UseBiomeIgnoreFolderConfiguration =
|
|
|
4408
4545
|
type UseDefaultSwitchClauseLastConfiguration =
|
|
4409
4546
|
| RulePlainConfiguration
|
|
4410
4547
|
| RuleWithUseDefaultSwitchClauseLastOptions;
|
|
4548
|
+
type UseDeprecatedDateConfiguration =
|
|
4549
|
+
| RulePlainConfiguration
|
|
4550
|
+
| RuleWithUseDeprecatedDateOptions;
|
|
4411
4551
|
type UseErrorMessageConfiguration =
|
|
4412
4552
|
| RulePlainConfiguration
|
|
4413
4553
|
| RuleWithUseErrorMessageOptions;
|
|
@@ -4438,6 +4578,16 @@ type UseStaticResponseMethodsConfiguration =
|
|
|
4438
4578
|
type UseStrictModeConfiguration =
|
|
4439
4579
|
| RulePlainConfiguration
|
|
4440
4580
|
| RuleWithUseStrictModeOptions;
|
|
4581
|
+
interface NoDuplicateClassesOptions {
|
|
4582
|
+
/**
|
|
4583
|
+
* Additional attributes that will be sorted.
|
|
4584
|
+
*/
|
|
4585
|
+
attributes?: string[];
|
|
4586
|
+
/**
|
|
4587
|
+
* Names of the functions or tagged templates that will be sorted.
|
|
4588
|
+
*/
|
|
4589
|
+
functions?: string[];
|
|
4590
|
+
}
|
|
4441
4591
|
interface OrganizeImportsOptions {
|
|
4442
4592
|
groups?: ImportGroups;
|
|
4443
4593
|
identifierOrder?: SortOrder;
|
|
@@ -4445,7 +4595,14 @@ interface OrganizeImportsOptions {
|
|
|
4445
4595
|
interface UseSortedAttributesOptions {
|
|
4446
4596
|
sortOrder?: SortOrder;
|
|
4447
4597
|
}
|
|
4598
|
+
type UseSortedInterfaceMembersOptions = {};
|
|
4448
4599
|
interface UseSortedKeysOptions {
|
|
4600
|
+
/**
|
|
4601
|
+
* When enabled, groups object keys by their value's nesting depth before sorting.
|
|
4602
|
+
Simple values (primitives, single-line arrays, single-line objects) are sorted first,
|
|
4603
|
+
followed by nested values (multi-line objects, multi-line arrays).
|
|
4604
|
+
*/
|
|
4605
|
+
groupByNesting?: boolean;
|
|
4449
4606
|
sortOrder?: SortOrder;
|
|
4450
4607
|
}
|
|
4451
4608
|
type UseSortedPropertiesOptions = {};
|
|
@@ -4685,6 +4842,11 @@ interface RuleWithNoUselessCatchOptions {
|
|
|
4685
4842
|
level: RulePlainConfiguration;
|
|
4686
4843
|
options?: NoUselessCatchOptions;
|
|
4687
4844
|
}
|
|
4845
|
+
interface RuleWithNoUselessCatchBindingOptions {
|
|
4846
|
+
fix?: FixKind;
|
|
4847
|
+
level: RulePlainConfiguration;
|
|
4848
|
+
options?: NoUselessCatchBindingOptions;
|
|
4849
|
+
}
|
|
4688
4850
|
interface RuleWithNoUselessConstructorOptions {
|
|
4689
4851
|
fix?: FixKind;
|
|
4690
4852
|
level: RulePlainConfiguration;
|
|
@@ -4754,6 +4916,11 @@ interface RuleWithNoUselessTypeConstraintOptions {
|
|
|
4754
4916
|
level: RulePlainConfiguration;
|
|
4755
4917
|
options?: NoUselessTypeConstraintOptions;
|
|
4756
4918
|
}
|
|
4919
|
+
interface RuleWithNoUselessUndefinedOptions {
|
|
4920
|
+
fix?: FixKind;
|
|
4921
|
+
level: RulePlainConfiguration;
|
|
4922
|
+
options?: NoUselessUndefinedOptions;
|
|
4923
|
+
}
|
|
4757
4924
|
interface RuleWithNoUselessUndefinedInitializationOptions {
|
|
4758
4925
|
fix?: FixKind;
|
|
4759
4926
|
level: RulePlainConfiguration;
|
|
@@ -4788,6 +4955,10 @@ interface RuleWithUseLiteralKeysOptions {
|
|
|
4788
4955
|
level: RulePlainConfiguration;
|
|
4789
4956
|
options?: UseLiteralKeysOptions;
|
|
4790
4957
|
}
|
|
4958
|
+
interface RuleWithUseMaxParamsOptions {
|
|
4959
|
+
level: RulePlainConfiguration;
|
|
4960
|
+
options?: UseMaxParamsOptions;
|
|
4961
|
+
}
|
|
4791
4962
|
interface RuleWithUseNumericLiteralsOptions {
|
|
4792
4963
|
fix?: FixKind;
|
|
4793
4964
|
level: RulePlainConfiguration;
|
|
@@ -4894,6 +5065,10 @@ interface RuleWithNoNestedComponentDefinitionsOptions {
|
|
|
4894
5065
|
level: RulePlainConfiguration;
|
|
4895
5066
|
options?: NoNestedComponentDefinitionsOptions;
|
|
4896
5067
|
}
|
|
5068
|
+
interface RuleWithNoNextAsyncClientComponentOptions {
|
|
5069
|
+
level: RulePlainConfiguration;
|
|
5070
|
+
options?: NoNextAsyncClientComponentOptions;
|
|
5071
|
+
}
|
|
4897
5072
|
interface RuleWithNoNodejsModulesOptions {
|
|
4898
5073
|
level: RulePlainConfiguration;
|
|
4899
5074
|
options?: NoNodejsModulesOptions;
|
|
@@ -5002,6 +5177,10 @@ interface RuleWithNoUnreachableSuperOptions {
|
|
|
5002
5177
|
level: RulePlainConfiguration;
|
|
5003
5178
|
options?: NoUnreachableSuperOptions;
|
|
5004
5179
|
}
|
|
5180
|
+
interface RuleWithNoUnresolvedImportsOptions {
|
|
5181
|
+
level: RulePlainConfiguration;
|
|
5182
|
+
options?: NoUnresolvedImportsOptions;
|
|
5183
|
+
}
|
|
5005
5184
|
interface RuleWithNoUnsafeFinallyOptions {
|
|
5006
5185
|
level: RulePlainConfiguration;
|
|
5007
5186
|
options?: NoUnsafeFinallyOptions;
|
|
@@ -5044,6 +5223,27 @@ interface RuleWithNoVoidTypeReturnOptions {
|
|
|
5044
5223
|
level: RulePlainConfiguration;
|
|
5045
5224
|
options?: NoVoidTypeReturnOptions;
|
|
5046
5225
|
}
|
|
5226
|
+
interface RuleWithNoVueDataObjectDeclarationOptions {
|
|
5227
|
+
fix?: FixKind;
|
|
5228
|
+
level: RulePlainConfiguration;
|
|
5229
|
+
options?: NoVueDataObjectDeclarationOptions;
|
|
5230
|
+
}
|
|
5231
|
+
interface RuleWithNoVueDuplicateKeysOptions {
|
|
5232
|
+
level: RulePlainConfiguration;
|
|
5233
|
+
options?: NoVueDuplicateKeysOptions;
|
|
5234
|
+
}
|
|
5235
|
+
interface RuleWithNoVueReservedKeysOptions {
|
|
5236
|
+
level: RulePlainConfiguration;
|
|
5237
|
+
options?: NoVueReservedKeysOptions;
|
|
5238
|
+
}
|
|
5239
|
+
interface RuleWithNoVueReservedPropsOptions {
|
|
5240
|
+
level: RulePlainConfiguration;
|
|
5241
|
+
options?: NoVueReservedPropsOptions;
|
|
5242
|
+
}
|
|
5243
|
+
interface RuleWithNoVueSetupPropsReactivityLossOptions {
|
|
5244
|
+
level: RulePlainConfiguration;
|
|
5245
|
+
options?: NoVueSetupPropsReactivityLossOptions;
|
|
5246
|
+
}
|
|
5047
5247
|
interface RuleWithUseExhaustiveDependenciesOptions {
|
|
5048
5248
|
fix?: FixKind;
|
|
5049
5249
|
level: RulePlainConfiguration;
|
|
@@ -5090,6 +5290,14 @@ interface RuleWithUseQwikClasslistOptions {
|
|
|
5090
5290
|
level: RulePlainConfiguration;
|
|
5091
5291
|
options?: UseQwikClasslistOptions;
|
|
5092
5292
|
}
|
|
5293
|
+
interface RuleWithUseQwikMethodUsageOptions {
|
|
5294
|
+
level: RulePlainConfiguration;
|
|
5295
|
+
options?: UseQwikMethodUsageOptions;
|
|
5296
|
+
}
|
|
5297
|
+
interface RuleWithUseQwikValidLexicalScopeOptions {
|
|
5298
|
+
level: RulePlainConfiguration;
|
|
5299
|
+
options?: UseQwikValidLexicalScopeOptions;
|
|
5300
|
+
}
|
|
5093
5301
|
interface RuleWithUseSingleJsDocAsteriskOptions {
|
|
5094
5302
|
fix?: FixKind;
|
|
5095
5303
|
level: RulePlainConfiguration;
|
|
@@ -5124,10 +5332,6 @@ interface RuleWithNoContinueOptions {
|
|
|
5124
5332
|
level: RulePlainConfiguration;
|
|
5125
5333
|
options?: NoContinueOptions;
|
|
5126
5334
|
}
|
|
5127
|
-
interface RuleWithNoDeprecatedImportsOptions {
|
|
5128
|
-
level: RulePlainConfiguration;
|
|
5129
|
-
options?: NoDeprecatedImportsOptions;
|
|
5130
|
-
}
|
|
5131
5335
|
interface RuleWithNoDeprecatedMediaTypeOptions {
|
|
5132
5336
|
level: RulePlainConfiguration;
|
|
5133
5337
|
options?: NoDeprecatedMediaTypeOptions;
|
|
@@ -5145,10 +5349,6 @@ interface RuleWithNoDuplicateAttributesOptions {
|
|
|
5145
5349
|
level: RulePlainConfiguration;
|
|
5146
5350
|
options?: NoDuplicateAttributesOptions;
|
|
5147
5351
|
}
|
|
5148
|
-
interface RuleWithNoDuplicateDependenciesOptions {
|
|
5149
|
-
level: RulePlainConfiguration;
|
|
5150
|
-
options?: NoDuplicateDependenciesOptions;
|
|
5151
|
-
}
|
|
5152
5352
|
interface RuleWithNoDuplicateEnumValueNamesOptions {
|
|
5153
5353
|
level: RulePlainConfiguration;
|
|
5154
5354
|
options?: NoDuplicateEnumValueNamesOptions;
|
|
@@ -5177,10 +5377,6 @@ interface RuleWithNoDuplicatedSpreadPropsOptions {
|
|
|
5177
5377
|
level: RulePlainConfiguration;
|
|
5178
5378
|
options?: NoDuplicatedSpreadPropsOptions;
|
|
5179
5379
|
}
|
|
5180
|
-
interface RuleWithNoEmptySourceOptions {
|
|
5181
|
-
level: RulePlainConfiguration;
|
|
5182
|
-
options?: NoEmptySourceOptions;
|
|
5183
|
-
}
|
|
5184
5380
|
interface RuleWithNoEqualsToNullOptions {
|
|
5185
5381
|
fix?: FixKind;
|
|
5186
5382
|
level: RulePlainConfiguration;
|
|
@@ -5211,18 +5407,10 @@ interface RuleWithNoHexColorsOptions {
|
|
|
5211
5407
|
level: RulePlainConfiguration;
|
|
5212
5408
|
options?: NoHexColorsOptions;
|
|
5213
5409
|
}
|
|
5214
|
-
interface RuleWithNoImportCyclesOptions {
|
|
5215
|
-
level: RulePlainConfiguration;
|
|
5216
|
-
options?: NoImportCyclesOptions;
|
|
5217
|
-
}
|
|
5218
5410
|
interface RuleWithNoIncrementDecrementOptions {
|
|
5219
5411
|
level: RulePlainConfiguration;
|
|
5220
5412
|
options?: NoIncrementDecrementOptions;
|
|
5221
5413
|
}
|
|
5222
|
-
interface RuleWithNoJsxLiteralsOptions {
|
|
5223
|
-
level: RulePlainConfiguration;
|
|
5224
|
-
options?: NoJsxLiteralsOptions;
|
|
5225
|
-
}
|
|
5226
5414
|
interface RuleWithNoJsxPropsBindOptions {
|
|
5227
5415
|
level: RulePlainConfiguration;
|
|
5228
5416
|
options?: NoJsxPropsBindOptions;
|
|
@@ -5244,9 +5432,9 @@ interface RuleWithNoMultiStrOptions {
|
|
|
5244
5432
|
level: RulePlainConfiguration;
|
|
5245
5433
|
options?: NoMultiStrOptions;
|
|
5246
5434
|
}
|
|
5247
|
-
interface
|
|
5435
|
+
interface RuleWithNoNestedPromisesOptions {
|
|
5248
5436
|
level: RulePlainConfiguration;
|
|
5249
|
-
options?:
|
|
5437
|
+
options?: NoNestedPromisesOptions;
|
|
5250
5438
|
}
|
|
5251
5439
|
interface RuleWithNoParametersOnlyUsedInRecursionOptions {
|
|
5252
5440
|
fix?: FixKind;
|
|
@@ -5257,11 +5445,6 @@ interface RuleWithNoProtoOptions {
|
|
|
5257
5445
|
level: RulePlainConfiguration;
|
|
5258
5446
|
options?: NoProtoOptions;
|
|
5259
5447
|
}
|
|
5260
|
-
interface RuleWithNoReactForwardRefOptions {
|
|
5261
|
-
fix?: FixKind;
|
|
5262
|
-
level: RulePlainConfiguration;
|
|
5263
|
-
options?: NoReactForwardRefOptions;
|
|
5264
|
-
}
|
|
5265
5448
|
interface RuleWithNoRedundantDefaultExportOptions {
|
|
5266
5449
|
level: RulePlainConfiguration;
|
|
5267
5450
|
options?: NoRedundantDefaultExportOptions;
|
|
@@ -5302,53 +5485,19 @@ interface RuleWithNoUnnecessaryConditionsOptions {
|
|
|
5302
5485
|
level: RulePlainConfiguration;
|
|
5303
5486
|
options?: NoUnnecessaryConditionsOptions;
|
|
5304
5487
|
}
|
|
5305
|
-
interface
|
|
5306
|
-
level: RulePlainConfiguration;
|
|
5307
|
-
options?: NoUnresolvedImportsOptions;
|
|
5308
|
-
}
|
|
5309
|
-
interface RuleWithNoUnusedExpressionsOptions {
|
|
5310
|
-
level: RulePlainConfiguration;
|
|
5311
|
-
options?: NoUnusedExpressionsOptions;
|
|
5312
|
-
}
|
|
5313
|
-
interface RuleWithNoUselessCatchBindingOptions {
|
|
5314
|
-
fix?: FixKind;
|
|
5315
|
-
level: RulePlainConfiguration;
|
|
5316
|
-
options?: NoUselessCatchBindingOptions;
|
|
5317
|
-
}
|
|
5318
|
-
interface RuleWithNoUselessUndefinedOptions {
|
|
5319
|
-
fix?: FixKind;
|
|
5320
|
-
level: RulePlainConfiguration;
|
|
5321
|
-
options?: NoUselessUndefinedOptions;
|
|
5322
|
-
}
|
|
5323
|
-
interface RuleWithNoVueArrowFuncInWatchOptions {
|
|
5324
|
-
fix?: FixKind;
|
|
5325
|
-
level: RulePlainConfiguration;
|
|
5326
|
-
options?: NoVueArrowFuncInWatchOptions;
|
|
5327
|
-
}
|
|
5328
|
-
interface RuleWithNoVueDataObjectDeclarationOptions {
|
|
5488
|
+
interface RuleWithNoUselessReturnOptions {
|
|
5329
5489
|
fix?: FixKind;
|
|
5330
5490
|
level: RulePlainConfiguration;
|
|
5331
|
-
options?:
|
|
5332
|
-
}
|
|
5333
|
-
interface RuleWithNoVueDuplicateKeysOptions {
|
|
5334
|
-
level: RulePlainConfiguration;
|
|
5335
|
-
options?: NoVueDuplicateKeysOptions;
|
|
5336
|
-
}
|
|
5337
|
-
interface RuleWithNoVueOptionsApiOptions {
|
|
5338
|
-
level: RulePlainConfiguration;
|
|
5339
|
-
options?: NoVueOptionsApiOptions;
|
|
5340
|
-
}
|
|
5341
|
-
interface RuleWithNoVueReservedKeysOptions {
|
|
5342
|
-
level: RulePlainConfiguration;
|
|
5343
|
-
options?: NoVueReservedKeysOptions;
|
|
5491
|
+
options?: NoUselessReturnOptions;
|
|
5344
5492
|
}
|
|
5345
|
-
interface
|
|
5493
|
+
interface RuleWithNoVueArrowFuncInWatchOptions {
|
|
5494
|
+
fix?: FixKind;
|
|
5346
5495
|
level: RulePlainConfiguration;
|
|
5347
|
-
options?:
|
|
5496
|
+
options?: NoVueArrowFuncInWatchOptions;
|
|
5348
5497
|
}
|
|
5349
|
-
interface
|
|
5498
|
+
interface RuleWithNoVueOptionsApiOptions {
|
|
5350
5499
|
level: RulePlainConfiguration;
|
|
5351
|
-
options?:
|
|
5500
|
+
options?: NoVueOptionsApiOptions;
|
|
5352
5501
|
}
|
|
5353
5502
|
interface RuleWithNoVueVIfWithVForOptions {
|
|
5354
5503
|
level: RulePlainConfiguration;
|
|
@@ -5362,11 +5511,6 @@ interface RuleWithUseAwaitThenableOptions {
|
|
|
5362
5511
|
level: RulePlainConfiguration;
|
|
5363
5512
|
options?: UseAwaitThenableOptions;
|
|
5364
5513
|
}
|
|
5365
|
-
interface RuleWithUseConsistentArrowReturnOptions {
|
|
5366
|
-
fix?: FixKind;
|
|
5367
|
-
level: RulePlainConfiguration;
|
|
5368
|
-
options?: UseConsistentArrowReturnOptions;
|
|
5369
|
-
}
|
|
5370
5514
|
interface RuleWithUseConsistentEnumValueTypeOptions {
|
|
5371
5515
|
level: RulePlainConfiguration;
|
|
5372
5516
|
options?: UseConsistentEnumValueTypeOptions;
|
|
@@ -5379,10 +5523,6 @@ interface RuleWithUseConsistentMethodSignaturesOptions {
|
|
|
5379
5523
|
level: RulePlainConfiguration;
|
|
5380
5524
|
options?: UseConsistentMethodSignaturesOptions;
|
|
5381
5525
|
}
|
|
5382
|
-
interface RuleWithUseDeprecatedDateOptions {
|
|
5383
|
-
level: RulePlainConfiguration;
|
|
5384
|
-
options?: UseDeprecatedDateOptions;
|
|
5385
|
-
}
|
|
5386
5526
|
interface RuleWithUseDestructuringOptions {
|
|
5387
5527
|
level: RulePlainConfiguration;
|
|
5388
5528
|
options?: UseDestructuringOptions;
|
|
@@ -5424,18 +5564,6 @@ interface RuleWithUseLoneExecutableDefinitionOptions {
|
|
|
5424
5564
|
level: RulePlainConfiguration;
|
|
5425
5565
|
options?: UseLoneExecutableDefinitionOptions;
|
|
5426
5566
|
}
|
|
5427
|
-
interface RuleWithUseMaxParamsOptions {
|
|
5428
|
-
level: RulePlainConfiguration;
|
|
5429
|
-
options?: UseMaxParamsOptions;
|
|
5430
|
-
}
|
|
5431
|
-
interface RuleWithUseQwikMethodUsageOptions {
|
|
5432
|
-
level: RulePlainConfiguration;
|
|
5433
|
-
options?: UseQwikMethodUsageOptions;
|
|
5434
|
-
}
|
|
5435
|
-
interface RuleWithUseQwikValidLexicalScopeOptions {
|
|
5436
|
-
level: RulePlainConfiguration;
|
|
5437
|
-
options?: UseQwikValidLexicalScopeOptions;
|
|
5438
|
-
}
|
|
5439
5567
|
interface RuleWithUseRegexpExecOptions {
|
|
5440
5568
|
level: RulePlainConfiguration;
|
|
5441
5569
|
options?: UseRegexpExecOptions;
|
|
@@ -5648,6 +5776,10 @@ interface RuleWithNoInferrableTypesOptions {
|
|
|
5648
5776
|
level: RulePlainConfiguration;
|
|
5649
5777
|
options?: NoInferrableTypesOptions;
|
|
5650
5778
|
}
|
|
5779
|
+
interface RuleWithNoJsxLiteralsOptions {
|
|
5780
|
+
level: RulePlainConfiguration;
|
|
5781
|
+
options?: NoJsxLiteralsOptions;
|
|
5782
|
+
}
|
|
5651
5783
|
interface RuleWithNoMagicNumbersOptions {
|
|
5652
5784
|
level: RulePlainConfiguration;
|
|
5653
5785
|
options?: NoMagicNumbersOptions;
|
|
@@ -5763,6 +5895,11 @@ interface RuleWithUseConsistentArrayTypeOptions {
|
|
|
5763
5895
|
level: RulePlainConfiguration;
|
|
5764
5896
|
options?: UseConsistentArrayTypeOptions;
|
|
5765
5897
|
}
|
|
5898
|
+
interface RuleWithUseConsistentArrowReturnOptions {
|
|
5899
|
+
fix?: FixKind;
|
|
5900
|
+
level: RulePlainConfiguration;
|
|
5901
|
+
options?: UseConsistentArrowReturnOptions;
|
|
5902
|
+
}
|
|
5766
5903
|
interface RuleWithUseConsistentBuiltinInstantiationOptions {
|
|
5767
5904
|
fix?: FixKind;
|
|
5768
5905
|
level: RulePlainConfiguration;
|
|
@@ -6026,6 +6163,10 @@ interface RuleWithNoDebuggerOptions {
|
|
|
6026
6163
|
level: RulePlainConfiguration;
|
|
6027
6164
|
options?: NoDebuggerOptions;
|
|
6028
6165
|
}
|
|
6166
|
+
interface RuleWithNoDeprecatedImportsOptions {
|
|
6167
|
+
level: RulePlainConfiguration;
|
|
6168
|
+
options?: NoDeprecatedImportsOptions;
|
|
6169
|
+
}
|
|
6029
6170
|
interface RuleWithNoDocumentCookieOptions {
|
|
6030
6171
|
level: RulePlainConfiguration;
|
|
6031
6172
|
options?: NoDocumentCookieOptions;
|
|
@@ -6055,6 +6196,10 @@ interface RuleWithNoDuplicateCustomPropertiesOptions {
|
|
|
6055
6196
|
level: RulePlainConfiguration;
|
|
6056
6197
|
options?: NoDuplicateCustomPropertiesOptions;
|
|
6057
6198
|
}
|
|
6199
|
+
interface RuleWithNoDuplicateDependenciesOptions {
|
|
6200
|
+
level: RulePlainConfiguration;
|
|
6201
|
+
options?: NoDuplicateDependenciesOptions;
|
|
6202
|
+
}
|
|
6058
6203
|
interface RuleWithNoDuplicateElseIfOptions {
|
|
6059
6204
|
level: RulePlainConfiguration;
|
|
6060
6205
|
options?: NoDuplicateElseIfOptions;
|
|
@@ -6104,6 +6249,10 @@ interface RuleWithNoEmptyInterfaceOptions {
|
|
|
6104
6249
|
level: RulePlainConfiguration;
|
|
6105
6250
|
options?: NoEmptyInterfaceOptions;
|
|
6106
6251
|
}
|
|
6252
|
+
interface RuleWithNoEmptySourceOptions {
|
|
6253
|
+
level: RulePlainConfiguration;
|
|
6254
|
+
options?: NoEmptySourceOptions;
|
|
6255
|
+
}
|
|
6107
6256
|
interface RuleWithNoEvolvingTypesOptions {
|
|
6108
6257
|
level: RulePlainConfiguration;
|
|
6109
6258
|
options?: NoEvolvingTypesOptions;
|
|
@@ -6160,6 +6309,10 @@ interface RuleWithNoImportAssignOptions {
|
|
|
6160
6309
|
level: RulePlainConfiguration;
|
|
6161
6310
|
options?: NoImportAssignOptions;
|
|
6162
6311
|
}
|
|
6312
|
+
interface RuleWithNoImportCyclesOptions {
|
|
6313
|
+
level: RulePlainConfiguration;
|
|
6314
|
+
options?: NoImportCyclesOptions;
|
|
6315
|
+
}
|
|
6163
6316
|
interface RuleWithNoImportantInKeyframeOptions {
|
|
6164
6317
|
level: RulePlainConfiguration;
|
|
6165
6318
|
options?: NoImportantInKeyframeOptions;
|
|
@@ -6209,6 +6362,11 @@ interface RuleWithNoQuickfixBiomeOptions {
|
|
|
6209
6362
|
level: RulePlainConfiguration;
|
|
6210
6363
|
options?: NoQuickfixBiomeOptions;
|
|
6211
6364
|
}
|
|
6365
|
+
interface RuleWithNoReactForwardRefOptions {
|
|
6366
|
+
fix?: FixKind;
|
|
6367
|
+
level: RulePlainConfiguration;
|
|
6368
|
+
options?: NoReactForwardRefOptions;
|
|
6369
|
+
}
|
|
6212
6370
|
interface RuleWithNoReactSpecificPropsOptions {
|
|
6213
6371
|
fix?: FixKind;
|
|
6214
6372
|
level: RulePlainConfiguration;
|
|
@@ -6279,6 +6437,10 @@ interface RuleWithNoUnsafeNegationOptions {
|
|
|
6279
6437
|
level: RulePlainConfiguration;
|
|
6280
6438
|
options?: NoUnsafeNegationOptions;
|
|
6281
6439
|
}
|
|
6440
|
+
interface RuleWithNoUnusedExpressionsOptions {
|
|
6441
|
+
level: RulePlainConfiguration;
|
|
6442
|
+
options?: NoUnusedExpressionsOptions;
|
|
6443
|
+
}
|
|
6282
6444
|
interface RuleWithNoUselessEscapeInStringOptions {
|
|
6283
6445
|
fix?: FixKind;
|
|
6284
6446
|
level: RulePlainConfiguration;
|
|
@@ -6314,6 +6476,10 @@ interface RuleWithUseDefaultSwitchClauseLastOptions {
|
|
|
6314
6476
|
level: RulePlainConfiguration;
|
|
6315
6477
|
options?: UseDefaultSwitchClauseLastOptions;
|
|
6316
6478
|
}
|
|
6479
|
+
interface RuleWithUseDeprecatedDateOptions {
|
|
6480
|
+
level: RulePlainConfiguration;
|
|
6481
|
+
options?: UseDeprecatedDateOptions;
|
|
6482
|
+
}
|
|
6317
6483
|
interface RuleWithUseErrorMessageOptions {
|
|
6318
6484
|
level: RulePlainConfiguration;
|
|
6319
6485
|
options?: UseErrorMessageOptions;
|
|
@@ -6465,6 +6631,7 @@ type NoImportantStylesOptions = {};
|
|
|
6465
6631
|
type NoStaticOnlyClassOptions = {};
|
|
6466
6632
|
type NoThisInStaticOptions = {};
|
|
6467
6633
|
type NoUselessCatchOptions = {};
|
|
6634
|
+
type NoUselessCatchBindingOptions = {};
|
|
6468
6635
|
type NoUselessConstructorOptions = {};
|
|
6469
6636
|
type NoUselessContinueOptions = {};
|
|
6470
6637
|
type NoUselessEmptyExportOptions = {};
|
|
@@ -6479,6 +6646,7 @@ type NoUselessSwitchCaseOptions = {};
|
|
|
6479
6646
|
type NoUselessTernaryOptions = {};
|
|
6480
6647
|
type NoUselessThisAliasOptions = {};
|
|
6481
6648
|
type NoUselessTypeConstraintOptions = {};
|
|
6649
|
+
type NoUselessUndefinedOptions = {};
|
|
6482
6650
|
type NoUselessUndefinedInitializationOptions = {};
|
|
6483
6651
|
type NoVoidOptions = {};
|
|
6484
6652
|
type UseArrowFunctionOptions = {};
|
|
@@ -6486,6 +6654,12 @@ type UseDateNowOptions = {};
|
|
|
6486
6654
|
type UseFlatMapOptions = {};
|
|
6487
6655
|
type UseIndexOfOptions = {};
|
|
6488
6656
|
type UseLiteralKeysOptions = {};
|
|
6657
|
+
interface UseMaxParamsOptions {
|
|
6658
|
+
/**
|
|
6659
|
+
* Maximum number of parameters allowed (default: 4)
|
|
6660
|
+
*/
|
|
6661
|
+
max?: number;
|
|
6662
|
+
}
|
|
6489
6663
|
type UseNumericLiteralsOptions = {};
|
|
6490
6664
|
type UseOptionalChainOptions = {};
|
|
6491
6665
|
type UseRegexLiteralsOptions = {};
|
|
@@ -6510,6 +6684,7 @@ type NoInvalidPositionAtImportRuleOptions = {};
|
|
|
6510
6684
|
type NoInvalidUseBeforeDeclarationOptions = {};
|
|
6511
6685
|
type NoMissingVarFunctionOptions = {};
|
|
6512
6686
|
type NoNestedComponentDefinitionsOptions = {};
|
|
6687
|
+
type NoNextAsyncClientComponentOptions = {};
|
|
6513
6688
|
type NoNodejsModulesOptions = {};
|
|
6514
6689
|
type NoNonoctalDecimalEscapeOptions = {};
|
|
6515
6690
|
type NoPrecisionLossOptions = {};
|
|
@@ -6557,16 +6732,37 @@ interface NoUndeclaredVariablesOptions {
|
|
|
6557
6732
|
*/
|
|
6558
6733
|
checkTypes?: boolean;
|
|
6559
6734
|
}
|
|
6560
|
-
|
|
6735
|
+
interface NoUnknownFunctionOptions {
|
|
6736
|
+
/**
|
|
6737
|
+
* A list of unknown function names to ignore (case-insensitive).
|
|
6738
|
+
*/
|
|
6739
|
+
ignore?: string[];
|
|
6740
|
+
}
|
|
6561
6741
|
type NoUnknownMediaFeatureNameOptions = {};
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6742
|
+
interface NoUnknownPropertyOptions {
|
|
6743
|
+
/**
|
|
6744
|
+
* A list of unknown property names to ignore (case-insensitive).
|
|
6745
|
+
*/
|
|
6746
|
+
ignore?: string[];
|
|
6747
|
+
}
|
|
6748
|
+
interface NoUnknownPseudoClassOptions {
|
|
6749
|
+
/**
|
|
6750
|
+
* A list of unknown pseudo-class names to ignore (case-insensitive).
|
|
6751
|
+
*/
|
|
6752
|
+
ignore?: string[];
|
|
6753
|
+
}
|
|
6754
|
+
interface NoUnknownPseudoElementOptions {
|
|
6755
|
+
/**
|
|
6756
|
+
* A list of unknown pseudo-element names to ignore (case-insensitive).
|
|
6757
|
+
*/
|
|
6758
|
+
ignore?: string[];
|
|
6759
|
+
}
|
|
6565
6760
|
type NoUnknownTypeSelectorOptions = {};
|
|
6566
6761
|
type NoUnknownUnitOptions = {};
|
|
6567
6762
|
type NoUnmatchableAnbSelectorOptions = {};
|
|
6568
6763
|
type NoUnreachableOptions = {};
|
|
6569
6764
|
type NoUnreachableSuperOptions = {};
|
|
6765
|
+
type NoUnresolvedImportsOptions = {};
|
|
6570
6766
|
type NoUnsafeFinallyOptions = {};
|
|
6571
6767
|
type NoUnsafeOptionalChainingOptions = {};
|
|
6572
6768
|
interface NoUnusedFunctionParametersOptions {
|
|
@@ -6586,6 +6782,11 @@ interface NoUnusedVariablesOptions {
|
|
|
6586
6782
|
}
|
|
6587
6783
|
type NoVoidElementsWithChildrenOptions = {};
|
|
6588
6784
|
type NoVoidTypeReturnOptions = {};
|
|
6785
|
+
type NoVueDataObjectDeclarationOptions = {};
|
|
6786
|
+
type NoVueDuplicateKeysOptions = {};
|
|
6787
|
+
type NoVueReservedKeysOptions = {};
|
|
6788
|
+
type NoVueReservedPropsOptions = {};
|
|
6789
|
+
type NoVueSetupPropsReactivityLossOptions = {};
|
|
6589
6790
|
interface UseExhaustiveDependenciesOptions {
|
|
6590
6791
|
/**
|
|
6591
6792
|
* List of hooks of which the dependencies should be validated.
|
|
@@ -6601,9 +6802,20 @@ interface UseExhaustiveDependenciesOptions {
|
|
|
6601
6802
|
reportUnnecessaryDependencies?: boolean;
|
|
6602
6803
|
}
|
|
6603
6804
|
type UseGraphqlNamedOperationsOptions = {};
|
|
6604
|
-
|
|
6805
|
+
interface UseHookAtTopLevelOptions {
|
|
6806
|
+
/**
|
|
6807
|
+
* List of function names that should not be treated as hooks.
|
|
6808
|
+
Functions in this list will be ignored by the rule even if they follow the `use*` naming convention.
|
|
6809
|
+
*/
|
|
6810
|
+
ignore?: string[];
|
|
6811
|
+
}
|
|
6605
6812
|
type UseImageSizeOptions = null;
|
|
6606
6813
|
interface UseImportExtensionsOptions {
|
|
6814
|
+
/**
|
|
6815
|
+
* A map of file extensions to their suggested replacements.
|
|
6816
|
+
For example, `{"ts": "js"}` would suggest `.js` extensions for TypeScript imports.
|
|
6817
|
+
*/
|
|
6818
|
+
extensionMappings?: Record<string, string>;
|
|
6607
6819
|
/**
|
|
6608
6820
|
* If `true`, the suggested extension is always `.js` regardless of what
|
|
6609
6821
|
extension the source file has in your project.
|
|
@@ -6620,6 +6832,8 @@ interface UseJsxKeyInIterableOptions {
|
|
|
6620
6832
|
}
|
|
6621
6833
|
type UseParseIntRadixOptions = {};
|
|
6622
6834
|
type UseQwikClasslistOptions = {};
|
|
6835
|
+
type UseQwikMethodUsageOptions = {};
|
|
6836
|
+
type UseQwikValidLexicalScopeOptions = {};
|
|
6623
6837
|
type UseSingleJsDocAsteriskOptions = {};
|
|
6624
6838
|
interface UseUniqueElementIdsOptions {
|
|
6625
6839
|
/**
|
|
@@ -6639,7 +6853,6 @@ interface NoAmbiguousAnchorTextOptions {
|
|
|
6639
6853
|
}
|
|
6640
6854
|
type NoBeforeInteractiveScriptOutsideDocumentOptions = {};
|
|
6641
6855
|
type NoContinueOptions = {};
|
|
6642
|
-
type NoDeprecatedImportsOptions = {};
|
|
6643
6856
|
interface NoDeprecatedMediaTypeOptions {
|
|
6644
6857
|
/**
|
|
6645
6858
|
* Media types to allow (case-insensitive).
|
|
@@ -6649,7 +6862,6 @@ interface NoDeprecatedMediaTypeOptions {
|
|
|
6649
6862
|
type NoDivRegexOptions = {};
|
|
6650
6863
|
type NoDuplicateArgumentNamesOptions = {};
|
|
6651
6864
|
type NoDuplicateAttributesOptions = {};
|
|
6652
|
-
type NoDuplicateDependenciesOptions = {};
|
|
6653
6865
|
type NoDuplicateEnumValueNamesOptions = {};
|
|
6654
6866
|
type NoDuplicateEnumValuesOptions = {};
|
|
6655
6867
|
type NoDuplicateFieldDefinitionNamesOptions = {};
|
|
@@ -6657,12 +6869,6 @@ type NoDuplicateGraphqlOperationNameOptions = {};
|
|
|
6657
6869
|
type NoDuplicateInputFieldNamesOptions = {};
|
|
6658
6870
|
type NoDuplicateVariableNamesOptions = {};
|
|
6659
6871
|
type NoDuplicatedSpreadPropsOptions = {};
|
|
6660
|
-
interface NoEmptySourceOptions {
|
|
6661
|
-
/**
|
|
6662
|
-
* Whether comments are considered meaningful
|
|
6663
|
-
*/
|
|
6664
|
-
allowComments?: boolean;
|
|
6665
|
-
}
|
|
6666
6872
|
type NoEqualsToNullOptions = {};
|
|
6667
6873
|
interface NoExcessiveClassesPerFileOptions {
|
|
6668
6874
|
/**
|
|
@@ -6684,44 +6890,20 @@ type NoFloatingClassesOptions = {};
|
|
|
6684
6890
|
type NoFloatingPromisesOptions = {};
|
|
6685
6891
|
type NoForInOptions = {};
|
|
6686
6892
|
type NoHexColorsOptions = {};
|
|
6687
|
-
interface NoImportCyclesOptions {
|
|
6688
|
-
/**
|
|
6689
|
-
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`)
|
|
6690
|
-
will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type
|
|
6691
|
-
imports (`import { type Foo }`) aren't considered as type-only because it's not removed by
|
|
6692
|
-
the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
|
|
6693
|
-
*/
|
|
6694
|
-
ignoreTypes?: boolean;
|
|
6695
|
-
}
|
|
6696
6893
|
interface NoIncrementDecrementOptions {
|
|
6697
6894
|
/**
|
|
6698
6895
|
* Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
|
|
6699
6896
|
*/
|
|
6700
6897
|
allowForLoopAfterthoughts?: boolean;
|
|
6701
6898
|
}
|
|
6702
|
-
interface NoJsxLiteralsOptions {
|
|
6703
|
-
/**
|
|
6704
|
-
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
6705
|
-
*/
|
|
6706
|
-
allowedStrings?: string[];
|
|
6707
|
-
/**
|
|
6708
|
-
* When enabled, strings inside props are always ignored
|
|
6709
|
-
*/
|
|
6710
|
-
ignoreProps?: boolean;
|
|
6711
|
-
/**
|
|
6712
|
-
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
6713
|
-
*/
|
|
6714
|
-
noStrings?: boolean;
|
|
6715
|
-
}
|
|
6716
6899
|
type NoJsxPropsBindOptions = {};
|
|
6717
6900
|
type NoLeakedRenderOptions = {};
|
|
6718
6901
|
type NoMisusedPromisesOptions = {};
|
|
6719
6902
|
type NoMultiAssignOptions = {};
|
|
6720
6903
|
type NoMultiStrOptions = {};
|
|
6721
|
-
type
|
|
6904
|
+
type NoNestedPromisesOptions = {};
|
|
6722
6905
|
type NoParametersOnlyUsedInRecursionOptions = {};
|
|
6723
6906
|
type NoProtoOptions = {};
|
|
6724
|
-
type NoReactForwardRefOptions = {};
|
|
6725
6907
|
type NoRedundantDefaultExportOptions = {};
|
|
6726
6908
|
type NoReturnAssignOptions = {};
|
|
6727
6909
|
interface NoRootTypeOptions {
|
|
@@ -6748,32 +6930,12 @@ interface NoUnknownAttributeOptions {
|
|
|
6748
6930
|
ignore?: string[];
|
|
6749
6931
|
}
|
|
6750
6932
|
type NoUnnecessaryConditionsOptions = {};
|
|
6751
|
-
type
|
|
6752
|
-
type NoUnusedExpressionsOptions = {};
|
|
6753
|
-
type NoUselessCatchBindingOptions = {};
|
|
6754
|
-
type NoUselessUndefinedOptions = {};
|
|
6933
|
+
type NoUselessReturnOptions = {};
|
|
6755
6934
|
type NoVueArrowFuncInWatchOptions = {};
|
|
6756
|
-
type NoVueDataObjectDeclarationOptions = {};
|
|
6757
|
-
type NoVueDuplicateKeysOptions = {};
|
|
6758
6935
|
type NoVueOptionsApiOptions = {};
|
|
6759
|
-
type NoVueReservedKeysOptions = {};
|
|
6760
|
-
type NoVueReservedPropsOptions = {};
|
|
6761
|
-
type NoVueSetupPropsReactivityLossOptions = {};
|
|
6762
6936
|
type NoVueVIfWithVForOptions = {};
|
|
6763
6937
|
type UseArraySortCompareOptions = {};
|
|
6764
6938
|
type UseAwaitThenableOptions = {};
|
|
6765
|
-
interface UseConsistentArrowReturnOptions {
|
|
6766
|
-
/**
|
|
6767
|
-
* Determines whether the rule enforces a consistent style when the return value is an object literal.
|
|
6768
|
-
|
|
6769
|
-
This option is only applicable when used in conjunction with the `asNeeded` option.
|
|
6770
|
-
*/
|
|
6771
|
-
requireForObjectLiteral?: boolean;
|
|
6772
|
-
/**
|
|
6773
|
-
* The style to enforce for arrow function return statements.
|
|
6774
|
-
*/
|
|
6775
|
-
style?: UseConsistentArrowReturnStyle;
|
|
6776
|
-
}
|
|
6777
6939
|
type UseConsistentEnumValueTypeOptions = {};
|
|
6778
6940
|
interface UseConsistentGraphqlDescriptionsOptions {
|
|
6779
6941
|
/**
|
|
@@ -6789,9 +6951,6 @@ Default: "property"
|
|
|
6789
6951
|
*/
|
|
6790
6952
|
style?: MethodSignatureStyle;
|
|
6791
6953
|
}
|
|
6792
|
-
interface UseDeprecatedDateOptions {
|
|
6793
|
-
argumentName?: string;
|
|
6794
|
-
}
|
|
6795
6954
|
type UseDestructuringOptions = {};
|
|
6796
6955
|
interface UseErrorCauseOptions {
|
|
6797
6956
|
/**
|
|
@@ -6812,14 +6971,6 @@ interface UseInputNameOptions {
|
|
|
6812
6971
|
}
|
|
6813
6972
|
type UseLoneAnonymousOperationOptions = {};
|
|
6814
6973
|
type UseLoneExecutableDefinitionOptions = {};
|
|
6815
|
-
interface UseMaxParamsOptions {
|
|
6816
|
-
/**
|
|
6817
|
-
* Maximum number of parameters allowed (default: 4)
|
|
6818
|
-
*/
|
|
6819
|
-
max?: number;
|
|
6820
|
-
}
|
|
6821
|
-
type UseQwikMethodUsageOptions = {};
|
|
6822
|
-
type UseQwikValidLexicalScopeOptions = {};
|
|
6823
6974
|
type UseRegexpExecOptions = {};
|
|
6824
6975
|
interface UseRequiredScriptsOptions {
|
|
6825
6976
|
/**
|
|
@@ -6936,6 +7087,20 @@ type NoExportedImportsOptions = {};
|
|
|
6936
7087
|
type NoHeadElementOptions = {};
|
|
6937
7088
|
type NoImplicitBooleanOptions = {};
|
|
6938
7089
|
type NoInferrableTypesOptions = {};
|
|
7090
|
+
interface NoJsxLiteralsOptions {
|
|
7091
|
+
/**
|
|
7092
|
+
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
7093
|
+
*/
|
|
7094
|
+
allowedStrings?: string[];
|
|
7095
|
+
/**
|
|
7096
|
+
* When enabled, strings inside props are always ignored
|
|
7097
|
+
*/
|
|
7098
|
+
ignoreProps?: boolean;
|
|
7099
|
+
/**
|
|
7100
|
+
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
7101
|
+
*/
|
|
7102
|
+
noStrings?: boolean;
|
|
7103
|
+
}
|
|
6939
7104
|
type NoMagicNumbersOptions = {};
|
|
6940
7105
|
type NoNamespaceOptions = {};
|
|
6941
7106
|
type NoNegationElseOptions = {};
|
|
@@ -6993,6 +7158,18 @@ interface UseComponentExportOnlyModulesOptions {
|
|
|
6993
7158
|
interface UseConsistentArrayTypeOptions {
|
|
6994
7159
|
syntax?: ConsistentArrayType;
|
|
6995
7160
|
}
|
|
7161
|
+
interface UseConsistentArrowReturnOptions {
|
|
7162
|
+
/**
|
|
7163
|
+
* Determines whether the rule enforces a consistent style when the return value is an object literal.
|
|
7164
|
+
|
|
7165
|
+
This option is only applicable when used in conjunction with the `asNeeded` option.
|
|
7166
|
+
*/
|
|
7167
|
+
requireForObjectLiteral?: boolean;
|
|
7168
|
+
/**
|
|
7169
|
+
* The style to enforce for arrow function return statements.
|
|
7170
|
+
*/
|
|
7171
|
+
style?: UseConsistentArrowReturnStyle;
|
|
7172
|
+
}
|
|
6996
7173
|
type UseConsistentBuiltinInstantiationOptions = {};
|
|
6997
7174
|
type UseConsistentCurlyBracesOptions = {};
|
|
6998
7175
|
interface UseConsistentMemberAccessibilityOptions {
|
|
@@ -7087,7 +7264,16 @@ type UseTemplateOptions = {};
|
|
|
7087
7264
|
type UseThrowNewErrorOptions = {};
|
|
7088
7265
|
type UseThrowOnlyErrorOptions = {};
|
|
7089
7266
|
type UseTrimStartEndOptions = {};
|
|
7090
|
-
|
|
7267
|
+
interface UseUnifiedTypeSignaturesOptions {
|
|
7268
|
+
/**
|
|
7269
|
+
* Whether to ignore overloads with different JSDoc comments.
|
|
7270
|
+
*/
|
|
7271
|
+
ignoreDifferentJsDoc?: boolean;
|
|
7272
|
+
/**
|
|
7273
|
+
* Whether to ignore overloads with differently named parameters.
|
|
7274
|
+
*/
|
|
7275
|
+
ignoreDifferentlyNamedParameters?: boolean;
|
|
7276
|
+
}
|
|
7091
7277
|
type NoAlertOptions = {};
|
|
7092
7278
|
type NoApproximativeNumericConstantOptions = {};
|
|
7093
7279
|
type NoArrayIndexKeyOptions = {};
|
|
@@ -7121,6 +7307,7 @@ type NoConstEnumOptions = {};
|
|
|
7121
7307
|
type NoConstantBinaryExpressionsOptions = {};
|
|
7122
7308
|
type NoControlCharactersInRegexOptions = {};
|
|
7123
7309
|
type NoDebuggerOptions = {};
|
|
7310
|
+
type NoDeprecatedImportsOptions = {};
|
|
7124
7311
|
type NoDocumentCookieOptions = {};
|
|
7125
7312
|
type NoDocumentImportInPageOptions = {};
|
|
7126
7313
|
interface NoDoubleEqualsOptions {
|
|
@@ -7136,6 +7323,7 @@ type NoDuplicateAtImportRulesOptions = {};
|
|
|
7136
7323
|
type NoDuplicateCaseOptions = {};
|
|
7137
7324
|
type NoDuplicateClassMembersOptions = {};
|
|
7138
7325
|
type NoDuplicateCustomPropertiesOptions = {};
|
|
7326
|
+
type NoDuplicateDependenciesOptions = {};
|
|
7139
7327
|
type NoDuplicateElseIfOptions = {};
|
|
7140
7328
|
type NoDuplicateFieldsOptions = {};
|
|
7141
7329
|
type NoDuplicateFontNamesOptions = {};
|
|
@@ -7148,6 +7336,12 @@ type NoDuplicateTestHooksOptions = {};
|
|
|
7148
7336
|
type NoEmptyBlockOptions = {};
|
|
7149
7337
|
type NoEmptyBlockStatementsOptions = {};
|
|
7150
7338
|
type NoEmptyInterfaceOptions = {};
|
|
7339
|
+
interface NoEmptySourceOptions {
|
|
7340
|
+
/**
|
|
7341
|
+
* Whether comments are considered meaningful
|
|
7342
|
+
*/
|
|
7343
|
+
allowComments?: boolean;
|
|
7344
|
+
}
|
|
7151
7345
|
type NoEvolvingTypesOptions = {};
|
|
7152
7346
|
type NoExplicitAnyOptions = {};
|
|
7153
7347
|
type NoExportsInTestOptions = {};
|
|
@@ -7161,6 +7355,15 @@ type NoGlobalIsNanOptions = {};
|
|
|
7161
7355
|
type NoHeadImportInDocumentOptions = {};
|
|
7162
7356
|
type NoImplicitAnyLetOptions = {};
|
|
7163
7357
|
type NoImportAssignOptions = {};
|
|
7358
|
+
interface NoImportCyclesOptions {
|
|
7359
|
+
/**
|
|
7360
|
+
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`)
|
|
7361
|
+
will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type
|
|
7362
|
+
imports (`import { type Foo }`) aren't considered as type-only because it's not removed by
|
|
7363
|
+
the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
|
|
7364
|
+
*/
|
|
7365
|
+
ignoreTypes?: boolean;
|
|
7366
|
+
}
|
|
7164
7367
|
type NoImportantInKeyframeOptions = {};
|
|
7165
7368
|
type NoIrregularWhitespaceOptions = {};
|
|
7166
7369
|
type NoLabelVarOptions = {};
|
|
@@ -7177,6 +7380,7 @@ interface NoQuickfixBiomeOptions {
|
|
|
7177
7380
|
*/
|
|
7178
7381
|
additionalPaths?: string[];
|
|
7179
7382
|
}
|
|
7383
|
+
type NoReactForwardRefOptions = {};
|
|
7180
7384
|
type NoReactSpecificPropsOptions = {};
|
|
7181
7385
|
type NoRedeclareOptions = {};
|
|
7182
7386
|
type NoRedundantUseStrictOptions = {};
|
|
@@ -7198,6 +7402,7 @@ interface NoUnknownAtRulesOptions {
|
|
|
7198
7402
|
}
|
|
7199
7403
|
type NoUnsafeDeclarationMergingOptions = {};
|
|
7200
7404
|
type NoUnsafeNegationOptions = {};
|
|
7405
|
+
type NoUnusedExpressionsOptions = {};
|
|
7201
7406
|
type NoUselessEscapeInStringOptions = {};
|
|
7202
7407
|
type NoUselessRegexBackrefsOptions = {};
|
|
7203
7408
|
type NoVarOptions = {};
|
|
@@ -7206,12 +7411,21 @@ type UseAdjacentOverloadSignaturesOptions = {};
|
|
|
7206
7411
|
type UseAwaitOptions = {};
|
|
7207
7412
|
type UseBiomeIgnoreFolderOptions = {};
|
|
7208
7413
|
type UseDefaultSwitchClauseLastOptions = {};
|
|
7414
|
+
interface UseDeprecatedDateOptions {
|
|
7415
|
+
argumentName?: string;
|
|
7416
|
+
}
|
|
7209
7417
|
type UseErrorMessageOptions = {};
|
|
7210
7418
|
type UseGetterReturnOptions = {};
|
|
7211
7419
|
type UseGoogleFontDisplayOptions = {};
|
|
7212
7420
|
type UseGuardForInOptions = {};
|
|
7213
7421
|
type UseIsArrayOptions = {};
|
|
7214
|
-
|
|
7422
|
+
interface UseIterableCallbackReturnOptions {
|
|
7423
|
+
/**
|
|
7424
|
+
* When `true`, the rule reports `forEach` callbacks that return a value (default behaviour).
|
|
7425
|
+
When `false` or unset, such callbacks are ignored.
|
|
7426
|
+
*/
|
|
7427
|
+
checkForEach?: boolean;
|
|
7428
|
+
}
|
|
7215
7429
|
type UseNamespaceKeywordOptions = {};
|
|
7216
7430
|
type UseNumberToFixedDigitsArgumentOptions = {};
|
|
7217
7431
|
type UseStaticResponseMethodsOptions = {};
|
|
@@ -7250,7 +7464,6 @@ while for `useState()` it would be `[1]`.
|
|
|
7250
7464
|
stableResult?: StableHookResult;
|
|
7251
7465
|
}
|
|
7252
7466
|
type Regex = string;
|
|
7253
|
-
type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
|
|
7254
7467
|
type UseConsistentGraphqlDescriptionsStyle = "block" | "inline";
|
|
7255
7468
|
type MethodSignatureStyle = "property" | "method";
|
|
7256
7469
|
type CheckInputType = "off" | "loose" | "strict";
|
|
@@ -7262,6 +7475,7 @@ type Paths = string | PathOptions;
|
|
|
7262
7475
|
type Patterns = PatternOptions;
|
|
7263
7476
|
type CustomRestrictedType = string | CustomRestrictedTypeOptions;
|
|
7264
7477
|
type ConsistentArrayType = "shorthand" | "generic";
|
|
7478
|
+
type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
|
|
7265
7479
|
type Accessibility = "noPublic" | "explicit" | "none";
|
|
7266
7480
|
type ObjectPropertySyntax = "explicit" | "shorthand";
|
|
7267
7481
|
type ConsistentTypeDefinition = "interface" | "type";
|
|
@@ -7410,6 +7624,25 @@ type RestrictedModifier =
|
|
|
7410
7624
|
| "protected"
|
|
7411
7625
|
| "readonly"
|
|
7412
7626
|
| "static";
|
|
7627
|
+
interface FileFeaturesResult {
|
|
7628
|
+
featuresSupported: FeaturesSupported;
|
|
7629
|
+
}
|
|
7630
|
+
type FeaturesSupported = { [K in FeatureKind]?: SupportKind };
|
|
7631
|
+
type SupportKind =
|
|
7632
|
+
| "supported"
|
|
7633
|
+
| "ignored"
|
|
7634
|
+
| "protected"
|
|
7635
|
+
| "featureNotEnabled"
|
|
7636
|
+
| "fileNotSupported"
|
|
7637
|
+
| "notRequested";
|
|
7638
|
+
interface UpdateSettingsParams {
|
|
7639
|
+
configuration: Configuration;
|
|
7640
|
+
extendedConfigurations?: [BiomePath, Configuration][];
|
|
7641
|
+
moduleGraphResolutionKind?: ModuleGraphResolutionKind;
|
|
7642
|
+
projectKey: ProjectKey;
|
|
7643
|
+
workspaceDirectory?: BiomePath;
|
|
7644
|
+
}
|
|
7645
|
+
type ModuleGraphResolutionKind = "none" | "modules" | "modulesAndTypes";
|
|
7413
7646
|
interface UpdateSettingsResult {
|
|
7414
7647
|
diagnostics: Diagnostic[];
|
|
7415
7648
|
}
|
|
@@ -7481,6 +7714,7 @@ type Category =
|
|
|
7481
7714
|
| "lint/complexity/noStaticOnlyClass"
|
|
7482
7715
|
| "lint/complexity/noThisInStatic"
|
|
7483
7716
|
| "lint/complexity/noUselessCatch"
|
|
7717
|
+
| "lint/complexity/noUselessCatchBinding"
|
|
7484
7718
|
| "lint/complexity/noUselessConstructor"
|
|
7485
7719
|
| "lint/complexity/noUselessContinue"
|
|
7486
7720
|
| "lint/complexity/noUselessEmptyExport"
|
|
@@ -7495,6 +7729,7 @@ type Category =
|
|
|
7495
7729
|
| "lint/complexity/noUselessTernary"
|
|
7496
7730
|
| "lint/complexity/noUselessThisAlias"
|
|
7497
7731
|
| "lint/complexity/noUselessTypeConstraint"
|
|
7732
|
+
| "lint/complexity/noUselessUndefined"
|
|
7498
7733
|
| "lint/complexity/noUselessUndefinedInitialization"
|
|
7499
7734
|
| "lint/complexity/noVoid"
|
|
7500
7735
|
| "lint/complexity/useArrowFunction"
|
|
@@ -7502,6 +7737,7 @@ type Category =
|
|
|
7502
7737
|
| "lint/complexity/useFlatMap"
|
|
7503
7738
|
| "lint/complexity/useIndexOf"
|
|
7504
7739
|
| "lint/complexity/useLiteralKeys"
|
|
7740
|
+
| "lint/complexity/useMaxParams"
|
|
7505
7741
|
| "lint/complexity/useNumericLiterals"
|
|
7506
7742
|
| "lint/complexity/useOptionalChain"
|
|
7507
7743
|
| "lint/complexity/useRegexLiterals"
|
|
@@ -7526,6 +7762,7 @@ type Category =
|
|
|
7526
7762
|
| "lint/correctness/noInvalidUseBeforeDeclaration"
|
|
7527
7763
|
| "lint/correctness/noMissingVarFunction"
|
|
7528
7764
|
| "lint/correctness/noNestedComponentDefinitions"
|
|
7765
|
+
| "lint/correctness/noNextAsyncClientComponent"
|
|
7529
7766
|
| "lint/correctness/noNodejsModules"
|
|
7530
7767
|
| "lint/correctness/noNonoctalDecimalEscape"
|
|
7531
7768
|
| "lint/correctness/noPrecisionLoss"
|
|
@@ -7546,13 +7783,13 @@ type Category =
|
|
|
7546
7783
|
| "lint/correctness/noUnknownMediaFeatureName"
|
|
7547
7784
|
| "lint/correctness/noUnknownProperty"
|
|
7548
7785
|
| "lint/correctness/noUnknownPseudoClass"
|
|
7549
|
-
| "lint/correctness/noUnknownPseudoClassSelector"
|
|
7550
7786
|
| "lint/correctness/noUnknownPseudoElement"
|
|
7551
7787
|
| "lint/correctness/noUnknownTypeSelector"
|
|
7552
7788
|
| "lint/correctness/noUnknownUnit"
|
|
7553
7789
|
| "lint/correctness/noUnmatchableAnbSelector"
|
|
7554
7790
|
| "lint/correctness/noUnreachable"
|
|
7555
7791
|
| "lint/correctness/noUnreachableSuper"
|
|
7792
|
+
| "lint/correctness/noUnresolvedImports"
|
|
7556
7793
|
| "lint/correctness/noUnsafeFinally"
|
|
7557
7794
|
| "lint/correctness/noUnsafeOptionalChaining"
|
|
7558
7795
|
| "lint/correctness/noUnusedFunctionParameters"
|
|
@@ -7562,6 +7799,11 @@ type Category =
|
|
|
7562
7799
|
| "lint/correctness/noUnusedVariables"
|
|
7563
7800
|
| "lint/correctness/noVoidElementsWithChildren"
|
|
7564
7801
|
| "lint/correctness/noVoidTypeReturn"
|
|
7802
|
+
| "lint/correctness/noVueDataObjectDeclaration"
|
|
7803
|
+
| "lint/correctness/noVueDuplicateKeys"
|
|
7804
|
+
| "lint/correctness/noVueReservedKeys"
|
|
7805
|
+
| "lint/correctness/noVueReservedProps"
|
|
7806
|
+
| "lint/correctness/noVueSetupPropsReactivityLoss"
|
|
7565
7807
|
| "lint/correctness/useExhaustiveDependencies"
|
|
7566
7808
|
| "lint/correctness/useGraphqlNamedOperations"
|
|
7567
7809
|
| "lint/correctness/useHookAtTopLevel"
|
|
@@ -7572,6 +7814,8 @@ type Category =
|
|
|
7572
7814
|
| "lint/correctness/useJsxKeyInIterable"
|
|
7573
7815
|
| "lint/correctness/useParseIntRadix"
|
|
7574
7816
|
| "lint/correctness/useQwikClasslist"
|
|
7817
|
+
| "lint/correctness/useQwikMethodUsage"
|
|
7818
|
+
| "lint/correctness/useQwikValidLexicalScope"
|
|
7575
7819
|
| "lint/correctness/useSingleJsDocAsterisk"
|
|
7576
7820
|
| "lint/correctness/useUniqueElementIds"
|
|
7577
7821
|
| "lint/correctness/useValidForDirection"
|
|
@@ -7581,12 +7825,10 @@ type Category =
|
|
|
7581
7825
|
| "lint/nursery/noBeforeInteractiveScriptOutsideDocument"
|
|
7582
7826
|
| "lint/nursery/noColorInvalidHex"
|
|
7583
7827
|
| "lint/nursery/noContinue"
|
|
7584
|
-
| "lint/nursery/noDeprecatedImports"
|
|
7585
7828
|
| "lint/nursery/noDeprecatedMediaType"
|
|
7586
7829
|
| "lint/nursery/noDivRegex"
|
|
7587
7830
|
| "lint/nursery/noDuplicateArgumentNames"
|
|
7588
7831
|
| "lint/nursery/noDuplicateAttributes"
|
|
7589
|
-
| "lint/nursery/noDuplicateDependencies"
|
|
7590
7832
|
| "lint/nursery/noDuplicateEnumValueNames"
|
|
7591
7833
|
| "lint/nursery/noDuplicateEnumValues"
|
|
7592
7834
|
| "lint/nursery/noDuplicateFieldDefinitionNames"
|
|
@@ -7594,7 +7836,6 @@ type Category =
|
|
|
7594
7836
|
| "lint/nursery/noDuplicateInputFieldNames"
|
|
7595
7837
|
| "lint/nursery/noDuplicateVariableNames"
|
|
7596
7838
|
| "lint/nursery/noDuplicatedSpreadProps"
|
|
7597
|
-
| "lint/nursery/noEmptySource"
|
|
7598
7839
|
| "lint/nursery/noEqualsToNull"
|
|
7599
7840
|
| "lint/nursery/noExcessiveClassesPerFile"
|
|
7600
7841
|
| "lint/nursery/noExcessiveLinesPerFile"
|
|
@@ -7603,19 +7844,16 @@ type Category =
|
|
|
7603
7844
|
| "lint/nursery/noForIn"
|
|
7604
7845
|
| "lint/nursery/noHexColors"
|
|
7605
7846
|
| "lint/nursery/noImplicitCoercion"
|
|
7606
|
-
| "lint/nursery/noImportCycles"
|
|
7607
7847
|
| "lint/nursery/noIncrementDecrement"
|
|
7608
|
-
| "lint/nursery/noJsxLiterals"
|
|
7609
7848
|
| "lint/nursery/noJsxPropsBind"
|
|
7610
7849
|
| "lint/nursery/noLeakedRender"
|
|
7611
7850
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
7612
7851
|
| "lint/nursery/noMisusedPromises"
|
|
7613
7852
|
| "lint/nursery/noMultiAssign"
|
|
7614
7853
|
| "lint/nursery/noMultiStr"
|
|
7615
|
-
| "lint/nursery/
|
|
7854
|
+
| "lint/nursery/noNestedPromises"
|
|
7616
7855
|
| "lint/nursery/noParametersOnlyUsedInRecursion"
|
|
7617
7856
|
| "lint/nursery/noProto"
|
|
7618
|
-
| "lint/nursery/noReactForwardRef"
|
|
7619
7857
|
| "lint/nursery/noRedundantDefaultExport"
|
|
7620
7858
|
| "lint/nursery/noReturnAssign"
|
|
7621
7859
|
| "lint/nursery/noRootType"
|
|
@@ -7626,29 +7864,19 @@ type Category =
|
|
|
7626
7864
|
| "lint/nursery/noUndeclaredEnvVars"
|
|
7627
7865
|
| "lint/nursery/noUnknownAttribute"
|
|
7628
7866
|
| "lint/nursery/noUnnecessaryConditions"
|
|
7629
|
-
| "lint/nursery/noUnresolvedImports"
|
|
7630
|
-
| "lint/nursery/noUnusedExpressions"
|
|
7631
7867
|
| "lint/nursery/noUnwantedPolyfillio"
|
|
7632
7868
|
| "lint/nursery/noUselessBackrefInRegex"
|
|
7633
|
-
| "lint/nursery/
|
|
7634
|
-
| "lint/nursery/noUselessUndefined"
|
|
7869
|
+
| "lint/nursery/noUselessReturn"
|
|
7635
7870
|
| "lint/nursery/noVueArrowFuncInWatch"
|
|
7636
|
-
| "lint/nursery/noVueDataObjectDeclaration"
|
|
7637
|
-
| "lint/nursery/noVueDuplicateKeys"
|
|
7638
7871
|
| "lint/nursery/noVueOptionsApi"
|
|
7639
|
-
| "lint/nursery/noVueReservedKeys"
|
|
7640
|
-
| "lint/nursery/noVueReservedProps"
|
|
7641
|
-
| "lint/nursery/noVueSetupPropsReactivityLoss"
|
|
7642
7872
|
| "lint/nursery/noVueVIfWithVFor"
|
|
7643
7873
|
| "lint/nursery/useArraySortCompare"
|
|
7644
7874
|
| "lint/nursery/useAwaitThenable"
|
|
7645
7875
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
7646
|
-
| "lint/nursery/useConsistentArrowReturn"
|
|
7647
7876
|
| "lint/nursery/useConsistentEnumValueType"
|
|
7648
7877
|
| "lint/nursery/useConsistentGraphqlDescriptions"
|
|
7649
7878
|
| "lint/nursery/useConsistentMethodSignatures"
|
|
7650
7879
|
| "lint/nursery/useConsistentObjectDefinition"
|
|
7651
|
-
| "lint/nursery/useDeprecatedDate"
|
|
7652
7880
|
| "lint/nursery/useDestructuring"
|
|
7653
7881
|
| "lint/nursery/useErrorCause"
|
|
7654
7882
|
| "lint/nursery/useExhaustiveSwitchCases"
|
|
@@ -7662,13 +7890,15 @@ type Category =
|
|
|
7662
7890
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
7663
7891
|
| "lint/nursery/useLoneAnonymousOperation"
|
|
7664
7892
|
| "lint/nursery/useLoneExecutableDefinition"
|
|
7665
|
-
| "lint/nursery/useMaxParams"
|
|
7666
|
-
| "lint/nursery/useQwikMethodUsage"
|
|
7667
|
-
| "lint/nursery/useQwikValidLexicalScope"
|
|
7668
7893
|
| "lint/nursery/useRegexpExec"
|
|
7669
7894
|
| "lint/nursery/useRequiredScripts"
|
|
7670
7895
|
| "lint/nursery/useSortedClasses"
|
|
7671
7896
|
| "lint/nursery/useSpread"
|
|
7897
|
+
| "lint/nursery/useUniqueArgumentNames"
|
|
7898
|
+
| "lint/nursery/useUniqueFieldDefinitionNames"
|
|
7899
|
+
| "lint/nursery/useUniqueGraphqlOperationName"
|
|
7900
|
+
| "lint/nursery/useUniqueInputFieldNames"
|
|
7901
|
+
| "lint/nursery/useUniqueVariableNames"
|
|
7672
7902
|
| "lint/nursery/useVueConsistentDefinePropsDeclaration"
|
|
7673
7903
|
| "lint/nursery/useVueConsistentVBindStyle"
|
|
7674
7904
|
| "lint/nursery/useVueConsistentVOnStyle"
|
|
@@ -7716,6 +7946,7 @@ type Category =
|
|
|
7716
7946
|
| "lint/style/noHeadElement"
|
|
7717
7947
|
| "lint/style/noImplicitBoolean"
|
|
7718
7948
|
| "lint/style/noInferrableTypes"
|
|
7949
|
+
| "lint/style/noJsxLiterals"
|
|
7719
7950
|
| "lint/style/noMagicNumbers"
|
|
7720
7951
|
| "lint/style/noNamespace"
|
|
7721
7952
|
| "lint/style/noNegationElse"
|
|
@@ -7741,6 +7972,7 @@ type Category =
|
|
|
7741
7972
|
| "lint/style/useCollapsedIf"
|
|
7742
7973
|
| "lint/style/useComponentExportOnlyModules"
|
|
7743
7974
|
| "lint/style/useConsistentArrayType"
|
|
7975
|
+
| "lint/style/useConsistentArrowReturn"
|
|
7744
7976
|
| "lint/style/useConsistentBuiltinInstantiation"
|
|
7745
7977
|
| "lint/style/useConsistentCurlyBraces"
|
|
7746
7978
|
| "lint/style/useConsistentMemberAccessibility"
|
|
@@ -7799,6 +8031,7 @@ type Category =
|
|
|
7799
8031
|
| "lint/suspicious/noConstantBinaryExpressions"
|
|
7800
8032
|
| "lint/suspicious/noControlCharactersInRegex"
|
|
7801
8033
|
| "lint/suspicious/noDebugger"
|
|
8034
|
+
| "lint/suspicious/noDeprecatedImports"
|
|
7802
8035
|
| "lint/suspicious/noDocumentCookie"
|
|
7803
8036
|
| "lint/suspicious/noDocumentImportInPage"
|
|
7804
8037
|
| "lint/suspicious/noDoubleEquals"
|
|
@@ -7806,6 +8039,7 @@ type Category =
|
|
|
7806
8039
|
| "lint/suspicious/noDuplicateCase"
|
|
7807
8040
|
| "lint/suspicious/noDuplicateClassMembers"
|
|
7808
8041
|
| "lint/suspicious/noDuplicateCustomProperties"
|
|
8042
|
+
| "lint/suspicious/noDuplicateDependencies"
|
|
7809
8043
|
| "lint/suspicious/noDuplicateElseIf"
|
|
7810
8044
|
| "lint/suspicious/noDuplicateFields"
|
|
7811
8045
|
| "lint/suspicious/noDuplicateFontNames"
|
|
@@ -7818,6 +8052,7 @@ type Category =
|
|
|
7818
8052
|
| "lint/suspicious/noEmptyBlock"
|
|
7819
8053
|
| "lint/suspicious/noEmptyBlockStatements"
|
|
7820
8054
|
| "lint/suspicious/noEmptyInterface"
|
|
8055
|
+
| "lint/suspicious/noEmptySource"
|
|
7821
8056
|
| "lint/suspicious/noEvolvingTypes"
|
|
7822
8057
|
| "lint/suspicious/noExplicitAny"
|
|
7823
8058
|
| "lint/suspicious/noExportsInTest"
|
|
@@ -7831,6 +8066,7 @@ type Category =
|
|
|
7831
8066
|
| "lint/suspicious/noHeadImportInDocument"
|
|
7832
8067
|
| "lint/suspicious/noImplicitAnyLet"
|
|
7833
8068
|
| "lint/suspicious/noImportAssign"
|
|
8069
|
+
| "lint/suspicious/noImportCycles"
|
|
7834
8070
|
| "lint/suspicious/noImportantInKeyframe"
|
|
7835
8071
|
| "lint/suspicious/noIrregularWhitespace"
|
|
7836
8072
|
| "lint/suspicious/noLabelVar"
|
|
@@ -7842,6 +8078,7 @@ type Category =
|
|
|
7842
8078
|
| "lint/suspicious/noOctalEscape"
|
|
7843
8079
|
| "lint/suspicious/noPrototypeBuiltins"
|
|
7844
8080
|
| "lint/suspicious/noQuickfixBiome"
|
|
8081
|
+
| "lint/suspicious/noReactForwardRef"
|
|
7845
8082
|
| "lint/suspicious/noReactSpecificProps"
|
|
7846
8083
|
| "lint/suspicious/noRedeclare"
|
|
7847
8084
|
| "lint/suspicious/noRedundantUseStrict"
|
|
@@ -7858,6 +8095,7 @@ type Category =
|
|
|
7858
8095
|
| "lint/suspicious/noUnknownAtRules"
|
|
7859
8096
|
| "lint/suspicious/noUnsafeDeclarationMerging"
|
|
7860
8097
|
| "lint/suspicious/noUnsafeNegation"
|
|
8098
|
+
| "lint/suspicious/noUnusedExpressions"
|
|
7861
8099
|
| "lint/suspicious/noUselessEscapeInString"
|
|
7862
8100
|
| "lint/suspicious/noUselessRegexBackrefs"
|
|
7863
8101
|
| "lint/suspicious/noVar"
|
|
@@ -7866,6 +8104,7 @@ type Category =
|
|
|
7866
8104
|
| "lint/suspicious/useAwait"
|
|
7867
8105
|
| "lint/suspicious/useBiomeIgnoreFolder"
|
|
7868
8106
|
| "lint/suspicious/useDefaultSwitchClauseLast"
|
|
8107
|
+
| "lint/suspicious/useDeprecatedDate"
|
|
7869
8108
|
| "lint/suspicious/useErrorMessage"
|
|
7870
8109
|
| "lint/suspicious/useGetterReturn"
|
|
7871
8110
|
| "lint/suspicious/useGoogleFontDisplay"
|
|
@@ -7876,6 +8115,8 @@ type Category =
|
|
|
7876
8115
|
| "lint/suspicious/useNumberToFixedDigitsArgument"
|
|
7877
8116
|
| "lint/suspicious/useStaticResponseMethods"
|
|
7878
8117
|
| "lint/suspicious/useStrictMode"
|
|
8118
|
+
| "assist/source/noDuplicateClasses"
|
|
8119
|
+
| "assist/source/useSortedInterfaceMembers"
|
|
7879
8120
|
| "assist/source/useSortedKeys"
|
|
7880
8121
|
| "assist/source/useSortedProperties"
|
|
7881
8122
|
| "assist/source/useSortedAttributes"
|
|
@@ -8038,7 +8279,8 @@ Target paths must be absolute.
|
|
|
8038
8279
|
targetPaths: BiomePath[];
|
|
8039
8280
|
};
|
|
8040
8281
|
}
|
|
8041
|
-
| "project"
|
|
8282
|
+
| "project"
|
|
8283
|
+
| "typeAware";
|
|
8042
8284
|
interface ScanProjectResult {
|
|
8043
8285
|
/**
|
|
8044
8286
|
* A list of child configuration files found inside the project
|
|
@@ -8060,6 +8302,7 @@ interface Duration {
|
|
|
8060
8302
|
interface OpenFileParams {
|
|
8061
8303
|
content: FileContent;
|
|
8062
8304
|
documentFileSource?: DocumentFileSource;
|
|
8305
|
+
inlineConfig?: Configuration;
|
|
8063
8306
|
path: BiomePath;
|
|
8064
8307
|
/**
|
|
8065
8308
|
* Set to `true` to persist the node cache used during parsing, in order to
|
|
@@ -8100,6 +8343,12 @@ interface JsonFileSource {
|
|
|
8100
8343
|
variant: JsonFileVariant;
|
|
8101
8344
|
}
|
|
8102
8345
|
interface CssFileSource {
|
|
8346
|
+
/**
|
|
8347
|
+
* Used to mark if the CSS is embedded inside some particular files. This affects the parsing.
|
|
8348
|
+
For example, if inside a styled`` literal, a top-level declaration is allowed.
|
|
8349
|
+
*/
|
|
8350
|
+
embeddingKind: EmbeddingKind2;
|
|
8351
|
+
language: CssFileLanguage;
|
|
8103
8352
|
variant: CssVariant;
|
|
8104
8353
|
}
|
|
8105
8354
|
interface GraphqlFileSource {
|
|
@@ -8112,7 +8361,6 @@ interface GritFileSource {
|
|
|
8112
8361
|
variant: GritVariant;
|
|
8113
8362
|
}
|
|
8114
8363
|
type EmbeddingKind =
|
|
8115
|
-
| "Svelte"
|
|
8116
8364
|
| "None"
|
|
8117
8365
|
| {
|
|
8118
8366
|
Astro: {
|
|
@@ -8124,17 +8372,31 @@ type EmbeddingKind =
|
|
|
8124
8372
|
}
|
|
8125
8373
|
| {
|
|
8126
8374
|
Vue: {
|
|
8375
|
+
/**
|
|
8376
|
+
* Where the bindings are defined
|
|
8377
|
+
*/
|
|
8378
|
+
is_source: boolean;
|
|
8127
8379
|
/**
|
|
8128
8380
|
* Whether the script is inside script tag with setup attribute
|
|
8129
8381
|
*/
|
|
8130
8382
|
setup: boolean;
|
|
8131
8383
|
};
|
|
8384
|
+
}
|
|
8385
|
+
| {
|
|
8386
|
+
Svelte: {
|
|
8387
|
+
/**
|
|
8388
|
+
* Where the bindings are defined
|
|
8389
|
+
*/
|
|
8390
|
+
is_source: boolean;
|
|
8391
|
+
};
|
|
8132
8392
|
};
|
|
8133
8393
|
type Language = "javaScript" | { typeScript: { definition_file: boolean } };
|
|
8134
8394
|
type ModuleKind = "script" | "module";
|
|
8135
8395
|
type LanguageVariant = "standard" | "standardRestricted" | "jsx";
|
|
8136
8396
|
type LanguageVersion = "eS2022" | "eSNext";
|
|
8137
8397
|
type JsonFileVariant = "standard" | "jsonc";
|
|
8398
|
+
type EmbeddingKind2 = "None" | "Styled" | { Html: EmbeddingHtmlKind };
|
|
8399
|
+
type CssFileLanguage = "css" | "scss";
|
|
8138
8400
|
type CssVariant = "standard" | "cssModules" | "tailwindCss";
|
|
8139
8401
|
type GraphqlVariant = "standard";
|
|
8140
8402
|
type HtmlVariant =
|
|
@@ -8143,12 +8405,14 @@ type HtmlVariant =
|
|
|
8143
8405
|
| "Vue"
|
|
8144
8406
|
| "Svelte";
|
|
8145
8407
|
type GritVariant = "Standard";
|
|
8408
|
+
type EmbeddingHtmlKind = "None" | "Html" | "Vue" | "Astro" | "Svelte";
|
|
8146
8409
|
type HtmlTextExpressions = "None" | "Single" | "Double";
|
|
8147
8410
|
interface OpenFileResult {
|
|
8148
8411
|
diagnostics: Diagnostic[];
|
|
8149
8412
|
}
|
|
8150
8413
|
interface ChangeFileParams {
|
|
8151
8414
|
content: string;
|
|
8415
|
+
inlineConfig?: Configuration;
|
|
8152
8416
|
path: BiomePath;
|
|
8153
8417
|
projectKey: ProjectKey;
|
|
8154
8418
|
version: number;
|
|
@@ -8182,6 +8446,7 @@ When this field is empty, Biome checks only `files.includes`.
|
|
|
8182
8446
|
type IgnoreKind = "path" | "ancestors";
|
|
8183
8447
|
interface UpdateModuleGraphParams {
|
|
8184
8448
|
path: BiomePath;
|
|
8449
|
+
projectKey: ProjectKey;
|
|
8185
8450
|
/**
|
|
8186
8451
|
* The kind of update to apply to the module graph
|
|
8187
8452
|
*/
|
|
@@ -8283,6 +8548,7 @@ interface PullDiagnosticsParams {
|
|
|
8283
8548
|
* Rules to apply on top of the configuration
|
|
8284
8549
|
*/
|
|
8285
8550
|
enabledRules?: AnalyzerSelector[];
|
|
8551
|
+
inlineConfig?: Configuration;
|
|
8286
8552
|
only?: AnalyzerSelector[];
|
|
8287
8553
|
path: BiomePath;
|
|
8288
8554
|
projectKey: ProjectKey;
|
|
@@ -8303,6 +8569,7 @@ interface PullDiagnosticsResult {
|
|
|
8303
8569
|
interface PullActionsParams {
|
|
8304
8570
|
categories?: RuleCategories;
|
|
8305
8571
|
enabledRules?: AnalyzerSelector[];
|
|
8572
|
+
inlineConfig?: Configuration;
|
|
8306
8573
|
only?: AnalyzerSelector[];
|
|
8307
8574
|
path: BiomePath;
|
|
8308
8575
|
projectKey: ProjectKey;
|
|
@@ -8350,6 +8617,7 @@ type Applicability = "always" | "maybeIncorrect";
|
|
|
8350
8617
|
interface PullDiagnosticsAndActionsParams {
|
|
8351
8618
|
categories?: RuleCategories;
|
|
8352
8619
|
enabledRules?: AnalyzerSelector[];
|
|
8620
|
+
inlineConfig?: Configuration;
|
|
8353
8621
|
only?: AnalyzerSelector[];
|
|
8354
8622
|
path: BiomePath;
|
|
8355
8623
|
projectKey: ProjectKey;
|
|
@@ -8359,6 +8627,7 @@ interface PullDiagnosticsAndActionsResult {
|
|
|
8359
8627
|
diagnostics: [Diagnostic, CodeAction[]][];
|
|
8360
8628
|
}
|
|
8361
8629
|
interface FormatFileParams {
|
|
8630
|
+
inlineConfig?: Configuration;
|
|
8362
8631
|
path: BiomePath;
|
|
8363
8632
|
projectKey: ProjectKey;
|
|
8364
8633
|
}
|
|
@@ -8379,11 +8648,13 @@ interface SourceMarker {
|
|
|
8379
8648
|
source: TextSize;
|
|
8380
8649
|
}
|
|
8381
8650
|
interface FormatRangeParams {
|
|
8651
|
+
inlineConfig?: Configuration;
|
|
8382
8652
|
path: BiomePath;
|
|
8383
8653
|
projectKey: ProjectKey;
|
|
8384
8654
|
range: TextRange;
|
|
8385
8655
|
}
|
|
8386
8656
|
interface FormatOnTypeParams {
|
|
8657
|
+
inlineConfig?: Configuration;
|
|
8387
8658
|
offset: TextSize;
|
|
8388
8659
|
path: BiomePath;
|
|
8389
8660
|
projectKey: ProjectKey;
|
|
@@ -8394,6 +8665,7 @@ interface FixFileParams {
|
|
|
8394
8665
|
*/
|
|
8395
8666
|
enabledRules?: AnalyzerSelector[];
|
|
8396
8667
|
fixFileMode: FixFileMode;
|
|
8668
|
+
inlineConfig?: Configuration;
|
|
8397
8669
|
only?: AnalyzerSelector[];
|
|
8398
8670
|
path: BiomePath;
|
|
8399
8671
|
projectKey: ProjectKey;
|
|
@@ -8451,7 +8723,7 @@ interface ParsePatternParams {
|
|
|
8451
8723
|
defaultLanguage: GritTargetLanguage;
|
|
8452
8724
|
pattern: string;
|
|
8453
8725
|
}
|
|
8454
|
-
type GritTargetLanguage = "CSS" | "JavaScript";
|
|
8726
|
+
type GritTargetLanguage = "CSS" | "JavaScript" | "JSON";
|
|
8455
8727
|
interface ParsePatternResult {
|
|
8456
8728
|
patternId: PatternId;
|
|
8457
8729
|
}
|