@biomejs/wasm-nodejs 2.3.11 → 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 +691 -487
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -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,279 +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
1712
|
* Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.
|
|
1713
|
-
See
|
|
1713
|
+
See https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document
|
|
1714
1714
|
*/
|
|
1715
1715
|
noBeforeInteractiveScriptOutsideDocument?: NoBeforeInteractiveScriptOutsideDocumentConfiguration;
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Disallow continue statements.
|
|
1718
|
-
See
|
|
1718
|
+
See https://biomejs.dev/linter/rules/no-continue
|
|
1719
1719
|
*/
|
|
1720
1720
|
noContinue?: NoContinueConfiguration;
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Restrict imports of deprecated exports.
|
|
1723
|
-
See
|
|
1723
|
+
See https://biomejs.dev/linter/rules/no-deprecated-imports
|
|
1724
1724
|
*/
|
|
1725
1725
|
noDeprecatedImports?: NoDeprecatedImportsConfiguration;
|
|
1726
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
|
+
/**
|
|
1727
1742
|
* Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
|
|
1728
|
-
See
|
|
1743
|
+
See https://biomejs.dev/linter/rules/no-duplicate-dependencies
|
|
1729
1744
|
*/
|
|
1730
1745
|
noDuplicateDependencies?: NoDuplicateDependenciesConfiguration;
|
|
1731
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
|
+
/**
|
|
1732
1777
|
* Disallow JSX prop spreading the same identifier multiple times.
|
|
1733
|
-
See
|
|
1778
|
+
See https://biomejs.dev/linter/rules/no-duplicated-spread-props
|
|
1734
1779
|
*/
|
|
1735
1780
|
noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration;
|
|
1736
1781
|
/**
|
|
1737
1782
|
* Disallow empty sources.
|
|
1738
|
-
See
|
|
1783
|
+
See https://biomejs.dev/linter/rules/no-empty-source
|
|
1739
1784
|
*/
|
|
1740
1785
|
noEmptySource?: NoEmptySourceConfiguration;
|
|
1741
1786
|
/**
|
|
1742
1787
|
* Require the use of === or !== for comparison with null.
|
|
1743
|
-
See
|
|
1788
|
+
See https://biomejs.dev/linter/rules/no-equals-to-null
|
|
1744
1789
|
*/
|
|
1745
1790
|
noEqualsToNull?: NoEqualsToNullConfiguration;
|
|
1746
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
|
+
/**
|
|
1747
1807
|
* Require Promise-like statements to be handled appropriately.
|
|
1748
|
-
See
|
|
1808
|
+
See https://biomejs.dev/linter/rules/no-floating-promises
|
|
1749
1809
|
*/
|
|
1750
1810
|
noFloatingPromises?: NoFloatingPromisesConfiguration;
|
|
1751
1811
|
/**
|
|
1752
1812
|
* Disallow iterating using a for-in loop.
|
|
1753
|
-
See
|
|
1813
|
+
See https://biomejs.dev/linter/rules/no-for-in
|
|
1754
1814
|
*/
|
|
1755
1815
|
noForIn?: NoForInConfiguration;
|
|
1756
1816
|
/**
|
|
1757
1817
|
* Prevent import cycles.
|
|
1758
|
-
See
|
|
1818
|
+
See https://biomejs.dev/linter/rules/no-import-cycles
|
|
1759
1819
|
*/
|
|
1760
1820
|
noImportCycles?: NoImportCyclesConfiguration;
|
|
1761
1821
|
/**
|
|
1762
1822
|
* Disallows the usage of the unary operators ++ and --.
|
|
1763
|
-
See
|
|
1823
|
+
See https://biomejs.dev/linter/rules/no-increment-decrement
|
|
1764
1824
|
*/
|
|
1765
1825
|
noIncrementDecrement?: NoIncrementDecrementConfiguration;
|
|
1766
1826
|
/**
|
|
1767
1827
|
* Disallow string literals inside JSX elements.
|
|
1768
|
-
See
|
|
1828
|
+
See https://biomejs.dev/linter/rules/no-jsx-literals
|
|
1769
1829
|
*/
|
|
1770
1830
|
noJsxLiterals?: NoJsxLiteralsConfiguration;
|
|
1771
1831
|
/**
|
|
1772
1832
|
* Disallow .bind(), arrow functions, or function expressions in JSX props.
|
|
1773
|
-
See
|
|
1833
|
+
See https://biomejs.dev/linter/rules/no-jsx-props-bind
|
|
1774
1834
|
*/
|
|
1775
1835
|
noJsxPropsBind?: NoJsxPropsBindConfiguration;
|
|
1776
1836
|
/**
|
|
1777
1837
|
* Prevent problematic leaked values from being rendered.
|
|
1778
|
-
See
|
|
1838
|
+
See https://biomejs.dev/linter/rules/no-leaked-render
|
|
1779
1839
|
*/
|
|
1780
1840
|
noLeakedRender?: NoLeakedRenderConfiguration;
|
|
1781
1841
|
/**
|
|
1782
1842
|
* Disallow Promises to be used in places where they are almost certainly a mistake.
|
|
1783
|
-
See
|
|
1843
|
+
See https://biomejs.dev/linter/rules/no-misused-promises
|
|
1784
1844
|
*/
|
|
1785
1845
|
noMisusedPromises?: NoMisusedPromisesConfiguration;
|
|
1786
1846
|
/**
|
|
1787
1847
|
* Disallow use of chained assignment expressions.
|
|
1788
|
-
See
|
|
1848
|
+
See https://biomejs.dev/linter/rules/no-multi-assign
|
|
1789
1849
|
*/
|
|
1790
1850
|
noMultiAssign?: NoMultiAssignConfiguration;
|
|
1791
1851
|
/**
|
|
1792
1852
|
* Disallow creating multiline strings by escaping newlines.
|
|
1793
|
-
See
|
|
1853
|
+
See https://biomejs.dev/linter/rules/no-multi-str
|
|
1794
1854
|
*/
|
|
1795
1855
|
noMultiStr?: NoMultiStrConfiguration;
|
|
1796
1856
|
/**
|
|
1797
1857
|
* Prevent client components from being async functions.
|
|
1798
|
-
See
|
|
1858
|
+
See https://biomejs.dev/linter/rules/no-next-async-client-component
|
|
1799
1859
|
*/
|
|
1800
1860
|
noNextAsyncClientComponent?: NoNextAsyncClientComponentConfiguration;
|
|
1801
1861
|
/**
|
|
1802
1862
|
* Disallow function parameters that are only used in recursive calls.
|
|
1803
|
-
See
|
|
1863
|
+
See https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion
|
|
1804
1864
|
*/
|
|
1805
1865
|
noParametersOnlyUsedInRecursion?: NoParametersOnlyUsedInRecursionConfiguration;
|
|
1806
1866
|
/**
|
|
1807
1867
|
* Disallow the use of the deprecated __proto__ object property.
|
|
1808
|
-
See
|
|
1868
|
+
See https://biomejs.dev/linter/rules/no-proto
|
|
1809
1869
|
*/
|
|
1810
1870
|
noProto?: NoProtoConfiguration;
|
|
1811
1871
|
/**
|
|
1812
1872
|
* Replaces usages of forwardRef with passing ref as a prop.
|
|
1813
|
-
See
|
|
1873
|
+
See https://biomejs.dev/linter/rules/no-react-forward-ref
|
|
1814
1874
|
*/
|
|
1815
1875
|
noReactForwardRef?: NoReactForwardRefConfiguration;
|
|
1816
1876
|
/**
|
|
1817
1877
|
* Disallow assignments in return statements.
|
|
1818
|
-
See
|
|
1878
|
+
See https://biomejs.dev/linter/rules/no-return-assign
|
|
1819
1879
|
*/
|
|
1820
1880
|
noReturnAssign?: NoReturnAssignConfiguration;
|
|
1821
1881
|
/**
|
|
1882
|
+
* Disallow the usage of specified root types.
|
|
1883
|
+
See https://biomejs.dev/linter/rules/no-root-type
|
|
1884
|
+
*/
|
|
1885
|
+
noRootType?: NoRootTypeConfiguration;
|
|
1886
|
+
/**
|
|
1822
1887
|
* Disallow javascript: URLs in HTML.
|
|
1823
|
-
See
|
|
1888
|
+
See https://biomejs.dev/linter/rules/no-script-url
|
|
1824
1889
|
*/
|
|
1825
1890
|
noScriptUrl?: NoScriptUrlConfiguration;
|
|
1826
1891
|
/**
|
|
1827
1892
|
* Disallow variable declarations from shadowing variables declared in the outer scope.
|
|
1828
|
-
See
|
|
1893
|
+
See https://biomejs.dev/linter/rules/no-shadow
|
|
1829
1894
|
*/
|
|
1830
1895
|
noShadow?: NoShadowConfiguration;
|
|
1831
1896
|
/**
|
|
1832
1897
|
* Prevent the usage of synchronous scripts.
|
|
1833
|
-
See
|
|
1898
|
+
See https://biomejs.dev/linter/rules/no-sync-scripts
|
|
1834
1899
|
*/
|
|
1835
1900
|
noSyncScripts?: NoSyncScriptsConfiguration;
|
|
1836
1901
|
/**
|
|
1837
1902
|
* Disallow ternary operators.
|
|
1838
|
-
See
|
|
1903
|
+
See https://biomejs.dev/linter/rules/no-ternary
|
|
1839
1904
|
*/
|
|
1840
1905
|
noTernary?: NoTernaryConfiguration;
|
|
1841
1906
|
/**
|
|
1842
1907
|
* Disallow the use of undeclared environment variables.
|
|
1843
|
-
See
|
|
1908
|
+
See https://biomejs.dev/linter/rules/no-undeclared-env-vars
|
|
1844
1909
|
*/
|
|
1845
1910
|
noUndeclaredEnvVars?: NoUndeclaredEnvVarsConfiguration;
|
|
1846
1911
|
/**
|
|
1847
1912
|
* Disallow unknown DOM properties.
|
|
1848
|
-
See
|
|
1913
|
+
See https://biomejs.dev/linter/rules/no-unknown-attribute
|
|
1849
1914
|
*/
|
|
1850
1915
|
noUnknownAttribute?: NoUnknownAttributeConfiguration;
|
|
1851
1916
|
/**
|
|
1852
1917
|
* Disallow unnecessary type-based conditions that can be statically determined as redundant.
|
|
1853
|
-
See
|
|
1918
|
+
See https://biomejs.dev/linter/rules/no-unnecessary-conditions
|
|
1854
1919
|
*/
|
|
1855
1920
|
noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration;
|
|
1856
1921
|
/**
|
|
1857
1922
|
* Warn when importing non-existing exports.
|
|
1858
|
-
See
|
|
1923
|
+
See https://biomejs.dev/linter/rules/no-unresolved-imports
|
|
1859
1924
|
*/
|
|
1860
1925
|
noUnresolvedImports?: NoUnresolvedImportsConfiguration;
|
|
1861
1926
|
/**
|
|
1862
1927
|
* Disallow expression statements that are neither a function call nor an assignment.
|
|
1863
|
-
See
|
|
1928
|
+
See https://biomejs.dev/linter/rules/no-unused-expressions
|
|
1864
1929
|
*/
|
|
1865
1930
|
noUnusedExpressions?: NoUnusedExpressionsConfiguration;
|
|
1866
1931
|
/**
|
|
1867
1932
|
* Disallow unused catch bindings.
|
|
1868
|
-
See
|
|
1933
|
+
See https://biomejs.dev/linter/rules/no-useless-catch-binding
|
|
1869
1934
|
*/
|
|
1870
1935
|
noUselessCatchBinding?: NoUselessCatchBindingConfiguration;
|
|
1871
1936
|
/**
|
|
1872
1937
|
* Disallow the use of useless undefined.
|
|
1873
|
-
See
|
|
1938
|
+
See https://biomejs.dev/linter/rules/no-useless-undefined
|
|
1874
1939
|
*/
|
|
1875
1940
|
noUselessUndefined?: NoUselessUndefinedConfiguration;
|
|
1876
1941
|
/**
|
|
1877
1942
|
* Enforce that Vue component data options are declared as functions.
|
|
1878
|
-
See
|
|
1943
|
+
See https://biomejs.dev/linter/rules/no-vue-data-object-declaration
|
|
1879
1944
|
*/
|
|
1880
1945
|
noVueDataObjectDeclaration?: NoVueDataObjectDeclarationConfiguration;
|
|
1881
1946
|
/**
|
|
1882
1947
|
* Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
|
|
1883
|
-
See
|
|
1948
|
+
See https://biomejs.dev/linter/rules/no-vue-duplicate-keys
|
|
1884
1949
|
*/
|
|
1885
1950
|
noVueDuplicateKeys?: NoVueDuplicateKeysConfiguration;
|
|
1886
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
|
+
/**
|
|
1887
1957
|
* Disallow reserved keys in Vue component data and computed properties.
|
|
1888
|
-
See
|
|
1958
|
+
See https://biomejs.dev/linter/rules/no-vue-reserved-keys
|
|
1889
1959
|
*/
|
|
1890
1960
|
noVueReservedKeys?: NoVueReservedKeysConfiguration;
|
|
1891
1961
|
/**
|
|
1892
1962
|
* Disallow reserved names to be used as props.
|
|
1893
|
-
See
|
|
1963
|
+
See https://biomejs.dev/linter/rules/no-vue-reserved-props
|
|
1894
1964
|
*/
|
|
1895
1965
|
noVueReservedProps?: NoVueReservedPropsConfiguration;
|
|
1896
1966
|
/**
|
|
1897
1967
|
* Disallow destructuring of props passed to setup in Vue projects.
|
|
1898
|
-
See
|
|
1968
|
+
See https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss
|
|
1899
1969
|
*/
|
|
1900
1970
|
noVueSetupPropsReactivityLoss?: NoVueSetupPropsReactivityLossConfiguration;
|
|
1901
1971
|
/**
|
|
1902
1972
|
* Disallow using v-if and v-for directives on the same element.
|
|
1903
|
-
See
|
|
1973
|
+
See https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for
|
|
1904
1974
|
*/
|
|
1905
1975
|
noVueVIfWithVFor?: NoVueVIfWithVForConfiguration;
|
|
1906
1976
|
/**
|
|
@@ -1909,249 +1979,244 @@ See <https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for>
|
|
|
1909
1979
|
recommended?: boolean;
|
|
1910
1980
|
/**
|
|
1911
1981
|
* Require Array#sort and Array#toSorted calls to always provide a compareFunction.
|
|
1912
|
-
See
|
|
1982
|
+
See https://biomejs.dev/linter/rules/use-array-sort-compare
|
|
1913
1983
|
*/
|
|
1914
1984
|
useArraySortCompare?: UseArraySortCompareConfiguration;
|
|
1915
1985
|
/**
|
|
1916
1986
|
* Enforce that await is only used on Promise values.
|
|
1917
|
-
See
|
|
1987
|
+
See https://biomejs.dev/linter/rules/use-await-thenable
|
|
1918
1988
|
*/
|
|
1919
1989
|
useAwaitThenable?: UseAwaitThenableConfiguration;
|
|
1920
1990
|
/**
|
|
1921
1991
|
* Enforce consistent arrow function bodies.
|
|
1922
|
-
See
|
|
1992
|
+
See https://biomejs.dev/linter/rules/use-consistent-arrow-return
|
|
1923
1993
|
*/
|
|
1924
1994
|
useConsistentArrowReturn?: UseConsistentArrowReturnConfiguration;
|
|
1925
1995
|
/**
|
|
1926
1996
|
* Require all descriptions to follow the same style (either block or inline) to maintain consistency and improve readability across the schema.
|
|
1927
|
-
See
|
|
1997
|
+
See https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions
|
|
1928
1998
|
*/
|
|
1929
1999
|
useConsistentGraphqlDescriptions?: UseConsistentGraphqlDescriptionsConfiguration;
|
|
1930
2000
|
/**
|
|
1931
2001
|
* Require the @deprecated directive to specify a deletion date.
|
|
1932
|
-
See
|
|
2002
|
+
See https://biomejs.dev/linter/rules/use-deprecated-date
|
|
1933
2003
|
*/
|
|
1934
2004
|
useDeprecatedDate?: UseDeprecatedDateConfiguration;
|
|
1935
2005
|
/**
|
|
1936
2006
|
* Require destructuring from arrays and/or objects.
|
|
1937
|
-
See
|
|
2007
|
+
See https://biomejs.dev/linter/rules/use-destructuring
|
|
1938
2008
|
*/
|
|
1939
2009
|
useDestructuring?: UseDestructuringConfiguration;
|
|
1940
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
|
+
/**
|
|
1941
2016
|
* Require switch-case statements to be exhaustive.
|
|
1942
|
-
See
|
|
2017
|
+
See https://biomejs.dev/linter/rules/use-exhaustive-switch-cases
|
|
1943
2018
|
*/
|
|
1944
2019
|
useExhaustiveSwitchCases?: UseExhaustiveSwitchCasesConfiguration;
|
|
1945
2020
|
/**
|
|
1946
2021
|
* Enforce types in functions, methods, variables, and parameters.
|
|
1947
|
-
See
|
|
2022
|
+
See https://biomejs.dev/linter/rules/use-explicit-type
|
|
1948
2023
|
*/
|
|
1949
2024
|
useExplicitType?: UseExplicitTypeConfiguration;
|
|
1950
2025
|
/**
|
|
1951
2026
|
* Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.
|
|
1952
|
-
See
|
|
2027
|
+
See https://biomejs.dev/linter/rules/use-find
|
|
1953
2028
|
*/
|
|
1954
2029
|
useFind?: UseFindConfiguration;
|
|
1955
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
|
+
/**
|
|
1956
2046
|
* Enforce a maximum number of parameters in function definitions.
|
|
1957
|
-
See
|
|
2047
|
+
See https://biomejs.dev/linter/rules/use-max-params
|
|
1958
2048
|
*/
|
|
1959
2049
|
useMaxParams?: UseMaxParamsConfiguration;
|
|
1960
2050
|
/**
|
|
1961
2051
|
* Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
|
|
1962
|
-
See
|
|
2052
|
+
See https://biomejs.dev/linter/rules/use-qwik-method-usage
|
|
1963
2053
|
*/
|
|
1964
2054
|
useQwikMethodUsage?: UseQwikMethodUsageConfiguration;
|
|
1965
2055
|
/**
|
|
1966
2056
|
* Disallow unserializable expressions in Qwik dollar ($) scopes.
|
|
1967
|
-
See
|
|
2057
|
+
See https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope
|
|
1968
2058
|
*/
|
|
1969
2059
|
useQwikValidLexicalScope?: UseQwikValidLexicalScopeConfiguration;
|
|
1970
2060
|
/**
|
|
1971
2061
|
* Enforce RegExp#exec over String#match if no global flag is provided.
|
|
1972
|
-
See
|
|
2062
|
+
See https://biomejs.dev/linter/rules/use-regexp-exec
|
|
1973
2063
|
*/
|
|
1974
2064
|
useRegexpExec?: UseRegexpExecConfiguration;
|
|
1975
2065
|
/**
|
|
1976
2066
|
* Enforce the presence of required scripts in package.json.
|
|
1977
|
-
See
|
|
2067
|
+
See https://biomejs.dev/linter/rules/use-required-scripts
|
|
1978
2068
|
*/
|
|
1979
2069
|
useRequiredScripts?: UseRequiredScriptsConfiguration;
|
|
1980
2070
|
/**
|
|
1981
2071
|
* Enforce the sorting of CSS utility classes.
|
|
1982
|
-
See
|
|
2072
|
+
See https://biomejs.dev/linter/rules/use-sorted-classes
|
|
1983
2073
|
*/
|
|
1984
2074
|
useSortedClasses?: UseSortedClassesConfiguration;
|
|
1985
2075
|
/**
|
|
1986
2076
|
* Enforce the use of the spread operator over .apply().
|
|
1987
|
-
See
|
|
2077
|
+
See https://biomejs.dev/linter/rules/use-spread
|
|
1988
2078
|
*/
|
|
1989
2079
|
useSpread?: UseSpreadConfiguration;
|
|
1990
2080
|
/**
|
|
1991
|
-
* Require all argument names for fields & directives to be unique.
|
|
1992
|
-
See <https://biomejs.dev/linter/rules/use-unique-argument-names>
|
|
1993
|
-
*/
|
|
1994
|
-
useUniqueArgumentNames?: UseUniqueArgumentNamesConfiguration;
|
|
1995
|
-
/**
|
|
1996
|
-
* Require all fields of a type to be unique.
|
|
1997
|
-
See <https://biomejs.dev/linter/rules/use-unique-field-definition-names>
|
|
1998
|
-
*/
|
|
1999
|
-
useUniqueFieldDefinitionNames?: UseUniqueFieldDefinitionNamesConfiguration;
|
|
2000
|
-
/**
|
|
2001
|
-
* Enforce unique operation names across a GraphQL document.
|
|
2002
|
-
See <https://biomejs.dev/linter/rules/use-unique-graphql-operation-name>
|
|
2003
|
-
*/
|
|
2004
|
-
useUniqueGraphqlOperationName?: UseUniqueGraphqlOperationNameConfiguration;
|
|
2005
|
-
/**
|
|
2006
|
-
* Require fields within an input object to be unique.
|
|
2007
|
-
See <https://biomejs.dev/linter/rules/use-unique-input-field-names>
|
|
2008
|
-
*/
|
|
2009
|
-
useUniqueInputFieldNames?: UseUniqueInputFieldNamesConfiguration;
|
|
2010
|
-
/**
|
|
2011
|
-
* Require all variable definitions to be unique.
|
|
2012
|
-
See <https://biomejs.dev/linter/rules/use-unique-variable-names>
|
|
2013
|
-
*/
|
|
2014
|
-
useUniqueVariableNames?: UseUniqueVariableNamesConfiguration;
|
|
2015
|
-
/**
|
|
2016
2081
|
* Enforce consistent defineProps declaration style.
|
|
2017
|
-
See
|
|
2082
|
+
See https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration
|
|
2018
2083
|
*/
|
|
2019
2084
|
useVueConsistentDefinePropsDeclaration?: UseVueConsistentDefinePropsDeclarationConfiguration;
|
|
2020
2085
|
/**
|
|
2021
2086
|
* Enforce a consistent style for v-bind in Vue templates.
|
|
2022
|
-
See
|
|
2087
|
+
See https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style
|
|
2023
2088
|
*/
|
|
2024
2089
|
useVueConsistentVBindStyle?: UseVueConsistentVBindStyleConfiguration;
|
|
2025
2090
|
/**
|
|
2026
2091
|
* Enforce a consistent style for v-on in Vue templates.
|
|
2027
|
-
See
|
|
2092
|
+
See https://biomejs.dev/linter/rules/use-vue-consistent-v-on-style
|
|
2028
2093
|
*/
|
|
2029
2094
|
useVueConsistentVOnStyle?: UseVueConsistentVOnStyleConfiguration;
|
|
2030
2095
|
/**
|
|
2031
2096
|
* Enforce specific order of Vue compiler macros.
|
|
2032
|
-
See
|
|
2097
|
+
See https://biomejs.dev/linter/rules/use-vue-define-macros-order
|
|
2033
2098
|
*/
|
|
2034
2099
|
useVueDefineMacrosOrder?: UseVueDefineMacrosOrderConfiguration;
|
|
2035
2100
|
/**
|
|
2036
2101
|
* Enforce hyphenated (kebab-case) attribute names in Vue templates.
|
|
2037
|
-
See
|
|
2102
|
+
See https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes
|
|
2038
2103
|
*/
|
|
2039
2104
|
useVueHyphenatedAttributes?: UseVueHyphenatedAttributesConfiguration;
|
|
2040
2105
|
/**
|
|
2041
2106
|
* Enforce multi-word component names in Vue components.
|
|
2042
|
-
See
|
|
2107
|
+
See https://biomejs.dev/linter/rules/use-vue-multi-word-component-names
|
|
2043
2108
|
*/
|
|
2044
2109
|
useVueMultiWordComponentNames?: UseVueMultiWordComponentNamesConfiguration;
|
|
2045
2110
|
/**
|
|
2046
2111
|
* Enforce that elements using v-for also specify a unique key.
|
|
2047
|
-
See
|
|
2112
|
+
See https://biomejs.dev/linter/rules/use-vue-v-for-key
|
|
2048
2113
|
*/
|
|
2049
2114
|
useVueVForKey?: UseVueVForKeyConfiguration;
|
|
2050
2115
|
/**
|
|
2051
2116
|
* Enforce valid Vue \<template> root usage.
|
|
2052
|
-
See
|
|
2117
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-template-root
|
|
2053
2118
|
*/
|
|
2054
2119
|
useVueValidTemplateRoot?: UseVueValidTemplateRootConfiguration;
|
|
2055
2120
|
/**
|
|
2056
2121
|
* Forbids v-bind directives with missing arguments or invalid modifiers.
|
|
2057
|
-
See
|
|
2122
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-bind
|
|
2058
2123
|
*/
|
|
2059
2124
|
useVueValidVBind?: UseVueValidVBindConfiguration;
|
|
2060
2125
|
/**
|
|
2061
2126
|
* Enforce valid v-cloak Vue directives.
|
|
2062
|
-
See
|
|
2127
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-cloak
|
|
2063
2128
|
*/
|
|
2064
2129
|
useVueValidVCloak?: UseVueValidVCloakConfiguration;
|
|
2065
2130
|
/**
|
|
2066
2131
|
* Enforce valid usage of v-else.
|
|
2067
|
-
See
|
|
2132
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-else
|
|
2068
2133
|
*/
|
|
2069
2134
|
useVueValidVElse?: UseVueValidVElseConfiguration;
|
|
2070
2135
|
/**
|
|
2071
2136
|
* Enforce valid v-else-if directives.
|
|
2072
|
-
See
|
|
2137
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-else-if
|
|
2073
2138
|
*/
|
|
2074
2139
|
useVueValidVElseIf?: UseVueValidVElseIfConfiguration;
|
|
2075
2140
|
/**
|
|
2076
2141
|
* Enforce valid v-html directives.
|
|
2077
|
-
See
|
|
2142
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-html
|
|
2078
2143
|
*/
|
|
2079
2144
|
useVueValidVHtml?: UseVueValidVHtmlConfiguration;
|
|
2080
2145
|
/**
|
|
2081
2146
|
* Enforces valid v-if usage for Vue templates.
|
|
2082
|
-
See
|
|
2147
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-if
|
|
2083
2148
|
*/
|
|
2084
2149
|
useVueValidVIf?: UseVueValidVIfConfiguration;
|
|
2085
2150
|
/**
|
|
2086
2151
|
* Enforce valid v-on directives with proper arguments, modifiers, and handlers.
|
|
2087
|
-
See
|
|
2152
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-on
|
|
2088
2153
|
*/
|
|
2089
2154
|
useVueValidVOn?: UseVueValidVOnConfiguration;
|
|
2090
2155
|
/**
|
|
2091
2156
|
* Enforce valid v-once Vue directives.
|
|
2092
|
-
See
|
|
2157
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-once
|
|
2093
2158
|
*/
|
|
2094
2159
|
useVueValidVOnce?: UseVueValidVOnceConfiguration;
|
|
2095
2160
|
/**
|
|
2096
2161
|
* Enforce valid v-pre Vue directives.
|
|
2097
|
-
See
|
|
2162
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-pre
|
|
2098
2163
|
*/
|
|
2099
2164
|
useVueValidVPre?: UseVueValidVPreConfiguration;
|
|
2100
2165
|
/**
|
|
2101
2166
|
* Enforce valid v-text Vue directives.
|
|
2102
|
-
See
|
|
2167
|
+
See https://biomejs.dev/linter/rules/use-vue-valid-v-text
|
|
2103
2168
|
*/
|
|
2104
2169
|
useVueValidVText?: UseVueValidVTextConfiguration;
|
|
2105
2170
|
/**
|
|
2106
2171
|
* Enforce opting in to Vue Vapor mode in \<script setup> blocks.
|
|
2107
|
-
See
|
|
2172
|
+
See https://biomejs.dev/linter/rules/use-vue-vapor
|
|
2108
2173
|
*/
|
|
2109
2174
|
useVueVapor?: UseVueVaporConfiguration;
|
|
2110
2175
|
}
|
|
2111
2176
|
interface Performance {
|
|
2112
2177
|
/**
|
|
2113
2178
|
* Disallow the use of spread (...) syntax on accumulators.
|
|
2114
|
-
See
|
|
2179
|
+
See https://biomejs.dev/linter/rules/no-accumulating-spread
|
|
2115
2180
|
*/
|
|
2116
2181
|
noAccumulatingSpread?: NoAccumulatingSpreadConfiguration;
|
|
2117
2182
|
/**
|
|
2118
2183
|
* Disallow await inside loops.
|
|
2119
|
-
See
|
|
2184
|
+
See https://biomejs.dev/linter/rules/no-await-in-loops
|
|
2120
2185
|
*/
|
|
2121
2186
|
noAwaitInLoops?: NoAwaitInLoopsConfiguration;
|
|
2122
2187
|
/**
|
|
2123
2188
|
* Disallow the use of barrel file.
|
|
2124
|
-
See
|
|
2189
|
+
See https://biomejs.dev/linter/rules/no-barrel-file
|
|
2125
2190
|
*/
|
|
2126
2191
|
noBarrelFile?: NoBarrelFileConfiguration;
|
|
2127
2192
|
/**
|
|
2128
2193
|
* Disallow the use of the delete operator.
|
|
2129
|
-
See
|
|
2194
|
+
See https://biomejs.dev/linter/rules/no-delete
|
|
2130
2195
|
*/
|
|
2131
2196
|
noDelete?: NoDeleteConfiguration;
|
|
2132
2197
|
/**
|
|
2133
2198
|
* Disallow accessing namespace imports dynamically.
|
|
2134
|
-
See
|
|
2199
|
+
See https://biomejs.dev/linter/rules/no-dynamic-namespace-import-access
|
|
2135
2200
|
*/
|
|
2136
2201
|
noDynamicNamespaceImportAccess?: NoDynamicNamespaceImportAccessConfiguration;
|
|
2137
2202
|
/**
|
|
2138
2203
|
* Prevent usage of \<img> element in a Next.js project.
|
|
2139
|
-
See
|
|
2204
|
+
See https://biomejs.dev/linter/rules/no-img-element
|
|
2140
2205
|
*/
|
|
2141
2206
|
noImgElement?: NoImgElementConfiguration;
|
|
2142
2207
|
/**
|
|
2143
2208
|
* Disallow the use of namespace imports.
|
|
2144
|
-
See
|
|
2209
|
+
See https://biomejs.dev/linter/rules/no-namespace-import
|
|
2145
2210
|
*/
|
|
2146
2211
|
noNamespaceImport?: NoNamespaceImportConfiguration;
|
|
2147
2212
|
/**
|
|
2148
2213
|
* Avoid re-export all.
|
|
2149
|
-
See
|
|
2214
|
+
See https://biomejs.dev/linter/rules/no-re-export-all
|
|
2150
2215
|
*/
|
|
2151
2216
|
noReExportAll?: NoReExportAllConfiguration;
|
|
2152
2217
|
/**
|
|
2153
2218
|
* Prevent duplicate polyfills from Polyfill.io.
|
|
2154
|
-
See
|
|
2219
|
+
See https://biomejs.dev/linter/rules/no-unwanted-polyfillio
|
|
2155
2220
|
*/
|
|
2156
2221
|
noUnwantedPolyfillio?: NoUnwantedPolyfillioConfiguration;
|
|
2157
2222
|
/**
|
|
@@ -2160,44 +2225,44 @@ See <https://biomejs.dev/linter/rules/no-unwanted-polyfillio>
|
|
|
2160
2225
|
recommended?: boolean;
|
|
2161
2226
|
/**
|
|
2162
2227
|
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
2163
|
-
See
|
|
2228
|
+
See https://biomejs.dev/linter/rules/use-google-font-preconnect
|
|
2164
2229
|
*/
|
|
2165
2230
|
useGoogleFontPreconnect?: UseGoogleFontPreconnectConfiguration;
|
|
2166
2231
|
/**
|
|
2167
2232
|
* Enforce using Solid's \<For /> component for mapping an array to JSX elements.
|
|
2168
|
-
See
|
|
2233
|
+
See https://biomejs.dev/linter/rules/use-solid-for-component
|
|
2169
2234
|
*/
|
|
2170
2235
|
useSolidForComponent?: UseSolidForComponentConfiguration;
|
|
2171
2236
|
/**
|
|
2172
2237
|
* Require regex literals to be declared at the top level.
|
|
2173
|
-
See
|
|
2238
|
+
See https://biomejs.dev/linter/rules/use-top-level-regex
|
|
2174
2239
|
*/
|
|
2175
2240
|
useTopLevelRegex?: UseTopLevelRegexConfiguration;
|
|
2176
2241
|
}
|
|
2177
2242
|
interface Security {
|
|
2178
2243
|
/**
|
|
2179
2244
|
* Disallow target="_blank" attribute without rel="noopener".
|
|
2180
|
-
See
|
|
2245
|
+
See https://biomejs.dev/linter/rules/no-blank-target
|
|
2181
2246
|
*/
|
|
2182
2247
|
noBlankTarget?: NoBlankTargetConfiguration;
|
|
2183
2248
|
/**
|
|
2184
2249
|
* Prevent the usage of dangerous JSX props.
|
|
2185
|
-
See
|
|
2250
|
+
See https://biomejs.dev/linter/rules/no-dangerously-set-inner-html
|
|
2186
2251
|
*/
|
|
2187
2252
|
noDangerouslySetInnerHtml?: NoDangerouslySetInnerHtmlConfiguration;
|
|
2188
2253
|
/**
|
|
2189
2254
|
* Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
|
|
2190
|
-
See
|
|
2255
|
+
See https://biomejs.dev/linter/rules/no-dangerously-set-inner-html-with-children
|
|
2191
2256
|
*/
|
|
2192
2257
|
noDangerouslySetInnerHtmlWithChildren?: NoDangerouslySetInnerHtmlWithChildrenConfiguration;
|
|
2193
2258
|
/**
|
|
2194
2259
|
* Disallow the use of global eval().
|
|
2195
|
-
See
|
|
2260
|
+
See https://biomejs.dev/linter/rules/no-global-eval
|
|
2196
2261
|
*/
|
|
2197
2262
|
noGlobalEval?: NoGlobalEvalConfiguration;
|
|
2198
2263
|
/**
|
|
2199
2264
|
* Disallow usage of sensitive data such as API keys and tokens.
|
|
2200
|
-
See
|
|
2265
|
+
See https://biomejs.dev/linter/rules/no-secrets
|
|
2201
2266
|
*/
|
|
2202
2267
|
noSecrets?: NoSecretsConfiguration;
|
|
2203
2268
|
/**
|
|
@@ -2208,132 +2273,132 @@ See <https://biomejs.dev/linter/rules/no-secrets>
|
|
|
2208
2273
|
interface Style {
|
|
2209
2274
|
/**
|
|
2210
2275
|
* Disallow use of CommonJs module system in favor of ESM style imports.
|
|
2211
|
-
See
|
|
2276
|
+
See https://biomejs.dev/linter/rules/no-common-js
|
|
2212
2277
|
*/
|
|
2213
2278
|
noCommonJs?: NoCommonJsConfiguration;
|
|
2214
2279
|
/**
|
|
2215
2280
|
* Disallow default exports.
|
|
2216
|
-
See
|
|
2281
|
+
See https://biomejs.dev/linter/rules/no-default-export
|
|
2217
2282
|
*/
|
|
2218
2283
|
noDefaultExport?: NoDefaultExportConfiguration;
|
|
2219
2284
|
/**
|
|
2220
2285
|
* Disallow a lower specificity selector from coming after a higher specificity selector.
|
|
2221
|
-
See
|
|
2286
|
+
See https://biomejs.dev/linter/rules/no-descending-specificity
|
|
2222
2287
|
*/
|
|
2223
2288
|
noDescendingSpecificity?: NoDescendingSpecificityConfiguration;
|
|
2224
2289
|
/**
|
|
2225
2290
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
2226
|
-
See
|
|
2291
|
+
See https://biomejs.dev/linter/rules/no-done-callback
|
|
2227
2292
|
*/
|
|
2228
2293
|
noDoneCallback?: NoDoneCallbackConfiguration;
|
|
2229
2294
|
/**
|
|
2230
2295
|
* Disallow TypeScript enum.
|
|
2231
|
-
See
|
|
2296
|
+
See https://biomejs.dev/linter/rules/no-enum
|
|
2232
2297
|
*/
|
|
2233
2298
|
noEnum?: NoEnumConfiguration;
|
|
2234
2299
|
/**
|
|
2235
2300
|
* Disallow exporting an imported variable.
|
|
2236
|
-
See
|
|
2301
|
+
See https://biomejs.dev/linter/rules/no-exported-imports
|
|
2237
2302
|
*/
|
|
2238
2303
|
noExportedImports?: NoExportedImportsConfiguration;
|
|
2239
2304
|
/**
|
|
2240
2305
|
* Prevent usage of \<head> element in a Next.js project.
|
|
2241
|
-
See
|
|
2306
|
+
See https://biomejs.dev/linter/rules/no-head-element
|
|
2242
2307
|
*/
|
|
2243
2308
|
noHeadElement?: NoHeadElementConfiguration;
|
|
2244
2309
|
/**
|
|
2245
2310
|
* Disallow implicit true values on JSX boolean attributes.
|
|
2246
|
-
See
|
|
2311
|
+
See https://biomejs.dev/linter/rules/no-implicit-boolean
|
|
2247
2312
|
*/
|
|
2248
2313
|
noImplicitBoolean?: NoImplicitBooleanConfiguration;
|
|
2249
2314
|
/**
|
|
2250
2315
|
* Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
|
|
2251
|
-
See
|
|
2316
|
+
See https://biomejs.dev/linter/rules/no-inferrable-types
|
|
2252
2317
|
*/
|
|
2253
2318
|
noInferrableTypes?: NoInferrableTypesConfiguration;
|
|
2254
2319
|
/**
|
|
2255
2320
|
* Reports usage of "magic numbers" — numbers used directly instead of being assigned to named constants.
|
|
2256
|
-
See
|
|
2321
|
+
See https://biomejs.dev/linter/rules/no-magic-numbers
|
|
2257
2322
|
*/
|
|
2258
2323
|
noMagicNumbers?: NoMagicNumbersConfiguration;
|
|
2259
2324
|
/**
|
|
2260
2325
|
* Disallow the use of TypeScript's namespaces.
|
|
2261
|
-
See
|
|
2326
|
+
See https://biomejs.dev/linter/rules/no-namespace
|
|
2262
2327
|
*/
|
|
2263
2328
|
noNamespace?: NoNamespaceConfiguration;
|
|
2264
2329
|
/**
|
|
2265
2330
|
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
2266
|
-
See
|
|
2331
|
+
See https://biomejs.dev/linter/rules/no-negation-else
|
|
2267
2332
|
*/
|
|
2268
2333
|
noNegationElse?: NoNegationElseConfiguration;
|
|
2269
2334
|
/**
|
|
2270
2335
|
* Disallow nested ternary expressions.
|
|
2271
|
-
See
|
|
2336
|
+
See https://biomejs.dev/linter/rules/no-nested-ternary
|
|
2272
2337
|
*/
|
|
2273
2338
|
noNestedTernary?: NoNestedTernaryConfiguration;
|
|
2274
2339
|
/**
|
|
2275
2340
|
* Disallow non-null assertions using the ! postfix operator.
|
|
2276
|
-
See
|
|
2341
|
+
See https://biomejs.dev/linter/rules/no-non-null-assertion
|
|
2277
2342
|
*/
|
|
2278
2343
|
noNonNullAssertion?: NoNonNullAssertionConfiguration;
|
|
2279
2344
|
/**
|
|
2280
2345
|
* Disallow reassigning function parameters.
|
|
2281
|
-
See
|
|
2346
|
+
See https://biomejs.dev/linter/rules/no-parameter-assign
|
|
2282
2347
|
*/
|
|
2283
2348
|
noParameterAssign?: NoParameterAssignConfiguration;
|
|
2284
2349
|
/**
|
|
2285
2350
|
* Disallow the use of parameter properties in class constructors.
|
|
2286
|
-
See
|
|
2351
|
+
See https://biomejs.dev/linter/rules/no-parameter-properties
|
|
2287
2352
|
*/
|
|
2288
2353
|
noParameterProperties?: NoParameterPropertiesConfiguration;
|
|
2289
2354
|
/**
|
|
2290
2355
|
* Disallow the use of process.env.
|
|
2291
|
-
See
|
|
2356
|
+
See https://biomejs.dev/linter/rules/no-process-env
|
|
2292
2357
|
*/
|
|
2293
2358
|
noProcessEnv?: NoProcessEnvConfiguration;
|
|
2294
2359
|
/**
|
|
2295
2360
|
* This rule allows you to specify global variable names that you don’t want to use in your application.
|
|
2296
|
-
See
|
|
2361
|
+
See https://biomejs.dev/linter/rules/no-restricted-globals
|
|
2297
2362
|
*/
|
|
2298
2363
|
noRestrictedGlobals?: NoRestrictedGlobalsConfiguration;
|
|
2299
2364
|
/**
|
|
2300
2365
|
* Disallow specified modules when loaded by import or require.
|
|
2301
|
-
See
|
|
2366
|
+
See https://biomejs.dev/linter/rules/no-restricted-imports
|
|
2302
2367
|
*/
|
|
2303
2368
|
noRestrictedImports?: NoRestrictedImportsConfiguration;
|
|
2304
2369
|
/**
|
|
2305
2370
|
* Disallow user defined types.
|
|
2306
|
-
See
|
|
2371
|
+
See https://biomejs.dev/linter/rules/no-restricted-types
|
|
2307
2372
|
*/
|
|
2308
2373
|
noRestrictedTypes?: NoRestrictedTypesConfiguration;
|
|
2309
2374
|
/**
|
|
2310
2375
|
* Disallow the use of constants which its value is the upper-case version of its name.
|
|
2311
|
-
See
|
|
2376
|
+
See https://biomejs.dev/linter/rules/no-shouty-constants
|
|
2312
2377
|
*/
|
|
2313
2378
|
noShoutyConstants?: NoShoutyConstantsConfiguration;
|
|
2314
2379
|
/**
|
|
2315
2380
|
* Enforce the use of String.slice() over String.substr() and String.substring().
|
|
2316
|
-
See
|
|
2381
|
+
See https://biomejs.dev/linter/rules/no-substr
|
|
2317
2382
|
*/
|
|
2318
2383
|
noSubstr?: NoSubstrConfiguration;
|
|
2319
2384
|
/**
|
|
2320
2385
|
* Disallow template literals if interpolation and special-character handling are not needed.
|
|
2321
|
-
See
|
|
2386
|
+
See https://biomejs.dev/linter/rules/no-unused-template-literal
|
|
2322
2387
|
*/
|
|
2323
2388
|
noUnusedTemplateLiteral?: NoUnusedTemplateLiteralConfiguration;
|
|
2324
2389
|
/**
|
|
2325
2390
|
* Disallow else block when the if block breaks early.
|
|
2326
|
-
See
|
|
2391
|
+
See https://biomejs.dev/linter/rules/no-useless-else
|
|
2327
2392
|
*/
|
|
2328
2393
|
noUselessElse?: NoUselessElseConfiguration;
|
|
2329
2394
|
/**
|
|
2330
2395
|
* Disallow use of @value rule in css modules.
|
|
2331
|
-
See
|
|
2396
|
+
See https://biomejs.dev/linter/rules/no-value-at-rule
|
|
2332
2397
|
*/
|
|
2333
2398
|
noValueAtRule?: NoValueAtRuleConfiguration;
|
|
2334
2399
|
/**
|
|
2335
2400
|
* Disallow the use of yoda expressions.
|
|
2336
|
-
See
|
|
2401
|
+
See https://biomejs.dev/linter/rules/no-yoda-expression
|
|
2337
2402
|
*/
|
|
2338
2403
|
noYodaExpression?: NoYodaExpressionConfiguration;
|
|
2339
2404
|
/**
|
|
@@ -2342,644 +2407,644 @@ See <https://biomejs.dev/linter/rules/no-yoda-expression>
|
|
|
2342
2407
|
recommended?: boolean;
|
|
2343
2408
|
/**
|
|
2344
2409
|
* Disallow Array constructors.
|
|
2345
|
-
See
|
|
2410
|
+
See https://biomejs.dev/linter/rules/use-array-literals
|
|
2346
2411
|
*/
|
|
2347
2412
|
useArrayLiterals?: UseArrayLiteralsConfiguration;
|
|
2348
2413
|
/**
|
|
2349
2414
|
* Enforce the use of as const over literal type and type annotation.
|
|
2350
|
-
See
|
|
2415
|
+
See https://biomejs.dev/linter/rules/use-as-const-assertion
|
|
2351
2416
|
*/
|
|
2352
2417
|
useAsConstAssertion?: UseAsConstAssertionConfiguration;
|
|
2353
2418
|
/**
|
|
2354
2419
|
* Use at() instead of integer index access.
|
|
2355
|
-
See
|
|
2420
|
+
See https://biomejs.dev/linter/rules/use-at-index
|
|
2356
2421
|
*/
|
|
2357
2422
|
useAtIndex?: UseAtIndexConfiguration;
|
|
2358
2423
|
/**
|
|
2359
2424
|
* Requires following curly brace conventions.
|
|
2360
|
-
See
|
|
2425
|
+
See https://biomejs.dev/linter/rules/use-block-statements
|
|
2361
2426
|
*/
|
|
2362
2427
|
useBlockStatements?: UseBlockStatementsConfiguration;
|
|
2363
2428
|
/**
|
|
2364
2429
|
* Enforce using else if instead of nested if in else clauses.
|
|
2365
|
-
See
|
|
2430
|
+
See https://biomejs.dev/linter/rules/use-collapsed-else-if
|
|
2366
2431
|
*/
|
|
2367
2432
|
useCollapsedElseIf?: UseCollapsedElseIfConfiguration;
|
|
2368
2433
|
/**
|
|
2369
2434
|
* Enforce using single if instead of nested if clauses.
|
|
2370
|
-
See
|
|
2435
|
+
See https://biomejs.dev/linter/rules/use-collapsed-if
|
|
2371
2436
|
*/
|
|
2372
2437
|
useCollapsedIf?: UseCollapsedIfConfiguration;
|
|
2373
2438
|
/**
|
|
2374
2439
|
* Enforce declaring components only within modules that export React Components exclusively.
|
|
2375
|
-
See
|
|
2440
|
+
See https://biomejs.dev/linter/rules/use-component-export-only-modules
|
|
2376
2441
|
*/
|
|
2377
2442
|
useComponentExportOnlyModules?: UseComponentExportOnlyModulesConfiguration;
|
|
2378
2443
|
/**
|
|
2379
2444
|
* Require consistently using either T\[] or Array\<T>.
|
|
2380
|
-
See
|
|
2445
|
+
See https://biomejs.dev/linter/rules/use-consistent-array-type
|
|
2381
2446
|
*/
|
|
2382
2447
|
useConsistentArrayType?: UseConsistentArrayTypeConfiguration;
|
|
2383
2448
|
/**
|
|
2384
2449
|
* Enforce the use of new for all builtins, except String, Number and Boolean.
|
|
2385
|
-
See
|
|
2450
|
+
See https://biomejs.dev/linter/rules/use-consistent-builtin-instantiation
|
|
2386
2451
|
*/
|
|
2387
2452
|
useConsistentBuiltinInstantiation?: UseConsistentBuiltinInstantiationConfiguration;
|
|
2388
2453
|
/**
|
|
2389
2454
|
* This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
|
|
2390
|
-
See
|
|
2455
|
+
See https://biomejs.dev/linter/rules/use-consistent-curly-braces
|
|
2391
2456
|
*/
|
|
2392
2457
|
useConsistentCurlyBraces?: UseConsistentCurlyBracesConfiguration;
|
|
2393
2458
|
/**
|
|
2394
2459
|
* Require consistent accessibility modifiers on class properties and methods.
|
|
2395
|
-
See
|
|
2460
|
+
See https://biomejs.dev/linter/rules/use-consistent-member-accessibility
|
|
2396
2461
|
*/
|
|
2397
2462
|
useConsistentMemberAccessibility?: UseConsistentMemberAccessibilityConfiguration;
|
|
2398
2463
|
/**
|
|
2399
2464
|
* Require the consistent declaration of object literals. Defaults to explicit definitions.
|
|
2400
|
-
See
|
|
2465
|
+
See https://biomejs.dev/linter/rules/use-consistent-object-definitions
|
|
2401
2466
|
*/
|
|
2402
2467
|
useConsistentObjectDefinitions?: UseConsistentObjectDefinitionsConfiguration;
|
|
2403
2468
|
/**
|
|
2404
2469
|
* Enforce type definitions to consistently use either interface or type.
|
|
2405
|
-
See
|
|
2470
|
+
See https://biomejs.dev/linter/rules/use-consistent-type-definitions
|
|
2406
2471
|
*/
|
|
2407
2472
|
useConsistentTypeDefinitions?: UseConsistentTypeDefinitionsConfiguration;
|
|
2408
2473
|
/**
|
|
2409
2474
|
* Require const declarations for variables that are only assigned once.
|
|
2410
|
-
See
|
|
2475
|
+
See https://biomejs.dev/linter/rules/use-const
|
|
2411
2476
|
*/
|
|
2412
2477
|
useConst?: UseConstConfiguration;
|
|
2413
2478
|
/**
|
|
2414
2479
|
* Enforce default function parameters and optional function parameters to be last.
|
|
2415
|
-
See
|
|
2480
|
+
See https://biomejs.dev/linter/rules/use-default-parameter-last
|
|
2416
2481
|
*/
|
|
2417
2482
|
useDefaultParameterLast?: UseDefaultParameterLastConfiguration;
|
|
2418
2483
|
/**
|
|
2419
2484
|
* Require the default clause in switch statements.
|
|
2420
|
-
See
|
|
2485
|
+
See https://biomejs.dev/linter/rules/use-default-switch-clause
|
|
2421
2486
|
*/
|
|
2422
2487
|
useDefaultSwitchClause?: UseDefaultSwitchClauseConfiguration;
|
|
2423
2488
|
/**
|
|
2424
2489
|
* Require specifying the reason argument when using @deprecated directive.
|
|
2425
|
-
See
|
|
2490
|
+
See https://biomejs.dev/linter/rules/use-deprecated-reason
|
|
2426
2491
|
*/
|
|
2427
2492
|
useDeprecatedReason?: UseDeprecatedReasonConfiguration;
|
|
2428
2493
|
/**
|
|
2429
2494
|
* Require that each enum member value be explicitly initialized.
|
|
2430
|
-
See
|
|
2495
|
+
See https://biomejs.dev/linter/rules/use-enum-initializers
|
|
2431
2496
|
*/
|
|
2432
2497
|
useEnumInitializers?: UseEnumInitializersConfiguration;
|
|
2433
2498
|
/**
|
|
2434
2499
|
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
2435
|
-
See
|
|
2500
|
+
See https://biomejs.dev/linter/rules/use-explicit-length-check
|
|
2436
2501
|
*/
|
|
2437
2502
|
useExplicitLengthCheck?: UseExplicitLengthCheckConfiguration;
|
|
2438
2503
|
/**
|
|
2439
2504
|
* Disallow the use of Math.pow in favor of the ** operator.
|
|
2440
|
-
See
|
|
2505
|
+
See https://biomejs.dev/linter/rules/use-exponentiation-operator
|
|
2441
2506
|
*/
|
|
2442
2507
|
useExponentiationOperator?: UseExponentiationOperatorConfiguration;
|
|
2443
2508
|
/**
|
|
2444
2509
|
* Promotes the use of export type for types.
|
|
2445
|
-
See
|
|
2510
|
+
See https://biomejs.dev/linter/rules/use-export-type
|
|
2446
2511
|
*/
|
|
2447
2512
|
useExportType?: UseExportTypeConfiguration;
|
|
2448
2513
|
/**
|
|
2449
2514
|
* Require that all exports are declared after all non-export statements.
|
|
2450
|
-
See
|
|
2515
|
+
See https://biomejs.dev/linter/rules/use-exports-last
|
|
2451
2516
|
*/
|
|
2452
2517
|
useExportsLast?: UseExportsLastConfiguration;
|
|
2453
2518
|
/**
|
|
2454
2519
|
* Enforce naming conventions for JavaScript and TypeScript filenames.
|
|
2455
|
-
See
|
|
2520
|
+
See https://biomejs.dev/linter/rules/use-filenaming-convention
|
|
2456
2521
|
*/
|
|
2457
2522
|
useFilenamingConvention?: UseFilenamingConventionConfiguration;
|
|
2458
2523
|
/**
|
|
2459
2524
|
* Prefer using for...of loops over standard for loops where possible.
|
|
2460
|
-
See
|
|
2525
|
+
See https://biomejs.dev/linter/rules/use-for-of
|
|
2461
2526
|
*/
|
|
2462
2527
|
useForOf?: UseForOfConfiguration;
|
|
2463
2528
|
/**
|
|
2464
2529
|
* This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
|
|
2465
|
-
See
|
|
2530
|
+
See https://biomejs.dev/linter/rules/use-fragment-syntax
|
|
2466
2531
|
*/
|
|
2467
2532
|
useFragmentSyntax?: UseFragmentSyntaxConfiguration;
|
|
2468
2533
|
/**
|
|
2469
2534
|
* Validates that all enum values are capitalized.
|
|
2470
|
-
See
|
|
2535
|
+
See https://biomejs.dev/linter/rules/use-graphql-naming-convention
|
|
2471
2536
|
*/
|
|
2472
2537
|
useGraphqlNamingConvention?: UseGraphqlNamingConventionConfiguration;
|
|
2473
2538
|
/**
|
|
2474
2539
|
* Enforce that getters and setters for the same property are adjacent in class and object definitions.
|
|
2475
|
-
See
|
|
2540
|
+
See https://biomejs.dev/linter/rules/use-grouped-accessor-pairs
|
|
2476
2541
|
*/
|
|
2477
2542
|
useGroupedAccessorPairs?: UseGroupedAccessorPairsConfiguration;
|
|
2478
2543
|
/**
|
|
2479
2544
|
* Promotes the use of import type for types.
|
|
2480
|
-
See
|
|
2545
|
+
See https://biomejs.dev/linter/rules/use-import-type
|
|
2481
2546
|
*/
|
|
2482
2547
|
useImportType?: UseImportTypeConfiguration;
|
|
2483
2548
|
/**
|
|
2484
2549
|
* Require all enum members to be literal values.
|
|
2485
|
-
See
|
|
2550
|
+
See https://biomejs.dev/linter/rules/use-literal-enum-members
|
|
2486
2551
|
*/
|
|
2487
2552
|
useLiteralEnumMembers?: UseLiteralEnumMembersConfiguration;
|
|
2488
2553
|
/**
|
|
2489
2554
|
* Enforce naming conventions for everything across a codebase.
|
|
2490
|
-
See
|
|
2555
|
+
See https://biomejs.dev/linter/rules/use-naming-convention
|
|
2491
2556
|
*/
|
|
2492
2557
|
useNamingConvention?: UseNamingConventionConfiguration;
|
|
2493
2558
|
/**
|
|
2494
2559
|
* Promotes the usage of node:assert/strict over node:assert.
|
|
2495
|
-
See
|
|
2560
|
+
See https://biomejs.dev/linter/rules/use-node-assert-strict
|
|
2496
2561
|
*/
|
|
2497
2562
|
useNodeAssertStrict?: UseNodeAssertStrictConfiguration;
|
|
2498
2563
|
/**
|
|
2499
2564
|
* Enforces using the node: protocol for Node.js builtin modules.
|
|
2500
|
-
See
|
|
2565
|
+
See https://biomejs.dev/linter/rules/use-nodejs-import-protocol
|
|
2501
2566
|
*/
|
|
2502
2567
|
useNodejsImportProtocol?: UseNodejsImportProtocolConfiguration;
|
|
2503
2568
|
/**
|
|
2504
2569
|
* Use the Number properties instead of global ones.
|
|
2505
|
-
See
|
|
2570
|
+
See https://biomejs.dev/linter/rules/use-number-namespace
|
|
2506
2571
|
*/
|
|
2507
2572
|
useNumberNamespace?: UseNumberNamespaceConfiguration;
|
|
2508
2573
|
/**
|
|
2509
2574
|
* Enforce the use of numeric separators in numeric literals.
|
|
2510
|
-
See
|
|
2575
|
+
See https://biomejs.dev/linter/rules/use-numeric-separators
|
|
2511
2576
|
*/
|
|
2512
2577
|
useNumericSeparators?: UseNumericSeparatorsConfiguration;
|
|
2513
2578
|
/**
|
|
2514
2579
|
* Prefer object spread over Object.assign() when constructing new objects.
|
|
2515
|
-
See
|
|
2580
|
+
See https://biomejs.dev/linter/rules/use-object-spread
|
|
2516
2581
|
*/
|
|
2517
2582
|
useObjectSpread?: UseObjectSpreadConfiguration;
|
|
2518
2583
|
/**
|
|
2519
2584
|
* Enforce that components are defined as functions and never as classes.
|
|
2520
|
-
See
|
|
2585
|
+
See https://biomejs.dev/linter/rules/use-react-function-components
|
|
2521
2586
|
*/
|
|
2522
2587
|
useReactFunctionComponents?: UseReactFunctionComponentsConfiguration;
|
|
2523
2588
|
/**
|
|
2524
2589
|
* Enforce marking members as readonly if they are never modified outside the constructor.
|
|
2525
|
-
See
|
|
2590
|
+
See https://biomejs.dev/linter/rules/use-readonly-class-properties
|
|
2526
2591
|
*/
|
|
2527
2592
|
useReadonlyClassProperties?: UseReadonlyClassPropertiesConfiguration;
|
|
2528
2593
|
/**
|
|
2529
2594
|
* Prevent extra closing tags for components without children.
|
|
2530
|
-
See
|
|
2595
|
+
See https://biomejs.dev/linter/rules/use-self-closing-elements
|
|
2531
2596
|
*/
|
|
2532
2597
|
useSelfClosingElements?: UseSelfClosingElementsConfiguration;
|
|
2533
2598
|
/**
|
|
2534
2599
|
* Require assignment operator shorthand where possible.
|
|
2535
|
-
See
|
|
2600
|
+
See https://biomejs.dev/linter/rules/use-shorthand-assign
|
|
2536
2601
|
*/
|
|
2537
2602
|
useShorthandAssign?: UseShorthandAssignConfiguration;
|
|
2538
2603
|
/**
|
|
2539
2604
|
* Enforce using function types instead of object type with call signatures.
|
|
2540
|
-
See
|
|
2605
|
+
See https://biomejs.dev/linter/rules/use-shorthand-function-type
|
|
2541
2606
|
*/
|
|
2542
2607
|
useShorthandFunctionType?: UseShorthandFunctionTypeConfiguration;
|
|
2543
2608
|
/**
|
|
2544
2609
|
* Disallow multiple variable declarations in the same variable statement.
|
|
2545
|
-
See
|
|
2610
|
+
See https://biomejs.dev/linter/rules/use-single-var-declarator
|
|
2546
2611
|
*/
|
|
2547
2612
|
useSingleVarDeclarator?: UseSingleVarDeclaratorConfiguration;
|
|
2548
2613
|
/**
|
|
2549
2614
|
* Require a description parameter for the Symbol().
|
|
2550
|
-
See
|
|
2615
|
+
See https://biomejs.dev/linter/rules/use-symbol-description
|
|
2551
2616
|
*/
|
|
2552
2617
|
useSymbolDescription?: UseSymbolDescriptionConfiguration;
|
|
2553
2618
|
/**
|
|
2554
2619
|
* Prefer template literals over string concatenation.
|
|
2555
|
-
See
|
|
2620
|
+
See https://biomejs.dev/linter/rules/use-template
|
|
2556
2621
|
*/
|
|
2557
2622
|
useTemplate?: UseTemplateConfiguration;
|
|
2558
2623
|
/**
|
|
2559
2624
|
* Require new when throwing an error.
|
|
2560
|
-
See
|
|
2625
|
+
See https://biomejs.dev/linter/rules/use-throw-new-error
|
|
2561
2626
|
*/
|
|
2562
2627
|
useThrowNewError?: UseThrowNewErrorConfiguration;
|
|
2563
2628
|
/**
|
|
2564
2629
|
* Disallow throwing non-Error values.
|
|
2565
|
-
See
|
|
2630
|
+
See https://biomejs.dev/linter/rules/use-throw-only-error
|
|
2566
2631
|
*/
|
|
2567
2632
|
useThrowOnlyError?: UseThrowOnlyErrorConfiguration;
|
|
2568
2633
|
/**
|
|
2569
2634
|
* Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
|
|
2570
|
-
See
|
|
2635
|
+
See https://biomejs.dev/linter/rules/use-trim-start-end
|
|
2571
2636
|
*/
|
|
2572
2637
|
useTrimStartEnd?: UseTrimStartEndConfiguration;
|
|
2573
2638
|
/**
|
|
2574
2639
|
* Disallow overload signatures that can be unified into a single signature.
|
|
2575
|
-
See
|
|
2640
|
+
See https://biomejs.dev/linter/rules/use-unified-type-signatures
|
|
2576
2641
|
*/
|
|
2577
2642
|
useUnifiedTypeSignatures?: UseUnifiedTypeSignaturesConfiguration;
|
|
2578
2643
|
}
|
|
2579
2644
|
interface Suspicious {
|
|
2580
2645
|
/**
|
|
2581
2646
|
* Disallow the use of alert, confirm, and prompt.
|
|
2582
|
-
See
|
|
2647
|
+
See https://biomejs.dev/linter/rules/no-alert
|
|
2583
2648
|
*/
|
|
2584
2649
|
noAlert?: NoAlertConfiguration;
|
|
2585
2650
|
/**
|
|
2586
2651
|
* Use standard constants instead of approximated literals.
|
|
2587
|
-
See
|
|
2652
|
+
See https://biomejs.dev/linter/rules/no-approximative-numeric-constant
|
|
2588
2653
|
*/
|
|
2589
2654
|
noApproximativeNumericConstant?: NoApproximativeNumericConstantConfiguration;
|
|
2590
2655
|
/**
|
|
2591
2656
|
* Discourage the usage of Array index in keys.
|
|
2592
|
-
See
|
|
2657
|
+
See https://biomejs.dev/linter/rules/no-array-index-key
|
|
2593
2658
|
*/
|
|
2594
2659
|
noArrayIndexKey?: NoArrayIndexKeyConfiguration;
|
|
2595
2660
|
/**
|
|
2596
2661
|
* Disallow assignments in expressions.
|
|
2597
|
-
See
|
|
2662
|
+
See https://biomejs.dev/linter/rules/no-assign-in-expressions
|
|
2598
2663
|
*/
|
|
2599
2664
|
noAssignInExpressions?: NoAssignInExpressionsConfiguration;
|
|
2600
2665
|
/**
|
|
2601
2666
|
* Disallows using an async function as a Promise executor.
|
|
2602
|
-
See
|
|
2667
|
+
See https://biomejs.dev/linter/rules/no-async-promise-executor
|
|
2603
2668
|
*/
|
|
2604
2669
|
noAsyncPromiseExecutor?: NoAsyncPromiseExecutorConfiguration;
|
|
2605
2670
|
/**
|
|
2606
2671
|
* Prevents the misuse of glob patterns inside the files.includes field.
|
|
2607
|
-
See
|
|
2672
|
+
See https://biomejs.dev/linter/rules/no-biome-first-exception
|
|
2608
2673
|
*/
|
|
2609
2674
|
noBiomeFirstException?: NoBiomeFirstExceptionConfiguration;
|
|
2610
2675
|
/**
|
|
2611
2676
|
* Disallow bitwise operators.
|
|
2612
|
-
See
|
|
2677
|
+
See https://biomejs.dev/linter/rules/no-bitwise-operators
|
|
2613
2678
|
*/
|
|
2614
2679
|
noBitwiseOperators?: NoBitwiseOperatorsConfiguration;
|
|
2615
2680
|
/**
|
|
2616
2681
|
* Disallow reassigning exceptions in catch clauses.
|
|
2617
|
-
See
|
|
2682
|
+
See https://biomejs.dev/linter/rules/no-catch-assign
|
|
2618
2683
|
*/
|
|
2619
2684
|
noCatchAssign?: NoCatchAssignConfiguration;
|
|
2620
2685
|
/**
|
|
2621
2686
|
* Disallow reassigning class members.
|
|
2622
|
-
See
|
|
2687
|
+
See https://biomejs.dev/linter/rules/no-class-assign
|
|
2623
2688
|
*/
|
|
2624
2689
|
noClassAssign?: NoClassAssignConfiguration;
|
|
2625
2690
|
/**
|
|
2626
2691
|
* Prevent comments from being inserted as text nodes.
|
|
2627
|
-
See
|
|
2692
|
+
See https://biomejs.dev/linter/rules/no-comment-text
|
|
2628
2693
|
*/
|
|
2629
2694
|
noCommentText?: NoCommentTextConfiguration;
|
|
2630
2695
|
/**
|
|
2631
2696
|
* Disallow comparing against -0.
|
|
2632
|
-
See
|
|
2697
|
+
See https://biomejs.dev/linter/rules/no-compare-neg-zero
|
|
2633
2698
|
*/
|
|
2634
2699
|
noCompareNegZero?: NoCompareNegZeroConfiguration;
|
|
2635
2700
|
/**
|
|
2636
2701
|
* Disallow labeled statements that are not loops.
|
|
2637
|
-
See
|
|
2702
|
+
See https://biomejs.dev/linter/rules/no-confusing-labels
|
|
2638
2703
|
*/
|
|
2639
2704
|
noConfusingLabels?: NoConfusingLabelsConfiguration;
|
|
2640
2705
|
/**
|
|
2641
2706
|
* Disallow void type outside of generic or return types.
|
|
2642
|
-
See
|
|
2707
|
+
See https://biomejs.dev/linter/rules/no-confusing-void-type
|
|
2643
2708
|
*/
|
|
2644
2709
|
noConfusingVoidType?: NoConfusingVoidTypeConfiguration;
|
|
2645
2710
|
/**
|
|
2646
2711
|
* Disallow the use of console.
|
|
2647
|
-
See
|
|
2712
|
+
See https://biomejs.dev/linter/rules/no-console
|
|
2648
2713
|
*/
|
|
2649
2714
|
noConsole?: NoConsoleConfiguration;
|
|
2650
2715
|
/**
|
|
2651
2716
|
* Disallow TypeScript const enum.
|
|
2652
|
-
See
|
|
2717
|
+
See https://biomejs.dev/linter/rules/no-const-enum
|
|
2653
2718
|
*/
|
|
2654
2719
|
noConstEnum?: NoConstEnumConfiguration;
|
|
2655
2720
|
/**
|
|
2656
2721
|
* Disallow expressions where the operation doesn't affect the value.
|
|
2657
|
-
See
|
|
2722
|
+
See https://biomejs.dev/linter/rules/no-constant-binary-expressions
|
|
2658
2723
|
*/
|
|
2659
2724
|
noConstantBinaryExpressions?: NoConstantBinaryExpressionsConfiguration;
|
|
2660
2725
|
/**
|
|
2661
2726
|
* Prevents from having control characters and some escape sequences that match control characters in regular expression literals.
|
|
2662
|
-
See
|
|
2727
|
+
See https://biomejs.dev/linter/rules/no-control-characters-in-regex
|
|
2663
2728
|
*/
|
|
2664
2729
|
noControlCharactersInRegex?: NoControlCharactersInRegexConfiguration;
|
|
2665
2730
|
/**
|
|
2666
2731
|
* Disallow the use of debugger.
|
|
2667
|
-
See
|
|
2732
|
+
See https://biomejs.dev/linter/rules/no-debugger
|
|
2668
2733
|
*/
|
|
2669
2734
|
noDebugger?: NoDebuggerConfiguration;
|
|
2670
2735
|
/**
|
|
2671
2736
|
* Disallow direct assignments to document.cookie.
|
|
2672
|
-
See
|
|
2737
|
+
See https://biomejs.dev/linter/rules/no-document-cookie
|
|
2673
2738
|
*/
|
|
2674
2739
|
noDocumentCookie?: NoDocumentCookieConfiguration;
|
|
2675
2740
|
/**
|
|
2676
2741
|
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
2677
|
-
See
|
|
2742
|
+
See https://biomejs.dev/linter/rules/no-document-import-in-page
|
|
2678
2743
|
*/
|
|
2679
2744
|
noDocumentImportInPage?: NoDocumentImportInPageConfiguration;
|
|
2680
2745
|
/**
|
|
2681
2746
|
* Require the use of === and !==.
|
|
2682
|
-
See
|
|
2747
|
+
See https://biomejs.dev/linter/rules/no-double-equals
|
|
2683
2748
|
*/
|
|
2684
2749
|
noDoubleEquals?: NoDoubleEqualsConfiguration;
|
|
2685
2750
|
/**
|
|
2686
2751
|
* Disallow duplicate @import rules.
|
|
2687
|
-
See
|
|
2752
|
+
See https://biomejs.dev/linter/rules/no-duplicate-at-import-rules
|
|
2688
2753
|
*/
|
|
2689
2754
|
noDuplicateAtImportRules?: NoDuplicateAtImportRulesConfiguration;
|
|
2690
2755
|
/**
|
|
2691
2756
|
* Disallow duplicate case labels.
|
|
2692
|
-
See
|
|
2757
|
+
See https://biomejs.dev/linter/rules/no-duplicate-case
|
|
2693
2758
|
*/
|
|
2694
2759
|
noDuplicateCase?: NoDuplicateCaseConfiguration;
|
|
2695
2760
|
/**
|
|
2696
2761
|
* Disallow duplicate class members.
|
|
2697
|
-
See
|
|
2762
|
+
See https://biomejs.dev/linter/rules/no-duplicate-class-members
|
|
2698
2763
|
*/
|
|
2699
2764
|
noDuplicateClassMembers?: NoDuplicateClassMembersConfiguration;
|
|
2700
2765
|
/**
|
|
2701
2766
|
* Disallow duplicate custom properties within declaration blocks.
|
|
2702
|
-
See
|
|
2767
|
+
See https://biomejs.dev/linter/rules/no-duplicate-custom-properties
|
|
2703
2768
|
*/
|
|
2704
2769
|
noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration;
|
|
2705
2770
|
/**
|
|
2706
2771
|
* Disallow duplicate conditions in if-else-if chains.
|
|
2707
|
-
See
|
|
2772
|
+
See https://biomejs.dev/linter/rules/no-duplicate-else-if
|
|
2708
2773
|
*/
|
|
2709
2774
|
noDuplicateElseIf?: NoDuplicateElseIfConfiguration;
|
|
2710
2775
|
/**
|
|
2711
2776
|
* No duplicated fields in GraphQL operations.
|
|
2712
|
-
See
|
|
2777
|
+
See https://biomejs.dev/linter/rules/no-duplicate-fields
|
|
2713
2778
|
*/
|
|
2714
2779
|
noDuplicateFields?: NoDuplicateFieldsConfiguration;
|
|
2715
2780
|
/**
|
|
2716
2781
|
* Disallow duplicate names within font families.
|
|
2717
|
-
See
|
|
2782
|
+
See https://biomejs.dev/linter/rules/no-duplicate-font-names
|
|
2718
2783
|
*/
|
|
2719
2784
|
noDuplicateFontNames?: NoDuplicateFontNamesConfiguration;
|
|
2720
2785
|
/**
|
|
2721
2786
|
* Prevents JSX properties to be assigned multiple times.
|
|
2722
|
-
See
|
|
2787
|
+
See https://biomejs.dev/linter/rules/no-duplicate-jsx-props
|
|
2723
2788
|
*/
|
|
2724
2789
|
noDuplicateJsxProps?: NoDuplicateJsxPropsConfiguration;
|
|
2725
2790
|
/**
|
|
2726
2791
|
* Disallow two keys with the same name inside objects.
|
|
2727
|
-
See
|
|
2792
|
+
See https://biomejs.dev/linter/rules/no-duplicate-object-keys
|
|
2728
2793
|
*/
|
|
2729
2794
|
noDuplicateObjectKeys?: NoDuplicateObjectKeysConfiguration;
|
|
2730
2795
|
/**
|
|
2731
2796
|
* Disallow duplicate function parameter name.
|
|
2732
|
-
See
|
|
2797
|
+
See https://biomejs.dev/linter/rules/no-duplicate-parameters
|
|
2733
2798
|
*/
|
|
2734
2799
|
noDuplicateParameters?: NoDuplicateParametersConfiguration;
|
|
2735
2800
|
/**
|
|
2736
2801
|
* Disallow duplicate properties within declaration blocks.
|
|
2737
|
-
See
|
|
2802
|
+
See https://biomejs.dev/linter/rules/no-duplicate-properties
|
|
2738
2803
|
*/
|
|
2739
2804
|
noDuplicateProperties?: NoDuplicatePropertiesConfiguration;
|
|
2740
2805
|
/**
|
|
2741
2806
|
* Disallow duplicate selectors within keyframe blocks.
|
|
2742
|
-
See
|
|
2807
|
+
See https://biomejs.dev/linter/rules/no-duplicate-selectors-keyframe-block
|
|
2743
2808
|
*/
|
|
2744
2809
|
noDuplicateSelectorsKeyframeBlock?: NoDuplicateSelectorsKeyframeBlockConfiguration;
|
|
2745
2810
|
/**
|
|
2746
2811
|
* A describe block should not contain duplicate hooks.
|
|
2747
|
-
See
|
|
2812
|
+
See https://biomejs.dev/linter/rules/no-duplicate-test-hooks
|
|
2748
2813
|
*/
|
|
2749
2814
|
noDuplicateTestHooks?: NoDuplicateTestHooksConfiguration;
|
|
2750
2815
|
/**
|
|
2751
2816
|
* Disallow CSS empty blocks.
|
|
2752
|
-
See
|
|
2817
|
+
See https://biomejs.dev/linter/rules/no-empty-block
|
|
2753
2818
|
*/
|
|
2754
2819
|
noEmptyBlock?: NoEmptyBlockConfiguration;
|
|
2755
2820
|
/**
|
|
2756
2821
|
* Disallow empty block statements and static blocks.
|
|
2757
|
-
See
|
|
2822
|
+
See https://biomejs.dev/linter/rules/no-empty-block-statements
|
|
2758
2823
|
*/
|
|
2759
2824
|
noEmptyBlockStatements?: NoEmptyBlockStatementsConfiguration;
|
|
2760
2825
|
/**
|
|
2761
2826
|
* Disallow the declaration of empty interfaces.
|
|
2762
|
-
See
|
|
2827
|
+
See https://biomejs.dev/linter/rules/no-empty-interface
|
|
2763
2828
|
*/
|
|
2764
2829
|
noEmptyInterface?: NoEmptyInterfaceConfiguration;
|
|
2765
2830
|
/**
|
|
2766
2831
|
* Disallow variables from evolving into any type through reassignments.
|
|
2767
|
-
See
|
|
2832
|
+
See https://biomejs.dev/linter/rules/no-evolving-types
|
|
2768
2833
|
*/
|
|
2769
2834
|
noEvolvingTypes?: NoEvolvingTypesConfiguration;
|
|
2770
2835
|
/**
|
|
2771
2836
|
* Disallow the any type usage.
|
|
2772
|
-
See
|
|
2837
|
+
See https://biomejs.dev/linter/rules/no-explicit-any
|
|
2773
2838
|
*/
|
|
2774
2839
|
noExplicitAny?: NoExplicitAnyConfiguration;
|
|
2775
2840
|
/**
|
|
2776
2841
|
* Disallow using export or module.exports in files containing tests.
|
|
2777
|
-
See
|
|
2842
|
+
See https://biomejs.dev/linter/rules/no-exports-in-test
|
|
2778
2843
|
*/
|
|
2779
2844
|
noExportsInTest?: NoExportsInTestConfiguration;
|
|
2780
2845
|
/**
|
|
2781
2846
|
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
2782
|
-
See
|
|
2847
|
+
See https://biomejs.dev/linter/rules/no-extra-non-null-assertion
|
|
2783
2848
|
*/
|
|
2784
2849
|
noExtraNonNullAssertion?: NoExtraNonNullAssertionConfiguration;
|
|
2785
2850
|
/**
|
|
2786
2851
|
* Disallow fallthrough of switch clauses.
|
|
2787
|
-
See
|
|
2852
|
+
See https://biomejs.dev/linter/rules/no-fallthrough-switch-clause
|
|
2788
2853
|
*/
|
|
2789
2854
|
noFallthroughSwitchClause?: NoFallthroughSwitchClauseConfiguration;
|
|
2790
2855
|
/**
|
|
2791
2856
|
* Disallow focused tests.
|
|
2792
|
-
See
|
|
2857
|
+
See https://biomejs.dev/linter/rules/no-focused-tests
|
|
2793
2858
|
*/
|
|
2794
2859
|
noFocusedTests?: NoFocusedTestsConfiguration;
|
|
2795
2860
|
/**
|
|
2796
2861
|
* Disallow reassigning function declarations.
|
|
2797
|
-
See
|
|
2862
|
+
See https://biomejs.dev/linter/rules/no-function-assign
|
|
2798
2863
|
*/
|
|
2799
2864
|
noFunctionAssign?: NoFunctionAssignConfiguration;
|
|
2800
2865
|
/**
|
|
2801
2866
|
* Disallow assignments to native objects and read-only global variables.
|
|
2802
|
-
See
|
|
2867
|
+
See https://biomejs.dev/linter/rules/no-global-assign
|
|
2803
2868
|
*/
|
|
2804
2869
|
noGlobalAssign?: NoGlobalAssignConfiguration;
|
|
2805
2870
|
/**
|
|
2806
2871
|
* Use Number.isFinite instead of global isFinite.
|
|
2807
|
-
See
|
|
2872
|
+
See https://biomejs.dev/linter/rules/no-global-is-finite
|
|
2808
2873
|
*/
|
|
2809
2874
|
noGlobalIsFinite?: NoGlobalIsFiniteConfiguration;
|
|
2810
2875
|
/**
|
|
2811
2876
|
* Use Number.isNaN instead of global isNaN.
|
|
2812
|
-
See
|
|
2877
|
+
See https://biomejs.dev/linter/rules/no-global-is-nan
|
|
2813
2878
|
*/
|
|
2814
2879
|
noGlobalIsNan?: NoGlobalIsNanConfiguration;
|
|
2815
2880
|
/**
|
|
2816
2881
|
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
2817
|
-
See
|
|
2882
|
+
See https://biomejs.dev/linter/rules/no-head-import-in-document
|
|
2818
2883
|
*/
|
|
2819
2884
|
noHeadImportInDocument?: NoHeadImportInDocumentConfiguration;
|
|
2820
2885
|
/**
|
|
2821
2886
|
* Disallow use of implicit any type on variable declarations.
|
|
2822
|
-
See
|
|
2887
|
+
See https://biomejs.dev/linter/rules/no-implicit-any-let
|
|
2823
2888
|
*/
|
|
2824
2889
|
noImplicitAnyLet?: NoImplicitAnyLetConfiguration;
|
|
2825
2890
|
/**
|
|
2826
2891
|
* Disallow assigning to imported bindings.
|
|
2827
|
-
See
|
|
2892
|
+
See https://biomejs.dev/linter/rules/no-import-assign
|
|
2828
2893
|
*/
|
|
2829
2894
|
noImportAssign?: NoImportAssignConfiguration;
|
|
2830
2895
|
/**
|
|
2831
2896
|
* Disallow invalid !important within keyframe declarations.
|
|
2832
|
-
See
|
|
2897
|
+
See https://biomejs.dev/linter/rules/no-important-in-keyframe
|
|
2833
2898
|
*/
|
|
2834
2899
|
noImportantInKeyframe?: NoImportantInKeyframeConfiguration;
|
|
2835
2900
|
/**
|
|
2836
2901
|
* Disallows the use of irregular whitespace characters.
|
|
2837
|
-
See
|
|
2902
|
+
See https://biomejs.dev/linter/rules/no-irregular-whitespace
|
|
2838
2903
|
*/
|
|
2839
2904
|
noIrregularWhitespace?: NoIrregularWhitespaceConfiguration;
|
|
2840
2905
|
/**
|
|
2841
2906
|
* Disallow labels that share a name with a variable.
|
|
2842
|
-
See
|
|
2907
|
+
See https://biomejs.dev/linter/rules/no-label-var
|
|
2843
2908
|
*/
|
|
2844
2909
|
noLabelVar?: NoLabelVarConfiguration;
|
|
2845
2910
|
/**
|
|
2846
2911
|
* Disallow characters made with multiple code points in character class syntax.
|
|
2847
|
-
See
|
|
2912
|
+
See https://biomejs.dev/linter/rules/no-misleading-character-class
|
|
2848
2913
|
*/
|
|
2849
2914
|
noMisleadingCharacterClass?: NoMisleadingCharacterClassConfiguration;
|
|
2850
2915
|
/**
|
|
2851
2916
|
* Enforce proper usage of new and constructor.
|
|
2852
|
-
See
|
|
2917
|
+
See https://biomejs.dev/linter/rules/no-misleading-instantiator
|
|
2853
2918
|
*/
|
|
2854
2919
|
noMisleadingInstantiator?: NoMisleadingInstantiatorConfiguration;
|
|
2855
2920
|
/**
|
|
2856
2921
|
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
2857
|
-
See
|
|
2922
|
+
See https://biomejs.dev/linter/rules/no-misplaced-assertion
|
|
2858
2923
|
*/
|
|
2859
2924
|
noMisplacedAssertion?: NoMisplacedAssertionConfiguration;
|
|
2860
2925
|
/**
|
|
2861
2926
|
* Disallow shorthand assign when variable appears on both sides.
|
|
2862
|
-
See
|
|
2927
|
+
See https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign
|
|
2863
2928
|
*/
|
|
2864
2929
|
noMisrefactoredShorthandAssign?: NoMisrefactoredShorthandAssignConfiguration;
|
|
2865
2930
|
/**
|
|
2866
2931
|
* Disallow non-null assertions after optional chaining expressions.
|
|
2867
|
-
See
|
|
2932
|
+
See https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain
|
|
2868
2933
|
*/
|
|
2869
2934
|
noNonNullAssertedOptionalChain?: NoNonNullAssertedOptionalChainConfiguration;
|
|
2870
2935
|
/**
|
|
2871
2936
|
* Disallow octal escape sequences in string literals.
|
|
2872
|
-
See
|
|
2937
|
+
See https://biomejs.dev/linter/rules/no-octal-escape
|
|
2873
2938
|
*/
|
|
2874
2939
|
noOctalEscape?: NoOctalEscapeConfiguration;
|
|
2875
2940
|
/**
|
|
2876
2941
|
* Disallow direct use of Object.prototype builtins.
|
|
2877
|
-
See
|
|
2942
|
+
See https://biomejs.dev/linter/rules/no-prototype-builtins
|
|
2878
2943
|
*/
|
|
2879
2944
|
noPrototypeBuiltins?: NoPrototypeBuiltinsConfiguration;
|
|
2880
2945
|
/**
|
|
2881
2946
|
* Disallow the use if quickfix.biome inside editor settings file.
|
|
2882
|
-
See
|
|
2947
|
+
See https://biomejs.dev/linter/rules/no-quickfix-biome
|
|
2883
2948
|
*/
|
|
2884
2949
|
noQuickfixBiome?: NoQuickfixBiomeConfiguration;
|
|
2885
2950
|
/**
|
|
2886
2951
|
* Prevents React-specific JSX properties from being used.
|
|
2887
|
-
See
|
|
2952
|
+
See https://biomejs.dev/linter/rules/no-react-specific-props
|
|
2888
2953
|
*/
|
|
2889
2954
|
noReactSpecificProps?: NoReactSpecificPropsConfiguration;
|
|
2890
2955
|
/**
|
|
2891
2956
|
* Disallow variable, function, class, and type redeclarations in the same scope.
|
|
2892
|
-
See
|
|
2957
|
+
See https://biomejs.dev/linter/rules/no-redeclare
|
|
2893
2958
|
*/
|
|
2894
2959
|
noRedeclare?: NoRedeclareConfiguration;
|
|
2895
2960
|
/**
|
|
2896
2961
|
* Prevents from having redundant "use strict".
|
|
2897
|
-
See
|
|
2962
|
+
See https://biomejs.dev/linter/rules/no-redundant-use-strict
|
|
2898
2963
|
*/
|
|
2899
2964
|
noRedundantUseStrict?: NoRedundantUseStrictConfiguration;
|
|
2900
2965
|
/**
|
|
2901
2966
|
* Disallow comparisons where both sides are exactly the same.
|
|
2902
|
-
See
|
|
2967
|
+
See https://biomejs.dev/linter/rules/no-self-compare
|
|
2903
2968
|
*/
|
|
2904
2969
|
noSelfCompare?: NoSelfCompareConfiguration;
|
|
2905
2970
|
/**
|
|
2906
2971
|
* Disallow identifiers from shadowing restricted names.
|
|
2907
|
-
See
|
|
2972
|
+
See https://biomejs.dev/linter/rules/no-shadow-restricted-names
|
|
2908
2973
|
*/
|
|
2909
2974
|
noShadowRestrictedNames?: NoShadowRestrictedNamesConfiguration;
|
|
2910
2975
|
/**
|
|
2911
2976
|
* Disallow shorthand properties that override related longhand properties.
|
|
2912
|
-
See
|
|
2977
|
+
See https://biomejs.dev/linter/rules/no-shorthand-property-overrides
|
|
2913
2978
|
*/
|
|
2914
2979
|
noShorthandPropertyOverrides?: NoShorthandPropertyOverridesConfiguration;
|
|
2915
2980
|
/**
|
|
2916
2981
|
* Disallow disabled tests.
|
|
2917
|
-
See
|
|
2982
|
+
See https://biomejs.dev/linter/rules/no-skipped-tests
|
|
2918
2983
|
*/
|
|
2919
2984
|
noSkippedTests?: NoSkippedTestsConfiguration;
|
|
2920
2985
|
/**
|
|
2921
2986
|
* Prevents the use of sparse arrays (arrays with holes).
|
|
2922
|
-
See
|
|
2987
|
+
See https://biomejs.dev/linter/rules/no-sparse-array
|
|
2923
2988
|
*/
|
|
2924
2989
|
noSparseArray?: NoSparseArrayConfiguration;
|
|
2925
2990
|
/**
|
|
2926
2991
|
* It detects possible "wrong" semicolons inside JSX elements.
|
|
2927
|
-
See
|
|
2992
|
+
See https://biomejs.dev/linter/rules/no-suspicious-semicolon-in-jsx
|
|
2928
2993
|
*/
|
|
2929
2994
|
noSuspiciousSemicolonInJsx?: NoSuspiciousSemicolonInJsxConfiguration;
|
|
2930
2995
|
/**
|
|
2931
2996
|
* Disallow template literal placeholder syntax in regular strings.
|
|
2932
|
-
See
|
|
2997
|
+
See https://biomejs.dev/linter/rules/no-template-curly-in-string
|
|
2933
2998
|
*/
|
|
2934
2999
|
noTemplateCurlyInString?: NoTemplateCurlyInStringConfiguration;
|
|
2935
3000
|
/**
|
|
2936
3001
|
* Disallow then property.
|
|
2937
|
-
See
|
|
3002
|
+
See https://biomejs.dev/linter/rules/no-then-property
|
|
2938
3003
|
*/
|
|
2939
3004
|
noThenProperty?: NoThenPropertyConfiguration;
|
|
2940
3005
|
/**
|
|
2941
3006
|
* Prevents the use of the TypeScript directive @ts-ignore.
|
|
2942
|
-
See
|
|
3007
|
+
See https://biomejs.dev/linter/rules/no-ts-ignore
|
|
2943
3008
|
*/
|
|
2944
3009
|
noTsIgnore?: NoTsIgnoreConfiguration;
|
|
2945
3010
|
/**
|
|
2946
3011
|
* Disallow let or var variables that are read but never assigned.
|
|
2947
|
-
See
|
|
3012
|
+
See https://biomejs.dev/linter/rules/no-unassigned-variables
|
|
2948
3013
|
*/
|
|
2949
3014
|
noUnassignedVariables?: NoUnassignedVariablesConfiguration;
|
|
2950
3015
|
/**
|
|
2951
3016
|
* Disallow unknown at-rules.
|
|
2952
|
-
See
|
|
3017
|
+
See https://biomejs.dev/linter/rules/no-unknown-at-rules
|
|
2953
3018
|
*/
|
|
2954
3019
|
noUnknownAtRules?: NoUnknownAtRulesConfiguration;
|
|
2955
3020
|
/**
|
|
2956
3021
|
* Disallow unsafe declaration merging between interfaces and classes.
|
|
2957
|
-
See
|
|
3022
|
+
See https://biomejs.dev/linter/rules/no-unsafe-declaration-merging
|
|
2958
3023
|
*/
|
|
2959
3024
|
noUnsafeDeclarationMerging?: NoUnsafeDeclarationMergingConfiguration;
|
|
2960
3025
|
/**
|
|
2961
3026
|
* Disallow using unsafe negation.
|
|
2962
|
-
See
|
|
3027
|
+
See https://biomejs.dev/linter/rules/no-unsafe-negation
|
|
2963
3028
|
*/
|
|
2964
3029
|
noUnsafeNegation?: NoUnsafeNegationConfiguration;
|
|
2965
3030
|
/**
|
|
2966
3031
|
* Disallow unnecessary escapes in string literals.
|
|
2967
|
-
See
|
|
3032
|
+
See https://biomejs.dev/linter/rules/no-useless-escape-in-string
|
|
2968
3033
|
*/
|
|
2969
3034
|
noUselessEscapeInString?: NoUselessEscapeInStringConfiguration;
|
|
2970
3035
|
/**
|
|
2971
3036
|
* Disallow useless backreferences in regular expression literals that always match an empty string.
|
|
2972
|
-
See
|
|
3037
|
+
See https://biomejs.dev/linter/rules/no-useless-regex-backrefs
|
|
2973
3038
|
*/
|
|
2974
3039
|
noUselessRegexBackrefs?: NoUselessRegexBackrefsConfiguration;
|
|
2975
3040
|
/**
|
|
2976
3041
|
* Disallow the use of var.
|
|
2977
|
-
See
|
|
3042
|
+
See https://biomejs.dev/linter/rules/no-var
|
|
2978
3043
|
*/
|
|
2979
3044
|
noVar?: NoVarConfiguration;
|
|
2980
3045
|
/**
|
|
2981
3046
|
* Disallow with statements in non-strict contexts.
|
|
2982
|
-
See
|
|
3047
|
+
See https://biomejs.dev/linter/rules/no-with
|
|
2983
3048
|
*/
|
|
2984
3049
|
noWith?: NoWithConfiguration;
|
|
2985
3050
|
/**
|
|
@@ -2988,72 +3053,72 @@ See <https://biomejs.dev/linter/rules/no-with>
|
|
|
2988
3053
|
recommended?: boolean;
|
|
2989
3054
|
/**
|
|
2990
3055
|
* Disallow the use of overload signatures that are not next to each other.
|
|
2991
|
-
See
|
|
3056
|
+
See https://biomejs.dev/linter/rules/use-adjacent-overload-signatures
|
|
2992
3057
|
*/
|
|
2993
3058
|
useAdjacentOverloadSignatures?: UseAdjacentOverloadSignaturesConfiguration;
|
|
2994
3059
|
/**
|
|
2995
3060
|
* Ensure async functions utilize await.
|
|
2996
|
-
See
|
|
3061
|
+
See https://biomejs.dev/linter/rules/use-await
|
|
2997
3062
|
*/
|
|
2998
3063
|
useAwait?: UseAwaitConfiguration;
|
|
2999
3064
|
/**
|
|
3000
3065
|
* Promotes the correct usage for ignoring folders in the configuration file.
|
|
3001
|
-
See
|
|
3066
|
+
See https://biomejs.dev/linter/rules/use-biome-ignore-folder
|
|
3002
3067
|
*/
|
|
3003
3068
|
useBiomeIgnoreFolder?: UseBiomeIgnoreFolderConfiguration;
|
|
3004
3069
|
/**
|
|
3005
3070
|
* Enforce default clauses in switch statements to be last.
|
|
3006
|
-
See
|
|
3071
|
+
See https://biomejs.dev/linter/rules/use-default-switch-clause-last
|
|
3007
3072
|
*/
|
|
3008
3073
|
useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration;
|
|
3009
3074
|
/**
|
|
3010
3075
|
* Enforce passing a message value when creating a built-in error.
|
|
3011
|
-
See
|
|
3076
|
+
See https://biomejs.dev/linter/rules/use-error-message
|
|
3012
3077
|
*/
|
|
3013
3078
|
useErrorMessage?: UseErrorMessageConfiguration;
|
|
3014
3079
|
/**
|
|
3015
3080
|
* Enforce get methods to always return a value.
|
|
3016
|
-
See
|
|
3081
|
+
See https://biomejs.dev/linter/rules/use-getter-return
|
|
3017
3082
|
*/
|
|
3018
3083
|
useGetterReturn?: UseGetterReturnConfiguration;
|
|
3019
3084
|
/**
|
|
3020
3085
|
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
3021
|
-
See
|
|
3086
|
+
See https://biomejs.dev/linter/rules/use-google-font-display
|
|
3022
3087
|
*/
|
|
3023
3088
|
useGoogleFontDisplay?: UseGoogleFontDisplayConfiguration;
|
|
3024
3089
|
/**
|
|
3025
3090
|
* Require for-in loops to include an if statement.
|
|
3026
|
-
See
|
|
3091
|
+
See https://biomejs.dev/linter/rules/use-guard-for-in
|
|
3027
3092
|
*/
|
|
3028
3093
|
useGuardForIn?: UseGuardForInConfiguration;
|
|
3029
3094
|
/**
|
|
3030
3095
|
* Use Array.isArray() instead of instanceof Array.
|
|
3031
|
-
See
|
|
3096
|
+
See https://biomejs.dev/linter/rules/use-is-array
|
|
3032
3097
|
*/
|
|
3033
3098
|
useIsArray?: UseIsArrayConfiguration;
|
|
3034
3099
|
/**
|
|
3035
3100
|
* Enforce consistent return values in iterable callbacks.
|
|
3036
|
-
See
|
|
3101
|
+
See https://biomejs.dev/linter/rules/use-iterable-callback-return
|
|
3037
3102
|
*/
|
|
3038
3103
|
useIterableCallbackReturn?: UseIterableCallbackReturnConfiguration;
|
|
3039
3104
|
/**
|
|
3040
3105
|
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
3041
|
-
See
|
|
3106
|
+
See https://biomejs.dev/linter/rules/use-namespace-keyword
|
|
3042
3107
|
*/
|
|
3043
3108
|
useNamespaceKeyword?: UseNamespaceKeywordConfiguration;
|
|
3044
3109
|
/**
|
|
3045
3110
|
* Enforce using the digits argument with Number#toFixed().
|
|
3046
|
-
See
|
|
3111
|
+
See https://biomejs.dev/linter/rules/use-number-to-fixed-digits-argument
|
|
3047
3112
|
*/
|
|
3048
3113
|
useNumberToFixedDigitsArgument?: UseNumberToFixedDigitsArgumentConfiguration;
|
|
3049
3114
|
/**
|
|
3050
3115
|
* Use static Response methods instead of new Response() constructor when possible.
|
|
3051
|
-
See
|
|
3116
|
+
See https://biomejs.dev/linter/rules/use-static-response-methods
|
|
3052
3117
|
*/
|
|
3053
3118
|
useStaticResponseMethods?: UseStaticResponseMethodsConfiguration;
|
|
3054
3119
|
/**
|
|
3055
3120
|
* Enforce the use of the directive "use strict" in script files.
|
|
3056
|
-
See
|
|
3121
|
+
See https://biomejs.dev/linter/rules/use-strict-mode
|
|
3057
3122
|
*/
|
|
3058
3123
|
useStrictMode?: UseStrictModeConfiguration;
|
|
3059
3124
|
}
|
|
@@ -3521,9 +3586,36 @@ type NoContinueConfiguration =
|
|
|
3521
3586
|
type NoDeprecatedImportsConfiguration =
|
|
3522
3587
|
| RulePlainConfiguration
|
|
3523
3588
|
| RuleWithNoDeprecatedImportsOptions;
|
|
3589
|
+
type NoDivRegexConfiguration =
|
|
3590
|
+
| RulePlainConfiguration
|
|
3591
|
+
| RuleWithNoDivRegexOptions;
|
|
3592
|
+
type NoDuplicateArgumentNamesConfiguration =
|
|
3593
|
+
| RulePlainConfiguration
|
|
3594
|
+
| RuleWithNoDuplicateArgumentNamesOptions;
|
|
3595
|
+
type NoDuplicateAttributesConfiguration =
|
|
3596
|
+
| RulePlainConfiguration
|
|
3597
|
+
| RuleWithNoDuplicateAttributesOptions;
|
|
3524
3598
|
type NoDuplicateDependenciesConfiguration =
|
|
3525
3599
|
| RulePlainConfiguration
|
|
3526
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;
|
|
3527
3619
|
type NoDuplicatedSpreadPropsConfiguration =
|
|
3528
3620
|
| RulePlainConfiguration
|
|
3529
3621
|
| RuleWithNoDuplicatedSpreadPropsOptions;
|
|
@@ -3533,6 +3625,15 @@ type NoEmptySourceConfiguration =
|
|
|
3533
3625
|
type NoEqualsToNullConfiguration =
|
|
3534
3626
|
| RulePlainConfiguration
|
|
3535
3627
|
| RuleWithNoEqualsToNullOptions;
|
|
3628
|
+
type NoExcessiveClassesPerFileConfiguration =
|
|
3629
|
+
| RulePlainConfiguration
|
|
3630
|
+
| RuleWithNoExcessiveClassesPerFileOptions;
|
|
3631
|
+
type NoExcessiveLinesPerFileConfiguration =
|
|
3632
|
+
| RulePlainConfiguration
|
|
3633
|
+
| RuleWithNoExcessiveLinesPerFileOptions;
|
|
3634
|
+
type NoFloatingClassesConfiguration =
|
|
3635
|
+
| RulePlainConfiguration
|
|
3636
|
+
| RuleWithNoFloatingClassesOptions;
|
|
3536
3637
|
type NoFloatingPromisesConfiguration =
|
|
3537
3638
|
| RulePlainConfiguration
|
|
3538
3639
|
| RuleWithNoFloatingPromisesOptions;
|
|
@@ -3574,6 +3675,9 @@ type NoReactForwardRefConfiguration =
|
|
|
3574
3675
|
type NoReturnAssignConfiguration =
|
|
3575
3676
|
| RulePlainConfiguration
|
|
3576
3677
|
| RuleWithNoReturnAssignOptions;
|
|
3678
|
+
type NoRootTypeConfiguration =
|
|
3679
|
+
| RulePlainConfiguration
|
|
3680
|
+
| RuleWithNoRootTypeOptions;
|
|
3577
3681
|
type NoScriptUrlConfiguration =
|
|
3578
3682
|
| RulePlainConfiguration
|
|
3579
3683
|
| RuleWithNoScriptUrlOptions;
|
|
@@ -3609,6 +3713,9 @@ type NoVueDataObjectDeclarationConfiguration =
|
|
|
3609
3713
|
type NoVueDuplicateKeysConfiguration =
|
|
3610
3714
|
| RulePlainConfiguration
|
|
3611
3715
|
| RuleWithNoVueDuplicateKeysOptions;
|
|
3716
|
+
type NoVueOptionsApiConfiguration =
|
|
3717
|
+
| RulePlainConfiguration
|
|
3718
|
+
| RuleWithNoVueOptionsApiOptions;
|
|
3612
3719
|
type NoVueReservedKeysConfiguration =
|
|
3613
3720
|
| RulePlainConfiguration
|
|
3614
3721
|
| RuleWithNoVueReservedKeysOptions;
|
|
@@ -3639,6 +3746,9 @@ type UseDeprecatedDateConfiguration =
|
|
|
3639
3746
|
type UseDestructuringConfiguration =
|
|
3640
3747
|
| RulePlainConfiguration
|
|
3641
3748
|
| RuleWithUseDestructuringOptions;
|
|
3749
|
+
type UseErrorCauseConfiguration =
|
|
3750
|
+
| RulePlainConfiguration
|
|
3751
|
+
| RuleWithUseErrorCauseOptions;
|
|
3642
3752
|
type UseExhaustiveSwitchCasesConfiguration =
|
|
3643
3753
|
| RulePlainConfiguration
|
|
3644
3754
|
| RuleWithUseExhaustiveSwitchCasesOptions;
|
|
@@ -3646,6 +3756,15 @@ type UseExplicitTypeConfiguration =
|
|
|
3646
3756
|
| RulePlainConfiguration
|
|
3647
3757
|
| RuleWithUseExplicitTypeOptions;
|
|
3648
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;
|
|
3649
3768
|
type UseMaxParamsConfiguration =
|
|
3650
3769
|
| RulePlainConfiguration
|
|
3651
3770
|
| RuleWithUseMaxParamsOptions;
|
|
@@ -3665,21 +3784,6 @@ type UseSortedClassesConfiguration =
|
|
|
3665
3784
|
| RulePlainConfiguration
|
|
3666
3785
|
| RuleWithUseSortedClassesOptions;
|
|
3667
3786
|
type UseSpreadConfiguration = RulePlainConfiguration | RuleWithUseSpreadOptions;
|
|
3668
|
-
type UseUniqueArgumentNamesConfiguration =
|
|
3669
|
-
| RulePlainConfiguration
|
|
3670
|
-
| RuleWithUseUniqueArgumentNamesOptions;
|
|
3671
|
-
type UseUniqueFieldDefinitionNamesConfiguration =
|
|
3672
|
-
| RulePlainConfiguration
|
|
3673
|
-
| RuleWithUseUniqueFieldDefinitionNamesOptions;
|
|
3674
|
-
type UseUniqueGraphqlOperationNameConfiguration =
|
|
3675
|
-
| RulePlainConfiguration
|
|
3676
|
-
| RuleWithUseUniqueGraphqlOperationNameOptions;
|
|
3677
|
-
type UseUniqueInputFieldNamesConfiguration =
|
|
3678
|
-
| RulePlainConfiguration
|
|
3679
|
-
| RuleWithUseUniqueInputFieldNamesOptions;
|
|
3680
|
-
type UseUniqueVariableNamesConfiguration =
|
|
3681
|
-
| RulePlainConfiguration
|
|
3682
|
-
| RuleWithUseUniqueVariableNamesOptions;
|
|
3683
3787
|
type UseVueConsistentDefinePropsDeclarationConfiguration =
|
|
3684
3788
|
| RulePlainConfiguration
|
|
3685
3789
|
| RuleWithUseVueConsistentDefinePropsDeclarationOptions;
|
|
@@ -4960,10 +5064,47 @@ interface RuleWithNoDeprecatedImportsOptions {
|
|
|
4960
5064
|
level: RulePlainConfiguration;
|
|
4961
5065
|
options?: NoDeprecatedImportsOptions;
|
|
4962
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
|
+
}
|
|
4963
5080
|
interface RuleWithNoDuplicateDependenciesOptions {
|
|
4964
5081
|
level: RulePlainConfiguration;
|
|
4965
5082
|
options?: NoDuplicateDependenciesOptions;
|
|
4966
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
|
+
}
|
|
4967
5108
|
interface RuleWithNoDuplicatedSpreadPropsOptions {
|
|
4968
5109
|
level: RulePlainConfiguration;
|
|
4969
5110
|
options?: NoDuplicatedSpreadPropsOptions;
|
|
@@ -4977,6 +5118,18 @@ interface RuleWithNoEqualsToNullOptions {
|
|
|
4977
5118
|
level: RulePlainConfiguration;
|
|
4978
5119
|
options?: NoEqualsToNullOptions;
|
|
4979
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
|
+
}
|
|
4980
5133
|
interface RuleWithNoFloatingPromisesOptions {
|
|
4981
5134
|
fix?: FixKind;
|
|
4982
5135
|
level: RulePlainConfiguration;
|
|
@@ -5041,6 +5194,10 @@ interface RuleWithNoReturnAssignOptions {
|
|
|
5041
5194
|
level: RulePlainConfiguration;
|
|
5042
5195
|
options?: NoReturnAssignOptions;
|
|
5043
5196
|
}
|
|
5197
|
+
interface RuleWithNoRootTypeOptions {
|
|
5198
|
+
level: RulePlainConfiguration;
|
|
5199
|
+
options?: NoRootTypeOptions;
|
|
5200
|
+
}
|
|
5044
5201
|
interface RuleWithNoScriptUrlOptions {
|
|
5045
5202
|
level: RulePlainConfiguration;
|
|
5046
5203
|
options?: NoScriptUrlOptions;
|
|
@@ -5096,6 +5253,10 @@ interface RuleWithNoVueDuplicateKeysOptions {
|
|
|
5096
5253
|
level: RulePlainConfiguration;
|
|
5097
5254
|
options?: NoVueDuplicateKeysOptions;
|
|
5098
5255
|
}
|
|
5256
|
+
interface RuleWithNoVueOptionsApiOptions {
|
|
5257
|
+
level: RulePlainConfiguration;
|
|
5258
|
+
options?: NoVueOptionsApiOptions;
|
|
5259
|
+
}
|
|
5099
5260
|
interface RuleWithNoVueReservedKeysOptions {
|
|
5100
5261
|
level: RulePlainConfiguration;
|
|
5101
5262
|
options?: NoVueReservedKeysOptions;
|
|
@@ -5137,6 +5298,10 @@ interface RuleWithUseDestructuringOptions {
|
|
|
5137
5298
|
level: RulePlainConfiguration;
|
|
5138
5299
|
options?: UseDestructuringOptions;
|
|
5139
5300
|
}
|
|
5301
|
+
interface RuleWithUseErrorCauseOptions {
|
|
5302
|
+
level: RulePlainConfiguration;
|
|
5303
|
+
options?: UseErrorCauseOptions;
|
|
5304
|
+
}
|
|
5140
5305
|
interface RuleWithUseExhaustiveSwitchCasesOptions {
|
|
5141
5306
|
fix?: FixKind;
|
|
5142
5307
|
level: RulePlainConfiguration;
|
|
@@ -5150,6 +5315,18 @@ interface RuleWithUseFindOptions {
|
|
|
5150
5315
|
level: RulePlainConfiguration;
|
|
5151
5316
|
options?: UseFindOptions;
|
|
5152
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
|
+
}
|
|
5153
5330
|
interface RuleWithUseMaxParamsOptions {
|
|
5154
5331
|
level: RulePlainConfiguration;
|
|
5155
5332
|
options?: UseMaxParamsOptions;
|
|
@@ -5180,26 +5357,6 @@ interface RuleWithUseSpreadOptions {
|
|
|
5180
5357
|
level: RulePlainConfiguration;
|
|
5181
5358
|
options?: UseSpreadOptions;
|
|
5182
5359
|
}
|
|
5183
|
-
interface RuleWithUseUniqueArgumentNamesOptions {
|
|
5184
|
-
level: RulePlainConfiguration;
|
|
5185
|
-
options?: UseUniqueArgumentNamesOptions;
|
|
5186
|
-
}
|
|
5187
|
-
interface RuleWithUseUniqueFieldDefinitionNamesOptions {
|
|
5188
|
-
level: RulePlainConfiguration;
|
|
5189
|
-
options?: UseUniqueFieldDefinitionNamesOptions;
|
|
5190
|
-
}
|
|
5191
|
-
interface RuleWithUseUniqueGraphqlOperationNameOptions {
|
|
5192
|
-
level: RulePlainConfiguration;
|
|
5193
|
-
options?: UseUniqueGraphqlOperationNameOptions;
|
|
5194
|
-
}
|
|
5195
|
-
interface RuleWithUseUniqueInputFieldNamesOptions {
|
|
5196
|
-
level: RulePlainConfiguration;
|
|
5197
|
-
options?: UseUniqueInputFieldNamesOptions;
|
|
5198
|
-
}
|
|
5199
|
-
interface RuleWithUseUniqueVariableNamesOptions {
|
|
5200
|
-
level: RulePlainConfiguration;
|
|
5201
|
-
options?: UseUniqueVariableNamesOptions;
|
|
5202
|
-
}
|
|
5203
5360
|
interface RuleWithUseVueConsistentDefinePropsDeclarationOptions {
|
|
5204
5361
|
level: RulePlainConfiguration;
|
|
5205
5362
|
options?: UseVueConsistentDefinePropsDeclarationOptions;
|
|
@@ -6386,7 +6543,16 @@ interface NoAmbiguousAnchorTextOptions {
|
|
|
6386
6543
|
type NoBeforeInteractiveScriptOutsideDocumentOptions = {};
|
|
6387
6544
|
type NoContinueOptions = {};
|
|
6388
6545
|
type NoDeprecatedImportsOptions = {};
|
|
6546
|
+
type NoDivRegexOptions = {};
|
|
6547
|
+
type NoDuplicateArgumentNamesOptions = {};
|
|
6548
|
+
type NoDuplicateAttributesOptions = {};
|
|
6389
6549
|
type NoDuplicateDependenciesOptions = {};
|
|
6550
|
+
type NoDuplicateEnumValueNamesOptions = {};
|
|
6551
|
+
type NoDuplicateEnumValuesOptions = {};
|
|
6552
|
+
type NoDuplicateFieldDefinitionNamesOptions = {};
|
|
6553
|
+
type NoDuplicateGraphqlOperationNameOptions = {};
|
|
6554
|
+
type NoDuplicateInputFieldNamesOptions = {};
|
|
6555
|
+
type NoDuplicateVariableNamesOptions = {};
|
|
6390
6556
|
type NoDuplicatedSpreadPropsOptions = {};
|
|
6391
6557
|
interface NoEmptySourceOptions {
|
|
6392
6558
|
/**
|
|
@@ -6395,6 +6561,23 @@ interface NoEmptySourceOptions {
|
|
|
6395
6561
|
allowComments?: boolean;
|
|
6396
6562
|
}
|
|
6397
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 = {};
|
|
6398
6581
|
type NoFloatingPromisesOptions = {};
|
|
6399
6582
|
type NoForInOptions = {};
|
|
6400
6583
|
interface NoImportCyclesOptions {
|
|
@@ -6436,6 +6619,13 @@ type NoParametersOnlyUsedInRecursionOptions = {};
|
|
|
6436
6619
|
type NoProtoOptions = {};
|
|
6437
6620
|
type NoReactForwardRefOptions = {};
|
|
6438
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
|
+
}
|
|
6439
6629
|
type NoScriptUrlOptions = {};
|
|
6440
6630
|
type NoShadowOptions = {};
|
|
6441
6631
|
type NoSyncScriptsOptions = {};
|
|
@@ -6459,6 +6649,7 @@ type NoUselessCatchBindingOptions = {};
|
|
|
6459
6649
|
type NoUselessUndefinedOptions = {};
|
|
6460
6650
|
type NoVueDataObjectDeclarationOptions = {};
|
|
6461
6651
|
type NoVueDuplicateKeysOptions = {};
|
|
6652
|
+
type NoVueOptionsApiOptions = {};
|
|
6462
6653
|
type NoVueReservedKeysOptions = {};
|
|
6463
6654
|
type NoVueReservedPropsOptions = {};
|
|
6464
6655
|
type NoVueSetupPropsReactivityLossOptions = {};
|
|
@@ -6487,9 +6678,18 @@ interface UseDeprecatedDateOptions {
|
|
|
6487
6678
|
argumentName?: string;
|
|
6488
6679
|
}
|
|
6489
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
|
+
}
|
|
6490
6687
|
type UseExhaustiveSwitchCasesOptions = {};
|
|
6491
6688
|
type UseExplicitTypeOptions = {};
|
|
6492
6689
|
type UseFindOptions = {};
|
|
6690
|
+
type UseInlineScriptIdOptions = {};
|
|
6691
|
+
type UseLoneAnonymousOperationOptions = {};
|
|
6692
|
+
type UseLoneExecutableDefinitionOptions = {};
|
|
6493
6693
|
interface UseMaxParamsOptions {
|
|
6494
6694
|
/**
|
|
6495
6695
|
* Maximum number of parameters allowed (default: 4)
|
|
@@ -6516,11 +6716,6 @@ interface UseSortedClassesOptions {
|
|
|
6516
6716
|
functions?: string[];
|
|
6517
6717
|
}
|
|
6518
6718
|
type UseSpreadOptions = {};
|
|
6519
|
-
type UseUniqueArgumentNamesOptions = {};
|
|
6520
|
-
type UseUniqueFieldDefinitionNamesOptions = {};
|
|
6521
|
-
type UseUniqueGraphqlOperationNameOptions = {};
|
|
6522
|
-
type UseUniqueInputFieldNamesOptions = {};
|
|
6523
|
-
type UseUniqueVariableNamesOptions = {};
|
|
6524
6719
|
interface UseVueConsistentDefinePropsDeclarationOptions {
|
|
6525
6720
|
style?: DeclarationStyle;
|
|
6526
6721
|
}
|
|
@@ -7203,12 +7398,10 @@ type Category =
|
|
|
7203
7398
|
| "lint/correctness/noInvalidConstructorSuper"
|
|
7204
7399
|
| "lint/correctness/noInvalidDirectionInLinearGradient"
|
|
7205
7400
|
| "lint/correctness/noInvalidGridAreas"
|
|
7206
|
-
| "lint/correctness/noInvalidNewBuiltin"
|
|
7207
7401
|
| "lint/correctness/noInvalidPositionAtImportRule"
|
|
7208
7402
|
| "lint/correctness/noInvalidUseBeforeDeclaration"
|
|
7209
7403
|
| "lint/correctness/noMissingVarFunction"
|
|
7210
7404
|
| "lint/correctness/noNestedComponentDefinitions"
|
|
7211
|
-
| "lint/correctness/noNewSymbol"
|
|
7212
7405
|
| "lint/correctness/noNodejsModules"
|
|
7213
7406
|
| "lint/correctness/noNonoctalDecimalEscape"
|
|
7214
7407
|
| "lint/correctness/noPrecisionLoss"
|
|
@@ -7265,10 +7458,22 @@ type Category =
|
|
|
7265
7458
|
| "lint/nursery/noColorInvalidHex"
|
|
7266
7459
|
| "lint/nursery/noContinue"
|
|
7267
7460
|
| "lint/nursery/noDeprecatedImports"
|
|
7461
|
+
| "lint/nursery/noDivRegex"
|
|
7462
|
+
| "lint/nursery/noDuplicateArgumentNames"
|
|
7463
|
+
| "lint/nursery/noDuplicateAttributes"
|
|
7268
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"
|
|
7269
7471
|
| "lint/nursery/noDuplicatedSpreadProps"
|
|
7270
7472
|
| "lint/nursery/noEmptySource"
|
|
7271
7473
|
| "lint/nursery/noEqualsToNull"
|
|
7474
|
+
| "lint/nursery/noExcessiveClassesPerFile"
|
|
7475
|
+
| "lint/nursery/noExcessiveLinesPerFile"
|
|
7476
|
+
| "lint/nursery/noFloatingClasses"
|
|
7272
7477
|
| "lint/nursery/noFloatingPromises"
|
|
7273
7478
|
| "lint/nursery/noForIn"
|
|
7274
7479
|
| "lint/nursery/noImplicitCoercion"
|
|
@@ -7286,6 +7491,7 @@ type Category =
|
|
|
7286
7491
|
| "lint/nursery/noProto"
|
|
7287
7492
|
| "lint/nursery/noReactForwardRef"
|
|
7288
7493
|
| "lint/nursery/noReturnAssign"
|
|
7494
|
+
| "lint/nursery/noRootType"
|
|
7289
7495
|
| "lint/nursery/noScriptUrl"
|
|
7290
7496
|
| "lint/nursery/noShadow"
|
|
7291
7497
|
| "lint/nursery/noSyncScripts"
|
|
@@ -7301,11 +7507,11 @@ type Category =
|
|
|
7301
7507
|
| "lint/nursery/noUselessUndefined"
|
|
7302
7508
|
| "lint/nursery/noVueDataObjectDeclaration"
|
|
7303
7509
|
| "lint/nursery/noVueDuplicateKeys"
|
|
7510
|
+
| "lint/nursery/noVueOptionsApi"
|
|
7304
7511
|
| "lint/nursery/noVueReservedKeys"
|
|
7305
7512
|
| "lint/nursery/noVueReservedProps"
|
|
7306
7513
|
| "lint/nursery/noVueSetupPropsReactivityLoss"
|
|
7307
7514
|
| "lint/nursery/noVueVIfWithVFor"
|
|
7308
|
-
| "lint/nursery/useAnchorHref"
|
|
7309
7515
|
| "lint/nursery/useArraySortCompare"
|
|
7310
7516
|
| "lint/nursery/useAwaitThenable"
|
|
7311
7517
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
@@ -7314,24 +7520,23 @@ type Category =
|
|
|
7314
7520
|
| "lint/nursery/useConsistentObjectDefinition"
|
|
7315
7521
|
| "lint/nursery/useDeprecatedDate"
|
|
7316
7522
|
| "lint/nursery/useDestructuring"
|
|
7523
|
+
| "lint/nursery/useErrorCause"
|
|
7317
7524
|
| "lint/nursery/useExhaustiveSwitchCases"
|
|
7318
7525
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
7319
7526
|
| "lint/nursery/useExplicitType"
|
|
7320
7527
|
| "lint/nursery/useFind"
|
|
7321
7528
|
| "lint/nursery/useImportRestrictions"
|
|
7529
|
+
| "lint/nursery/useInlineScriptId"
|
|
7322
7530
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
7531
|
+
| "lint/nursery/useLoneExecutableDefinition"
|
|
7323
7532
|
| "lint/nursery/useMaxParams"
|
|
7533
|
+
| "lint/nursery/useLoneAnonymousOperation"
|
|
7324
7534
|
| "lint/nursery/useQwikMethodUsage"
|
|
7325
7535
|
| "lint/nursery/useQwikValidLexicalScope"
|
|
7326
7536
|
| "lint/nursery/useRegexpExec"
|
|
7327
7537
|
| "lint/nursery/useRequiredScripts"
|
|
7328
7538
|
| "lint/nursery/useSortedClasses"
|
|
7329
7539
|
| "lint/nursery/useSpread"
|
|
7330
|
-
| "lint/nursery/useUniqueArgumentNames"
|
|
7331
|
-
| "lint/nursery/useUniqueFieldDefinitionNames"
|
|
7332
|
-
| "lint/nursery/useUniqueGraphqlOperationName"
|
|
7333
|
-
| "lint/nursery/useUniqueInputFieldNames"
|
|
7334
|
-
| "lint/nursery/useUniqueVariableNames"
|
|
7335
7540
|
| "lint/nursery/useVueConsistentDefinePropsDeclaration"
|
|
7336
7541
|
| "lint/nursery/useVueConsistentVBindStyle"
|
|
7337
7542
|
| "lint/nursery/useVueConsistentVOnStyle"
|
|
@@ -7339,7 +7544,6 @@ type Category =
|
|
|
7339
7544
|
| "lint/nursery/useVueHyphenatedAttributes"
|
|
7340
7545
|
| "lint/nursery/useVueMultiWordComponentNames"
|
|
7341
7546
|
| "lint/nursery/useVueVForKey"
|
|
7342
|
-
| "lint/nursery/useVueVapor"
|
|
7343
7547
|
| "lint/nursery/useVueValidTemplateRoot"
|
|
7344
7548
|
| "lint/nursery/useVueValidVBind"
|
|
7345
7549
|
| "lint/nursery/useVueValidVCloak"
|
|
@@ -7353,6 +7557,7 @@ type Category =
|
|
|
7353
7557
|
| "lint/nursery/useVueValidVOnce"
|
|
7354
7558
|
| "lint/nursery/useVueValidVPre"
|
|
7355
7559
|
| "lint/nursery/useVueValidVText"
|
|
7560
|
+
| "lint/nursery/useVueVapor"
|
|
7356
7561
|
| "lint/performance/noAccumulatingSpread"
|
|
7357
7562
|
| "lint/performance/noAwaitInLoops"
|
|
7358
7563
|
| "lint/performance/noBarrelFile"
|
|
@@ -7434,7 +7639,6 @@ type Category =
|
|
|
7434
7639
|
| "lint/style/useReactFunctionComponents"
|
|
7435
7640
|
| "lint/style/useReadonlyClassProperties"
|
|
7436
7641
|
| "lint/style/useSelfClosingElements"
|
|
7437
|
-
| "lint/style/useShorthandArrayType"
|
|
7438
7642
|
| "lint/style/useShorthandAssign"
|
|
7439
7643
|
| "lint/style/useShorthandFunctionType"
|
|
7440
7644
|
| "lint/style/useSingleCaseStatement"
|