@biomejs/wasm-nodejs 2.3.10 → 2.3.12
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 +896 -414
- package/biome_wasm.js +156 -173
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function main(): void;
|
|
4
3
|
interface SupportsFeatureParams {
|
|
5
4
|
features: FeatureName;
|
|
6
5
|
path: BiomePath;
|
|
7
6
|
projectKey: ProjectKey;
|
|
7
|
+
skipIgnoreCheck?: boolean;
|
|
8
8
|
}
|
|
9
9
|
type FeatureName = FeatureKind[];
|
|
10
10
|
type BiomePath = string;
|
|
@@ -799,7 +799,7 @@ type VcsClientKind = "git";
|
|
|
799
799
|
interface Source {
|
|
800
800
|
/**
|
|
801
801
|
* Provides a code action to sort the imports and exports in the file using a built-in or custom order.
|
|
802
|
-
See
|
|
802
|
+
See https://biomejs.dev/assist/actions/organize-imports
|
|
803
803
|
*/
|
|
804
804
|
organizeImports?: OrganizeImportsConfiguration;
|
|
805
805
|
/**
|
|
@@ -808,17 +808,17 @@ See <https://biomejs.dev/assist/actions/organize-imports>
|
|
|
808
808
|
recommended?: boolean;
|
|
809
809
|
/**
|
|
810
810
|
* Enforce attribute sorting in JSX elements.
|
|
811
|
-
See
|
|
811
|
+
See https://biomejs.dev/assist/actions/use-sorted-attributes
|
|
812
812
|
*/
|
|
813
813
|
useSortedAttributes?: UseSortedAttributesConfiguration;
|
|
814
814
|
/**
|
|
815
815
|
* Sort the keys of a JSON object in natural order.
|
|
816
|
-
See
|
|
816
|
+
See https://biomejs.dev/assist/actions/use-sorted-keys
|
|
817
817
|
*/
|
|
818
818
|
useSortedKeys?: UseSortedKeysConfiguration;
|
|
819
819
|
/**
|
|
820
820
|
* Enforce ordering of CSS properties and nested rules.
|
|
821
|
-
See
|
|
821
|
+
See https://biomejs.dev/assist/actions/use-sorted-properties
|
|
822
822
|
*/
|
|
823
823
|
useSortedProperties?: UseSortedPropertiesConfiguration;
|
|
824
824
|
}
|
|
@@ -947,82 +947,82 @@ type GroupPlainConfiguration = "off" | "on" | "info" | "warn" | "error";
|
|
|
947
947
|
interface A11y {
|
|
948
948
|
/**
|
|
949
949
|
* Enforce that the accessKey attribute is not used on any HTML element.
|
|
950
|
-
See
|
|
950
|
+
See https://biomejs.dev/linter/rules/no-access-key
|
|
951
951
|
*/
|
|
952
952
|
noAccessKey?: NoAccessKeyConfiguration;
|
|
953
953
|
/**
|
|
954
954
|
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
955
|
-
See
|
|
955
|
+
See https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable
|
|
956
956
|
*/
|
|
957
957
|
noAriaHiddenOnFocusable?: NoAriaHiddenOnFocusableConfiguration;
|
|
958
958
|
/**
|
|
959
959
|
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
960
|
-
See
|
|
960
|
+
See https://biomejs.dev/linter/rules/no-aria-unsupported-elements
|
|
961
961
|
*/
|
|
962
962
|
noAriaUnsupportedElements?: NoAriaUnsupportedElementsConfiguration;
|
|
963
963
|
/**
|
|
964
964
|
* Enforce that autoFocus prop is not used on elements.
|
|
965
|
-
See
|
|
965
|
+
See https://biomejs.dev/linter/rules/no-autofocus
|
|
966
966
|
*/
|
|
967
967
|
noAutofocus?: NoAutofocusConfiguration;
|
|
968
968
|
/**
|
|
969
969
|
* Enforces that no distracting elements are used.
|
|
970
|
-
See
|
|
970
|
+
See https://biomejs.dev/linter/rules/no-distracting-elements
|
|
971
971
|
*/
|
|
972
972
|
noDistractingElements?: NoDistractingElementsConfiguration;
|
|
973
973
|
/**
|
|
974
974
|
* The scope prop should be used only on \<th> elements.
|
|
975
|
-
See
|
|
975
|
+
See https://biomejs.dev/linter/rules/no-header-scope
|
|
976
976
|
*/
|
|
977
977
|
noHeaderScope?: NoHeaderScopeConfiguration;
|
|
978
978
|
/**
|
|
979
979
|
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
980
|
-
See
|
|
980
|
+
See https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role
|
|
981
981
|
*/
|
|
982
982
|
noInteractiveElementToNoninteractiveRole?: NoInteractiveElementToNoninteractiveRoleConfiguration;
|
|
983
983
|
/**
|
|
984
984
|
* Enforce that a label element or component has a text label and an associated input.
|
|
985
|
-
See
|
|
985
|
+
See https://biomejs.dev/linter/rules/no-label-without-control
|
|
986
986
|
*/
|
|
987
987
|
noLabelWithoutControl?: NoLabelWithoutControlConfiguration;
|
|
988
988
|
/**
|
|
989
989
|
* Disallow use event handlers on non-interactive elements.
|
|
990
|
-
See
|
|
990
|
+
See https://biomejs.dev/linter/rules/no-noninteractive-element-interactions
|
|
991
991
|
*/
|
|
992
992
|
noNoninteractiveElementInteractions?: NoNoninteractiveElementInteractionsConfiguration;
|
|
993
993
|
/**
|
|
994
994
|
* Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
|
|
995
|
-
See
|
|
995
|
+
See https://biomejs.dev/linter/rules/no-noninteractive-element-to-interactive-role
|
|
996
996
|
*/
|
|
997
997
|
noNoninteractiveElementToInteractiveRole?: NoNoninteractiveElementToInteractiveRoleConfiguration;
|
|
998
998
|
/**
|
|
999
999
|
* Enforce that tabIndex is not assigned to non-interactive HTML elements.
|
|
1000
|
-
See
|
|
1000
|
+
See https://biomejs.dev/linter/rules/no-noninteractive-tabindex
|
|
1001
1001
|
*/
|
|
1002
1002
|
noNoninteractiveTabindex?: NoNoninteractiveTabindexConfiguration;
|
|
1003
1003
|
/**
|
|
1004
1004
|
* Prevent the usage of positive integers on tabIndex property.
|
|
1005
|
-
See
|
|
1005
|
+
See https://biomejs.dev/linter/rules/no-positive-tabindex
|
|
1006
1006
|
*/
|
|
1007
1007
|
noPositiveTabindex?: NoPositiveTabindexConfiguration;
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Enforce img alt prop does not contain the word "image", "picture", or "photo".
|
|
1010
|
-
See
|
|
1010
|
+
See https://biomejs.dev/linter/rules/no-redundant-alt
|
|
1011
1011
|
*/
|
|
1012
1012
|
noRedundantAlt?: NoRedundantAltConfiguration;
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Enforce explicit role property is not the same as implicit/default role property on an element.
|
|
1015
|
-
See
|
|
1015
|
+
See https://biomejs.dev/linter/rules/no-redundant-roles
|
|
1016
1016
|
*/
|
|
1017
1017
|
noRedundantRoles?: NoRedundantRolesConfiguration;
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
1020
|
-
See
|
|
1020
|
+
See https://biomejs.dev/linter/rules/no-static-element-interactions
|
|
1021
1021
|
*/
|
|
1022
1022
|
noStaticElementInteractions?: NoStaticElementInteractionsConfiguration;
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Enforces the usage of the title element for the svg element.
|
|
1025
|
-
See
|
|
1025
|
+
See https://biomejs.dev/linter/rules/no-svg-without-title
|
|
1026
1026
|
*/
|
|
1027
1027
|
noSvgWithoutTitle?: NoSvgWithoutTitleConfiguration;
|
|
1028
1028
|
/**
|
|
@@ -1031,269 +1031,269 @@ See <https://biomejs.dev/linter/rules/no-svg-without-title>
|
|
|
1031
1031
|
recommended?: boolean;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Enforce that all elements that require alternative text have meaningful information to relay back to the end user.
|
|
1034
|
-
See
|
|
1034
|
+
See https://biomejs.dev/linter/rules/use-alt-text
|
|
1035
1035
|
*/
|
|
1036
1036
|
useAltText?: UseAltTextConfiguration;
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Enforce that anchors have content and that the content is accessible to screen readers.
|
|
1039
|
-
See
|
|
1039
|
+
See https://biomejs.dev/linter/rules/use-anchor-content
|
|
1040
1040
|
*/
|
|
1041
1041
|
useAnchorContent?: UseAnchorContentConfiguration;
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
1044
|
-
See
|
|
1044
|
+
See https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex
|
|
1045
1045
|
*/
|
|
1046
1046
|
useAriaActivedescendantWithTabindex?: UseAriaActivedescendantWithTabindexConfiguration;
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
|
|
1049
|
-
See
|
|
1049
|
+
See https://biomejs.dev/linter/rules/use-aria-props-for-role
|
|
1050
1050
|
*/
|
|
1051
1051
|
useAriaPropsForRole?: UseAriaPropsForRoleConfiguration;
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1054
|
-
See
|
|
1054
|
+
See https://biomejs.dev/linter/rules/use-aria-props-supported-by-role
|
|
1055
1055
|
*/
|
|
1056
1056
|
useAriaPropsSupportedByRole?: UseAriaPropsSupportedByRoleConfiguration;
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Enforces the usage of the attribute type for the element button.
|
|
1059
|
-
See
|
|
1059
|
+
See https://biomejs.dev/linter/rules/use-button-type
|
|
1060
1060
|
*/
|
|
1061
1061
|
useButtonType?: UseButtonTypeConfiguration;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Elements with an interactive role and interaction handlers must be focusable.
|
|
1064
|
-
See
|
|
1064
|
+
See https://biomejs.dev/linter/rules/use-focusable-interactive
|
|
1065
1065
|
*/
|
|
1066
1066
|
useFocusableInteractive?: UseFocusableInteractiveConfiguration;
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Disallow a missing generic family keyword within font families.
|
|
1069
|
-
See
|
|
1069
|
+
See https://biomejs.dev/linter/rules/use-generic-font-names
|
|
1070
1070
|
*/
|
|
1071
1071
|
useGenericFontNames?: UseGenericFontNamesConfiguration;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop.
|
|
1074
|
-
See
|
|
1074
|
+
See https://biomejs.dev/linter/rules/use-heading-content
|
|
1075
1075
|
*/
|
|
1076
1076
|
useHeadingContent?: UseHeadingContentConfiguration;
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Enforce that html element has lang attribute.
|
|
1079
|
-
See
|
|
1079
|
+
See https://biomejs.dev/linter/rules/use-html-lang
|
|
1080
1080
|
*/
|
|
1081
1081
|
useHtmlLang?: UseHtmlLangConfiguration;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Enforces the usage of the attribute title for the element iframe.
|
|
1084
|
-
See
|
|
1084
|
+
See https://biomejs.dev/linter/rules/use-iframe-title
|
|
1085
1085
|
*/
|
|
1086
1086
|
useIframeTitle?: UseIframeTitleConfiguration;
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
|
|
1089
|
-
See
|
|
1089
|
+
See https://biomejs.dev/linter/rules/use-key-with-click-events
|
|
1090
1090
|
*/
|
|
1091
1091
|
useKeyWithClickEvents?: UseKeyWithClickEventsConfiguration;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
|
|
1094
|
-
See
|
|
1094
|
+
See https://biomejs.dev/linter/rules/use-key-with-mouse-events
|
|
1095
1095
|
*/
|
|
1096
1096
|
useKeyWithMouseEvents?: UseKeyWithMouseEventsConfiguration;
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Enforces that audio and video elements must have a track for captions.
|
|
1099
|
-
See
|
|
1099
|
+
See https://biomejs.dev/linter/rules/use-media-caption
|
|
1100
1100
|
*/
|
|
1101
1101
|
useMediaCaption?: UseMediaCaptionConfiguration;
|
|
1102
1102
|
/**
|
|
1103
1103
|
* It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
|
|
1104
|
-
See
|
|
1104
|
+
See https://biomejs.dev/linter/rules/use-semantic-elements
|
|
1105
1105
|
*/
|
|
1106
1106
|
useSemanticElements?: UseSemanticElementsConfiguration;
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Enforce that all anchors are valid, and they are navigable elements.
|
|
1109
|
-
See
|
|
1109
|
+
See https://biomejs.dev/linter/rules/use-valid-anchor
|
|
1110
1110
|
*/
|
|
1111
1111
|
useValidAnchor?: UseValidAnchorConfiguration;
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Ensures that ARIA properties aria-* are all valid.
|
|
1114
|
-
See
|
|
1114
|
+
See https://biomejs.dev/linter/rules/use-valid-aria-props
|
|
1115
1115
|
*/
|
|
1116
1116
|
useValidAriaProps?: UseValidAriaPropsConfiguration;
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
1119
|
-
See
|
|
1119
|
+
See https://biomejs.dev/linter/rules/use-valid-aria-role
|
|
1120
1120
|
*/
|
|
1121
1121
|
useValidAriaRole?: UseValidAriaRoleConfiguration;
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Enforce that ARIA state and property values are valid.
|
|
1124
|
-
See
|
|
1124
|
+
See https://biomejs.dev/linter/rules/use-valid-aria-values
|
|
1125
1125
|
*/
|
|
1126
1126
|
useValidAriaValues?: UseValidAriaValuesConfiguration;
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Use valid values for the autocomplete attribute on input elements.
|
|
1129
|
-
See
|
|
1129
|
+
See https://biomejs.dev/linter/rules/use-valid-autocomplete
|
|
1130
1130
|
*/
|
|
1131
1131
|
useValidAutocomplete?: UseValidAutocompleteConfiguration;
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
|
|
1134
|
-
See
|
|
1134
|
+
See https://biomejs.dev/linter/rules/use-valid-lang
|
|
1135
1135
|
*/
|
|
1136
1136
|
useValidLang?: UseValidLangConfiguration;
|
|
1137
1137
|
}
|
|
1138
1138
|
interface Complexity {
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Disallow unclear usage of consecutive space characters in regular expression literals.
|
|
1141
|
-
See
|
|
1141
|
+
See https://biomejs.dev/linter/rules/no-adjacent-spaces-in-regex
|
|
1142
1142
|
*/
|
|
1143
1143
|
noAdjacentSpacesInRegex?: NoAdjacentSpacesInRegexConfiguration;
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Disallow the use of arguments.
|
|
1146
|
-
See
|
|
1146
|
+
See https://biomejs.dev/linter/rules/no-arguments
|
|
1147
1147
|
*/
|
|
1148
1148
|
noArguments?: NoArgumentsConfiguration;
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Disallow primitive type aliases and misleading types.
|
|
1151
|
-
See
|
|
1151
|
+
See https://biomejs.dev/linter/rules/no-banned-types
|
|
1152
1152
|
*/
|
|
1153
1153
|
noBannedTypes?: NoBannedTypesConfiguration;
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Disallow comma operator.
|
|
1156
|
-
See
|
|
1156
|
+
See https://biomejs.dev/linter/rules/no-comma-operator
|
|
1157
1157
|
*/
|
|
1158
1158
|
noCommaOperator?: NoCommaOperatorConfiguration;
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Disallow empty type parameters in type aliases and interfaces.
|
|
1161
|
-
See
|
|
1161
|
+
See https://biomejs.dev/linter/rules/no-empty-type-parameters
|
|
1162
1162
|
*/
|
|
1163
1163
|
noEmptyTypeParameters?: NoEmptyTypeParametersConfiguration;
|
|
1164
1164
|
/**
|
|
1165
1165
|
* Disallow functions that exceed a given Cognitive Complexity score.
|
|
1166
|
-
See
|
|
1166
|
+
See https://biomejs.dev/linter/rules/no-excessive-cognitive-complexity
|
|
1167
1167
|
*/
|
|
1168
1168
|
noExcessiveCognitiveComplexity?: NoExcessiveCognitiveComplexityConfiguration;
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Restrict the number of lines of code in a function.
|
|
1171
|
-
See
|
|
1171
|
+
See https://biomejs.dev/linter/rules/no-excessive-lines-per-function
|
|
1172
1172
|
*/
|
|
1173
1173
|
noExcessiveLinesPerFunction?: NoExcessiveLinesPerFunctionConfiguration;
|
|
1174
1174
|
/**
|
|
1175
1175
|
* This rule enforces a maximum depth to nested describe() in test files.
|
|
1176
|
-
See
|
|
1176
|
+
See https://biomejs.dev/linter/rules/no-excessive-nested-test-suites
|
|
1177
1177
|
*/
|
|
1178
1178
|
noExcessiveNestedTestSuites?: NoExcessiveNestedTestSuitesConfiguration;
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Disallow unnecessary boolean casts.
|
|
1181
|
-
See
|
|
1181
|
+
See https://biomejs.dev/linter/rules/no-extra-boolean-cast
|
|
1182
1182
|
*/
|
|
1183
1183
|
noExtraBooleanCast?: NoExtraBooleanCastConfiguration;
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Disallow to use unnecessary callback on flatMap.
|
|
1186
|
-
See
|
|
1186
|
+
See https://biomejs.dev/linter/rules/no-flat-map-identity
|
|
1187
1187
|
*/
|
|
1188
1188
|
noFlatMapIdentity?: NoFlatMapIdentityConfiguration;
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Prefer for...of statement instead of Array.forEach.
|
|
1191
|
-
See
|
|
1191
|
+
See https://biomejs.dev/linter/rules/no-for-each
|
|
1192
1192
|
*/
|
|
1193
1193
|
noForEach?: NoForEachConfiguration;
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Disallow shorthand type conversions.
|
|
1196
|
-
See
|
|
1196
|
+
See https://biomejs.dev/linter/rules/no-implicit-coercions
|
|
1197
1197
|
*/
|
|
1198
1198
|
noImplicitCoercions?: NoImplicitCoercionsConfiguration;
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Disallow the use of the !important style.
|
|
1201
|
-
See
|
|
1201
|
+
See https://biomejs.dev/linter/rules/no-important-styles
|
|
1202
1202
|
*/
|
|
1203
1203
|
noImportantStyles?: NoImportantStylesConfiguration;
|
|
1204
1204
|
/**
|
|
1205
1205
|
* This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
|
|
1206
|
-
See
|
|
1206
|
+
See https://biomejs.dev/linter/rules/no-static-only-class
|
|
1207
1207
|
*/
|
|
1208
1208
|
noStaticOnlyClass?: NoStaticOnlyClassConfiguration;
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Disallow this and super in static contexts.
|
|
1211
|
-
See
|
|
1211
|
+
See https://biomejs.dev/linter/rules/no-this-in-static
|
|
1212
1212
|
*/
|
|
1213
1213
|
noThisInStatic?: NoThisInStaticConfiguration;
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Disallow unnecessary catch clauses.
|
|
1216
|
-
See
|
|
1216
|
+
See https://biomejs.dev/linter/rules/no-useless-catch
|
|
1217
1217
|
*/
|
|
1218
1218
|
noUselessCatch?: NoUselessCatchConfiguration;
|
|
1219
1219
|
/**
|
|
1220
1220
|
* Disallow unnecessary constructors.
|
|
1221
|
-
See
|
|
1221
|
+
See https://biomejs.dev/linter/rules/no-useless-constructor
|
|
1222
1222
|
*/
|
|
1223
1223
|
noUselessConstructor?: NoUselessConstructorConfiguration;
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Avoid using unnecessary continue.
|
|
1226
|
-
See
|
|
1226
|
+
See https://biomejs.dev/linter/rules/no-useless-continue
|
|
1227
1227
|
*/
|
|
1228
1228
|
noUselessContinue?: NoUselessContinueConfiguration;
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Disallow empty exports that don't change anything in a module file.
|
|
1231
|
-
See
|
|
1231
|
+
See https://biomejs.dev/linter/rules/no-useless-empty-export
|
|
1232
1232
|
*/
|
|
1233
1233
|
noUselessEmptyExport?: NoUselessEmptyExportConfiguration;
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Disallow unnecessary escape sequence in regular expression literals.
|
|
1236
|
-
See
|
|
1236
|
+
See https://biomejs.dev/linter/rules/no-useless-escape-in-regex
|
|
1237
1237
|
*/
|
|
1238
1238
|
noUselessEscapeInRegex?: NoUselessEscapeInRegexConfiguration;
|
|
1239
1239
|
/**
|
|
1240
1240
|
* Disallow unnecessary fragments.
|
|
1241
|
-
See
|
|
1241
|
+
See https://biomejs.dev/linter/rules/no-useless-fragments
|
|
1242
1242
|
*/
|
|
1243
1243
|
noUselessFragments?: NoUselessFragmentsConfiguration;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Disallow unnecessary labels.
|
|
1246
|
-
See
|
|
1246
|
+
See https://biomejs.dev/linter/rules/no-useless-label
|
|
1247
1247
|
*/
|
|
1248
1248
|
noUselessLabel?: NoUselessLabelConfiguration;
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Disallow unnecessary nested block statements.
|
|
1251
|
-
See
|
|
1251
|
+
See https://biomejs.dev/linter/rules/no-useless-lone-block-statements
|
|
1252
1252
|
*/
|
|
1253
1253
|
noUselessLoneBlockStatements?: NoUselessLoneBlockStatementsConfiguration;
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
1256
|
-
See
|
|
1256
|
+
See https://biomejs.dev/linter/rules/no-useless-rename
|
|
1257
1257
|
*/
|
|
1258
1258
|
noUselessRename?: NoUselessRenameConfiguration;
|
|
1259
1259
|
/**
|
|
1260
1260
|
* Disallow unnecessary concatenation of string or template literals.
|
|
1261
|
-
See
|
|
1261
|
+
See https://biomejs.dev/linter/rules/no-useless-string-concat
|
|
1262
1262
|
*/
|
|
1263
1263
|
noUselessStringConcat?: NoUselessStringConcatConfiguration;
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
1266
|
-
See
|
|
1266
|
+
See https://biomejs.dev/linter/rules/no-useless-string-raw
|
|
1267
1267
|
*/
|
|
1268
1268
|
noUselessStringRaw?: NoUselessStringRawConfiguration;
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Disallow useless case in switch statements.
|
|
1271
|
-
See
|
|
1271
|
+
See https://biomejs.dev/linter/rules/no-useless-switch-case
|
|
1272
1272
|
*/
|
|
1273
1273
|
noUselessSwitchCase?: NoUselessSwitchCaseConfiguration;
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Disallow ternary operators when simpler alternatives exist.
|
|
1276
|
-
See
|
|
1276
|
+
See https://biomejs.dev/linter/rules/no-useless-ternary
|
|
1277
1277
|
*/
|
|
1278
1278
|
noUselessTernary?: NoUselessTernaryConfiguration;
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Disallow useless this aliasing.
|
|
1281
|
-
See
|
|
1281
|
+
See https://biomejs.dev/linter/rules/no-useless-this-alias
|
|
1282
1282
|
*/
|
|
1283
1283
|
noUselessThisAlias?: NoUselessThisAliasConfiguration;
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Disallow using any or unknown as type constraint.
|
|
1286
|
-
See
|
|
1286
|
+
See https://biomejs.dev/linter/rules/no-useless-type-constraint
|
|
1287
1287
|
*/
|
|
1288
1288
|
noUselessTypeConstraint?: NoUselessTypeConstraintConfiguration;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Disallow initializing variables to undefined.
|
|
1291
|
-
See
|
|
1291
|
+
See https://biomejs.dev/linter/rules/no-useless-undefined-initialization
|
|
1292
1292
|
*/
|
|
1293
1293
|
noUselessUndefinedInitialization?: NoUselessUndefinedInitializationConfiguration;
|
|
1294
1294
|
/**
|
|
1295
1295
|
* Disallow the use of void operators, which is not a familiar operator.
|
|
1296
|
-
See
|
|
1296
|
+
See https://biomejs.dev/linter/rules/no-void
|
|
1297
1297
|
*/
|
|
1298
1298
|
noVoid?: NoVoidConfiguration;
|
|
1299
1299
|
/**
|
|
@@ -1302,324 +1302,324 @@ See <https://biomejs.dev/linter/rules/no-void>
|
|
|
1302
1302
|
recommended?: boolean;
|
|
1303
1303
|
/**
|
|
1304
1304
|
* Use arrow functions over function expressions.
|
|
1305
|
-
See
|
|
1305
|
+
See https://biomejs.dev/linter/rules/use-arrow-function
|
|
1306
1306
|
*/
|
|
1307
1307
|
useArrowFunction?: UseArrowFunctionConfiguration;
|
|
1308
1308
|
/**
|
|
1309
1309
|
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
1310
|
-
See
|
|
1310
|
+
See https://biomejs.dev/linter/rules/use-date-now
|
|
1311
1311
|
*/
|
|
1312
1312
|
useDateNow?: UseDateNowConfiguration;
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Promotes the use of .flatMap() when map().flat() are used together.
|
|
1315
|
-
See
|
|
1315
|
+
See https://biomejs.dev/linter/rules/use-flat-map
|
|
1316
1316
|
*/
|
|
1317
1317
|
useFlatMap?: UseFlatMapConfiguration;
|
|
1318
1318
|
/**
|
|
1319
1319
|
* Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.
|
|
1320
|
-
See
|
|
1320
|
+
See https://biomejs.dev/linter/rules/use-index-of
|
|
1321
1321
|
*/
|
|
1322
1322
|
useIndexOf?: UseIndexOfConfiguration;
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Enforce the usage of a literal access to properties over computed property access.
|
|
1325
|
-
See
|
|
1325
|
+
See https://biomejs.dev/linter/rules/use-literal-keys
|
|
1326
1326
|
*/
|
|
1327
1327
|
useLiteralKeys?: UseLiteralKeysConfiguration;
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals.
|
|
1330
|
-
See
|
|
1330
|
+
See https://biomejs.dev/linter/rules/use-numeric-literals
|
|
1331
1331
|
*/
|
|
1332
1332
|
useNumericLiterals?: UseNumericLiteralsConfiguration;
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Enforce using concise optional chain instead of chained logical expressions.
|
|
1335
|
-
See
|
|
1335
|
+
See https://biomejs.dev/linter/rules/use-optional-chain
|
|
1336
1336
|
*/
|
|
1337
1337
|
useOptionalChain?: UseOptionalChainConfiguration;
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
|
|
1340
|
-
See
|
|
1340
|
+
See https://biomejs.dev/linter/rules/use-regex-literals
|
|
1341
1341
|
*/
|
|
1342
1342
|
useRegexLiterals?: UseRegexLiteralsConfiguration;
|
|
1343
1343
|
/**
|
|
1344
1344
|
* Disallow number literal object member names which are not base 10 or use underscore as separator.
|
|
1345
|
-
See
|
|
1345
|
+
See https://biomejs.dev/linter/rules/use-simple-number-keys
|
|
1346
1346
|
*/
|
|
1347
1347
|
useSimpleNumberKeys?: UseSimpleNumberKeysConfiguration;
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Discard redundant terms from logical expressions.
|
|
1350
|
-
See
|
|
1350
|
+
See https://biomejs.dev/linter/rules/use-simplified-logic-expression
|
|
1351
1351
|
*/
|
|
1352
1352
|
useSimplifiedLogicExpression?: UseSimplifiedLogicExpressionConfiguration;
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
|
|
1355
|
-
See
|
|
1355
|
+
See https://biomejs.dev/linter/rules/use-while
|
|
1356
1356
|
*/
|
|
1357
1357
|
useWhile?: UseWhileConfiguration;
|
|
1358
1358
|
}
|
|
1359
1359
|
interface Correctness {
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Prevent passing of children as props.
|
|
1362
|
-
See
|
|
1362
|
+
See https://biomejs.dev/linter/rules/no-children-prop
|
|
1363
1363
|
*/
|
|
1364
1364
|
noChildrenProp?: NoChildrenPropConfiguration;
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Prevents from having const variables being re-assigned.
|
|
1367
|
-
See
|
|
1367
|
+
See https://biomejs.dev/linter/rules/no-const-assign
|
|
1368
1368
|
*/
|
|
1369
1369
|
noConstAssign?: NoConstAssignConfiguration;
|
|
1370
1370
|
/**
|
|
1371
1371
|
* Disallow constant expressions in conditions.
|
|
1372
|
-
See
|
|
1372
|
+
See https://biomejs.dev/linter/rules/no-constant-condition
|
|
1373
1373
|
*/
|
|
1374
1374
|
noConstantCondition?: NoConstantConditionConfiguration;
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
|
|
1377
|
-
See
|
|
1377
|
+
See https://biomejs.dev/linter/rules/no-constant-math-min-max-clamp
|
|
1378
1378
|
*/
|
|
1379
1379
|
noConstantMathMinMaxClamp?: NoConstantMathMinMaxClampConfiguration;
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Disallow returning a value from a constructor.
|
|
1382
|
-
See
|
|
1382
|
+
See https://biomejs.dev/linter/rules/no-constructor-return
|
|
1383
1383
|
*/
|
|
1384
1384
|
noConstructorReturn?: NoConstructorReturnConfiguration;
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Disallow empty character classes in regular expression literals.
|
|
1387
|
-
See
|
|
1387
|
+
See https://biomejs.dev/linter/rules/no-empty-character-class-in-regex
|
|
1388
1388
|
*/
|
|
1389
1389
|
noEmptyCharacterClassInRegex?: NoEmptyCharacterClassInRegexConfiguration;
|
|
1390
1390
|
/**
|
|
1391
1391
|
* Disallows empty destructuring patterns.
|
|
1392
|
-
See
|
|
1392
|
+
See https://biomejs.dev/linter/rules/no-empty-pattern
|
|
1393
1393
|
*/
|
|
1394
1394
|
noEmptyPattern?: NoEmptyPatternConfiguration;
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Disallow the use of __dirname and __filename in the global scope.
|
|
1397
|
-
See
|
|
1397
|
+
See https://biomejs.dev/linter/rules/no-global-dirname-filename
|
|
1398
1398
|
*/
|
|
1399
1399
|
noGlobalDirnameFilename?: NoGlobalDirnameFilenameConfiguration;
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Disallow calling global object properties as functions.
|
|
1402
|
-
See
|
|
1402
|
+
See https://biomejs.dev/linter/rules/no-global-object-calls
|
|
1403
1403
|
*/
|
|
1404
1404
|
noGlobalObjectCalls?: NoGlobalObjectCallsConfiguration;
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Disallow function and var declarations that are accessible outside their block.
|
|
1407
|
-
See
|
|
1407
|
+
See https://biomejs.dev/linter/rules/no-inner-declarations
|
|
1408
1408
|
*/
|
|
1409
1409
|
noInnerDeclarations?: NoInnerDeclarationsConfiguration;
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Ensure that builtins are correctly instantiated.
|
|
1412
|
-
See
|
|
1412
|
+
See https://biomejs.dev/linter/rules/no-invalid-builtin-instantiation
|
|
1413
1413
|
*/
|
|
1414
1414
|
noInvalidBuiltinInstantiation?: NoInvalidBuiltinInstantiationConfiguration;
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
|
|
1417
|
-
See
|
|
1417
|
+
See https://biomejs.dev/linter/rules/no-invalid-constructor-super
|
|
1418
1418
|
*/
|
|
1419
1419
|
noInvalidConstructorSuper?: NoInvalidConstructorSuperConfiguration;
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Disallow non-standard direction values for linear gradient functions.
|
|
1422
|
-
See
|
|
1422
|
+
See https://biomejs.dev/linter/rules/no-invalid-direction-in-linear-gradient
|
|
1423
1423
|
*/
|
|
1424
1424
|
noInvalidDirectionInLinearGradient?: NoInvalidDirectionInLinearGradientConfiguration;
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Disallows invalid named grid areas in CSS Grid Layouts.
|
|
1427
|
-
See
|
|
1427
|
+
See https://biomejs.dev/linter/rules/no-invalid-grid-areas
|
|
1428
1428
|
*/
|
|
1429
1429
|
noInvalidGridAreas?: NoInvalidGridAreasConfiguration;
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Disallow the use of @import at-rules in invalid positions.
|
|
1432
|
-
See
|
|
1432
|
+
See https://biomejs.dev/linter/rules/no-invalid-position-at-import-rule
|
|
1433
1433
|
*/
|
|
1434
1434
|
noInvalidPositionAtImportRule?: NoInvalidPositionAtImportRuleConfiguration;
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Disallow the use of variables, function parameters, classes, and enums before their declaration.
|
|
1437
|
-
See
|
|
1437
|
+
See https://biomejs.dev/linter/rules/no-invalid-use-before-declaration
|
|
1438
1438
|
*/
|
|
1439
1439
|
noInvalidUseBeforeDeclaration?: NoInvalidUseBeforeDeclarationConfiguration;
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Disallow missing var function for css variables.
|
|
1442
|
-
See
|
|
1442
|
+
See https://biomejs.dev/linter/rules/no-missing-var-function
|
|
1443
1443
|
*/
|
|
1444
1444
|
noMissingVarFunction?: NoMissingVarFunctionConfiguration;
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Disallows defining React components inside other components.
|
|
1447
|
-
See
|
|
1447
|
+
See https://biomejs.dev/linter/rules/no-nested-component-definitions
|
|
1448
1448
|
*/
|
|
1449
1449
|
noNestedComponentDefinitions?: NoNestedComponentDefinitionsConfiguration;
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Forbid the use of Node.js builtin modules.
|
|
1452
|
-
See
|
|
1452
|
+
See https://biomejs.dev/linter/rules/no-nodejs-modules
|
|
1453
1453
|
*/
|
|
1454
1454
|
noNodejsModules?: NoNodejsModulesConfiguration;
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Disallow \8 and \9 escape sequences in string literals.
|
|
1457
|
-
See
|
|
1457
|
+
See https://biomejs.dev/linter/rules/no-nonoctal-decimal-escape
|
|
1458
1458
|
*/
|
|
1459
1459
|
noNonoctalDecimalEscape?: NoNonoctalDecimalEscapeConfiguration;
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Disallow literal numbers that lose precision.
|
|
1462
|
-
See
|
|
1462
|
+
See https://biomejs.dev/linter/rules/no-precision-loss
|
|
1463
1463
|
*/
|
|
1464
1464
|
noPrecisionLoss?: NoPrecisionLossConfiguration;
|
|
1465
1465
|
/**
|
|
1466
1466
|
* Restrict imports of private exports.
|
|
1467
|
-
See
|
|
1467
|
+
See https://biomejs.dev/linter/rules/no-private-imports
|
|
1468
1468
|
*/
|
|
1469
1469
|
noPrivateImports?: NoPrivateImportsConfiguration;
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Disallow the use of process global.
|
|
1472
|
-
See
|
|
1472
|
+
See https://biomejs.dev/linter/rules/no-process-global
|
|
1473
1473
|
*/
|
|
1474
1474
|
noProcessGlobal?: NoProcessGlobalConfiguration;
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Disallow useVisibleTask$() functions in Qwik components.
|
|
1477
|
-
See
|
|
1477
|
+
See https://biomejs.dev/linter/rules/no-qwik-use-visible-task
|
|
1478
1478
|
*/
|
|
1479
1479
|
noQwikUseVisibleTask?: NoQwikUseVisibleTaskConfiguration;
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Disallow assigning to React component props.
|
|
1482
|
-
See
|
|
1482
|
+
See https://biomejs.dev/linter/rules/no-react-prop-assignments
|
|
1483
1483
|
*/
|
|
1484
1484
|
noReactPropAssignments?: NoReactPropAssignmentsConfiguration;
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Prevent the usage of the return value of React.render.
|
|
1487
|
-
See
|
|
1487
|
+
See https://biomejs.dev/linter/rules/no-render-return-value
|
|
1488
1488
|
*/
|
|
1489
1489
|
noRenderReturnValue?: NoRenderReturnValueConfiguration;
|
|
1490
1490
|
/**
|
|
1491
1491
|
* Disallow the use of configured elements.
|
|
1492
|
-
See
|
|
1492
|
+
See https://biomejs.dev/linter/rules/no-restricted-elements
|
|
1493
1493
|
*/
|
|
1494
1494
|
noRestrictedElements?: NoRestrictedElementsConfiguration;
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Disallow assignments where both sides are exactly the same.
|
|
1497
|
-
See
|
|
1497
|
+
See https://biomejs.dev/linter/rules/no-self-assign
|
|
1498
1498
|
*/
|
|
1499
1499
|
noSelfAssign?: NoSelfAssignConfiguration;
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Disallow returning a value from a setter.
|
|
1502
|
-
See
|
|
1502
|
+
See https://biomejs.dev/linter/rules/no-setter-return
|
|
1503
1503
|
*/
|
|
1504
1504
|
noSetterReturn?: NoSetterReturnConfiguration;
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Disallow destructuring props inside JSX components in Solid projects.
|
|
1507
|
-
See
|
|
1507
|
+
See https://biomejs.dev/linter/rules/no-solid-destructured-props
|
|
1508
1508
|
*/
|
|
1509
1509
|
noSolidDestructuredProps?: NoSolidDestructuredPropsConfiguration;
|
|
1510
1510
|
/**
|
|
1511
1511
|
* Disallow comparison of expressions modifying the string case with non-compliant value.
|
|
1512
|
-
See
|
|
1512
|
+
See https://biomejs.dev/linter/rules/no-string-case-mismatch
|
|
1513
1513
|
*/
|
|
1514
1514
|
noStringCaseMismatch?: NoStringCaseMismatchConfiguration;
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Disallow lexical declarations in switch clauses.
|
|
1517
|
-
See
|
|
1517
|
+
See https://biomejs.dev/linter/rules/no-switch-declarations
|
|
1518
1518
|
*/
|
|
1519
1519
|
noSwitchDeclarations?: NoSwitchDeclarationsConfiguration;
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
1522
|
-
See
|
|
1522
|
+
See https://biomejs.dev/linter/rules/no-undeclared-dependencies
|
|
1523
1523
|
*/
|
|
1524
1524
|
noUndeclaredDependencies?: NoUndeclaredDependenciesConfiguration;
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Prevents the usage of variables that haven't been declared inside the document.
|
|
1527
|
-
See
|
|
1527
|
+
See https://biomejs.dev/linter/rules/no-undeclared-variables
|
|
1528
1528
|
*/
|
|
1529
1529
|
noUndeclaredVariables?: NoUndeclaredVariablesConfiguration;
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Disallow unknown CSS value functions.
|
|
1532
|
-
See
|
|
1532
|
+
See https://biomejs.dev/linter/rules/no-unknown-function
|
|
1533
1533
|
*/
|
|
1534
1534
|
noUnknownFunction?: NoUnknownFunctionConfiguration;
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Disallow unknown media feature names.
|
|
1537
|
-
See
|
|
1537
|
+
See https://biomejs.dev/linter/rules/no-unknown-media-feature-name
|
|
1538
1538
|
*/
|
|
1539
1539
|
noUnknownMediaFeatureName?: NoUnknownMediaFeatureNameConfiguration;
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Disallow unknown properties.
|
|
1542
|
-
See
|
|
1542
|
+
See https://biomejs.dev/linter/rules/no-unknown-property
|
|
1543
1543
|
*/
|
|
1544
1544
|
noUnknownProperty?: NoUnknownPropertyConfiguration;
|
|
1545
1545
|
/**
|
|
1546
1546
|
* Disallow unknown pseudo-class selectors.
|
|
1547
|
-
See
|
|
1547
|
+
See https://biomejs.dev/linter/rules/no-unknown-pseudo-class
|
|
1548
1548
|
*/
|
|
1549
1549
|
noUnknownPseudoClass?: NoUnknownPseudoClassConfiguration;
|
|
1550
1550
|
/**
|
|
1551
1551
|
* Disallow unknown pseudo-element selectors.
|
|
1552
|
-
See
|
|
1552
|
+
See https://biomejs.dev/linter/rules/no-unknown-pseudo-element
|
|
1553
1553
|
*/
|
|
1554
1554
|
noUnknownPseudoElement?: NoUnknownPseudoElementConfiguration;
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Disallow unknown type selectors.
|
|
1557
|
-
See
|
|
1557
|
+
See https://biomejs.dev/linter/rules/no-unknown-type-selector
|
|
1558
1558
|
*/
|
|
1559
1559
|
noUnknownTypeSelector?: NoUnknownTypeSelectorConfiguration;
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Disallow unknown CSS units.
|
|
1562
|
-
See
|
|
1562
|
+
See https://biomejs.dev/linter/rules/no-unknown-unit
|
|
1563
1563
|
*/
|
|
1564
1564
|
noUnknownUnit?: NoUnknownUnitConfiguration;
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Disallow unmatchable An+B selectors.
|
|
1567
|
-
See
|
|
1567
|
+
See https://biomejs.dev/linter/rules/no-unmatchable-anb-selector
|
|
1568
1568
|
*/
|
|
1569
1569
|
noUnmatchableAnbSelector?: NoUnmatchableAnbSelectorConfiguration;
|
|
1570
1570
|
/**
|
|
1571
1571
|
* Disallow unreachable code.
|
|
1572
|
-
See
|
|
1572
|
+
See https://biomejs.dev/linter/rules/no-unreachable
|
|
1573
1573
|
*/
|
|
1574
1574
|
noUnreachable?: NoUnreachableConfiguration;
|
|
1575
1575
|
/**
|
|
1576
1576
|
* Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass.
|
|
1577
|
-
See
|
|
1577
|
+
See https://biomejs.dev/linter/rules/no-unreachable-super
|
|
1578
1578
|
*/
|
|
1579
1579
|
noUnreachableSuper?: NoUnreachableSuperConfiguration;
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Disallow control flow statements in finally blocks.
|
|
1582
|
-
See
|
|
1582
|
+
See https://biomejs.dev/linter/rules/no-unsafe-finally
|
|
1583
1583
|
*/
|
|
1584
1584
|
noUnsafeFinally?: NoUnsafeFinallyConfiguration;
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Disallow the use of optional chaining in contexts where the undefined value is not allowed.
|
|
1587
|
-
See
|
|
1587
|
+
See https://biomejs.dev/linter/rules/no-unsafe-optional-chaining
|
|
1588
1588
|
*/
|
|
1589
1589
|
noUnsafeOptionalChaining?: NoUnsafeOptionalChainingConfiguration;
|
|
1590
1590
|
/**
|
|
1591
1591
|
* Disallow unused function parameters.
|
|
1592
|
-
See
|
|
1592
|
+
See https://biomejs.dev/linter/rules/no-unused-function-parameters
|
|
1593
1593
|
*/
|
|
1594
1594
|
noUnusedFunctionParameters?: NoUnusedFunctionParametersConfiguration;
|
|
1595
1595
|
/**
|
|
1596
1596
|
* Disallow unused imports.
|
|
1597
|
-
See
|
|
1597
|
+
See https://biomejs.dev/linter/rules/no-unused-imports
|
|
1598
1598
|
*/
|
|
1599
1599
|
noUnusedImports?: NoUnusedImportsConfiguration;
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Disallow unused labels.
|
|
1602
|
-
See
|
|
1602
|
+
See https://biomejs.dev/linter/rules/no-unused-labels
|
|
1603
1603
|
*/
|
|
1604
1604
|
noUnusedLabels?: NoUnusedLabelsConfiguration;
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Disallow unused private class members.
|
|
1607
|
-
See
|
|
1607
|
+
See https://biomejs.dev/linter/rules/no-unused-private-class-members
|
|
1608
1608
|
*/
|
|
1609
1609
|
noUnusedPrivateClassMembers?: NoUnusedPrivateClassMembersConfiguration;
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Disallow unused variables.
|
|
1612
|
-
See
|
|
1612
|
+
See https://biomejs.dev/linter/rules/no-unused-variables
|
|
1613
1613
|
*/
|
|
1614
1614
|
noUnusedVariables?: NoUnusedVariablesConfiguration;
|
|
1615
1615
|
/**
|
|
1616
1616
|
* This rules prevents void elements (AKA self-closing elements) from having children.
|
|
1617
|
-
See
|
|
1617
|
+
See https://biomejs.dev/linter/rules/no-void-elements-with-children
|
|
1618
1618
|
*/
|
|
1619
1619
|
noVoidElementsWithChildren?: NoVoidElementsWithChildrenConfiguration;
|
|
1620
1620
|
/**
|
|
1621
1621
|
* Disallow returning a value from a function with the return type 'void'.
|
|
1622
|
-
See
|
|
1622
|
+
See https://biomejs.dev/linter/rules/no-void-type-return
|
|
1623
1623
|
*/
|
|
1624
1624
|
noVoidTypeReturn?: NoVoidTypeReturnConfiguration;
|
|
1625
1625
|
/**
|
|
@@ -1628,259 +1628,349 @@ See <https://biomejs.dev/linter/rules/no-void-type-return>
|
|
|
1628
1628
|
recommended?: boolean;
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Enforce correct dependency usage within React hooks.
|
|
1631
|
-
See
|
|
1631
|
+
See https://biomejs.dev/linter/rules/use-exhaustive-dependencies
|
|
1632
1632
|
*/
|
|
1633
1633
|
useExhaustiveDependencies?: UseExhaustiveDependenciesConfiguration;
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Enforce specifying the name of GraphQL operations.
|
|
1636
|
-
See
|
|
1636
|
+
See https://biomejs.dev/linter/rules/use-graphql-named-operations
|
|
1637
1637
|
*/
|
|
1638
1638
|
useGraphqlNamedOperations?: UseGraphqlNamedOperationsConfiguration;
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Enforce that all React hooks are being called from the Top Level component functions.
|
|
1641
|
-
See
|
|
1641
|
+
See https://biomejs.dev/linter/rules/use-hook-at-top-level
|
|
1642
1642
|
*/
|
|
1643
1643
|
useHookAtTopLevel?: UseHookAtTopLevelConfiguration;
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Enforces that \<img> elements have both width and height attributes.
|
|
1646
|
-
See
|
|
1646
|
+
See https://biomejs.dev/linter/rules/use-image-size
|
|
1647
1647
|
*/
|
|
1648
1648
|
useImageSize?: UseImageSizeConfiguration;
|
|
1649
1649
|
/**
|
|
1650
1650
|
* Enforce file extensions for relative imports.
|
|
1651
|
-
See
|
|
1651
|
+
See https://biomejs.dev/linter/rules/use-import-extensions
|
|
1652
1652
|
*/
|
|
1653
1653
|
useImportExtensions?: UseImportExtensionsConfiguration;
|
|
1654
1654
|
/**
|
|
1655
1655
|
* Require calls to isNaN() when checking for NaN.
|
|
1656
|
-
See
|
|
1656
|
+
See https://biomejs.dev/linter/rules/use-is-nan
|
|
1657
1657
|
*/
|
|
1658
1658
|
useIsNan?: UseIsNanConfiguration;
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Enforces the use of with { type: "json" } for JSON module imports.
|
|
1661
|
-
See
|
|
1661
|
+
See https://biomejs.dev/linter/rules/use-json-import-attributes
|
|
1662
1662
|
*/
|
|
1663
1663
|
useJsonImportAttributes?: UseJsonImportAttributesConfiguration;
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Disallow missing key props in iterators/collection literals.
|
|
1666
|
-
See
|
|
1666
|
+
See https://biomejs.dev/linter/rules/use-jsx-key-in-iterable
|
|
1667
1667
|
*/
|
|
1668
1668
|
useJsxKeyInIterable?: UseJsxKeyInIterableConfiguration;
|
|
1669
1669
|
/**
|
|
1670
1670
|
* Enforce the consistent use of the radix argument when using parseInt().
|
|
1671
|
-
See
|
|
1671
|
+
See https://biomejs.dev/linter/rules/use-parse-int-radix
|
|
1672
1672
|
*/
|
|
1673
1673
|
useParseIntRadix?: UseParseIntRadixConfiguration;
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Prefer using the class prop as a classlist over the classnames helper.
|
|
1676
|
-
See
|
|
1676
|
+
See https://biomejs.dev/linter/rules/use-qwik-classlist
|
|
1677
1677
|
*/
|
|
1678
1678
|
useQwikClasslist?: UseQwikClasslistConfiguration;
|
|
1679
1679
|
/**
|
|
1680
1680
|
* Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
|
|
1681
|
-
See
|
|
1681
|
+
See https://biomejs.dev/linter/rules/use-single-js-doc-asterisk
|
|
1682
1682
|
*/
|
|
1683
1683
|
useSingleJsDocAsterisk?: UseSingleJsDocAsteriskConfiguration;
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Prevent the usage of static string literal id attribute on elements.
|
|
1686
|
-
See
|
|
1686
|
+
See https://biomejs.dev/linter/rules/use-unique-element-ids
|
|
1687
1687
|
*/
|
|
1688
1688
|
useUniqueElementIds?: UseUniqueElementIdsConfiguration;
|
|
1689
1689
|
/**
|
|
1690
1690
|
* Enforce "for" loop update clause moving the counter in the right direction.
|
|
1691
|
-
See
|
|
1691
|
+
See https://biomejs.dev/linter/rules/use-valid-for-direction
|
|
1692
1692
|
*/
|
|
1693
1693
|
useValidForDirection?: UseValidForDirectionConfiguration;
|
|
1694
1694
|
/**
|
|
1695
1695
|
* This rule checks that the result of a typeof expression is compared to a valid value.
|
|
1696
|
-
See
|
|
1696
|
+
See https://biomejs.dev/linter/rules/use-valid-typeof
|
|
1697
1697
|
*/
|
|
1698
1698
|
useValidTypeof?: UseValidTypeofConfiguration;
|
|
1699
1699
|
/**
|
|
1700
1700
|
* Require generator functions to contain yield.
|
|
1701
|
-
See
|
|
1701
|
+
See https://biomejs.dev/linter/rules/use-yield
|
|
1702
1702
|
*/
|
|
1703
1703
|
useYield?: UseYieldConfiguration;
|
|
1704
1704
|
}
|
|
1705
1705
|
interface Nursery {
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Disallow ambiguous anchor descriptions.
|
|
1708
|
-
See
|
|
1708
|
+
See https://biomejs.dev/linter/rules/no-ambiguous-anchor-text
|
|
1709
1709
|
*/
|
|
1710
1710
|
noAmbiguousAnchorText?: NoAmbiguousAnchorTextConfiguration;
|
|
1711
1711
|
/**
|
|
1712
|
+
* Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.
|
|
1713
|
+
See https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document
|
|
1714
|
+
*/
|
|
1715
|
+
noBeforeInteractiveScriptOutsideDocument?: NoBeforeInteractiveScriptOutsideDocumentConfiguration;
|
|
1716
|
+
/**
|
|
1712
1717
|
* Disallow continue statements.
|
|
1713
|
-
See
|
|
1718
|
+
See https://biomejs.dev/linter/rules/no-continue
|
|
1714
1719
|
*/
|
|
1715
1720
|
noContinue?: NoContinueConfiguration;
|
|
1716
1721
|
/**
|
|
1717
1722
|
* Restrict imports of deprecated exports.
|
|
1718
|
-
See
|
|
1723
|
+
See https://biomejs.dev/linter/rules/no-deprecated-imports
|
|
1719
1724
|
*/
|
|
1720
1725
|
noDeprecatedImports?: NoDeprecatedImportsConfiguration;
|
|
1721
1726
|
/**
|
|
1727
|
+
* Disallow equal signs explicitly at the beginning of regular expressions.
|
|
1728
|
+
See https://biomejs.dev/linter/rules/no-div-regex
|
|
1729
|
+
*/
|
|
1730
|
+
noDivRegex?: NoDivRegexConfiguration;
|
|
1731
|
+
/**
|
|
1732
|
+
* Require all argument names for fields & directives to be unique.
|
|
1733
|
+
See https://biomejs.dev/linter/rules/no-duplicate-argument-names
|
|
1734
|
+
*/
|
|
1735
|
+
noDuplicateArgumentNames?: NoDuplicateArgumentNamesConfiguration;
|
|
1736
|
+
/**
|
|
1737
|
+
* Disallow duplication of attributes.
|
|
1738
|
+
See https://biomejs.dev/linter/rules/no-duplicate-attributes
|
|
1739
|
+
*/
|
|
1740
|
+
noDuplicateAttributes?: NoDuplicateAttributesConfiguration;
|
|
1741
|
+
/**
|
|
1722
1742
|
* Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
|
|
1723
|
-
See
|
|
1743
|
+
See https://biomejs.dev/linter/rules/no-duplicate-dependencies
|
|
1724
1744
|
*/
|
|
1725
1745
|
noDuplicateDependencies?: NoDuplicateDependenciesConfiguration;
|
|
1726
1746
|
/**
|
|
1747
|
+
* Require all enum value names to be unique.
|
|
1748
|
+
See https://biomejs.dev/linter/rules/no-duplicate-enum-value-names
|
|
1749
|
+
*/
|
|
1750
|
+
noDuplicateEnumValueNames?: NoDuplicateEnumValueNamesConfiguration;
|
|
1751
|
+
/**
|
|
1752
|
+
* Disallow duplicate enum member values.
|
|
1753
|
+
See https://biomejs.dev/linter/rules/no-duplicate-enum-values
|
|
1754
|
+
*/
|
|
1755
|
+
noDuplicateEnumValues?: NoDuplicateEnumValuesConfiguration;
|
|
1756
|
+
/**
|
|
1757
|
+
* Require all fields of a type to be unique.
|
|
1758
|
+
See https://biomejs.dev/linter/rules/no-duplicate-field-definition-names
|
|
1759
|
+
*/
|
|
1760
|
+
noDuplicateFieldDefinitionNames?: NoDuplicateFieldDefinitionNamesConfiguration;
|
|
1761
|
+
/**
|
|
1762
|
+
* Enforce unique operation names across a GraphQL document.
|
|
1763
|
+
See https://biomejs.dev/linter/rules/no-duplicate-graphql-operation-name
|
|
1764
|
+
*/
|
|
1765
|
+
noDuplicateGraphqlOperationName?: NoDuplicateGraphqlOperationNameConfiguration;
|
|
1766
|
+
/**
|
|
1767
|
+
* Require fields within an input object to be unique.
|
|
1768
|
+
See https://biomejs.dev/linter/rules/no-duplicate-input-field-names
|
|
1769
|
+
*/
|
|
1770
|
+
noDuplicateInputFieldNames?: NoDuplicateInputFieldNamesConfiguration;
|
|
1771
|
+
/**
|
|
1772
|
+
* Require all variable definitions to be unique.
|
|
1773
|
+
See https://biomejs.dev/linter/rules/no-duplicate-variable-names
|
|
1774
|
+
*/
|
|
1775
|
+
noDuplicateVariableNames?: NoDuplicateVariableNamesConfiguration;
|
|
1776
|
+
/**
|
|
1727
1777
|
* Disallow JSX prop spreading the same identifier multiple times.
|
|
1728
|
-
See
|
|
1778
|
+
See https://biomejs.dev/linter/rules/no-duplicated-spread-props
|
|
1729
1779
|
*/
|
|
1730
1780
|
noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration;
|
|
1731
1781
|
/**
|
|
1732
1782
|
* Disallow empty sources.
|
|
1733
|
-
See
|
|
1783
|
+
See https://biomejs.dev/linter/rules/no-empty-source
|
|
1734
1784
|
*/
|
|
1735
1785
|
noEmptySource?: NoEmptySourceConfiguration;
|
|
1736
1786
|
/**
|
|
1737
1787
|
* Require the use of === or !== for comparison with null.
|
|
1738
|
-
See
|
|
1788
|
+
See https://biomejs.dev/linter/rules/no-equals-to-null
|
|
1739
1789
|
*/
|
|
1740
1790
|
noEqualsToNull?: NoEqualsToNullConfiguration;
|
|
1741
1791
|
/**
|
|
1792
|
+
* Enforce a maximum number of classes per file.
|
|
1793
|
+
See https://biomejs.dev/linter/rules/no-excessive-classes-per-file
|
|
1794
|
+
*/
|
|
1795
|
+
noExcessiveClassesPerFile?: NoExcessiveClassesPerFileConfiguration;
|
|
1796
|
+
/**
|
|
1797
|
+
* Restrict the number of lines in a file.
|
|
1798
|
+
See https://biomejs.dev/linter/rules/no-excessive-lines-per-file
|
|
1799
|
+
*/
|
|
1800
|
+
noExcessiveLinesPerFile?: NoExcessiveLinesPerFileConfiguration;
|
|
1801
|
+
/**
|
|
1802
|
+
* Disallow new operators outside of assignments or comparisons.
|
|
1803
|
+
See https://biomejs.dev/linter/rules/no-floating-classes
|
|
1804
|
+
*/
|
|
1805
|
+
noFloatingClasses?: NoFloatingClassesConfiguration;
|
|
1806
|
+
/**
|
|
1742
1807
|
* Require Promise-like statements to be handled appropriately.
|
|
1743
|
-
See
|
|
1808
|
+
See https://biomejs.dev/linter/rules/no-floating-promises
|
|
1744
1809
|
*/
|
|
1745
1810
|
noFloatingPromises?: NoFloatingPromisesConfiguration;
|
|
1746
1811
|
/**
|
|
1747
1812
|
* Disallow iterating using a for-in loop.
|
|
1748
|
-
See
|
|
1813
|
+
See https://biomejs.dev/linter/rules/no-for-in
|
|
1749
1814
|
*/
|
|
1750
1815
|
noForIn?: NoForInConfiguration;
|
|
1751
1816
|
/**
|
|
1752
1817
|
* Prevent import cycles.
|
|
1753
|
-
See
|
|
1818
|
+
See https://biomejs.dev/linter/rules/no-import-cycles
|
|
1754
1819
|
*/
|
|
1755
1820
|
noImportCycles?: NoImportCyclesConfiguration;
|
|
1756
1821
|
/**
|
|
1757
1822
|
* Disallows the usage of the unary operators ++ and --.
|
|
1758
|
-
See
|
|
1823
|
+
See https://biomejs.dev/linter/rules/no-increment-decrement
|
|
1759
1824
|
*/
|
|
1760
1825
|
noIncrementDecrement?: NoIncrementDecrementConfiguration;
|
|
1761
1826
|
/**
|
|
1762
1827
|
* Disallow string literals inside JSX elements.
|
|
1763
|
-
See
|
|
1828
|
+
See https://biomejs.dev/linter/rules/no-jsx-literals
|
|
1764
1829
|
*/
|
|
1765
1830
|
noJsxLiterals?: NoJsxLiteralsConfiguration;
|
|
1766
1831
|
/**
|
|
1832
|
+
* Disallow .bind(), arrow functions, or function expressions in JSX props.
|
|
1833
|
+
See https://biomejs.dev/linter/rules/no-jsx-props-bind
|
|
1834
|
+
*/
|
|
1835
|
+
noJsxPropsBind?: NoJsxPropsBindConfiguration;
|
|
1836
|
+
/**
|
|
1767
1837
|
* Prevent problematic leaked values from being rendered.
|
|
1768
|
-
See
|
|
1838
|
+
See https://biomejs.dev/linter/rules/no-leaked-render
|
|
1769
1839
|
*/
|
|
1770
1840
|
noLeakedRender?: NoLeakedRenderConfiguration;
|
|
1771
1841
|
/**
|
|
1772
1842
|
* Disallow Promises to be used in places where they are almost certainly a mistake.
|
|
1773
|
-
See
|
|
1843
|
+
See https://biomejs.dev/linter/rules/no-misused-promises
|
|
1774
1844
|
*/
|
|
1775
1845
|
noMisusedPromises?: NoMisusedPromisesConfiguration;
|
|
1776
1846
|
/**
|
|
1847
|
+
* Disallow use of chained assignment expressions.
|
|
1848
|
+
See https://biomejs.dev/linter/rules/no-multi-assign
|
|
1849
|
+
*/
|
|
1850
|
+
noMultiAssign?: NoMultiAssignConfiguration;
|
|
1851
|
+
/**
|
|
1777
1852
|
* Disallow creating multiline strings by escaping newlines.
|
|
1778
|
-
See
|
|
1853
|
+
See https://biomejs.dev/linter/rules/no-multi-str
|
|
1779
1854
|
*/
|
|
1780
1855
|
noMultiStr?: NoMultiStrConfiguration;
|
|
1781
1856
|
/**
|
|
1782
1857
|
* Prevent client components from being async functions.
|
|
1783
|
-
See
|
|
1858
|
+
See https://biomejs.dev/linter/rules/no-next-async-client-component
|
|
1784
1859
|
*/
|
|
1785
1860
|
noNextAsyncClientComponent?: NoNextAsyncClientComponentConfiguration;
|
|
1786
1861
|
/**
|
|
1787
1862
|
* Disallow function parameters that are only used in recursive calls.
|
|
1788
|
-
See
|
|
1863
|
+
See https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion
|
|
1789
1864
|
*/
|
|
1790
1865
|
noParametersOnlyUsedInRecursion?: NoParametersOnlyUsedInRecursionConfiguration;
|
|
1791
1866
|
/**
|
|
1792
1867
|
* Disallow the use of the deprecated __proto__ object property.
|
|
1793
|
-
See
|
|
1868
|
+
See https://biomejs.dev/linter/rules/no-proto
|
|
1794
1869
|
*/
|
|
1795
1870
|
noProto?: NoProtoConfiguration;
|
|
1796
1871
|
/**
|
|
1797
1872
|
* Replaces usages of forwardRef with passing ref as a prop.
|
|
1798
|
-
See
|
|
1873
|
+
See https://biomejs.dev/linter/rules/no-react-forward-ref
|
|
1799
1874
|
*/
|
|
1800
1875
|
noReactForwardRef?: NoReactForwardRefConfiguration;
|
|
1801
1876
|
/**
|
|
1877
|
+
* Disallow assignments in return statements.
|
|
1878
|
+
See https://biomejs.dev/linter/rules/no-return-assign
|
|
1879
|
+
*/
|
|
1880
|
+
noReturnAssign?: NoReturnAssignConfiguration;
|
|
1881
|
+
/**
|
|
1882
|
+
* Disallow the usage of specified root types.
|
|
1883
|
+
See https://biomejs.dev/linter/rules/no-root-type
|
|
1884
|
+
*/
|
|
1885
|
+
noRootType?: NoRootTypeConfiguration;
|
|
1886
|
+
/**
|
|
1802
1887
|
* Disallow javascript: URLs in HTML.
|
|
1803
|
-
See
|
|
1888
|
+
See https://biomejs.dev/linter/rules/no-script-url
|
|
1804
1889
|
*/
|
|
1805
1890
|
noScriptUrl?: NoScriptUrlConfiguration;
|
|
1806
1891
|
/**
|
|
1807
1892
|
* Disallow variable declarations from shadowing variables declared in the outer scope.
|
|
1808
|
-
See
|
|
1893
|
+
See https://biomejs.dev/linter/rules/no-shadow
|
|
1809
1894
|
*/
|
|
1810
1895
|
noShadow?: NoShadowConfiguration;
|
|
1811
1896
|
/**
|
|
1812
1897
|
* Prevent the usage of synchronous scripts.
|
|
1813
|
-
See
|
|
1898
|
+
See https://biomejs.dev/linter/rules/no-sync-scripts
|
|
1814
1899
|
*/
|
|
1815
1900
|
noSyncScripts?: NoSyncScriptsConfiguration;
|
|
1816
1901
|
/**
|
|
1817
1902
|
* Disallow ternary operators.
|
|
1818
|
-
See
|
|
1903
|
+
See https://biomejs.dev/linter/rules/no-ternary
|
|
1819
1904
|
*/
|
|
1820
1905
|
noTernary?: NoTernaryConfiguration;
|
|
1821
1906
|
/**
|
|
1822
1907
|
* Disallow the use of undeclared environment variables.
|
|
1823
|
-
See
|
|
1908
|
+
See https://biomejs.dev/linter/rules/no-undeclared-env-vars
|
|
1824
1909
|
*/
|
|
1825
1910
|
noUndeclaredEnvVars?: NoUndeclaredEnvVarsConfiguration;
|
|
1826
1911
|
/**
|
|
1827
1912
|
* Disallow unknown DOM properties.
|
|
1828
|
-
See
|
|
1913
|
+
See https://biomejs.dev/linter/rules/no-unknown-attribute
|
|
1829
1914
|
*/
|
|
1830
1915
|
noUnknownAttribute?: NoUnknownAttributeConfiguration;
|
|
1831
1916
|
/**
|
|
1832
1917
|
* Disallow unnecessary type-based conditions that can be statically determined as redundant.
|
|
1833
|
-
See
|
|
1918
|
+
See https://biomejs.dev/linter/rules/no-unnecessary-conditions
|
|
1834
1919
|
*/
|
|
1835
1920
|
noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration;
|
|
1836
1921
|
/**
|
|
1837
1922
|
* Warn when importing non-existing exports.
|
|
1838
|
-
See
|
|
1923
|
+
See https://biomejs.dev/linter/rules/no-unresolved-imports
|
|
1839
1924
|
*/
|
|
1840
1925
|
noUnresolvedImports?: NoUnresolvedImportsConfiguration;
|
|
1841
1926
|
/**
|
|
1842
1927
|
* Disallow expression statements that are neither a function call nor an assignment.
|
|
1843
|
-
See
|
|
1928
|
+
See https://biomejs.dev/linter/rules/no-unused-expressions
|
|
1844
1929
|
*/
|
|
1845
1930
|
noUnusedExpressions?: NoUnusedExpressionsConfiguration;
|
|
1846
1931
|
/**
|
|
1847
1932
|
* Disallow unused catch bindings.
|
|
1848
|
-
See
|
|
1933
|
+
See https://biomejs.dev/linter/rules/no-useless-catch-binding
|
|
1849
1934
|
*/
|
|
1850
1935
|
noUselessCatchBinding?: NoUselessCatchBindingConfiguration;
|
|
1851
1936
|
/**
|
|
1852
1937
|
* Disallow the use of useless undefined.
|
|
1853
|
-
See
|
|
1938
|
+
See https://biomejs.dev/linter/rules/no-useless-undefined
|
|
1854
1939
|
*/
|
|
1855
1940
|
noUselessUndefined?: NoUselessUndefinedConfiguration;
|
|
1856
1941
|
/**
|
|
1857
1942
|
* Enforce that Vue component data options are declared as functions.
|
|
1858
|
-
See
|
|
1943
|
+
See https://biomejs.dev/linter/rules/no-vue-data-object-declaration
|
|
1859
1944
|
*/
|
|
1860
1945
|
noVueDataObjectDeclaration?: NoVueDataObjectDeclarationConfiguration;
|
|
1861
1946
|
/**
|
|
1862
1947
|
* Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
|
|
1863
|
-
See
|
|
1948
|
+
See https://biomejs.dev/linter/rules/no-vue-duplicate-keys
|
|
1864
1949
|
*/
|
|
1865
1950
|
noVueDuplicateKeys?: NoVueDuplicateKeysConfiguration;
|
|
1866
1951
|
/**
|
|
1952
|
+
* Disallow the use of Vue Options API.
|
|
1953
|
+
See https://biomejs.dev/linter/rules/no-vue-options-api
|
|
1954
|
+
*/
|
|
1955
|
+
noVueOptionsApi?: NoVueOptionsApiConfiguration;
|
|
1956
|
+
/**
|
|
1867
1957
|
* Disallow reserved keys in Vue component data and computed properties.
|
|
1868
|
-
See
|
|
1958
|
+
See https://biomejs.dev/linter/rules/no-vue-reserved-keys
|
|
1869
1959
|
*/
|
|
1870
1960
|
noVueReservedKeys?: NoVueReservedKeysConfiguration;
|
|
1871
1961
|
/**
|
|
1872
1962
|
* Disallow reserved names to be used as props.
|
|
1873
|
-
See
|
|
1963
|
+
See https://biomejs.dev/linter/rules/no-vue-reserved-props
|
|
1874
1964
|
*/
|
|
1875
1965
|
noVueReservedProps?: NoVueReservedPropsConfiguration;
|
|
1876
1966
|
/**
|
|
1877
1967
|
* Disallow destructuring of props passed to setup in Vue projects.
|
|
1878
|
-
See
|
|
1968
|
+
See https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss
|
|
1879
1969
|
*/
|
|
1880
1970
|
noVueSetupPropsReactivityLoss?: NoVueSetupPropsReactivityLossConfiguration;
|
|
1881
1971
|
/**
|
|
1882
1972
|
* Disallow using v-if and v-for directives on the same element.
|
|
1883
|
-
See
|
|
1973
|
+
See https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for
|
|
1884
1974
|
*/
|
|
1885
1975
|
noVueVIfWithVFor?: NoVueVIfWithVForConfiguration;
|
|
1886
1976
|
/**
|
|
@@ -1889,184 +1979,244 @@ See <https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for>
|
|
|
1889
1979
|
recommended?: boolean;
|
|
1890
1980
|
/**
|
|
1891
1981
|
* Require Array#sort and Array#toSorted calls to always provide a compareFunction.
|
|
1892
|
-
See
|
|
1982
|
+
See https://biomejs.dev/linter/rules/use-array-sort-compare
|
|
1893
1983
|
*/
|
|
1894
1984
|
useArraySortCompare?: UseArraySortCompareConfiguration;
|
|
1895
1985
|
/**
|
|
1896
1986
|
* Enforce that await is only used on Promise values.
|
|
1897
|
-
See
|
|
1987
|
+
See https://biomejs.dev/linter/rules/use-await-thenable
|
|
1898
1988
|
*/
|
|
1899
1989
|
useAwaitThenable?: UseAwaitThenableConfiguration;
|
|
1900
1990
|
/**
|
|
1901
1991
|
* Enforce consistent arrow function bodies.
|
|
1902
|
-
See
|
|
1992
|
+
See https://biomejs.dev/linter/rules/use-consistent-arrow-return
|
|
1903
1993
|
*/
|
|
1904
1994
|
useConsistentArrowReturn?: UseConsistentArrowReturnConfiguration;
|
|
1905
1995
|
/**
|
|
1906
1996
|
* Require all descriptions to follow the same style (either block or inline) to maintain consistency and improve readability across the schema.
|
|
1907
|
-
See
|
|
1997
|
+
See https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions
|
|
1908
1998
|
*/
|
|
1909
1999
|
useConsistentGraphqlDescriptions?: UseConsistentGraphqlDescriptionsConfiguration;
|
|
1910
2000
|
/**
|
|
1911
2001
|
* Require the @deprecated directive to specify a deletion date.
|
|
1912
|
-
See
|
|
2002
|
+
See https://biomejs.dev/linter/rules/use-deprecated-date
|
|
1913
2003
|
*/
|
|
1914
2004
|
useDeprecatedDate?: UseDeprecatedDateConfiguration;
|
|
1915
2005
|
/**
|
|
1916
2006
|
* Require destructuring from arrays and/or objects.
|
|
1917
|
-
See
|
|
2007
|
+
See https://biomejs.dev/linter/rules/use-destructuring
|
|
1918
2008
|
*/
|
|
1919
2009
|
useDestructuring?: UseDestructuringConfiguration;
|
|
1920
2010
|
/**
|
|
2011
|
+
* Enforce that new Error() is thrown with the original error as cause.
|
|
2012
|
+
See https://biomejs.dev/linter/rules/use-error-cause
|
|
2013
|
+
*/
|
|
2014
|
+
useErrorCause?: UseErrorCauseConfiguration;
|
|
2015
|
+
/**
|
|
1921
2016
|
* Require switch-case statements to be exhaustive.
|
|
1922
|
-
See
|
|
2017
|
+
See https://biomejs.dev/linter/rules/use-exhaustive-switch-cases
|
|
1923
2018
|
*/
|
|
1924
2019
|
useExhaustiveSwitchCases?: UseExhaustiveSwitchCasesConfiguration;
|
|
1925
2020
|
/**
|
|
1926
2021
|
* Enforce types in functions, methods, variables, and parameters.
|
|
1927
|
-
See
|
|
2022
|
+
See https://biomejs.dev/linter/rules/use-explicit-type
|
|
1928
2023
|
*/
|
|
1929
2024
|
useExplicitType?: UseExplicitTypeConfiguration;
|
|
1930
2025
|
/**
|
|
1931
2026
|
* Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.
|
|
1932
|
-
See
|
|
2027
|
+
See https://biomejs.dev/linter/rules/use-find
|
|
1933
2028
|
*/
|
|
1934
2029
|
useFind?: UseFindConfiguration;
|
|
1935
2030
|
/**
|
|
2031
|
+
* Enforce id attribute on next/script components with inline content or dangerouslySetInnerHTML.
|
|
2032
|
+
See https://biomejs.dev/linter/rules/use-inline-script-id
|
|
2033
|
+
*/
|
|
2034
|
+
useInlineScriptId?: UseInlineScriptIdConfiguration;
|
|
2035
|
+
/**
|
|
2036
|
+
* Disallow anonymous operations when more than one operation specified in document.
|
|
2037
|
+
See https://biomejs.dev/linter/rules/use-lone-anonymous-operation
|
|
2038
|
+
*/
|
|
2039
|
+
useLoneAnonymousOperation?: UseLoneAnonymousOperationConfiguration;
|
|
2040
|
+
/**
|
|
2041
|
+
* Require queries, mutations, subscriptions or fragments each to be located in separate files.
|
|
2042
|
+
See https://biomejs.dev/linter/rules/use-lone-executable-definition
|
|
2043
|
+
*/
|
|
2044
|
+
useLoneExecutableDefinition?: UseLoneExecutableDefinitionConfiguration;
|
|
2045
|
+
/**
|
|
1936
2046
|
* Enforce a maximum number of parameters in function definitions.
|
|
1937
|
-
See
|
|
2047
|
+
See https://biomejs.dev/linter/rules/use-max-params
|
|
1938
2048
|
*/
|
|
1939
2049
|
useMaxParams?: UseMaxParamsConfiguration;
|
|
1940
2050
|
/**
|
|
1941
2051
|
* Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
|
|
1942
|
-
See
|
|
2052
|
+
See https://biomejs.dev/linter/rules/use-qwik-method-usage
|
|
1943
2053
|
*/
|
|
1944
2054
|
useQwikMethodUsage?: UseQwikMethodUsageConfiguration;
|
|
1945
2055
|
/**
|
|
1946
2056
|
* Disallow unserializable expressions in Qwik dollar ($) scopes.
|
|
1947
|
-
See
|
|
2057
|
+
See https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope
|
|
1948
2058
|
*/
|
|
1949
2059
|
useQwikValidLexicalScope?: UseQwikValidLexicalScopeConfiguration;
|
|
1950
2060
|
/**
|
|
1951
2061
|
* Enforce RegExp#exec over String#match if no global flag is provided.
|
|
1952
|
-
See
|
|
2062
|
+
See https://biomejs.dev/linter/rules/use-regexp-exec
|
|
1953
2063
|
*/
|
|
1954
2064
|
useRegexpExec?: UseRegexpExecConfiguration;
|
|
1955
2065
|
/**
|
|
1956
2066
|
* Enforce the presence of required scripts in package.json.
|
|
1957
|
-
See
|
|
2067
|
+
See https://biomejs.dev/linter/rules/use-required-scripts
|
|
1958
2068
|
*/
|
|
1959
2069
|
useRequiredScripts?: UseRequiredScriptsConfiguration;
|
|
1960
2070
|
/**
|
|
1961
2071
|
* Enforce the sorting of CSS utility classes.
|
|
1962
|
-
See
|
|
2072
|
+
See https://biomejs.dev/linter/rules/use-sorted-classes
|
|
1963
2073
|
*/
|
|
1964
2074
|
useSortedClasses?: UseSortedClassesConfiguration;
|
|
1965
2075
|
/**
|
|
1966
2076
|
* Enforce the use of the spread operator over .apply().
|
|
1967
|
-
See
|
|
2077
|
+
See https://biomejs.dev/linter/rules/use-spread
|
|
1968
2078
|
*/
|
|
1969
2079
|
useSpread?: UseSpreadConfiguration;
|
|
1970
2080
|
/**
|
|
1971
|
-
* Enforce
|
|
1972
|
-
See
|
|
2081
|
+
* Enforce consistent defineProps declaration style.
|
|
2082
|
+
See https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration
|
|
2083
|
+
*/
|
|
2084
|
+
useVueConsistentDefinePropsDeclaration?: UseVueConsistentDefinePropsDeclarationConfiguration;
|
|
2085
|
+
/**
|
|
2086
|
+
* Enforce a consistent style for v-bind in Vue templates.
|
|
2087
|
+
See https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style
|
|
1973
2088
|
*/
|
|
1974
|
-
|
|
2089
|
+
useVueConsistentVBindStyle?: UseVueConsistentVBindStyleConfiguration;
|
|
2090
|
+
/**
|
|
2091
|
+
* Enforce a consistent style for v-on in Vue templates.
|
|
2092
|
+
See https://biomejs.dev/linter/rules/use-vue-consistent-v-on-style
|
|
2093
|
+
*/
|
|
2094
|
+
useVueConsistentVOnStyle?: UseVueConsistentVOnStyleConfiguration;
|
|
1975
2095
|
/**
|
|
1976
2096
|
* Enforce specific order of Vue compiler macros.
|
|
1977
|
-
See
|
|
2097
|
+
See https://biomejs.dev/linter/rules/use-vue-define-macros-order
|
|
1978
2098
|
*/
|
|
1979
2099
|
useVueDefineMacrosOrder?: UseVueDefineMacrosOrderConfiguration;
|
|
1980
2100
|
/**
|
|
1981
2101
|
* Enforce hyphenated (kebab-case) attribute names in Vue templates.
|
|
1982
|
-
See
|
|
2102
|
+
See https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes
|
|
1983
2103
|
*/
|
|
1984
2104
|
useVueHyphenatedAttributes?: UseVueHyphenatedAttributesConfiguration;
|
|
1985
2105
|
/**
|
|
1986
2106
|
* Enforce multi-word component names in Vue components.
|
|
1987
|
-
See
|
|
2107
|
+
See https://biomejs.dev/linter/rules/use-vue-multi-word-component-names
|
|
1988
2108
|
*/
|
|
1989
2109
|
useVueMultiWordComponentNames?: UseVueMultiWordComponentNamesConfiguration;
|
|
1990
2110
|
/**
|
|
2111
|
+
* Enforce that elements using v-for also specify a unique key.
|
|
2112
|
+
See https://biomejs.dev/linter/rules/use-vue-v-for-key
|
|
2113
|
+
*/
|
|
2114
|
+
useVueVForKey?: UseVueVForKeyConfiguration;
|
|
2115
|
+
/**
|
|
2116
|
+
* Enforce valid Vue \<template> root usage.
|
|
2117
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-template-root
|
|
2118
|
+
*/
|
|
2119
|
+
useVueValidTemplateRoot?: UseVueValidTemplateRootConfiguration;
|
|
2120
|
+
/**
|
|
1991
2121
|
* Forbids v-bind directives with missing arguments or invalid modifiers.
|
|
1992
|
-
See
|
|
2122
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-bind
|
|
1993
2123
|
*/
|
|
1994
2124
|
useVueValidVBind?: UseVueValidVBindConfiguration;
|
|
1995
2125
|
/**
|
|
2126
|
+
* Enforce valid v-cloak Vue directives.
|
|
2127
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-cloak
|
|
2128
|
+
*/
|
|
2129
|
+
useVueValidVCloak?: UseVueValidVCloakConfiguration;
|
|
2130
|
+
/**
|
|
1996
2131
|
* Enforce valid usage of v-else.
|
|
1997
|
-
See
|
|
2132
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-else
|
|
1998
2133
|
*/
|
|
1999
2134
|
useVueValidVElse?: UseVueValidVElseConfiguration;
|
|
2000
2135
|
/**
|
|
2001
2136
|
* Enforce valid v-else-if directives.
|
|
2002
|
-
See
|
|
2137
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-else-if
|
|
2003
2138
|
*/
|
|
2004
2139
|
useVueValidVElseIf?: UseVueValidVElseIfConfiguration;
|
|
2005
2140
|
/**
|
|
2006
2141
|
* Enforce valid v-html directives.
|
|
2007
|
-
See
|
|
2142
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-html
|
|
2008
2143
|
*/
|
|
2009
2144
|
useVueValidVHtml?: UseVueValidVHtmlConfiguration;
|
|
2010
2145
|
/**
|
|
2011
2146
|
* Enforces valid v-if usage for Vue templates.
|
|
2012
|
-
See
|
|
2147
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-if
|
|
2013
2148
|
*/
|
|
2014
2149
|
useVueValidVIf?: UseVueValidVIfConfiguration;
|
|
2015
2150
|
/**
|
|
2016
2151
|
* Enforce valid v-on directives with proper arguments, modifiers, and handlers.
|
|
2017
|
-
See
|
|
2152
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-on
|
|
2018
2153
|
*/
|
|
2019
2154
|
useVueValidVOn?: UseVueValidVOnConfiguration;
|
|
2020
2155
|
/**
|
|
2156
|
+
* Enforce valid v-once Vue directives.
|
|
2157
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-once
|
|
2158
|
+
*/
|
|
2159
|
+
useVueValidVOnce?: UseVueValidVOnceConfiguration;
|
|
2160
|
+
/**
|
|
2161
|
+
* Enforce valid v-pre Vue directives.
|
|
2162
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-pre
|
|
2163
|
+
*/
|
|
2164
|
+
useVueValidVPre?: UseVueValidVPreConfiguration;
|
|
2165
|
+
/**
|
|
2021
2166
|
* Enforce valid v-text Vue directives.
|
|
2022
|
-
See
|
|
2167
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-text
|
|
2023
2168
|
*/
|
|
2024
2169
|
useVueValidVText?: UseVueValidVTextConfiguration;
|
|
2170
|
+
/**
|
|
2171
|
+
* Enforce opting in to Vue Vapor mode in \<script setup> blocks.
|
|
2172
|
+
See https://biomejs.dev/linter/rules/use-vue-vapor
|
|
2173
|
+
*/
|
|
2174
|
+
useVueVapor?: UseVueVaporConfiguration;
|
|
2025
2175
|
}
|
|
2026
2176
|
interface Performance {
|
|
2027
2177
|
/**
|
|
2028
2178
|
* Disallow the use of spread (...) syntax on accumulators.
|
|
2029
|
-
See
|
|
2179
|
+
See https://biomejs.dev/linter/rules/no-accumulating-spread
|
|
2030
2180
|
*/
|
|
2031
2181
|
noAccumulatingSpread?: NoAccumulatingSpreadConfiguration;
|
|
2032
2182
|
/**
|
|
2033
2183
|
* Disallow await inside loops.
|
|
2034
|
-
See
|
|
2184
|
+
See https://biomejs.dev/linter/rules/no-await-in-loops
|
|
2035
2185
|
*/
|
|
2036
2186
|
noAwaitInLoops?: NoAwaitInLoopsConfiguration;
|
|
2037
2187
|
/**
|
|
2038
2188
|
* Disallow the use of barrel file.
|
|
2039
|
-
See
|
|
2189
|
+
See https://biomejs.dev/linter/rules/no-barrel-file
|
|
2040
2190
|
*/
|
|
2041
2191
|
noBarrelFile?: NoBarrelFileConfiguration;
|
|
2042
2192
|
/**
|
|
2043
2193
|
* Disallow the use of the delete operator.
|
|
2044
|
-
See
|
|
2194
|
+
See https://biomejs.dev/linter/rules/no-delete
|
|
2045
2195
|
*/
|
|
2046
2196
|
noDelete?: NoDeleteConfiguration;
|
|
2047
2197
|
/**
|
|
2048
2198
|
* Disallow accessing namespace imports dynamically.
|
|
2049
|
-
See
|
|
2199
|
+
See https://biomejs.dev/linter/rules/no-dynamic-namespace-import-access
|
|
2050
2200
|
*/
|
|
2051
2201
|
noDynamicNamespaceImportAccess?: NoDynamicNamespaceImportAccessConfiguration;
|
|
2052
2202
|
/**
|
|
2053
2203
|
* Prevent usage of \<img> element in a Next.js project.
|
|
2054
|
-
See
|
|
2204
|
+
See https://biomejs.dev/linter/rules/no-img-element
|
|
2055
2205
|
*/
|
|
2056
2206
|
noImgElement?: NoImgElementConfiguration;
|
|
2057
2207
|
/**
|
|
2058
2208
|
* Disallow the use of namespace imports.
|
|
2059
|
-
See
|
|
2209
|
+
See https://biomejs.dev/linter/rules/no-namespace-import
|
|
2060
2210
|
*/
|
|
2061
2211
|
noNamespaceImport?: NoNamespaceImportConfiguration;
|
|
2062
2212
|
/**
|
|
2063
2213
|
* Avoid re-export all.
|
|
2064
|
-
See
|
|
2214
|
+
See https://biomejs.dev/linter/rules/no-re-export-all
|
|
2065
2215
|
*/
|
|
2066
2216
|
noReExportAll?: NoReExportAllConfiguration;
|
|
2067
2217
|
/**
|
|
2068
2218
|
* Prevent duplicate polyfills from Polyfill.io.
|
|
2069
|
-
See
|
|
2219
|
+
See https://biomejs.dev/linter/rules/no-unwanted-polyfillio
|
|
2070
2220
|
*/
|
|
2071
2221
|
noUnwantedPolyfillio?: NoUnwantedPolyfillioConfiguration;
|
|
2072
2222
|
/**
|
|
@@ -2075,44 +2225,44 @@ See <https://biomejs.dev/linter/rules/no-unwanted-polyfillio>
|
|
|
2075
2225
|
recommended?: boolean;
|
|
2076
2226
|
/**
|
|
2077
2227
|
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
2078
|
-
See
|
|
2228
|
+
See https://biomejs.dev/linter/rules/use-google-font-preconnect
|
|
2079
2229
|
*/
|
|
2080
2230
|
useGoogleFontPreconnect?: UseGoogleFontPreconnectConfiguration;
|
|
2081
2231
|
/**
|
|
2082
2232
|
* Enforce using Solid's \<For /> component for mapping an array to JSX elements.
|
|
2083
|
-
See
|
|
2233
|
+
See https://biomejs.dev/linter/rules/use-solid-for-component
|
|
2084
2234
|
*/
|
|
2085
2235
|
useSolidForComponent?: UseSolidForComponentConfiguration;
|
|
2086
2236
|
/**
|
|
2087
2237
|
* Require regex literals to be declared at the top level.
|
|
2088
|
-
See
|
|
2238
|
+
See https://biomejs.dev/linter/rules/use-top-level-regex
|
|
2089
2239
|
*/
|
|
2090
2240
|
useTopLevelRegex?: UseTopLevelRegexConfiguration;
|
|
2091
2241
|
}
|
|
2092
2242
|
interface Security {
|
|
2093
2243
|
/**
|
|
2094
2244
|
* Disallow target="_blank" attribute without rel="noopener".
|
|
2095
|
-
See
|
|
2245
|
+
See https://biomejs.dev/linter/rules/no-blank-target
|
|
2096
2246
|
*/
|
|
2097
2247
|
noBlankTarget?: NoBlankTargetConfiguration;
|
|
2098
2248
|
/**
|
|
2099
2249
|
* Prevent the usage of dangerous JSX props.
|
|
2100
|
-
See
|
|
2250
|
+
See https://biomejs.dev/linter/rules/no-dangerously-set-inner-html
|
|
2101
2251
|
*/
|
|
2102
2252
|
noDangerouslySetInnerHtml?: NoDangerouslySetInnerHtmlConfiguration;
|
|
2103
2253
|
/**
|
|
2104
2254
|
* Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
|
|
2105
|
-
See
|
|
2255
|
+
See https://biomejs.dev/linter/rules/no-dangerously-set-inner-html-with-children
|
|
2106
2256
|
*/
|
|
2107
2257
|
noDangerouslySetInnerHtmlWithChildren?: NoDangerouslySetInnerHtmlWithChildrenConfiguration;
|
|
2108
2258
|
/**
|
|
2109
2259
|
* Disallow the use of global eval().
|
|
2110
|
-
See
|
|
2260
|
+
See https://biomejs.dev/linter/rules/no-global-eval
|
|
2111
2261
|
*/
|
|
2112
2262
|
noGlobalEval?: NoGlobalEvalConfiguration;
|
|
2113
2263
|
/**
|
|
2114
2264
|
* Disallow usage of sensitive data such as API keys and tokens.
|
|
2115
|
-
See
|
|
2265
|
+
See https://biomejs.dev/linter/rules/no-secrets
|
|
2116
2266
|
*/
|
|
2117
2267
|
noSecrets?: NoSecretsConfiguration;
|
|
2118
2268
|
/**
|
|
@@ -2123,132 +2273,132 @@ See <https://biomejs.dev/linter/rules/no-secrets>
|
|
|
2123
2273
|
interface Style {
|
|
2124
2274
|
/**
|
|
2125
2275
|
* Disallow use of CommonJs module system in favor of ESM style imports.
|
|
2126
|
-
See
|
|
2276
|
+
See https://biomejs.dev/linter/rules/no-common-js
|
|
2127
2277
|
*/
|
|
2128
2278
|
noCommonJs?: NoCommonJsConfiguration;
|
|
2129
2279
|
/**
|
|
2130
2280
|
* Disallow default exports.
|
|
2131
|
-
See
|
|
2281
|
+
See https://biomejs.dev/linter/rules/no-default-export
|
|
2132
2282
|
*/
|
|
2133
2283
|
noDefaultExport?: NoDefaultExportConfiguration;
|
|
2134
2284
|
/**
|
|
2135
2285
|
* Disallow a lower specificity selector from coming after a higher specificity selector.
|
|
2136
|
-
See
|
|
2286
|
+
See https://biomejs.dev/linter/rules/no-descending-specificity
|
|
2137
2287
|
*/
|
|
2138
2288
|
noDescendingSpecificity?: NoDescendingSpecificityConfiguration;
|
|
2139
2289
|
/**
|
|
2140
2290
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
2141
|
-
See
|
|
2291
|
+
See https://biomejs.dev/linter/rules/no-done-callback
|
|
2142
2292
|
*/
|
|
2143
2293
|
noDoneCallback?: NoDoneCallbackConfiguration;
|
|
2144
2294
|
/**
|
|
2145
2295
|
* Disallow TypeScript enum.
|
|
2146
|
-
See
|
|
2296
|
+
See https://biomejs.dev/linter/rules/no-enum
|
|
2147
2297
|
*/
|
|
2148
2298
|
noEnum?: NoEnumConfiguration;
|
|
2149
2299
|
/**
|
|
2150
2300
|
* Disallow exporting an imported variable.
|
|
2151
|
-
See
|
|
2301
|
+
See https://biomejs.dev/linter/rules/no-exported-imports
|
|
2152
2302
|
*/
|
|
2153
2303
|
noExportedImports?: NoExportedImportsConfiguration;
|
|
2154
2304
|
/**
|
|
2155
2305
|
* Prevent usage of \<head> element in a Next.js project.
|
|
2156
|
-
See
|
|
2306
|
+
See https://biomejs.dev/linter/rules/no-head-element
|
|
2157
2307
|
*/
|
|
2158
2308
|
noHeadElement?: NoHeadElementConfiguration;
|
|
2159
2309
|
/**
|
|
2160
2310
|
* Disallow implicit true values on JSX boolean attributes.
|
|
2161
|
-
See
|
|
2311
|
+
See https://biomejs.dev/linter/rules/no-implicit-boolean
|
|
2162
2312
|
*/
|
|
2163
2313
|
noImplicitBoolean?: NoImplicitBooleanConfiguration;
|
|
2164
2314
|
/**
|
|
2165
2315
|
* Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
|
|
2166
|
-
See
|
|
2316
|
+
See https://biomejs.dev/linter/rules/no-inferrable-types
|
|
2167
2317
|
*/
|
|
2168
2318
|
noInferrableTypes?: NoInferrableTypesConfiguration;
|
|
2169
2319
|
/**
|
|
2170
2320
|
* Reports usage of "magic numbers" — numbers used directly instead of being assigned to named constants.
|
|
2171
|
-
See
|
|
2321
|
+
See https://biomejs.dev/linter/rules/no-magic-numbers
|
|
2172
2322
|
*/
|
|
2173
2323
|
noMagicNumbers?: NoMagicNumbersConfiguration;
|
|
2174
2324
|
/**
|
|
2175
2325
|
* Disallow the use of TypeScript's namespaces.
|
|
2176
|
-
See
|
|
2326
|
+
See https://biomejs.dev/linter/rules/no-namespace
|
|
2177
2327
|
*/
|
|
2178
2328
|
noNamespace?: NoNamespaceConfiguration;
|
|
2179
2329
|
/**
|
|
2180
2330
|
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
2181
|
-
See
|
|
2331
|
+
See https://biomejs.dev/linter/rules/no-negation-else
|
|
2182
2332
|
*/
|
|
2183
2333
|
noNegationElse?: NoNegationElseConfiguration;
|
|
2184
2334
|
/**
|
|
2185
2335
|
* Disallow nested ternary expressions.
|
|
2186
|
-
See
|
|
2336
|
+
See https://biomejs.dev/linter/rules/no-nested-ternary
|
|
2187
2337
|
*/
|
|
2188
2338
|
noNestedTernary?: NoNestedTernaryConfiguration;
|
|
2189
2339
|
/**
|
|
2190
2340
|
* Disallow non-null assertions using the ! postfix operator.
|
|
2191
|
-
See
|
|
2341
|
+
See https://biomejs.dev/linter/rules/no-non-null-assertion
|
|
2192
2342
|
*/
|
|
2193
2343
|
noNonNullAssertion?: NoNonNullAssertionConfiguration;
|
|
2194
2344
|
/**
|
|
2195
2345
|
* Disallow reassigning function parameters.
|
|
2196
|
-
See
|
|
2346
|
+
See https://biomejs.dev/linter/rules/no-parameter-assign
|
|
2197
2347
|
*/
|
|
2198
2348
|
noParameterAssign?: NoParameterAssignConfiguration;
|
|
2199
2349
|
/**
|
|
2200
2350
|
* Disallow the use of parameter properties in class constructors.
|
|
2201
|
-
See
|
|
2351
|
+
See https://biomejs.dev/linter/rules/no-parameter-properties
|
|
2202
2352
|
*/
|
|
2203
2353
|
noParameterProperties?: NoParameterPropertiesConfiguration;
|
|
2204
2354
|
/**
|
|
2205
2355
|
* Disallow the use of process.env.
|
|
2206
|
-
See
|
|
2356
|
+
See https://biomejs.dev/linter/rules/no-process-env
|
|
2207
2357
|
*/
|
|
2208
2358
|
noProcessEnv?: NoProcessEnvConfiguration;
|
|
2209
2359
|
/**
|
|
2210
2360
|
* This rule allows you to specify global variable names that you don’t want to use in your application.
|
|
2211
|
-
See
|
|
2361
|
+
See https://biomejs.dev/linter/rules/no-restricted-globals
|
|
2212
2362
|
*/
|
|
2213
2363
|
noRestrictedGlobals?: NoRestrictedGlobalsConfiguration;
|
|
2214
2364
|
/**
|
|
2215
2365
|
* Disallow specified modules when loaded by import or require.
|
|
2216
|
-
See
|
|
2366
|
+
See https://biomejs.dev/linter/rules/no-restricted-imports
|
|
2217
2367
|
*/
|
|
2218
2368
|
noRestrictedImports?: NoRestrictedImportsConfiguration;
|
|
2219
2369
|
/**
|
|
2220
2370
|
* Disallow user defined types.
|
|
2221
|
-
See
|
|
2371
|
+
See https://biomejs.dev/linter/rules/no-restricted-types
|
|
2222
2372
|
*/
|
|
2223
2373
|
noRestrictedTypes?: NoRestrictedTypesConfiguration;
|
|
2224
2374
|
/**
|
|
2225
2375
|
* Disallow the use of constants which its value is the upper-case version of its name.
|
|
2226
|
-
See
|
|
2376
|
+
See https://biomejs.dev/linter/rules/no-shouty-constants
|
|
2227
2377
|
*/
|
|
2228
2378
|
noShoutyConstants?: NoShoutyConstantsConfiguration;
|
|
2229
2379
|
/**
|
|
2230
2380
|
* Enforce the use of String.slice() over String.substr() and String.substring().
|
|
2231
|
-
See
|
|
2381
|
+
See https://biomejs.dev/linter/rules/no-substr
|
|
2232
2382
|
*/
|
|
2233
2383
|
noSubstr?: NoSubstrConfiguration;
|
|
2234
2384
|
/**
|
|
2235
2385
|
* Disallow template literals if interpolation and special-character handling are not needed.
|
|
2236
|
-
See
|
|
2386
|
+
See https://biomejs.dev/linter/rules/no-unused-template-literal
|
|
2237
2387
|
*/
|
|
2238
2388
|
noUnusedTemplateLiteral?: NoUnusedTemplateLiteralConfiguration;
|
|
2239
2389
|
/**
|
|
2240
2390
|
* Disallow else block when the if block breaks early.
|
|
2241
|
-
See
|
|
2391
|
+
See https://biomejs.dev/linter/rules/no-useless-else
|
|
2242
2392
|
*/
|
|
2243
2393
|
noUselessElse?: NoUselessElseConfiguration;
|
|
2244
2394
|
/**
|
|
2245
2395
|
* Disallow use of @value rule in css modules.
|
|
2246
|
-
See
|
|
2396
|
+
See https://biomejs.dev/linter/rules/no-value-at-rule
|
|
2247
2397
|
*/
|
|
2248
2398
|
noValueAtRule?: NoValueAtRuleConfiguration;
|
|
2249
2399
|
/**
|
|
2250
2400
|
* Disallow the use of yoda expressions.
|
|
2251
|
-
See
|
|
2401
|
+
See https://biomejs.dev/linter/rules/no-yoda-expression
|
|
2252
2402
|
*/
|
|
2253
2403
|
noYodaExpression?: NoYodaExpressionConfiguration;
|
|
2254
2404
|
/**
|
|
@@ -2257,644 +2407,644 @@ See <https://biomejs.dev/linter/rules/no-yoda-expression>
|
|
|
2257
2407
|
recommended?: boolean;
|
|
2258
2408
|
/**
|
|
2259
2409
|
* Disallow Array constructors.
|
|
2260
|
-
See
|
|
2410
|
+
See https://biomejs.dev/linter/rules/use-array-literals
|
|
2261
2411
|
*/
|
|
2262
2412
|
useArrayLiterals?: UseArrayLiteralsConfiguration;
|
|
2263
2413
|
/**
|
|
2264
2414
|
* Enforce the use of as const over literal type and type annotation.
|
|
2265
|
-
See
|
|
2415
|
+
See https://biomejs.dev/linter/rules/use-as-const-assertion
|
|
2266
2416
|
*/
|
|
2267
2417
|
useAsConstAssertion?: UseAsConstAssertionConfiguration;
|
|
2268
2418
|
/**
|
|
2269
2419
|
* Use at() instead of integer index access.
|
|
2270
|
-
See
|
|
2420
|
+
See https://biomejs.dev/linter/rules/use-at-index
|
|
2271
2421
|
*/
|
|
2272
2422
|
useAtIndex?: UseAtIndexConfiguration;
|
|
2273
2423
|
/**
|
|
2274
2424
|
* Requires following curly brace conventions.
|
|
2275
|
-
See
|
|
2425
|
+
See https://biomejs.dev/linter/rules/use-block-statements
|
|
2276
2426
|
*/
|
|
2277
2427
|
useBlockStatements?: UseBlockStatementsConfiguration;
|
|
2278
2428
|
/**
|
|
2279
2429
|
* Enforce using else if instead of nested if in else clauses.
|
|
2280
|
-
See
|
|
2430
|
+
See https://biomejs.dev/linter/rules/use-collapsed-else-if
|
|
2281
2431
|
*/
|
|
2282
2432
|
useCollapsedElseIf?: UseCollapsedElseIfConfiguration;
|
|
2283
2433
|
/**
|
|
2284
2434
|
* Enforce using single if instead of nested if clauses.
|
|
2285
|
-
See
|
|
2435
|
+
See https://biomejs.dev/linter/rules/use-collapsed-if
|
|
2286
2436
|
*/
|
|
2287
2437
|
useCollapsedIf?: UseCollapsedIfConfiguration;
|
|
2288
2438
|
/**
|
|
2289
2439
|
* Enforce declaring components only within modules that export React Components exclusively.
|
|
2290
|
-
See
|
|
2440
|
+
See https://biomejs.dev/linter/rules/use-component-export-only-modules
|
|
2291
2441
|
*/
|
|
2292
2442
|
useComponentExportOnlyModules?: UseComponentExportOnlyModulesConfiguration;
|
|
2293
2443
|
/**
|
|
2294
2444
|
* Require consistently using either T\[] or Array\<T>.
|
|
2295
|
-
See
|
|
2445
|
+
See https://biomejs.dev/linter/rules/use-consistent-array-type
|
|
2296
2446
|
*/
|
|
2297
2447
|
useConsistentArrayType?: UseConsistentArrayTypeConfiguration;
|
|
2298
2448
|
/**
|
|
2299
2449
|
* Enforce the use of new for all builtins, except String, Number and Boolean.
|
|
2300
|
-
See
|
|
2450
|
+
See https://biomejs.dev/linter/rules/use-consistent-builtin-instantiation
|
|
2301
2451
|
*/
|
|
2302
2452
|
useConsistentBuiltinInstantiation?: UseConsistentBuiltinInstantiationConfiguration;
|
|
2303
2453
|
/**
|
|
2304
2454
|
* This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
|
|
2305
|
-
See
|
|
2455
|
+
See https://biomejs.dev/linter/rules/use-consistent-curly-braces
|
|
2306
2456
|
*/
|
|
2307
2457
|
useConsistentCurlyBraces?: UseConsistentCurlyBracesConfiguration;
|
|
2308
2458
|
/**
|
|
2309
2459
|
* Require consistent accessibility modifiers on class properties and methods.
|
|
2310
|
-
See
|
|
2460
|
+
See https://biomejs.dev/linter/rules/use-consistent-member-accessibility
|
|
2311
2461
|
*/
|
|
2312
2462
|
useConsistentMemberAccessibility?: UseConsistentMemberAccessibilityConfiguration;
|
|
2313
2463
|
/**
|
|
2314
2464
|
* Require the consistent declaration of object literals. Defaults to explicit definitions.
|
|
2315
|
-
See
|
|
2465
|
+
See https://biomejs.dev/linter/rules/use-consistent-object-definitions
|
|
2316
2466
|
*/
|
|
2317
2467
|
useConsistentObjectDefinitions?: UseConsistentObjectDefinitionsConfiguration;
|
|
2318
2468
|
/**
|
|
2319
2469
|
* Enforce type definitions to consistently use either interface or type.
|
|
2320
|
-
See
|
|
2470
|
+
See https://biomejs.dev/linter/rules/use-consistent-type-definitions
|
|
2321
2471
|
*/
|
|
2322
2472
|
useConsistentTypeDefinitions?: UseConsistentTypeDefinitionsConfiguration;
|
|
2323
2473
|
/**
|
|
2324
2474
|
* Require const declarations for variables that are only assigned once.
|
|
2325
|
-
See
|
|
2475
|
+
See https://biomejs.dev/linter/rules/use-const
|
|
2326
2476
|
*/
|
|
2327
2477
|
useConst?: UseConstConfiguration;
|
|
2328
2478
|
/**
|
|
2329
2479
|
* Enforce default function parameters and optional function parameters to be last.
|
|
2330
|
-
See
|
|
2480
|
+
See https://biomejs.dev/linter/rules/use-default-parameter-last
|
|
2331
2481
|
*/
|
|
2332
2482
|
useDefaultParameterLast?: UseDefaultParameterLastConfiguration;
|
|
2333
2483
|
/**
|
|
2334
2484
|
* Require the default clause in switch statements.
|
|
2335
|
-
See
|
|
2485
|
+
See https://biomejs.dev/linter/rules/use-default-switch-clause
|
|
2336
2486
|
*/
|
|
2337
2487
|
useDefaultSwitchClause?: UseDefaultSwitchClauseConfiguration;
|
|
2338
2488
|
/**
|
|
2339
2489
|
* Require specifying the reason argument when using @deprecated directive.
|
|
2340
|
-
See
|
|
2490
|
+
See https://biomejs.dev/linter/rules/use-deprecated-reason
|
|
2341
2491
|
*/
|
|
2342
2492
|
useDeprecatedReason?: UseDeprecatedReasonConfiguration;
|
|
2343
2493
|
/**
|
|
2344
2494
|
* Require that each enum member value be explicitly initialized.
|
|
2345
|
-
See
|
|
2495
|
+
See https://biomejs.dev/linter/rules/use-enum-initializers
|
|
2346
2496
|
*/
|
|
2347
2497
|
useEnumInitializers?: UseEnumInitializersConfiguration;
|
|
2348
2498
|
/**
|
|
2349
2499
|
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
2350
|
-
See
|
|
2500
|
+
See https://biomejs.dev/linter/rules/use-explicit-length-check
|
|
2351
2501
|
*/
|
|
2352
2502
|
useExplicitLengthCheck?: UseExplicitLengthCheckConfiguration;
|
|
2353
2503
|
/**
|
|
2354
2504
|
* Disallow the use of Math.pow in favor of the ** operator.
|
|
2355
|
-
See
|
|
2505
|
+
See https://biomejs.dev/linter/rules/use-exponentiation-operator
|
|
2356
2506
|
*/
|
|
2357
2507
|
useExponentiationOperator?: UseExponentiationOperatorConfiguration;
|
|
2358
2508
|
/**
|
|
2359
2509
|
* Promotes the use of export type for types.
|
|
2360
|
-
See
|
|
2510
|
+
See https://biomejs.dev/linter/rules/use-export-type
|
|
2361
2511
|
*/
|
|
2362
2512
|
useExportType?: UseExportTypeConfiguration;
|
|
2363
2513
|
/**
|
|
2364
2514
|
* Require that all exports are declared after all non-export statements.
|
|
2365
|
-
See
|
|
2515
|
+
See https://biomejs.dev/linter/rules/use-exports-last
|
|
2366
2516
|
*/
|
|
2367
2517
|
useExportsLast?: UseExportsLastConfiguration;
|
|
2368
2518
|
/**
|
|
2369
2519
|
* Enforce naming conventions for JavaScript and TypeScript filenames.
|
|
2370
|
-
See
|
|
2520
|
+
See https://biomejs.dev/linter/rules/use-filenaming-convention
|
|
2371
2521
|
*/
|
|
2372
2522
|
useFilenamingConvention?: UseFilenamingConventionConfiguration;
|
|
2373
2523
|
/**
|
|
2374
2524
|
* Prefer using for...of loops over standard for loops where possible.
|
|
2375
|
-
See
|
|
2525
|
+
See https://biomejs.dev/linter/rules/use-for-of
|
|
2376
2526
|
*/
|
|
2377
2527
|
useForOf?: UseForOfConfiguration;
|
|
2378
2528
|
/**
|
|
2379
2529
|
* This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
|
|
2380
|
-
See
|
|
2530
|
+
See https://biomejs.dev/linter/rules/use-fragment-syntax
|
|
2381
2531
|
*/
|
|
2382
2532
|
useFragmentSyntax?: UseFragmentSyntaxConfiguration;
|
|
2383
2533
|
/**
|
|
2384
2534
|
* Validates that all enum values are capitalized.
|
|
2385
|
-
See
|
|
2535
|
+
See https://biomejs.dev/linter/rules/use-graphql-naming-convention
|
|
2386
2536
|
*/
|
|
2387
2537
|
useGraphqlNamingConvention?: UseGraphqlNamingConventionConfiguration;
|
|
2388
2538
|
/**
|
|
2389
2539
|
* Enforce that getters and setters for the same property are adjacent in class and object definitions.
|
|
2390
|
-
See
|
|
2540
|
+
See https://biomejs.dev/linter/rules/use-grouped-accessor-pairs
|
|
2391
2541
|
*/
|
|
2392
2542
|
useGroupedAccessorPairs?: UseGroupedAccessorPairsConfiguration;
|
|
2393
2543
|
/**
|
|
2394
2544
|
* Promotes the use of import type for types.
|
|
2395
|
-
See
|
|
2545
|
+
See https://biomejs.dev/linter/rules/use-import-type
|
|
2396
2546
|
*/
|
|
2397
2547
|
useImportType?: UseImportTypeConfiguration;
|
|
2398
2548
|
/**
|
|
2399
2549
|
* Require all enum members to be literal values.
|
|
2400
|
-
See
|
|
2550
|
+
See https://biomejs.dev/linter/rules/use-literal-enum-members
|
|
2401
2551
|
*/
|
|
2402
2552
|
useLiteralEnumMembers?: UseLiteralEnumMembersConfiguration;
|
|
2403
2553
|
/**
|
|
2404
2554
|
* Enforce naming conventions for everything across a codebase.
|
|
2405
|
-
See
|
|
2555
|
+
See https://biomejs.dev/linter/rules/use-naming-convention
|
|
2406
2556
|
*/
|
|
2407
2557
|
useNamingConvention?: UseNamingConventionConfiguration;
|
|
2408
2558
|
/**
|
|
2409
2559
|
* Promotes the usage of node:assert/strict over node:assert.
|
|
2410
|
-
See
|
|
2560
|
+
See https://biomejs.dev/linter/rules/use-node-assert-strict
|
|
2411
2561
|
*/
|
|
2412
2562
|
useNodeAssertStrict?: UseNodeAssertStrictConfiguration;
|
|
2413
2563
|
/**
|
|
2414
2564
|
* Enforces using the node: protocol for Node.js builtin modules.
|
|
2415
|
-
See
|
|
2565
|
+
See https://biomejs.dev/linter/rules/use-nodejs-import-protocol
|
|
2416
2566
|
*/
|
|
2417
2567
|
useNodejsImportProtocol?: UseNodejsImportProtocolConfiguration;
|
|
2418
2568
|
/**
|
|
2419
2569
|
* Use the Number properties instead of global ones.
|
|
2420
|
-
See
|
|
2570
|
+
See https://biomejs.dev/linter/rules/use-number-namespace
|
|
2421
2571
|
*/
|
|
2422
2572
|
useNumberNamespace?: UseNumberNamespaceConfiguration;
|
|
2423
2573
|
/**
|
|
2424
2574
|
* Enforce the use of numeric separators in numeric literals.
|
|
2425
|
-
See
|
|
2575
|
+
See https://biomejs.dev/linter/rules/use-numeric-separators
|
|
2426
2576
|
*/
|
|
2427
2577
|
useNumericSeparators?: UseNumericSeparatorsConfiguration;
|
|
2428
2578
|
/**
|
|
2429
2579
|
* Prefer object spread over Object.assign() when constructing new objects.
|
|
2430
|
-
See
|
|
2580
|
+
See https://biomejs.dev/linter/rules/use-object-spread
|
|
2431
2581
|
*/
|
|
2432
2582
|
useObjectSpread?: UseObjectSpreadConfiguration;
|
|
2433
2583
|
/**
|
|
2434
2584
|
* Enforce that components are defined as functions and never as classes.
|
|
2435
|
-
See
|
|
2585
|
+
See https://biomejs.dev/linter/rules/use-react-function-components
|
|
2436
2586
|
*/
|
|
2437
2587
|
useReactFunctionComponents?: UseReactFunctionComponentsConfiguration;
|
|
2438
2588
|
/**
|
|
2439
2589
|
* Enforce marking members as readonly if they are never modified outside the constructor.
|
|
2440
|
-
See
|
|
2590
|
+
See https://biomejs.dev/linter/rules/use-readonly-class-properties
|
|
2441
2591
|
*/
|
|
2442
2592
|
useReadonlyClassProperties?: UseReadonlyClassPropertiesConfiguration;
|
|
2443
2593
|
/**
|
|
2444
2594
|
* Prevent extra closing tags for components without children.
|
|
2445
|
-
See
|
|
2595
|
+
See https://biomejs.dev/linter/rules/use-self-closing-elements
|
|
2446
2596
|
*/
|
|
2447
2597
|
useSelfClosingElements?: UseSelfClosingElementsConfiguration;
|
|
2448
2598
|
/**
|
|
2449
2599
|
* Require assignment operator shorthand where possible.
|
|
2450
|
-
See
|
|
2600
|
+
See https://biomejs.dev/linter/rules/use-shorthand-assign
|
|
2451
2601
|
*/
|
|
2452
2602
|
useShorthandAssign?: UseShorthandAssignConfiguration;
|
|
2453
2603
|
/**
|
|
2454
2604
|
* Enforce using function types instead of object type with call signatures.
|
|
2455
|
-
See
|
|
2605
|
+
See https://biomejs.dev/linter/rules/use-shorthand-function-type
|
|
2456
2606
|
*/
|
|
2457
2607
|
useShorthandFunctionType?: UseShorthandFunctionTypeConfiguration;
|
|
2458
2608
|
/**
|
|
2459
2609
|
* Disallow multiple variable declarations in the same variable statement.
|
|
2460
|
-
See
|
|
2610
|
+
See https://biomejs.dev/linter/rules/use-single-var-declarator
|
|
2461
2611
|
*/
|
|
2462
2612
|
useSingleVarDeclarator?: UseSingleVarDeclaratorConfiguration;
|
|
2463
2613
|
/**
|
|
2464
2614
|
* Require a description parameter for the Symbol().
|
|
2465
|
-
See
|
|
2615
|
+
See https://biomejs.dev/linter/rules/use-symbol-description
|
|
2466
2616
|
*/
|
|
2467
2617
|
useSymbolDescription?: UseSymbolDescriptionConfiguration;
|
|
2468
2618
|
/**
|
|
2469
2619
|
* Prefer template literals over string concatenation.
|
|
2470
|
-
See
|
|
2620
|
+
See https://biomejs.dev/linter/rules/use-template
|
|
2471
2621
|
*/
|
|
2472
2622
|
useTemplate?: UseTemplateConfiguration;
|
|
2473
2623
|
/**
|
|
2474
2624
|
* Require new when throwing an error.
|
|
2475
|
-
See
|
|
2625
|
+
See https://biomejs.dev/linter/rules/use-throw-new-error
|
|
2476
2626
|
*/
|
|
2477
2627
|
useThrowNewError?: UseThrowNewErrorConfiguration;
|
|
2478
2628
|
/**
|
|
2479
2629
|
* Disallow throwing non-Error values.
|
|
2480
|
-
See
|
|
2630
|
+
See https://biomejs.dev/linter/rules/use-throw-only-error
|
|
2481
2631
|
*/
|
|
2482
2632
|
useThrowOnlyError?: UseThrowOnlyErrorConfiguration;
|
|
2483
2633
|
/**
|
|
2484
2634
|
* Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
|
|
2485
|
-
See
|
|
2635
|
+
See https://biomejs.dev/linter/rules/use-trim-start-end
|
|
2486
2636
|
*/
|
|
2487
2637
|
useTrimStartEnd?: UseTrimStartEndConfiguration;
|
|
2488
2638
|
/**
|
|
2489
2639
|
* Disallow overload signatures that can be unified into a single signature.
|
|
2490
|
-
See
|
|
2640
|
+
See https://biomejs.dev/linter/rules/use-unified-type-signatures
|
|
2491
2641
|
*/
|
|
2492
2642
|
useUnifiedTypeSignatures?: UseUnifiedTypeSignaturesConfiguration;
|
|
2493
2643
|
}
|
|
2494
2644
|
interface Suspicious {
|
|
2495
2645
|
/**
|
|
2496
2646
|
* Disallow the use of alert, confirm, and prompt.
|
|
2497
|
-
See
|
|
2647
|
+
See https://biomejs.dev/linter/rules/no-alert
|
|
2498
2648
|
*/
|
|
2499
2649
|
noAlert?: NoAlertConfiguration;
|
|
2500
2650
|
/**
|
|
2501
2651
|
* Use standard constants instead of approximated literals.
|
|
2502
|
-
See
|
|
2652
|
+
See https://biomejs.dev/linter/rules/no-approximative-numeric-constant
|
|
2503
2653
|
*/
|
|
2504
2654
|
noApproximativeNumericConstant?: NoApproximativeNumericConstantConfiguration;
|
|
2505
2655
|
/**
|
|
2506
2656
|
* Discourage the usage of Array index in keys.
|
|
2507
|
-
See
|
|
2657
|
+
See https://biomejs.dev/linter/rules/no-array-index-key
|
|
2508
2658
|
*/
|
|
2509
2659
|
noArrayIndexKey?: NoArrayIndexKeyConfiguration;
|
|
2510
2660
|
/**
|
|
2511
2661
|
* Disallow assignments in expressions.
|
|
2512
|
-
See
|
|
2662
|
+
See https://biomejs.dev/linter/rules/no-assign-in-expressions
|
|
2513
2663
|
*/
|
|
2514
2664
|
noAssignInExpressions?: NoAssignInExpressionsConfiguration;
|
|
2515
2665
|
/**
|
|
2516
2666
|
* Disallows using an async function as a Promise executor.
|
|
2517
|
-
See
|
|
2667
|
+
See https://biomejs.dev/linter/rules/no-async-promise-executor
|
|
2518
2668
|
*/
|
|
2519
2669
|
noAsyncPromiseExecutor?: NoAsyncPromiseExecutorConfiguration;
|
|
2520
2670
|
/**
|
|
2521
2671
|
* Prevents the misuse of glob patterns inside the files.includes field.
|
|
2522
|
-
See
|
|
2672
|
+
See https://biomejs.dev/linter/rules/no-biome-first-exception
|
|
2523
2673
|
*/
|
|
2524
2674
|
noBiomeFirstException?: NoBiomeFirstExceptionConfiguration;
|
|
2525
2675
|
/**
|
|
2526
2676
|
* Disallow bitwise operators.
|
|
2527
|
-
See
|
|
2677
|
+
See https://biomejs.dev/linter/rules/no-bitwise-operators
|
|
2528
2678
|
*/
|
|
2529
2679
|
noBitwiseOperators?: NoBitwiseOperatorsConfiguration;
|
|
2530
2680
|
/**
|
|
2531
2681
|
* Disallow reassigning exceptions in catch clauses.
|
|
2532
|
-
See
|
|
2682
|
+
See https://biomejs.dev/linter/rules/no-catch-assign
|
|
2533
2683
|
*/
|
|
2534
2684
|
noCatchAssign?: NoCatchAssignConfiguration;
|
|
2535
2685
|
/**
|
|
2536
2686
|
* Disallow reassigning class members.
|
|
2537
|
-
See
|
|
2687
|
+
See https://biomejs.dev/linter/rules/no-class-assign
|
|
2538
2688
|
*/
|
|
2539
2689
|
noClassAssign?: NoClassAssignConfiguration;
|
|
2540
2690
|
/**
|
|
2541
2691
|
* Prevent comments from being inserted as text nodes.
|
|
2542
|
-
See
|
|
2692
|
+
See https://biomejs.dev/linter/rules/no-comment-text
|
|
2543
2693
|
*/
|
|
2544
2694
|
noCommentText?: NoCommentTextConfiguration;
|
|
2545
2695
|
/**
|
|
2546
2696
|
* Disallow comparing against -0.
|
|
2547
|
-
See
|
|
2697
|
+
See https://biomejs.dev/linter/rules/no-compare-neg-zero
|
|
2548
2698
|
*/
|
|
2549
2699
|
noCompareNegZero?: NoCompareNegZeroConfiguration;
|
|
2550
2700
|
/**
|
|
2551
2701
|
* Disallow labeled statements that are not loops.
|
|
2552
|
-
See
|
|
2702
|
+
See https://biomejs.dev/linter/rules/no-confusing-labels
|
|
2553
2703
|
*/
|
|
2554
2704
|
noConfusingLabels?: NoConfusingLabelsConfiguration;
|
|
2555
2705
|
/**
|
|
2556
2706
|
* Disallow void type outside of generic or return types.
|
|
2557
|
-
See
|
|
2707
|
+
See https://biomejs.dev/linter/rules/no-confusing-void-type
|
|
2558
2708
|
*/
|
|
2559
2709
|
noConfusingVoidType?: NoConfusingVoidTypeConfiguration;
|
|
2560
2710
|
/**
|
|
2561
2711
|
* Disallow the use of console.
|
|
2562
|
-
See
|
|
2712
|
+
See https://biomejs.dev/linter/rules/no-console
|
|
2563
2713
|
*/
|
|
2564
2714
|
noConsole?: NoConsoleConfiguration;
|
|
2565
2715
|
/**
|
|
2566
2716
|
* Disallow TypeScript const enum.
|
|
2567
|
-
See
|
|
2717
|
+
See https://biomejs.dev/linter/rules/no-const-enum
|
|
2568
2718
|
*/
|
|
2569
2719
|
noConstEnum?: NoConstEnumConfiguration;
|
|
2570
2720
|
/**
|
|
2571
2721
|
* Disallow expressions where the operation doesn't affect the value.
|
|
2572
|
-
See
|
|
2722
|
+
See https://biomejs.dev/linter/rules/no-constant-binary-expressions
|
|
2573
2723
|
*/
|
|
2574
2724
|
noConstantBinaryExpressions?: NoConstantBinaryExpressionsConfiguration;
|
|
2575
2725
|
/**
|
|
2576
2726
|
* Prevents from having control characters and some escape sequences that match control characters in regular expression literals.
|
|
2577
|
-
See
|
|
2727
|
+
See https://biomejs.dev/linter/rules/no-control-characters-in-regex
|
|
2578
2728
|
*/
|
|
2579
2729
|
noControlCharactersInRegex?: NoControlCharactersInRegexConfiguration;
|
|
2580
2730
|
/**
|
|
2581
2731
|
* Disallow the use of debugger.
|
|
2582
|
-
See
|
|
2732
|
+
See https://biomejs.dev/linter/rules/no-debugger
|
|
2583
2733
|
*/
|
|
2584
2734
|
noDebugger?: NoDebuggerConfiguration;
|
|
2585
2735
|
/**
|
|
2586
2736
|
* Disallow direct assignments to document.cookie.
|
|
2587
|
-
See
|
|
2737
|
+
See https://biomejs.dev/linter/rules/no-document-cookie
|
|
2588
2738
|
*/
|
|
2589
2739
|
noDocumentCookie?: NoDocumentCookieConfiguration;
|
|
2590
2740
|
/**
|
|
2591
2741
|
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
2592
|
-
See
|
|
2742
|
+
See https://biomejs.dev/linter/rules/no-document-import-in-page
|
|
2593
2743
|
*/
|
|
2594
2744
|
noDocumentImportInPage?: NoDocumentImportInPageConfiguration;
|
|
2595
2745
|
/**
|
|
2596
2746
|
* Require the use of === and !==.
|
|
2597
|
-
See
|
|
2747
|
+
See https://biomejs.dev/linter/rules/no-double-equals
|
|
2598
2748
|
*/
|
|
2599
2749
|
noDoubleEquals?: NoDoubleEqualsConfiguration;
|
|
2600
2750
|
/**
|
|
2601
2751
|
* Disallow duplicate @import rules.
|
|
2602
|
-
See
|
|
2752
|
+
See https://biomejs.dev/linter/rules/no-duplicate-at-import-rules
|
|
2603
2753
|
*/
|
|
2604
2754
|
noDuplicateAtImportRules?: NoDuplicateAtImportRulesConfiguration;
|
|
2605
2755
|
/**
|
|
2606
2756
|
* Disallow duplicate case labels.
|
|
2607
|
-
See
|
|
2757
|
+
See https://biomejs.dev/linter/rules/no-duplicate-case
|
|
2608
2758
|
*/
|
|
2609
2759
|
noDuplicateCase?: NoDuplicateCaseConfiguration;
|
|
2610
2760
|
/**
|
|
2611
2761
|
* Disallow duplicate class members.
|
|
2612
|
-
See
|
|
2762
|
+
See https://biomejs.dev/linter/rules/no-duplicate-class-members
|
|
2613
2763
|
*/
|
|
2614
2764
|
noDuplicateClassMembers?: NoDuplicateClassMembersConfiguration;
|
|
2615
2765
|
/**
|
|
2616
2766
|
* Disallow duplicate custom properties within declaration blocks.
|
|
2617
|
-
See
|
|
2767
|
+
See https://biomejs.dev/linter/rules/no-duplicate-custom-properties
|
|
2618
2768
|
*/
|
|
2619
2769
|
noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration;
|
|
2620
2770
|
/**
|
|
2621
2771
|
* Disallow duplicate conditions in if-else-if chains.
|
|
2622
|
-
See
|
|
2772
|
+
See https://biomejs.dev/linter/rules/no-duplicate-else-if
|
|
2623
2773
|
*/
|
|
2624
2774
|
noDuplicateElseIf?: NoDuplicateElseIfConfiguration;
|
|
2625
2775
|
/**
|
|
2626
2776
|
* No duplicated fields in GraphQL operations.
|
|
2627
|
-
See
|
|
2777
|
+
See https://biomejs.dev/linter/rules/no-duplicate-fields
|
|
2628
2778
|
*/
|
|
2629
2779
|
noDuplicateFields?: NoDuplicateFieldsConfiguration;
|
|
2630
2780
|
/**
|
|
2631
2781
|
* Disallow duplicate names within font families.
|
|
2632
|
-
See
|
|
2782
|
+
See https://biomejs.dev/linter/rules/no-duplicate-font-names
|
|
2633
2783
|
*/
|
|
2634
2784
|
noDuplicateFontNames?: NoDuplicateFontNamesConfiguration;
|
|
2635
2785
|
/**
|
|
2636
2786
|
* Prevents JSX properties to be assigned multiple times.
|
|
2637
|
-
See
|
|
2787
|
+
See https://biomejs.dev/linter/rules/no-duplicate-jsx-props
|
|
2638
2788
|
*/
|
|
2639
2789
|
noDuplicateJsxProps?: NoDuplicateJsxPropsConfiguration;
|
|
2640
2790
|
/**
|
|
2641
2791
|
* Disallow two keys with the same name inside objects.
|
|
2642
|
-
See
|
|
2792
|
+
See https://biomejs.dev/linter/rules/no-duplicate-object-keys
|
|
2643
2793
|
*/
|
|
2644
2794
|
noDuplicateObjectKeys?: NoDuplicateObjectKeysConfiguration;
|
|
2645
2795
|
/**
|
|
2646
2796
|
* Disallow duplicate function parameter name.
|
|
2647
|
-
See
|
|
2797
|
+
See https://biomejs.dev/linter/rules/no-duplicate-parameters
|
|
2648
2798
|
*/
|
|
2649
2799
|
noDuplicateParameters?: NoDuplicateParametersConfiguration;
|
|
2650
2800
|
/**
|
|
2651
2801
|
* Disallow duplicate properties within declaration blocks.
|
|
2652
|
-
See
|
|
2802
|
+
See https://biomejs.dev/linter/rules/no-duplicate-properties
|
|
2653
2803
|
*/
|
|
2654
2804
|
noDuplicateProperties?: NoDuplicatePropertiesConfiguration;
|
|
2655
2805
|
/**
|
|
2656
2806
|
* Disallow duplicate selectors within keyframe blocks.
|
|
2657
|
-
See
|
|
2807
|
+
See https://biomejs.dev/linter/rules/no-duplicate-selectors-keyframe-block
|
|
2658
2808
|
*/
|
|
2659
2809
|
noDuplicateSelectorsKeyframeBlock?: NoDuplicateSelectorsKeyframeBlockConfiguration;
|
|
2660
2810
|
/**
|
|
2661
2811
|
* A describe block should not contain duplicate hooks.
|
|
2662
|
-
See
|
|
2812
|
+
See https://biomejs.dev/linter/rules/no-duplicate-test-hooks
|
|
2663
2813
|
*/
|
|
2664
2814
|
noDuplicateTestHooks?: NoDuplicateTestHooksConfiguration;
|
|
2665
2815
|
/**
|
|
2666
2816
|
* Disallow CSS empty blocks.
|
|
2667
|
-
See
|
|
2817
|
+
See https://biomejs.dev/linter/rules/no-empty-block
|
|
2668
2818
|
*/
|
|
2669
2819
|
noEmptyBlock?: NoEmptyBlockConfiguration;
|
|
2670
2820
|
/**
|
|
2671
2821
|
* Disallow empty block statements and static blocks.
|
|
2672
|
-
See
|
|
2822
|
+
See https://biomejs.dev/linter/rules/no-empty-block-statements
|
|
2673
2823
|
*/
|
|
2674
2824
|
noEmptyBlockStatements?: NoEmptyBlockStatementsConfiguration;
|
|
2675
2825
|
/**
|
|
2676
2826
|
* Disallow the declaration of empty interfaces.
|
|
2677
|
-
See
|
|
2827
|
+
See https://biomejs.dev/linter/rules/no-empty-interface
|
|
2678
2828
|
*/
|
|
2679
2829
|
noEmptyInterface?: NoEmptyInterfaceConfiguration;
|
|
2680
2830
|
/**
|
|
2681
2831
|
* Disallow variables from evolving into any type through reassignments.
|
|
2682
|
-
See
|
|
2832
|
+
See https://biomejs.dev/linter/rules/no-evolving-types
|
|
2683
2833
|
*/
|
|
2684
2834
|
noEvolvingTypes?: NoEvolvingTypesConfiguration;
|
|
2685
2835
|
/**
|
|
2686
2836
|
* Disallow the any type usage.
|
|
2687
|
-
See
|
|
2837
|
+
See https://biomejs.dev/linter/rules/no-explicit-any
|
|
2688
2838
|
*/
|
|
2689
2839
|
noExplicitAny?: NoExplicitAnyConfiguration;
|
|
2690
2840
|
/**
|
|
2691
2841
|
* Disallow using export or module.exports in files containing tests.
|
|
2692
|
-
See
|
|
2842
|
+
See https://biomejs.dev/linter/rules/no-exports-in-test
|
|
2693
2843
|
*/
|
|
2694
2844
|
noExportsInTest?: NoExportsInTestConfiguration;
|
|
2695
2845
|
/**
|
|
2696
2846
|
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
2697
|
-
See
|
|
2847
|
+
See https://biomejs.dev/linter/rules/no-extra-non-null-assertion
|
|
2698
2848
|
*/
|
|
2699
2849
|
noExtraNonNullAssertion?: NoExtraNonNullAssertionConfiguration;
|
|
2700
2850
|
/**
|
|
2701
2851
|
* Disallow fallthrough of switch clauses.
|
|
2702
|
-
See
|
|
2852
|
+
See https://biomejs.dev/linter/rules/no-fallthrough-switch-clause
|
|
2703
2853
|
*/
|
|
2704
2854
|
noFallthroughSwitchClause?: NoFallthroughSwitchClauseConfiguration;
|
|
2705
2855
|
/**
|
|
2706
2856
|
* Disallow focused tests.
|
|
2707
|
-
See
|
|
2857
|
+
See https://biomejs.dev/linter/rules/no-focused-tests
|
|
2708
2858
|
*/
|
|
2709
2859
|
noFocusedTests?: NoFocusedTestsConfiguration;
|
|
2710
2860
|
/**
|
|
2711
2861
|
* Disallow reassigning function declarations.
|
|
2712
|
-
See
|
|
2862
|
+
See https://biomejs.dev/linter/rules/no-function-assign
|
|
2713
2863
|
*/
|
|
2714
2864
|
noFunctionAssign?: NoFunctionAssignConfiguration;
|
|
2715
2865
|
/**
|
|
2716
2866
|
* Disallow assignments to native objects and read-only global variables.
|
|
2717
|
-
See
|
|
2867
|
+
See https://biomejs.dev/linter/rules/no-global-assign
|
|
2718
2868
|
*/
|
|
2719
2869
|
noGlobalAssign?: NoGlobalAssignConfiguration;
|
|
2720
2870
|
/**
|
|
2721
2871
|
* Use Number.isFinite instead of global isFinite.
|
|
2722
|
-
See
|
|
2872
|
+
See https://biomejs.dev/linter/rules/no-global-is-finite
|
|
2723
2873
|
*/
|
|
2724
2874
|
noGlobalIsFinite?: NoGlobalIsFiniteConfiguration;
|
|
2725
2875
|
/**
|
|
2726
2876
|
* Use Number.isNaN instead of global isNaN.
|
|
2727
|
-
See
|
|
2877
|
+
See https://biomejs.dev/linter/rules/no-global-is-nan
|
|
2728
2878
|
*/
|
|
2729
2879
|
noGlobalIsNan?: NoGlobalIsNanConfiguration;
|
|
2730
2880
|
/**
|
|
2731
2881
|
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
2732
|
-
See
|
|
2882
|
+
See https://biomejs.dev/linter/rules/no-head-import-in-document
|
|
2733
2883
|
*/
|
|
2734
2884
|
noHeadImportInDocument?: NoHeadImportInDocumentConfiguration;
|
|
2735
2885
|
/**
|
|
2736
2886
|
* Disallow use of implicit any type on variable declarations.
|
|
2737
|
-
See
|
|
2887
|
+
See https://biomejs.dev/linter/rules/no-implicit-any-let
|
|
2738
2888
|
*/
|
|
2739
2889
|
noImplicitAnyLet?: NoImplicitAnyLetConfiguration;
|
|
2740
2890
|
/**
|
|
2741
2891
|
* Disallow assigning to imported bindings.
|
|
2742
|
-
See
|
|
2892
|
+
See https://biomejs.dev/linter/rules/no-import-assign
|
|
2743
2893
|
*/
|
|
2744
2894
|
noImportAssign?: NoImportAssignConfiguration;
|
|
2745
2895
|
/**
|
|
2746
2896
|
* Disallow invalid !important within keyframe declarations.
|
|
2747
|
-
See
|
|
2897
|
+
See https://biomejs.dev/linter/rules/no-important-in-keyframe
|
|
2748
2898
|
*/
|
|
2749
2899
|
noImportantInKeyframe?: NoImportantInKeyframeConfiguration;
|
|
2750
2900
|
/**
|
|
2751
2901
|
* Disallows the use of irregular whitespace characters.
|
|
2752
|
-
See
|
|
2902
|
+
See https://biomejs.dev/linter/rules/no-irregular-whitespace
|
|
2753
2903
|
*/
|
|
2754
2904
|
noIrregularWhitespace?: NoIrregularWhitespaceConfiguration;
|
|
2755
2905
|
/**
|
|
2756
2906
|
* Disallow labels that share a name with a variable.
|
|
2757
|
-
See
|
|
2907
|
+
See https://biomejs.dev/linter/rules/no-label-var
|
|
2758
2908
|
*/
|
|
2759
2909
|
noLabelVar?: NoLabelVarConfiguration;
|
|
2760
2910
|
/**
|
|
2761
2911
|
* Disallow characters made with multiple code points in character class syntax.
|
|
2762
|
-
See
|
|
2912
|
+
See https://biomejs.dev/linter/rules/no-misleading-character-class
|
|
2763
2913
|
*/
|
|
2764
2914
|
noMisleadingCharacterClass?: NoMisleadingCharacterClassConfiguration;
|
|
2765
2915
|
/**
|
|
2766
2916
|
* Enforce proper usage of new and constructor.
|
|
2767
|
-
See
|
|
2917
|
+
See https://biomejs.dev/linter/rules/no-misleading-instantiator
|
|
2768
2918
|
*/
|
|
2769
2919
|
noMisleadingInstantiator?: NoMisleadingInstantiatorConfiguration;
|
|
2770
2920
|
/**
|
|
2771
2921
|
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
2772
|
-
See
|
|
2922
|
+
See https://biomejs.dev/linter/rules/no-misplaced-assertion
|
|
2773
2923
|
*/
|
|
2774
2924
|
noMisplacedAssertion?: NoMisplacedAssertionConfiguration;
|
|
2775
2925
|
/**
|
|
2776
2926
|
* Disallow shorthand assign when variable appears on both sides.
|
|
2777
|
-
See
|
|
2927
|
+
See https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign
|
|
2778
2928
|
*/
|
|
2779
2929
|
noMisrefactoredShorthandAssign?: NoMisrefactoredShorthandAssignConfiguration;
|
|
2780
2930
|
/**
|
|
2781
2931
|
* Disallow non-null assertions after optional chaining expressions.
|
|
2782
|
-
See
|
|
2932
|
+
See https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain
|
|
2783
2933
|
*/
|
|
2784
2934
|
noNonNullAssertedOptionalChain?: NoNonNullAssertedOptionalChainConfiguration;
|
|
2785
2935
|
/**
|
|
2786
2936
|
* Disallow octal escape sequences in string literals.
|
|
2787
|
-
See
|
|
2937
|
+
See https://biomejs.dev/linter/rules/no-octal-escape
|
|
2788
2938
|
*/
|
|
2789
2939
|
noOctalEscape?: NoOctalEscapeConfiguration;
|
|
2790
2940
|
/**
|
|
2791
2941
|
* Disallow direct use of Object.prototype builtins.
|
|
2792
|
-
See
|
|
2942
|
+
See https://biomejs.dev/linter/rules/no-prototype-builtins
|
|
2793
2943
|
*/
|
|
2794
2944
|
noPrototypeBuiltins?: NoPrototypeBuiltinsConfiguration;
|
|
2795
2945
|
/**
|
|
2796
2946
|
* Disallow the use if quickfix.biome inside editor settings file.
|
|
2797
|
-
See
|
|
2947
|
+
See https://biomejs.dev/linter/rules/no-quickfix-biome
|
|
2798
2948
|
*/
|
|
2799
2949
|
noQuickfixBiome?: NoQuickfixBiomeConfiguration;
|
|
2800
2950
|
/**
|
|
2801
2951
|
* Prevents React-specific JSX properties from being used.
|
|
2802
|
-
See
|
|
2952
|
+
See https://biomejs.dev/linter/rules/no-react-specific-props
|
|
2803
2953
|
*/
|
|
2804
2954
|
noReactSpecificProps?: NoReactSpecificPropsConfiguration;
|
|
2805
2955
|
/**
|
|
2806
2956
|
* Disallow variable, function, class, and type redeclarations in the same scope.
|
|
2807
|
-
See
|
|
2957
|
+
See https://biomejs.dev/linter/rules/no-redeclare
|
|
2808
2958
|
*/
|
|
2809
2959
|
noRedeclare?: NoRedeclareConfiguration;
|
|
2810
2960
|
/**
|
|
2811
2961
|
* Prevents from having redundant "use strict".
|
|
2812
|
-
See
|
|
2962
|
+
See https://biomejs.dev/linter/rules/no-redundant-use-strict
|
|
2813
2963
|
*/
|
|
2814
2964
|
noRedundantUseStrict?: NoRedundantUseStrictConfiguration;
|
|
2815
2965
|
/**
|
|
2816
2966
|
* Disallow comparisons where both sides are exactly the same.
|
|
2817
|
-
See
|
|
2967
|
+
See https://biomejs.dev/linter/rules/no-self-compare
|
|
2818
2968
|
*/
|
|
2819
2969
|
noSelfCompare?: NoSelfCompareConfiguration;
|
|
2820
2970
|
/**
|
|
2821
2971
|
* Disallow identifiers from shadowing restricted names.
|
|
2822
|
-
See
|
|
2972
|
+
See https://biomejs.dev/linter/rules/no-shadow-restricted-names
|
|
2823
2973
|
*/
|
|
2824
2974
|
noShadowRestrictedNames?: NoShadowRestrictedNamesConfiguration;
|
|
2825
2975
|
/**
|
|
2826
2976
|
* Disallow shorthand properties that override related longhand properties.
|
|
2827
|
-
See
|
|
2977
|
+
See https://biomejs.dev/linter/rules/no-shorthand-property-overrides
|
|
2828
2978
|
*/
|
|
2829
2979
|
noShorthandPropertyOverrides?: NoShorthandPropertyOverridesConfiguration;
|
|
2830
2980
|
/**
|
|
2831
2981
|
* Disallow disabled tests.
|
|
2832
|
-
See
|
|
2982
|
+
See https://biomejs.dev/linter/rules/no-skipped-tests
|
|
2833
2983
|
*/
|
|
2834
2984
|
noSkippedTests?: NoSkippedTestsConfiguration;
|
|
2835
2985
|
/**
|
|
2836
2986
|
* Prevents the use of sparse arrays (arrays with holes).
|
|
2837
|
-
See
|
|
2987
|
+
See https://biomejs.dev/linter/rules/no-sparse-array
|
|
2838
2988
|
*/
|
|
2839
2989
|
noSparseArray?: NoSparseArrayConfiguration;
|
|
2840
2990
|
/**
|
|
2841
2991
|
* It detects possible "wrong" semicolons inside JSX elements.
|
|
2842
|
-
See
|
|
2992
|
+
See https://biomejs.dev/linter/rules/no-suspicious-semicolon-in-jsx
|
|
2843
2993
|
*/
|
|
2844
2994
|
noSuspiciousSemicolonInJsx?: NoSuspiciousSemicolonInJsxConfiguration;
|
|
2845
2995
|
/**
|
|
2846
2996
|
* Disallow template literal placeholder syntax in regular strings.
|
|
2847
|
-
See
|
|
2997
|
+
See https://biomejs.dev/linter/rules/no-template-curly-in-string
|
|
2848
2998
|
*/
|
|
2849
2999
|
noTemplateCurlyInString?: NoTemplateCurlyInStringConfiguration;
|
|
2850
3000
|
/**
|
|
2851
3001
|
* Disallow then property.
|
|
2852
|
-
See
|
|
3002
|
+
See https://biomejs.dev/linter/rules/no-then-property
|
|
2853
3003
|
*/
|
|
2854
3004
|
noThenProperty?: NoThenPropertyConfiguration;
|
|
2855
3005
|
/**
|
|
2856
3006
|
* Prevents the use of the TypeScript directive @ts-ignore.
|
|
2857
|
-
See
|
|
3007
|
+
See https://biomejs.dev/linter/rules/no-ts-ignore
|
|
2858
3008
|
*/
|
|
2859
3009
|
noTsIgnore?: NoTsIgnoreConfiguration;
|
|
2860
3010
|
/**
|
|
2861
3011
|
* Disallow let or var variables that are read but never assigned.
|
|
2862
|
-
See
|
|
3012
|
+
See https://biomejs.dev/linter/rules/no-unassigned-variables
|
|
2863
3013
|
*/
|
|
2864
3014
|
noUnassignedVariables?: NoUnassignedVariablesConfiguration;
|
|
2865
3015
|
/**
|
|
2866
3016
|
* Disallow unknown at-rules.
|
|
2867
|
-
See
|
|
3017
|
+
See https://biomejs.dev/linter/rules/no-unknown-at-rules
|
|
2868
3018
|
*/
|
|
2869
3019
|
noUnknownAtRules?: NoUnknownAtRulesConfiguration;
|
|
2870
3020
|
/**
|
|
2871
3021
|
* Disallow unsafe declaration merging between interfaces and classes.
|
|
2872
|
-
See
|
|
3022
|
+
See https://biomejs.dev/linter/rules/no-unsafe-declaration-merging
|
|
2873
3023
|
*/
|
|
2874
3024
|
noUnsafeDeclarationMerging?: NoUnsafeDeclarationMergingConfiguration;
|
|
2875
3025
|
/**
|
|
2876
3026
|
* Disallow using unsafe negation.
|
|
2877
|
-
See
|
|
3027
|
+
See https://biomejs.dev/linter/rules/no-unsafe-negation
|
|
2878
3028
|
*/
|
|
2879
3029
|
noUnsafeNegation?: NoUnsafeNegationConfiguration;
|
|
2880
3030
|
/**
|
|
2881
3031
|
* Disallow unnecessary escapes in string literals.
|
|
2882
|
-
See
|
|
3032
|
+
See https://biomejs.dev/linter/rules/no-useless-escape-in-string
|
|
2883
3033
|
*/
|
|
2884
3034
|
noUselessEscapeInString?: NoUselessEscapeInStringConfiguration;
|
|
2885
3035
|
/**
|
|
2886
3036
|
* Disallow useless backreferences in regular expression literals that always match an empty string.
|
|
2887
|
-
See
|
|
3037
|
+
See https://biomejs.dev/linter/rules/no-useless-regex-backrefs
|
|
2888
3038
|
*/
|
|
2889
3039
|
noUselessRegexBackrefs?: NoUselessRegexBackrefsConfiguration;
|
|
2890
3040
|
/**
|
|
2891
3041
|
* Disallow the use of var.
|
|
2892
|
-
See
|
|
3042
|
+
See https://biomejs.dev/linter/rules/no-var
|
|
2893
3043
|
*/
|
|
2894
3044
|
noVar?: NoVarConfiguration;
|
|
2895
3045
|
/**
|
|
2896
3046
|
* Disallow with statements in non-strict contexts.
|
|
2897
|
-
See
|
|
3047
|
+
See https://biomejs.dev/linter/rules/no-with
|
|
2898
3048
|
*/
|
|
2899
3049
|
noWith?: NoWithConfiguration;
|
|
2900
3050
|
/**
|
|
@@ -2903,72 +3053,72 @@ See <https://biomejs.dev/linter/rules/no-with>
|
|
|
2903
3053
|
recommended?: boolean;
|
|
2904
3054
|
/**
|
|
2905
3055
|
* Disallow the use of overload signatures that are not next to each other.
|
|
2906
|
-
See
|
|
3056
|
+
See https://biomejs.dev/linter/rules/use-adjacent-overload-signatures
|
|
2907
3057
|
*/
|
|
2908
3058
|
useAdjacentOverloadSignatures?: UseAdjacentOverloadSignaturesConfiguration;
|
|
2909
3059
|
/**
|
|
2910
3060
|
* Ensure async functions utilize await.
|
|
2911
|
-
See
|
|
3061
|
+
See https://biomejs.dev/linter/rules/use-await
|
|
2912
3062
|
*/
|
|
2913
3063
|
useAwait?: UseAwaitConfiguration;
|
|
2914
3064
|
/**
|
|
2915
3065
|
* Promotes the correct usage for ignoring folders in the configuration file.
|
|
2916
|
-
See
|
|
3066
|
+
See https://biomejs.dev/linter/rules/use-biome-ignore-folder
|
|
2917
3067
|
*/
|
|
2918
3068
|
useBiomeIgnoreFolder?: UseBiomeIgnoreFolderConfiguration;
|
|
2919
3069
|
/**
|
|
2920
3070
|
* Enforce default clauses in switch statements to be last.
|
|
2921
|
-
See
|
|
3071
|
+
See https://biomejs.dev/linter/rules/use-default-switch-clause-last
|
|
2922
3072
|
*/
|
|
2923
3073
|
useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration;
|
|
2924
3074
|
/**
|
|
2925
3075
|
* Enforce passing a message value when creating a built-in error.
|
|
2926
|
-
See
|
|
3076
|
+
See https://biomejs.dev/linter/rules/use-error-message
|
|
2927
3077
|
*/
|
|
2928
3078
|
useErrorMessage?: UseErrorMessageConfiguration;
|
|
2929
3079
|
/**
|
|
2930
3080
|
* Enforce get methods to always return a value.
|
|
2931
|
-
See
|
|
3081
|
+
See https://biomejs.dev/linter/rules/use-getter-return
|
|
2932
3082
|
*/
|
|
2933
3083
|
useGetterReturn?: UseGetterReturnConfiguration;
|
|
2934
3084
|
/**
|
|
2935
3085
|
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
2936
|
-
See
|
|
3086
|
+
See https://biomejs.dev/linter/rules/use-google-font-display
|
|
2937
3087
|
*/
|
|
2938
3088
|
useGoogleFontDisplay?: UseGoogleFontDisplayConfiguration;
|
|
2939
3089
|
/**
|
|
2940
3090
|
* Require for-in loops to include an if statement.
|
|
2941
|
-
See
|
|
3091
|
+
See https://biomejs.dev/linter/rules/use-guard-for-in
|
|
2942
3092
|
*/
|
|
2943
3093
|
useGuardForIn?: UseGuardForInConfiguration;
|
|
2944
3094
|
/**
|
|
2945
3095
|
* Use Array.isArray() instead of instanceof Array.
|
|
2946
|
-
See
|
|
3096
|
+
See https://biomejs.dev/linter/rules/use-is-array
|
|
2947
3097
|
*/
|
|
2948
3098
|
useIsArray?: UseIsArrayConfiguration;
|
|
2949
3099
|
/**
|
|
2950
3100
|
* Enforce consistent return values in iterable callbacks.
|
|
2951
|
-
See
|
|
3101
|
+
See https://biomejs.dev/linter/rules/use-iterable-callback-return
|
|
2952
3102
|
*/
|
|
2953
3103
|
useIterableCallbackReturn?: UseIterableCallbackReturnConfiguration;
|
|
2954
3104
|
/**
|
|
2955
3105
|
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
2956
|
-
See
|
|
3106
|
+
See https://biomejs.dev/linter/rules/use-namespace-keyword
|
|
2957
3107
|
*/
|
|
2958
3108
|
useNamespaceKeyword?: UseNamespaceKeywordConfiguration;
|
|
2959
3109
|
/**
|
|
2960
3110
|
* Enforce using the digits argument with Number#toFixed().
|
|
2961
|
-
See
|
|
3111
|
+
See https://biomejs.dev/linter/rules/use-number-to-fixed-digits-argument
|
|
2962
3112
|
*/
|
|
2963
3113
|
useNumberToFixedDigitsArgument?: UseNumberToFixedDigitsArgumentConfiguration;
|
|
2964
3114
|
/**
|
|
2965
3115
|
* Use static Response methods instead of new Response() constructor when possible.
|
|
2966
|
-
See
|
|
3116
|
+
See https://biomejs.dev/linter/rules/use-static-response-methods
|
|
2967
3117
|
*/
|
|
2968
3118
|
useStaticResponseMethods?: UseStaticResponseMethodsConfiguration;
|
|
2969
3119
|
/**
|
|
2970
3120
|
* Enforce the use of the directive "use strict" in script files.
|
|
2971
|
-
See
|
|
3121
|
+
See https://biomejs.dev/linter/rules/use-strict-mode
|
|
2972
3122
|
*/
|
|
2973
3123
|
useStrictMode?: UseStrictModeConfiguration;
|
|
2974
3124
|
}
|
|
@@ -3427,15 +3577,45 @@ type UseYieldConfiguration = RulePlainConfiguration | RuleWithUseYieldOptions;
|
|
|
3427
3577
|
type NoAmbiguousAnchorTextConfiguration =
|
|
3428
3578
|
| RulePlainConfiguration
|
|
3429
3579
|
| RuleWithNoAmbiguousAnchorTextOptions;
|
|
3580
|
+
type NoBeforeInteractiveScriptOutsideDocumentConfiguration =
|
|
3581
|
+
| RulePlainConfiguration
|
|
3582
|
+
| RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions;
|
|
3430
3583
|
type NoContinueConfiguration =
|
|
3431
3584
|
| RulePlainConfiguration
|
|
3432
3585
|
| RuleWithNoContinueOptions;
|
|
3433
3586
|
type NoDeprecatedImportsConfiguration =
|
|
3434
3587
|
| RulePlainConfiguration
|
|
3435
3588
|
| RuleWithNoDeprecatedImportsOptions;
|
|
3589
|
+
type NoDivRegexConfiguration =
|
|
3590
|
+
| RulePlainConfiguration
|
|
3591
|
+
| RuleWithNoDivRegexOptions;
|
|
3592
|
+
type NoDuplicateArgumentNamesConfiguration =
|
|
3593
|
+
| RulePlainConfiguration
|
|
3594
|
+
| RuleWithNoDuplicateArgumentNamesOptions;
|
|
3595
|
+
type NoDuplicateAttributesConfiguration =
|
|
3596
|
+
| RulePlainConfiguration
|
|
3597
|
+
| RuleWithNoDuplicateAttributesOptions;
|
|
3436
3598
|
type NoDuplicateDependenciesConfiguration =
|
|
3437
3599
|
| RulePlainConfiguration
|
|
3438
3600
|
| RuleWithNoDuplicateDependenciesOptions;
|
|
3601
|
+
type NoDuplicateEnumValueNamesConfiguration =
|
|
3602
|
+
| RulePlainConfiguration
|
|
3603
|
+
| RuleWithNoDuplicateEnumValueNamesOptions;
|
|
3604
|
+
type NoDuplicateEnumValuesConfiguration =
|
|
3605
|
+
| RulePlainConfiguration
|
|
3606
|
+
| RuleWithNoDuplicateEnumValuesOptions;
|
|
3607
|
+
type NoDuplicateFieldDefinitionNamesConfiguration =
|
|
3608
|
+
| RulePlainConfiguration
|
|
3609
|
+
| RuleWithNoDuplicateFieldDefinitionNamesOptions;
|
|
3610
|
+
type NoDuplicateGraphqlOperationNameConfiguration =
|
|
3611
|
+
| RulePlainConfiguration
|
|
3612
|
+
| RuleWithNoDuplicateGraphqlOperationNameOptions;
|
|
3613
|
+
type NoDuplicateInputFieldNamesConfiguration =
|
|
3614
|
+
| RulePlainConfiguration
|
|
3615
|
+
| RuleWithNoDuplicateInputFieldNamesOptions;
|
|
3616
|
+
type NoDuplicateVariableNamesConfiguration =
|
|
3617
|
+
| RulePlainConfiguration
|
|
3618
|
+
| RuleWithNoDuplicateVariableNamesOptions;
|
|
3439
3619
|
type NoDuplicatedSpreadPropsConfiguration =
|
|
3440
3620
|
| RulePlainConfiguration
|
|
3441
3621
|
| RuleWithNoDuplicatedSpreadPropsOptions;
|
|
@@ -3445,6 +3625,15 @@ type NoEmptySourceConfiguration =
|
|
|
3445
3625
|
type NoEqualsToNullConfiguration =
|
|
3446
3626
|
| RulePlainConfiguration
|
|
3447
3627
|
| RuleWithNoEqualsToNullOptions;
|
|
3628
|
+
type NoExcessiveClassesPerFileConfiguration =
|
|
3629
|
+
| RulePlainConfiguration
|
|
3630
|
+
| RuleWithNoExcessiveClassesPerFileOptions;
|
|
3631
|
+
type NoExcessiveLinesPerFileConfiguration =
|
|
3632
|
+
| RulePlainConfiguration
|
|
3633
|
+
| RuleWithNoExcessiveLinesPerFileOptions;
|
|
3634
|
+
type NoFloatingClassesConfiguration =
|
|
3635
|
+
| RulePlainConfiguration
|
|
3636
|
+
| RuleWithNoFloatingClassesOptions;
|
|
3448
3637
|
type NoFloatingPromisesConfiguration =
|
|
3449
3638
|
| RulePlainConfiguration
|
|
3450
3639
|
| RuleWithNoFloatingPromisesOptions;
|
|
@@ -3458,12 +3647,18 @@ type NoIncrementDecrementConfiguration =
|
|
|
3458
3647
|
type NoJsxLiteralsConfiguration =
|
|
3459
3648
|
| RulePlainConfiguration
|
|
3460
3649
|
| RuleWithNoJsxLiteralsOptions;
|
|
3650
|
+
type NoJsxPropsBindConfiguration =
|
|
3651
|
+
| RulePlainConfiguration
|
|
3652
|
+
| RuleWithNoJsxPropsBindOptions;
|
|
3461
3653
|
type NoLeakedRenderConfiguration =
|
|
3462
3654
|
| RulePlainConfiguration
|
|
3463
3655
|
| RuleWithNoLeakedRenderOptions;
|
|
3464
3656
|
type NoMisusedPromisesConfiguration =
|
|
3465
3657
|
| RulePlainConfiguration
|
|
3466
3658
|
| RuleWithNoMisusedPromisesOptions;
|
|
3659
|
+
type NoMultiAssignConfiguration =
|
|
3660
|
+
| RulePlainConfiguration
|
|
3661
|
+
| RuleWithNoMultiAssignOptions;
|
|
3467
3662
|
type NoMultiStrConfiguration =
|
|
3468
3663
|
| RulePlainConfiguration
|
|
3469
3664
|
| RuleWithNoMultiStrOptions;
|
|
@@ -3477,6 +3672,12 @@ type NoProtoConfiguration = RulePlainConfiguration | RuleWithNoProtoOptions;
|
|
|
3477
3672
|
type NoReactForwardRefConfiguration =
|
|
3478
3673
|
| RulePlainConfiguration
|
|
3479
3674
|
| RuleWithNoReactForwardRefOptions;
|
|
3675
|
+
type NoReturnAssignConfiguration =
|
|
3676
|
+
| RulePlainConfiguration
|
|
3677
|
+
| RuleWithNoReturnAssignOptions;
|
|
3678
|
+
type NoRootTypeConfiguration =
|
|
3679
|
+
| RulePlainConfiguration
|
|
3680
|
+
| RuleWithNoRootTypeOptions;
|
|
3480
3681
|
type NoScriptUrlConfiguration =
|
|
3481
3682
|
| RulePlainConfiguration
|
|
3482
3683
|
| RuleWithNoScriptUrlOptions;
|
|
@@ -3512,6 +3713,9 @@ type NoVueDataObjectDeclarationConfiguration =
|
|
|
3512
3713
|
type NoVueDuplicateKeysConfiguration =
|
|
3513
3714
|
| RulePlainConfiguration
|
|
3514
3715
|
| RuleWithNoVueDuplicateKeysOptions;
|
|
3716
|
+
type NoVueOptionsApiConfiguration =
|
|
3717
|
+
| RulePlainConfiguration
|
|
3718
|
+
| RuleWithNoVueOptionsApiOptions;
|
|
3515
3719
|
type NoVueReservedKeysConfiguration =
|
|
3516
3720
|
| RulePlainConfiguration
|
|
3517
3721
|
| RuleWithNoVueReservedKeysOptions;
|
|
@@ -3542,6 +3746,9 @@ type UseDeprecatedDateConfiguration =
|
|
|
3542
3746
|
type UseDestructuringConfiguration =
|
|
3543
3747
|
| RulePlainConfiguration
|
|
3544
3748
|
| RuleWithUseDestructuringOptions;
|
|
3749
|
+
type UseErrorCauseConfiguration =
|
|
3750
|
+
| RulePlainConfiguration
|
|
3751
|
+
| RuleWithUseErrorCauseOptions;
|
|
3545
3752
|
type UseExhaustiveSwitchCasesConfiguration =
|
|
3546
3753
|
| RulePlainConfiguration
|
|
3547
3754
|
| RuleWithUseExhaustiveSwitchCasesOptions;
|
|
@@ -3549,6 +3756,15 @@ type UseExplicitTypeConfiguration =
|
|
|
3549
3756
|
| RulePlainConfiguration
|
|
3550
3757
|
| RuleWithUseExplicitTypeOptions;
|
|
3551
3758
|
type UseFindConfiguration = RulePlainConfiguration | RuleWithUseFindOptions;
|
|
3759
|
+
type UseInlineScriptIdConfiguration =
|
|
3760
|
+
| RulePlainConfiguration
|
|
3761
|
+
| RuleWithUseInlineScriptIdOptions;
|
|
3762
|
+
type UseLoneAnonymousOperationConfiguration =
|
|
3763
|
+
| RulePlainConfiguration
|
|
3764
|
+
| RuleWithUseLoneAnonymousOperationOptions;
|
|
3765
|
+
type UseLoneExecutableDefinitionConfiguration =
|
|
3766
|
+
| RulePlainConfiguration
|
|
3767
|
+
| RuleWithUseLoneExecutableDefinitionOptions;
|
|
3552
3768
|
type UseMaxParamsConfiguration =
|
|
3553
3769
|
| RulePlainConfiguration
|
|
3554
3770
|
| RuleWithUseMaxParamsOptions;
|
|
@@ -3568,9 +3784,15 @@ type UseSortedClassesConfiguration =
|
|
|
3568
3784
|
| RulePlainConfiguration
|
|
3569
3785
|
| RuleWithUseSortedClassesOptions;
|
|
3570
3786
|
type UseSpreadConfiguration = RulePlainConfiguration | RuleWithUseSpreadOptions;
|
|
3571
|
-
type
|
|
3787
|
+
type UseVueConsistentDefinePropsDeclarationConfiguration =
|
|
3788
|
+
| RulePlainConfiguration
|
|
3789
|
+
| RuleWithUseVueConsistentDefinePropsDeclarationOptions;
|
|
3790
|
+
type UseVueConsistentVBindStyleConfiguration =
|
|
3572
3791
|
| RulePlainConfiguration
|
|
3573
|
-
|
|
|
3792
|
+
| RuleWithUseVueConsistentVBindStyleOptions;
|
|
3793
|
+
type UseVueConsistentVOnStyleConfiguration =
|
|
3794
|
+
| RulePlainConfiguration
|
|
3795
|
+
| RuleWithUseVueConsistentVOnStyleOptions;
|
|
3574
3796
|
type UseVueDefineMacrosOrderConfiguration =
|
|
3575
3797
|
| RulePlainConfiguration
|
|
3576
3798
|
| RuleWithUseVueDefineMacrosOrderOptions;
|
|
@@ -3580,9 +3802,18 @@ type UseVueHyphenatedAttributesConfiguration =
|
|
|
3580
3802
|
type UseVueMultiWordComponentNamesConfiguration =
|
|
3581
3803
|
| RulePlainConfiguration
|
|
3582
3804
|
| RuleWithUseVueMultiWordComponentNamesOptions;
|
|
3805
|
+
type UseVueVForKeyConfiguration =
|
|
3806
|
+
| RulePlainConfiguration
|
|
3807
|
+
| RuleWithUseVueVForKeyOptions;
|
|
3808
|
+
type UseVueValidTemplateRootConfiguration =
|
|
3809
|
+
| RulePlainConfiguration
|
|
3810
|
+
| RuleWithUseVueValidTemplateRootOptions;
|
|
3583
3811
|
type UseVueValidVBindConfiguration =
|
|
3584
3812
|
| RulePlainConfiguration
|
|
3585
3813
|
| RuleWithUseVueValidVBindOptions;
|
|
3814
|
+
type UseVueValidVCloakConfiguration =
|
|
3815
|
+
| RulePlainConfiguration
|
|
3816
|
+
| RuleWithUseVueValidVCloakOptions;
|
|
3586
3817
|
type UseVueValidVElseConfiguration =
|
|
3587
3818
|
| RulePlainConfiguration
|
|
3588
3819
|
| RuleWithUseVueValidVElseOptions;
|
|
@@ -3598,9 +3829,18 @@ type UseVueValidVIfConfiguration =
|
|
|
3598
3829
|
type UseVueValidVOnConfiguration =
|
|
3599
3830
|
| RulePlainConfiguration
|
|
3600
3831
|
| RuleWithUseVueValidVOnOptions;
|
|
3832
|
+
type UseVueValidVOnceConfiguration =
|
|
3833
|
+
| RulePlainConfiguration
|
|
3834
|
+
| RuleWithUseVueValidVOnceOptions;
|
|
3835
|
+
type UseVueValidVPreConfiguration =
|
|
3836
|
+
| RulePlainConfiguration
|
|
3837
|
+
| RuleWithUseVueValidVPreOptions;
|
|
3601
3838
|
type UseVueValidVTextConfiguration =
|
|
3602
3839
|
| RulePlainConfiguration
|
|
3603
3840
|
| RuleWithUseVueValidVTextOptions;
|
|
3841
|
+
type UseVueVaporConfiguration =
|
|
3842
|
+
| RulePlainConfiguration
|
|
3843
|
+
| RuleWithUseVueVaporOptions;
|
|
3604
3844
|
type NoAccumulatingSpreadConfiguration =
|
|
3605
3845
|
| RulePlainConfiguration
|
|
3606
3846
|
| RuleWithNoAccumulatingSpreadOptions;
|
|
@@ -4812,6 +5052,10 @@ interface RuleWithNoAmbiguousAnchorTextOptions {
|
|
|
4812
5052
|
level: RulePlainConfiguration;
|
|
4813
5053
|
options?: NoAmbiguousAnchorTextOptions;
|
|
4814
5054
|
}
|
|
5055
|
+
interface RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions {
|
|
5056
|
+
level: RulePlainConfiguration;
|
|
5057
|
+
options?: NoBeforeInteractiveScriptOutsideDocumentOptions;
|
|
5058
|
+
}
|
|
4815
5059
|
interface RuleWithNoContinueOptions {
|
|
4816
5060
|
level: RulePlainConfiguration;
|
|
4817
5061
|
options?: NoContinueOptions;
|
|
@@ -4820,10 +5064,47 @@ interface RuleWithNoDeprecatedImportsOptions {
|
|
|
4820
5064
|
level: RulePlainConfiguration;
|
|
4821
5065
|
options?: NoDeprecatedImportsOptions;
|
|
4822
5066
|
}
|
|
5067
|
+
interface RuleWithNoDivRegexOptions {
|
|
5068
|
+
fix?: FixKind;
|
|
5069
|
+
level: RulePlainConfiguration;
|
|
5070
|
+
options?: NoDivRegexOptions;
|
|
5071
|
+
}
|
|
5072
|
+
interface RuleWithNoDuplicateArgumentNamesOptions {
|
|
5073
|
+
level: RulePlainConfiguration;
|
|
5074
|
+
options?: NoDuplicateArgumentNamesOptions;
|
|
5075
|
+
}
|
|
5076
|
+
interface RuleWithNoDuplicateAttributesOptions {
|
|
5077
|
+
level: RulePlainConfiguration;
|
|
5078
|
+
options?: NoDuplicateAttributesOptions;
|
|
5079
|
+
}
|
|
4823
5080
|
interface RuleWithNoDuplicateDependenciesOptions {
|
|
4824
5081
|
level: RulePlainConfiguration;
|
|
4825
5082
|
options?: NoDuplicateDependenciesOptions;
|
|
4826
5083
|
}
|
|
5084
|
+
interface RuleWithNoDuplicateEnumValueNamesOptions {
|
|
5085
|
+
level: RulePlainConfiguration;
|
|
5086
|
+
options?: NoDuplicateEnumValueNamesOptions;
|
|
5087
|
+
}
|
|
5088
|
+
interface RuleWithNoDuplicateEnumValuesOptions {
|
|
5089
|
+
level: RulePlainConfiguration;
|
|
5090
|
+
options?: NoDuplicateEnumValuesOptions;
|
|
5091
|
+
}
|
|
5092
|
+
interface RuleWithNoDuplicateFieldDefinitionNamesOptions {
|
|
5093
|
+
level: RulePlainConfiguration;
|
|
5094
|
+
options?: NoDuplicateFieldDefinitionNamesOptions;
|
|
5095
|
+
}
|
|
5096
|
+
interface RuleWithNoDuplicateGraphqlOperationNameOptions {
|
|
5097
|
+
level: RulePlainConfiguration;
|
|
5098
|
+
options?: NoDuplicateGraphqlOperationNameOptions;
|
|
5099
|
+
}
|
|
5100
|
+
interface RuleWithNoDuplicateInputFieldNamesOptions {
|
|
5101
|
+
level: RulePlainConfiguration;
|
|
5102
|
+
options?: NoDuplicateInputFieldNamesOptions;
|
|
5103
|
+
}
|
|
5104
|
+
interface RuleWithNoDuplicateVariableNamesOptions {
|
|
5105
|
+
level: RulePlainConfiguration;
|
|
5106
|
+
options?: NoDuplicateVariableNamesOptions;
|
|
5107
|
+
}
|
|
4827
5108
|
interface RuleWithNoDuplicatedSpreadPropsOptions {
|
|
4828
5109
|
level: RulePlainConfiguration;
|
|
4829
5110
|
options?: NoDuplicatedSpreadPropsOptions;
|
|
@@ -4837,6 +5118,18 @@ interface RuleWithNoEqualsToNullOptions {
|
|
|
4837
5118
|
level: RulePlainConfiguration;
|
|
4838
5119
|
options?: NoEqualsToNullOptions;
|
|
4839
5120
|
}
|
|
5121
|
+
interface RuleWithNoExcessiveClassesPerFileOptions {
|
|
5122
|
+
level: RulePlainConfiguration;
|
|
5123
|
+
options?: NoExcessiveClassesPerFileOptions;
|
|
5124
|
+
}
|
|
5125
|
+
interface RuleWithNoExcessiveLinesPerFileOptions {
|
|
5126
|
+
level: RulePlainConfiguration;
|
|
5127
|
+
options?: NoExcessiveLinesPerFileOptions;
|
|
5128
|
+
}
|
|
5129
|
+
interface RuleWithNoFloatingClassesOptions {
|
|
5130
|
+
level: RulePlainConfiguration;
|
|
5131
|
+
options?: NoFloatingClassesOptions;
|
|
5132
|
+
}
|
|
4840
5133
|
interface RuleWithNoFloatingPromisesOptions {
|
|
4841
5134
|
fix?: FixKind;
|
|
4842
5135
|
level: RulePlainConfiguration;
|
|
@@ -4858,6 +5151,10 @@ interface RuleWithNoJsxLiteralsOptions {
|
|
|
4858
5151
|
level: RulePlainConfiguration;
|
|
4859
5152
|
options?: NoJsxLiteralsOptions;
|
|
4860
5153
|
}
|
|
5154
|
+
interface RuleWithNoJsxPropsBindOptions {
|
|
5155
|
+
level: RulePlainConfiguration;
|
|
5156
|
+
options?: NoJsxPropsBindOptions;
|
|
5157
|
+
}
|
|
4861
5158
|
interface RuleWithNoLeakedRenderOptions {
|
|
4862
5159
|
level: RulePlainConfiguration;
|
|
4863
5160
|
options?: NoLeakedRenderOptions;
|
|
@@ -4867,6 +5164,10 @@ interface RuleWithNoMisusedPromisesOptions {
|
|
|
4867
5164
|
level: RulePlainConfiguration;
|
|
4868
5165
|
options?: NoMisusedPromisesOptions;
|
|
4869
5166
|
}
|
|
5167
|
+
interface RuleWithNoMultiAssignOptions {
|
|
5168
|
+
level: RulePlainConfiguration;
|
|
5169
|
+
options?: NoMultiAssignOptions;
|
|
5170
|
+
}
|
|
4870
5171
|
interface RuleWithNoMultiStrOptions {
|
|
4871
5172
|
level: RulePlainConfiguration;
|
|
4872
5173
|
options?: NoMultiStrOptions;
|
|
@@ -4889,6 +5190,14 @@ interface RuleWithNoReactForwardRefOptions {
|
|
|
4889
5190
|
level: RulePlainConfiguration;
|
|
4890
5191
|
options?: NoReactForwardRefOptions;
|
|
4891
5192
|
}
|
|
5193
|
+
interface RuleWithNoReturnAssignOptions {
|
|
5194
|
+
level: RulePlainConfiguration;
|
|
5195
|
+
options?: NoReturnAssignOptions;
|
|
5196
|
+
}
|
|
5197
|
+
interface RuleWithNoRootTypeOptions {
|
|
5198
|
+
level: RulePlainConfiguration;
|
|
5199
|
+
options?: NoRootTypeOptions;
|
|
5200
|
+
}
|
|
4892
5201
|
interface RuleWithNoScriptUrlOptions {
|
|
4893
5202
|
level: RulePlainConfiguration;
|
|
4894
5203
|
options?: NoScriptUrlOptions;
|
|
@@ -4944,6 +5253,10 @@ interface RuleWithNoVueDuplicateKeysOptions {
|
|
|
4944
5253
|
level: RulePlainConfiguration;
|
|
4945
5254
|
options?: NoVueDuplicateKeysOptions;
|
|
4946
5255
|
}
|
|
5256
|
+
interface RuleWithNoVueOptionsApiOptions {
|
|
5257
|
+
level: RulePlainConfiguration;
|
|
5258
|
+
options?: NoVueOptionsApiOptions;
|
|
5259
|
+
}
|
|
4947
5260
|
interface RuleWithNoVueReservedKeysOptions {
|
|
4948
5261
|
level: RulePlainConfiguration;
|
|
4949
5262
|
options?: NoVueReservedKeysOptions;
|
|
@@ -4985,6 +5298,10 @@ interface RuleWithUseDestructuringOptions {
|
|
|
4985
5298
|
level: RulePlainConfiguration;
|
|
4986
5299
|
options?: UseDestructuringOptions;
|
|
4987
5300
|
}
|
|
5301
|
+
interface RuleWithUseErrorCauseOptions {
|
|
5302
|
+
level: RulePlainConfiguration;
|
|
5303
|
+
options?: UseErrorCauseOptions;
|
|
5304
|
+
}
|
|
4988
5305
|
interface RuleWithUseExhaustiveSwitchCasesOptions {
|
|
4989
5306
|
fix?: FixKind;
|
|
4990
5307
|
level: RulePlainConfiguration;
|
|
@@ -4998,6 +5315,18 @@ interface RuleWithUseFindOptions {
|
|
|
4998
5315
|
level: RulePlainConfiguration;
|
|
4999
5316
|
options?: UseFindOptions;
|
|
5000
5317
|
}
|
|
5318
|
+
interface RuleWithUseInlineScriptIdOptions {
|
|
5319
|
+
level: RulePlainConfiguration;
|
|
5320
|
+
options?: UseInlineScriptIdOptions;
|
|
5321
|
+
}
|
|
5322
|
+
interface RuleWithUseLoneAnonymousOperationOptions {
|
|
5323
|
+
level: RulePlainConfiguration;
|
|
5324
|
+
options?: UseLoneAnonymousOperationOptions;
|
|
5325
|
+
}
|
|
5326
|
+
interface RuleWithUseLoneExecutableDefinitionOptions {
|
|
5327
|
+
level: RulePlainConfiguration;
|
|
5328
|
+
options?: UseLoneExecutableDefinitionOptions;
|
|
5329
|
+
}
|
|
5001
5330
|
interface RuleWithUseMaxParamsOptions {
|
|
5002
5331
|
level: RulePlainConfiguration;
|
|
5003
5332
|
options?: UseMaxParamsOptions;
|
|
@@ -5028,9 +5357,19 @@ interface RuleWithUseSpreadOptions {
|
|
|
5028
5357
|
level: RulePlainConfiguration;
|
|
5029
5358
|
options?: UseSpreadOptions;
|
|
5030
5359
|
}
|
|
5031
|
-
interface
|
|
5360
|
+
interface RuleWithUseVueConsistentDefinePropsDeclarationOptions {
|
|
5361
|
+
level: RulePlainConfiguration;
|
|
5362
|
+
options?: UseVueConsistentDefinePropsDeclarationOptions;
|
|
5363
|
+
}
|
|
5364
|
+
interface RuleWithUseVueConsistentVBindStyleOptions {
|
|
5365
|
+
fix?: FixKind;
|
|
5366
|
+
level: RulePlainConfiguration;
|
|
5367
|
+
options?: UseVueConsistentVBindStyleOptions;
|
|
5368
|
+
}
|
|
5369
|
+
interface RuleWithUseVueConsistentVOnStyleOptions {
|
|
5370
|
+
fix?: FixKind;
|
|
5032
5371
|
level: RulePlainConfiguration;
|
|
5033
|
-
options?:
|
|
5372
|
+
options?: UseVueConsistentVOnStyleOptions;
|
|
5034
5373
|
}
|
|
5035
5374
|
interface RuleWithUseVueDefineMacrosOrderOptions {
|
|
5036
5375
|
fix?: FixKind;
|
|
@@ -5046,10 +5385,24 @@ interface RuleWithUseVueMultiWordComponentNamesOptions {
|
|
|
5046
5385
|
level: RulePlainConfiguration;
|
|
5047
5386
|
options?: UseVueMultiWordComponentNamesOptions;
|
|
5048
5387
|
}
|
|
5388
|
+
interface RuleWithUseVueVForKeyOptions {
|
|
5389
|
+
level: RulePlainConfiguration;
|
|
5390
|
+
options?: UseVueVForKeyOptions;
|
|
5391
|
+
}
|
|
5392
|
+
interface RuleWithUseVueValidTemplateRootOptions {
|
|
5393
|
+
fix?: FixKind;
|
|
5394
|
+
level: RulePlainConfiguration;
|
|
5395
|
+
options?: UseVueValidTemplateRootOptions;
|
|
5396
|
+
}
|
|
5049
5397
|
interface RuleWithUseVueValidVBindOptions {
|
|
5050
5398
|
level: RulePlainConfiguration;
|
|
5051
5399
|
options?: UseVueValidVBindOptions;
|
|
5052
5400
|
}
|
|
5401
|
+
interface RuleWithUseVueValidVCloakOptions {
|
|
5402
|
+
fix?: FixKind;
|
|
5403
|
+
level: RulePlainConfiguration;
|
|
5404
|
+
options?: UseVueValidVCloakOptions;
|
|
5405
|
+
}
|
|
5053
5406
|
interface RuleWithUseVueValidVElseOptions {
|
|
5054
5407
|
level: RulePlainConfiguration;
|
|
5055
5408
|
options?: UseVueValidVElseOptions;
|
|
@@ -5070,10 +5423,25 @@ interface RuleWithUseVueValidVOnOptions {
|
|
|
5070
5423
|
level: RulePlainConfiguration;
|
|
5071
5424
|
options?: UseVueValidVOnOptions;
|
|
5072
5425
|
}
|
|
5426
|
+
interface RuleWithUseVueValidVOnceOptions {
|
|
5427
|
+
fix?: FixKind;
|
|
5428
|
+
level: RulePlainConfiguration;
|
|
5429
|
+
options?: UseVueValidVOnceOptions;
|
|
5430
|
+
}
|
|
5431
|
+
interface RuleWithUseVueValidVPreOptions {
|
|
5432
|
+
fix?: FixKind;
|
|
5433
|
+
level: RulePlainConfiguration;
|
|
5434
|
+
options?: UseVueValidVPreOptions;
|
|
5435
|
+
}
|
|
5073
5436
|
interface RuleWithUseVueValidVTextOptions {
|
|
5074
5437
|
level: RulePlainConfiguration;
|
|
5075
5438
|
options?: UseVueValidVTextOptions;
|
|
5076
5439
|
}
|
|
5440
|
+
interface RuleWithUseVueVaporOptions {
|
|
5441
|
+
fix?: FixKind;
|
|
5442
|
+
level: RulePlainConfiguration;
|
|
5443
|
+
options?: UseVueVaporOptions;
|
|
5444
|
+
}
|
|
5077
5445
|
interface RuleWithNoAccumulatingSpreadOptions {
|
|
5078
5446
|
level: RulePlainConfiguration;
|
|
5079
5447
|
options?: NoAccumulatingSpreadOptions;
|
|
@@ -6172,9 +6540,19 @@ interface NoAmbiguousAnchorTextOptions {
|
|
|
6172
6540
|
*/
|
|
6173
6541
|
words?: string[];
|
|
6174
6542
|
}
|
|
6543
|
+
type NoBeforeInteractiveScriptOutsideDocumentOptions = {};
|
|
6175
6544
|
type NoContinueOptions = {};
|
|
6176
6545
|
type NoDeprecatedImportsOptions = {};
|
|
6546
|
+
type NoDivRegexOptions = {};
|
|
6547
|
+
type NoDuplicateArgumentNamesOptions = {};
|
|
6548
|
+
type NoDuplicateAttributesOptions = {};
|
|
6177
6549
|
type NoDuplicateDependenciesOptions = {};
|
|
6550
|
+
type NoDuplicateEnumValueNamesOptions = {};
|
|
6551
|
+
type NoDuplicateEnumValuesOptions = {};
|
|
6552
|
+
type NoDuplicateFieldDefinitionNamesOptions = {};
|
|
6553
|
+
type NoDuplicateGraphqlOperationNameOptions = {};
|
|
6554
|
+
type NoDuplicateInputFieldNamesOptions = {};
|
|
6555
|
+
type NoDuplicateVariableNamesOptions = {};
|
|
6178
6556
|
type NoDuplicatedSpreadPropsOptions = {};
|
|
6179
6557
|
interface NoEmptySourceOptions {
|
|
6180
6558
|
/**
|
|
@@ -6183,6 +6561,23 @@ interface NoEmptySourceOptions {
|
|
|
6183
6561
|
allowComments?: boolean;
|
|
6184
6562
|
}
|
|
6185
6563
|
type NoEqualsToNullOptions = {};
|
|
6564
|
+
interface NoExcessiveClassesPerFileOptions {
|
|
6565
|
+
/**
|
|
6566
|
+
* The maximum number of classes allowed in a file.
|
|
6567
|
+
*/
|
|
6568
|
+
maxClasses?: number;
|
|
6569
|
+
}
|
|
6570
|
+
interface NoExcessiveLinesPerFileOptions {
|
|
6571
|
+
/**
|
|
6572
|
+
* The maximum number of lines allowed in a file.
|
|
6573
|
+
*/
|
|
6574
|
+
maxLines?: number;
|
|
6575
|
+
/**
|
|
6576
|
+
* When this option is set to `true`, blank lines are not counted towards the maximum line limit.
|
|
6577
|
+
*/
|
|
6578
|
+
skipBlankLines?: boolean;
|
|
6579
|
+
}
|
|
6580
|
+
type NoFloatingClassesOptions = {};
|
|
6186
6581
|
type NoFloatingPromisesOptions = {};
|
|
6187
6582
|
type NoForInOptions = {};
|
|
6188
6583
|
interface NoImportCyclesOptions {
|
|
@@ -6214,13 +6609,23 @@ interface NoJsxLiteralsOptions {
|
|
|
6214
6609
|
*/
|
|
6215
6610
|
noStrings?: boolean;
|
|
6216
6611
|
}
|
|
6612
|
+
type NoJsxPropsBindOptions = {};
|
|
6217
6613
|
type NoLeakedRenderOptions = {};
|
|
6218
6614
|
type NoMisusedPromisesOptions = {};
|
|
6615
|
+
type NoMultiAssignOptions = {};
|
|
6219
6616
|
type NoMultiStrOptions = {};
|
|
6220
6617
|
type NoNextAsyncClientComponentOptions = {};
|
|
6221
6618
|
type NoParametersOnlyUsedInRecursionOptions = {};
|
|
6222
6619
|
type NoProtoOptions = {};
|
|
6223
6620
|
type NoReactForwardRefOptions = {};
|
|
6621
|
+
type NoReturnAssignOptions = {};
|
|
6622
|
+
interface NoRootTypeOptions {
|
|
6623
|
+
/**
|
|
6624
|
+
* A list of disallowed root types (e.g. "mutation" and/or "subscription").
|
|
6625
|
+
The values of the list are case-insensitive.
|
|
6626
|
+
*/
|
|
6627
|
+
disallow?: string[];
|
|
6628
|
+
}
|
|
6224
6629
|
type NoScriptUrlOptions = {};
|
|
6225
6630
|
type NoShadowOptions = {};
|
|
6226
6631
|
type NoSyncScriptsOptions = {};
|
|
@@ -6244,6 +6649,7 @@ type NoUselessCatchBindingOptions = {};
|
|
|
6244
6649
|
type NoUselessUndefinedOptions = {};
|
|
6245
6650
|
type NoVueDataObjectDeclarationOptions = {};
|
|
6246
6651
|
type NoVueDuplicateKeysOptions = {};
|
|
6652
|
+
type NoVueOptionsApiOptions = {};
|
|
6247
6653
|
type NoVueReservedKeysOptions = {};
|
|
6248
6654
|
type NoVueReservedPropsOptions = {};
|
|
6249
6655
|
type NoVueSetupPropsReactivityLossOptions = {};
|
|
@@ -6272,9 +6678,18 @@ interface UseDeprecatedDateOptions {
|
|
|
6272
6678
|
argumentName?: string;
|
|
6273
6679
|
}
|
|
6274
6680
|
type UseDestructuringOptions = {};
|
|
6681
|
+
interface UseErrorCauseOptions {
|
|
6682
|
+
/**
|
|
6683
|
+
* When set to `true`, the rule requires that `catch` clauses have a parameter.
|
|
6684
|
+
*/
|
|
6685
|
+
requireCatchParameter?: boolean;
|
|
6686
|
+
}
|
|
6275
6687
|
type UseExhaustiveSwitchCasesOptions = {};
|
|
6276
6688
|
type UseExplicitTypeOptions = {};
|
|
6277
6689
|
type UseFindOptions = {};
|
|
6690
|
+
type UseInlineScriptIdOptions = {};
|
|
6691
|
+
type UseLoneAnonymousOperationOptions = {};
|
|
6692
|
+
type UseLoneExecutableDefinitionOptions = {};
|
|
6278
6693
|
interface UseMaxParamsOptions {
|
|
6279
6694
|
/**
|
|
6280
6695
|
* Maximum number of parameters allowed (default: 4)
|
|
@@ -6301,7 +6716,23 @@ interface UseSortedClassesOptions {
|
|
|
6301
6716
|
functions?: string[];
|
|
6302
6717
|
}
|
|
6303
6718
|
type UseSpreadOptions = {};
|
|
6304
|
-
|
|
6719
|
+
interface UseVueConsistentDefinePropsDeclarationOptions {
|
|
6720
|
+
style?: DeclarationStyle;
|
|
6721
|
+
}
|
|
6722
|
+
interface UseVueConsistentVBindStyleOptions {
|
|
6723
|
+
/**
|
|
6724
|
+
* Preferred style for `v-bind` usage: "shorthand" or "longhand".
|
|
6725
|
+
If omitted, shorthand is preferred.
|
|
6726
|
+
*/
|
|
6727
|
+
style?: VueDirectiveStyle;
|
|
6728
|
+
}
|
|
6729
|
+
interface UseVueConsistentVOnStyleOptions {
|
|
6730
|
+
/**
|
|
6731
|
+
* Preferred style for `v-on` usage: "shorthand" or "longhand".
|
|
6732
|
+
If omitted, shorthand is preferred.
|
|
6733
|
+
*/
|
|
6734
|
+
style?: VueDirectiveStyle2;
|
|
6735
|
+
}
|
|
6305
6736
|
interface UseVueDefineMacrosOrderOptions {
|
|
6306
6737
|
/**
|
|
6307
6738
|
* The order of the Vue define macros.
|
|
@@ -6324,7 +6755,10 @@ interface UseVueMultiWordComponentNamesOptions {
|
|
|
6324
6755
|
*/
|
|
6325
6756
|
ignores?: string[];
|
|
6326
6757
|
}
|
|
6758
|
+
type UseVueVForKeyOptions = {};
|
|
6759
|
+
type UseVueValidTemplateRootOptions = {};
|
|
6327
6760
|
type UseVueValidVBindOptions = {};
|
|
6761
|
+
type UseVueValidVCloakOptions = {};
|
|
6328
6762
|
type UseVueValidVElseOptions = {};
|
|
6329
6763
|
type UseVueValidVElseIfOptions = {};
|
|
6330
6764
|
type UseVueValidVHtmlOptions = {};
|
|
@@ -6335,7 +6769,10 @@ interface UseVueValidVOnOptions {
|
|
|
6335
6769
|
*/
|
|
6336
6770
|
modifiers?: string[];
|
|
6337
6771
|
}
|
|
6772
|
+
type UseVueValidVOnceOptions = {};
|
|
6773
|
+
type UseVueValidVPreOptions = {};
|
|
6338
6774
|
type UseVueValidVTextOptions = {};
|
|
6775
|
+
type UseVueVaporOptions = {};
|
|
6339
6776
|
type NoAccumulatingSpreadOptions = {};
|
|
6340
6777
|
type NoAwaitInLoopsOptions = {};
|
|
6341
6778
|
type NoBarrelFileOptions = {};
|
|
@@ -6693,6 +7130,9 @@ while for `useState()` it would be `[1]`.
|
|
|
6693
7130
|
type Regex = string;
|
|
6694
7131
|
type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
|
|
6695
7132
|
type UseConsistentGraphqlDescriptionsStyle = "block" | "inline";
|
|
7133
|
+
type DeclarationStyle = "type" | "runtime";
|
|
7134
|
+
type VueDirectiveStyle = "shorthand" | "longhand";
|
|
7135
|
+
type VueDirectiveStyle2 = "shorthand" | "longhand";
|
|
6696
7136
|
type PropertyAssignmentMode = "allow" | "deny";
|
|
6697
7137
|
type Paths = string | PathOptions;
|
|
6698
7138
|
type Patterns = PatternOptions;
|
|
@@ -6958,12 +7398,10 @@ type Category =
|
|
|
6958
7398
|
| "lint/correctness/noInvalidConstructorSuper"
|
|
6959
7399
|
| "lint/correctness/noInvalidDirectionInLinearGradient"
|
|
6960
7400
|
| "lint/correctness/noInvalidGridAreas"
|
|
6961
|
-
| "lint/correctness/noInvalidNewBuiltin"
|
|
6962
7401
|
| "lint/correctness/noInvalidPositionAtImportRule"
|
|
6963
7402
|
| "lint/correctness/noInvalidUseBeforeDeclaration"
|
|
6964
7403
|
| "lint/correctness/noMissingVarFunction"
|
|
6965
7404
|
| "lint/correctness/noNestedComponentDefinitions"
|
|
6966
|
-
| "lint/correctness/noNewSymbol"
|
|
6967
7405
|
| "lint/correctness/noNodejsModules"
|
|
6968
7406
|
| "lint/correctness/noNonoctalDecimalEscape"
|
|
6969
7407
|
| "lint/correctness/noPrecisionLoss"
|
|
@@ -7016,27 +7454,44 @@ type Category =
|
|
|
7016
7454
|
| "lint/correctness/useValidTypeof"
|
|
7017
7455
|
| "lint/correctness/useYield"
|
|
7018
7456
|
| "lint/nursery/noAmbiguousAnchorText"
|
|
7457
|
+
| "lint/nursery/noBeforeInteractiveScriptOutsideDocument"
|
|
7019
7458
|
| "lint/nursery/noColorInvalidHex"
|
|
7020
7459
|
| "lint/nursery/noContinue"
|
|
7021
7460
|
| "lint/nursery/noDeprecatedImports"
|
|
7461
|
+
| "lint/nursery/noDivRegex"
|
|
7462
|
+
| "lint/nursery/noDuplicateArgumentNames"
|
|
7463
|
+
| "lint/nursery/noDuplicateAttributes"
|
|
7022
7464
|
| "lint/nursery/noDuplicateDependencies"
|
|
7465
|
+
| "lint/nursery/noDuplicateEnumValueNames"
|
|
7466
|
+
| "lint/nursery/noDuplicateEnumValues"
|
|
7467
|
+
| "lint/nursery/noDuplicateFieldDefinitionNames"
|
|
7468
|
+
| "lint/nursery/noDuplicateGraphqlOperationName"
|
|
7469
|
+
| "lint/nursery/noDuplicateInputFieldNames"
|
|
7470
|
+
| "lint/nursery/noDuplicateVariableNames"
|
|
7023
7471
|
| "lint/nursery/noDuplicatedSpreadProps"
|
|
7024
7472
|
| "lint/nursery/noEmptySource"
|
|
7025
7473
|
| "lint/nursery/noEqualsToNull"
|
|
7474
|
+
| "lint/nursery/noExcessiveClassesPerFile"
|
|
7475
|
+
| "lint/nursery/noExcessiveLinesPerFile"
|
|
7476
|
+
| "lint/nursery/noFloatingClasses"
|
|
7026
7477
|
| "lint/nursery/noFloatingPromises"
|
|
7027
7478
|
| "lint/nursery/noForIn"
|
|
7028
7479
|
| "lint/nursery/noImplicitCoercion"
|
|
7029
7480
|
| "lint/nursery/noImportCycles"
|
|
7030
7481
|
| "lint/nursery/noIncrementDecrement"
|
|
7031
7482
|
| "lint/nursery/noJsxLiterals"
|
|
7483
|
+
| "lint/nursery/noJsxPropsBind"
|
|
7032
7484
|
| "lint/nursery/noLeakedRender"
|
|
7033
7485
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
7034
7486
|
| "lint/nursery/noMisusedPromises"
|
|
7487
|
+
| "lint/nursery/noMultiAssign"
|
|
7035
7488
|
| "lint/nursery/noMultiStr"
|
|
7036
7489
|
| "lint/nursery/noNextAsyncClientComponent"
|
|
7037
7490
|
| "lint/nursery/noParametersOnlyUsedInRecursion"
|
|
7038
7491
|
| "lint/nursery/noProto"
|
|
7039
7492
|
| "lint/nursery/noReactForwardRef"
|
|
7493
|
+
| "lint/nursery/noReturnAssign"
|
|
7494
|
+
| "lint/nursery/noRootType"
|
|
7040
7495
|
| "lint/nursery/noScriptUrl"
|
|
7041
7496
|
| "lint/nursery/noShadow"
|
|
7042
7497
|
| "lint/nursery/noSyncScripts"
|
|
@@ -7052,11 +7507,11 @@ type Category =
|
|
|
7052
7507
|
| "lint/nursery/noUselessUndefined"
|
|
7053
7508
|
| "lint/nursery/noVueDataObjectDeclaration"
|
|
7054
7509
|
| "lint/nursery/noVueDuplicateKeys"
|
|
7510
|
+
| "lint/nursery/noVueOptionsApi"
|
|
7055
7511
|
| "lint/nursery/noVueReservedKeys"
|
|
7056
7512
|
| "lint/nursery/noVueReservedProps"
|
|
7057
7513
|
| "lint/nursery/noVueSetupPropsReactivityLoss"
|
|
7058
7514
|
| "lint/nursery/noVueVIfWithVFor"
|
|
7059
|
-
| "lint/nursery/useAnchorHref"
|
|
7060
7515
|
| "lint/nursery/useArraySortCompare"
|
|
7061
7516
|
| "lint/nursery/useAwaitThenable"
|
|
7062
7517
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
@@ -7065,24 +7520,33 @@ type Category =
|
|
|
7065
7520
|
| "lint/nursery/useConsistentObjectDefinition"
|
|
7066
7521
|
| "lint/nursery/useDeprecatedDate"
|
|
7067
7522
|
| "lint/nursery/useDestructuring"
|
|
7523
|
+
| "lint/nursery/useErrorCause"
|
|
7068
7524
|
| "lint/nursery/useExhaustiveSwitchCases"
|
|
7069
7525
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
7070
7526
|
| "lint/nursery/useExplicitType"
|
|
7071
7527
|
| "lint/nursery/useFind"
|
|
7072
7528
|
| "lint/nursery/useImportRestrictions"
|
|
7529
|
+
| "lint/nursery/useInlineScriptId"
|
|
7073
7530
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
7531
|
+
| "lint/nursery/useLoneExecutableDefinition"
|
|
7074
7532
|
| "lint/nursery/useMaxParams"
|
|
7533
|
+
| "lint/nursery/useLoneAnonymousOperation"
|
|
7075
7534
|
| "lint/nursery/useQwikMethodUsage"
|
|
7076
7535
|
| "lint/nursery/useQwikValidLexicalScope"
|
|
7077
7536
|
| "lint/nursery/useRegexpExec"
|
|
7078
7537
|
| "lint/nursery/useRequiredScripts"
|
|
7079
7538
|
| "lint/nursery/useSortedClasses"
|
|
7080
7539
|
| "lint/nursery/useSpread"
|
|
7081
|
-
| "lint/nursery/
|
|
7540
|
+
| "lint/nursery/useVueConsistentDefinePropsDeclaration"
|
|
7541
|
+
| "lint/nursery/useVueConsistentVBindStyle"
|
|
7542
|
+
| "lint/nursery/useVueConsistentVOnStyle"
|
|
7082
7543
|
| "lint/nursery/useVueDefineMacrosOrder"
|
|
7083
7544
|
| "lint/nursery/useVueHyphenatedAttributes"
|
|
7084
7545
|
| "lint/nursery/useVueMultiWordComponentNames"
|
|
7546
|
+
| "lint/nursery/useVueVForKey"
|
|
7547
|
+
| "lint/nursery/useVueValidTemplateRoot"
|
|
7085
7548
|
| "lint/nursery/useVueValidVBind"
|
|
7549
|
+
| "lint/nursery/useVueValidVCloak"
|
|
7086
7550
|
| "lint/nursery/useVueValidVElse"
|
|
7087
7551
|
| "lint/nursery/useVueValidVElseIf"
|
|
7088
7552
|
| "lint/nursery/useVueValidVFor"
|
|
@@ -7090,7 +7554,10 @@ type Category =
|
|
|
7090
7554
|
| "lint/nursery/useVueValidVIf"
|
|
7091
7555
|
| "lint/nursery/useVueValidVModel"
|
|
7092
7556
|
| "lint/nursery/useVueValidVOn"
|
|
7557
|
+
| "lint/nursery/useVueValidVOnce"
|
|
7558
|
+
| "lint/nursery/useVueValidVPre"
|
|
7093
7559
|
| "lint/nursery/useVueValidVText"
|
|
7560
|
+
| "lint/nursery/useVueVapor"
|
|
7094
7561
|
| "lint/performance/noAccumulatingSpread"
|
|
7095
7562
|
| "lint/performance/noAwaitInLoops"
|
|
7096
7563
|
| "lint/performance/noBarrelFile"
|
|
@@ -7172,7 +7639,6 @@ type Category =
|
|
|
7172
7639
|
| "lint/style/useReactFunctionComponents"
|
|
7173
7640
|
| "lint/style/useReadonlyClassProperties"
|
|
7174
7641
|
| "lint/style/useSelfClosingElements"
|
|
7175
|
-
| "lint/style/useShorthandArrayType"
|
|
7176
7642
|
| "lint/style/useShorthandAssign"
|
|
7177
7643
|
| "lint/style/useShorthandFunctionType"
|
|
7178
7644
|
| "lint/style/useSingleCaseStatement"
|
|
@@ -7633,8 +8099,11 @@ interface GetSemanticModelParams {
|
|
|
7633
8099
|
}
|
|
7634
8100
|
type GetModuleGraphParams = {};
|
|
7635
8101
|
interface GetModuleGraphResult {
|
|
7636
|
-
data: Record<string,
|
|
8102
|
+
data: Record<string, SerializedModuleInfo>;
|
|
7637
8103
|
}
|
|
8104
|
+
type SerializedModuleInfo =
|
|
8105
|
+
| { js: SerializedJsModuleInfo }
|
|
8106
|
+
| { css: SerializedCssModuleInfo };
|
|
7638
8107
|
interface SerializedJsModuleInfo {
|
|
7639
8108
|
/**
|
|
7640
8109
|
* Dynamic imports.
|
|
@@ -7668,6 +8137,14 @@ Maps from the local imported name to the absolute path it resolves to.
|
|
|
7668
8137
|
*/
|
|
7669
8138
|
staticImports: Record<string, string>;
|
|
7670
8139
|
}
|
|
8140
|
+
interface SerializedCssModuleInfo {
|
|
8141
|
+
/**
|
|
8142
|
+
* Map of all static imports found in the module.
|
|
8143
|
+
|
|
8144
|
+
Maps from the local imported name to the absolute path it resolves to.
|
|
8145
|
+
*/
|
|
8146
|
+
imports: string[];
|
|
8147
|
+
}
|
|
7671
8148
|
interface PullDiagnosticsParams {
|
|
7672
8149
|
categories: RuleCategories;
|
|
7673
8150
|
/**
|
|
@@ -7861,6 +8338,7 @@ interface DropPatternParams {
|
|
|
7861
8338
|
}
|
|
7862
8339
|
|
|
7863
8340
|
|
|
8341
|
+
|
|
7864
8342
|
export class DiagnosticPrinter {
|
|
7865
8343
|
free(): void;
|
|
7866
8344
|
[Symbol.dispose](): void;
|
|
@@ -7869,6 +8347,7 @@ export class DiagnosticPrinter {
|
|
|
7869
8347
|
constructor(file_name: string, file_source: string);
|
|
7870
8348
|
finish(): string;
|
|
7871
8349
|
}
|
|
8350
|
+
|
|
7872
8351
|
export class MemoryFileSystem {
|
|
7873
8352
|
free(): void;
|
|
7874
8353
|
[Symbol.dispose](): void;
|
|
@@ -7876,6 +8355,7 @@ export class MemoryFileSystem {
|
|
|
7876
8355
|
insert(path: string, data: Uint8Array): void;
|
|
7877
8356
|
remove(path: string): void;
|
|
7878
8357
|
}
|
|
8358
|
+
|
|
7879
8359
|
export class Workspace {
|
|
7880
8360
|
free(): void;
|
|
7881
8361
|
[Symbol.dispose](): void;
|
|
@@ -7907,3 +8387,5 @@ export class Workspace {
|
|
|
7907
8387
|
fixFile(params: FixFileParams): FixFileResult;
|
|
7908
8388
|
openFile(params: OpenFileParams): OpenFileResult;
|
|
7909
8389
|
}
|
|
8390
|
+
|
|
8391
|
+
export function main(): void;
|