@biomejs/wasm-web 2.3.8 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/biome_wasm.d.ts +486 -396
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ type SupportKind =
|
|
|
28
28
|
| "fileNotSupported";
|
|
29
29
|
interface UpdateSettingsParams {
|
|
30
30
|
configuration: Configuration;
|
|
31
|
+
extendedConfigurations?: [BiomePath, Configuration][];
|
|
31
32
|
projectKey: ProjectKey;
|
|
32
33
|
workspaceDirectory?: BiomePath;
|
|
33
34
|
}
|
|
@@ -798,7 +799,7 @@ type VcsClientKind = "git";
|
|
|
798
799
|
interface Source {
|
|
799
800
|
/**
|
|
800
801
|
* Provides a code action to sort the imports and exports in the file using a built-in or custom order.
|
|
801
|
-
See https://biomejs.dev/assist/actions/organize-imports
|
|
802
|
+
See <https://biomejs.dev/assist/actions/organize-imports>
|
|
802
803
|
*/
|
|
803
804
|
organizeImports?: OrganizeImportsConfiguration;
|
|
804
805
|
/**
|
|
@@ -807,17 +808,17 @@ See https://biomejs.dev/assist/actions/organize-imports
|
|
|
807
808
|
recommended?: boolean;
|
|
808
809
|
/**
|
|
809
810
|
* Enforce attribute sorting in JSX elements.
|
|
810
|
-
See https://biomejs.dev/assist/actions/use-sorted-attributes
|
|
811
|
+
See <https://biomejs.dev/assist/actions/use-sorted-attributes>
|
|
811
812
|
*/
|
|
812
813
|
useSortedAttributes?: UseSortedAttributesConfiguration;
|
|
813
814
|
/**
|
|
814
815
|
* Sort the keys of a JSON object in natural order.
|
|
815
|
-
See https://biomejs.dev/assist/actions/use-sorted-keys
|
|
816
|
+
See <https://biomejs.dev/assist/actions/use-sorted-keys>
|
|
816
817
|
*/
|
|
817
818
|
useSortedKeys?: UseSortedKeysConfiguration;
|
|
818
819
|
/**
|
|
819
820
|
* Enforce ordering of CSS properties and nested rules.
|
|
820
|
-
See https://biomejs.dev/assist/actions/use-sorted-properties
|
|
821
|
+
See <https://biomejs.dev/assist/actions/use-sorted-properties>
|
|
821
822
|
*/
|
|
822
823
|
useSortedProperties?: UseSortedPropertiesConfiguration;
|
|
823
824
|
}
|
|
@@ -945,82 +946,82 @@ type GroupPlainConfiguration = "off" | "on" | "info" | "warn" | "error";
|
|
|
945
946
|
interface A11y {
|
|
946
947
|
/**
|
|
947
948
|
* Enforce that the accessKey attribute is not used on any HTML element.
|
|
948
|
-
See https://biomejs.dev/linter/rules/no-access-key
|
|
949
|
+
See <https://biomejs.dev/linter/rules/no-access-key>
|
|
949
950
|
*/
|
|
950
951
|
noAccessKey?: NoAccessKeyConfiguration;
|
|
951
952
|
/**
|
|
952
953
|
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
953
|
-
See https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable
|
|
954
|
+
See <https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable>
|
|
954
955
|
*/
|
|
955
956
|
noAriaHiddenOnFocusable?: NoAriaHiddenOnFocusableConfiguration;
|
|
956
957
|
/**
|
|
957
958
|
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
958
|
-
See https://biomejs.dev/linter/rules/no-aria-unsupported-elements
|
|
959
|
+
See <https://biomejs.dev/linter/rules/no-aria-unsupported-elements>
|
|
959
960
|
*/
|
|
960
961
|
noAriaUnsupportedElements?: NoAriaUnsupportedElementsConfiguration;
|
|
961
962
|
/**
|
|
962
963
|
* Enforce that autoFocus prop is not used on elements.
|
|
963
|
-
See https://biomejs.dev/linter/rules/no-autofocus
|
|
964
|
+
See <https://biomejs.dev/linter/rules/no-autofocus>
|
|
964
965
|
*/
|
|
965
966
|
noAutofocus?: NoAutofocusConfiguration;
|
|
966
967
|
/**
|
|
967
968
|
* Enforces that no distracting elements are used.
|
|
968
|
-
See https://biomejs.dev/linter/rules/no-distracting-elements
|
|
969
|
+
See <https://biomejs.dev/linter/rules/no-distracting-elements>
|
|
969
970
|
*/
|
|
970
971
|
noDistractingElements?: NoDistractingElementsConfiguration;
|
|
971
972
|
/**
|
|
972
973
|
* The scope prop should be used only on \<th> elements.
|
|
973
|
-
See https://biomejs.dev/linter/rules/no-header-scope
|
|
974
|
+
See <https://biomejs.dev/linter/rules/no-header-scope>
|
|
974
975
|
*/
|
|
975
976
|
noHeaderScope?: NoHeaderScopeConfiguration;
|
|
976
977
|
/**
|
|
977
978
|
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
978
|
-
See https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role
|
|
979
|
+
See <https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role>
|
|
979
980
|
*/
|
|
980
981
|
noInteractiveElementToNoninteractiveRole?: NoInteractiveElementToNoninteractiveRoleConfiguration;
|
|
981
982
|
/**
|
|
982
983
|
* Enforce that a label element or component has a text label and an associated input.
|
|
983
|
-
See https://biomejs.dev/linter/rules/no-label-without-control
|
|
984
|
+
See <https://biomejs.dev/linter/rules/no-label-without-control>
|
|
984
985
|
*/
|
|
985
986
|
noLabelWithoutControl?: NoLabelWithoutControlConfiguration;
|
|
986
987
|
/**
|
|
987
988
|
* Disallow use event handlers on non-interactive elements.
|
|
988
|
-
See https://biomejs.dev/linter/rules/no-noninteractive-element-interactions
|
|
989
|
+
See <https://biomejs.dev/linter/rules/no-noninteractive-element-interactions>
|
|
989
990
|
*/
|
|
990
991
|
noNoninteractiveElementInteractions?: NoNoninteractiveElementInteractionsConfiguration;
|
|
991
992
|
/**
|
|
992
993
|
* Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
|
|
993
|
-
See https://biomejs.dev/linter/rules/no-noninteractive-element-to-interactive-role
|
|
994
|
+
See <https://biomejs.dev/linter/rules/no-noninteractive-element-to-interactive-role>
|
|
994
995
|
*/
|
|
995
996
|
noNoninteractiveElementToInteractiveRole?: NoNoninteractiveElementToInteractiveRoleConfiguration;
|
|
996
997
|
/**
|
|
997
998
|
* Enforce that tabIndex is not assigned to non-interactive HTML elements.
|
|
998
|
-
See https://biomejs.dev/linter/rules/no-noninteractive-tabindex
|
|
999
|
+
See <https://biomejs.dev/linter/rules/no-noninteractive-tabindex>
|
|
999
1000
|
*/
|
|
1000
1001
|
noNoninteractiveTabindex?: NoNoninteractiveTabindexConfiguration;
|
|
1001
1002
|
/**
|
|
1002
1003
|
* Prevent the usage of positive integers on tabIndex property.
|
|
1003
|
-
See https://biomejs.dev/linter/rules/no-positive-tabindex
|
|
1004
|
+
See <https://biomejs.dev/linter/rules/no-positive-tabindex>
|
|
1004
1005
|
*/
|
|
1005
1006
|
noPositiveTabindex?: NoPositiveTabindexConfiguration;
|
|
1006
1007
|
/**
|
|
1007
1008
|
* Enforce img alt prop does not contain the word "image", "picture", or "photo".
|
|
1008
|
-
See https://biomejs.dev/linter/rules/no-redundant-alt
|
|
1009
|
+
See <https://biomejs.dev/linter/rules/no-redundant-alt>
|
|
1009
1010
|
*/
|
|
1010
1011
|
noRedundantAlt?: NoRedundantAltConfiguration;
|
|
1011
1012
|
/**
|
|
1012
1013
|
* Enforce explicit role property is not the same as implicit/default role property on an element.
|
|
1013
|
-
See https://biomejs.dev/linter/rules/no-redundant-roles
|
|
1014
|
+
See <https://biomejs.dev/linter/rules/no-redundant-roles>
|
|
1014
1015
|
*/
|
|
1015
1016
|
noRedundantRoles?: NoRedundantRolesConfiguration;
|
|
1016
1017
|
/**
|
|
1017
1018
|
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
1018
|
-
See https://biomejs.dev/linter/rules/no-static-element-interactions
|
|
1019
|
+
See <https://biomejs.dev/linter/rules/no-static-element-interactions>
|
|
1019
1020
|
*/
|
|
1020
1021
|
noStaticElementInteractions?: NoStaticElementInteractionsConfiguration;
|
|
1021
1022
|
/**
|
|
1022
1023
|
* Enforces the usage of the title element for the svg element.
|
|
1023
|
-
See https://biomejs.dev/linter/rules/no-svg-without-title
|
|
1024
|
+
See <https://biomejs.dev/linter/rules/no-svg-without-title>
|
|
1024
1025
|
*/
|
|
1025
1026
|
noSvgWithoutTitle?: NoSvgWithoutTitleConfiguration;
|
|
1026
1027
|
/**
|
|
@@ -1029,269 +1030,269 @@ See https://biomejs.dev/linter/rules/no-svg-without-title
|
|
|
1029
1030
|
recommended?: boolean;
|
|
1030
1031
|
/**
|
|
1031
1032
|
* Enforce that all elements that require alternative text have meaningful information to relay back to the end user.
|
|
1032
|
-
See https://biomejs.dev/linter/rules/use-alt-text
|
|
1033
|
+
See <https://biomejs.dev/linter/rules/use-alt-text>
|
|
1033
1034
|
*/
|
|
1034
1035
|
useAltText?: UseAltTextConfiguration;
|
|
1035
1036
|
/**
|
|
1036
1037
|
* Enforce that anchors have content and that the content is accessible to screen readers.
|
|
1037
|
-
See https://biomejs.dev/linter/rules/use-anchor-content
|
|
1038
|
+
See <https://biomejs.dev/linter/rules/use-anchor-content>
|
|
1038
1039
|
*/
|
|
1039
1040
|
useAnchorContent?: UseAnchorContentConfiguration;
|
|
1040
1041
|
/**
|
|
1041
1042
|
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
1042
|
-
See https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex
|
|
1043
|
+
See <https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex>
|
|
1043
1044
|
*/
|
|
1044
1045
|
useAriaActivedescendantWithTabindex?: UseAriaActivedescendantWithTabindexConfiguration;
|
|
1045
1046
|
/**
|
|
1046
1047
|
* Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
|
|
1047
|
-
See https://biomejs.dev/linter/rules/use-aria-props-for-role
|
|
1048
|
+
See <https://biomejs.dev/linter/rules/use-aria-props-for-role>
|
|
1048
1049
|
*/
|
|
1049
1050
|
useAriaPropsForRole?: UseAriaPropsForRoleConfiguration;
|
|
1050
1051
|
/**
|
|
1051
1052
|
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1052
|
-
See https://biomejs.dev/linter/rules/use-aria-props-supported-by-role
|
|
1053
|
+
See <https://biomejs.dev/linter/rules/use-aria-props-supported-by-role>
|
|
1053
1054
|
*/
|
|
1054
1055
|
useAriaPropsSupportedByRole?: UseAriaPropsSupportedByRoleConfiguration;
|
|
1055
1056
|
/**
|
|
1056
1057
|
* Enforces the usage of the attribute type for the element button.
|
|
1057
|
-
See https://biomejs.dev/linter/rules/use-button-type
|
|
1058
|
+
See <https://biomejs.dev/linter/rules/use-button-type>
|
|
1058
1059
|
*/
|
|
1059
1060
|
useButtonType?: UseButtonTypeConfiguration;
|
|
1060
1061
|
/**
|
|
1061
1062
|
* Elements with an interactive role and interaction handlers must be focusable.
|
|
1062
|
-
See https://biomejs.dev/linter/rules/use-focusable-interactive
|
|
1063
|
+
See <https://biomejs.dev/linter/rules/use-focusable-interactive>
|
|
1063
1064
|
*/
|
|
1064
1065
|
useFocusableInteractive?: UseFocusableInteractiveConfiguration;
|
|
1065
1066
|
/**
|
|
1066
1067
|
* Disallow a missing generic family keyword within font families.
|
|
1067
|
-
See https://biomejs.dev/linter/rules/use-generic-font-names
|
|
1068
|
+
See <https://biomejs.dev/linter/rules/use-generic-font-names>
|
|
1068
1069
|
*/
|
|
1069
1070
|
useGenericFontNames?: UseGenericFontNamesConfiguration;
|
|
1070
1071
|
/**
|
|
1071
1072
|
* 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.
|
|
1072
|
-
See https://biomejs.dev/linter/rules/use-heading-content
|
|
1073
|
+
See <https://biomejs.dev/linter/rules/use-heading-content>
|
|
1073
1074
|
*/
|
|
1074
1075
|
useHeadingContent?: UseHeadingContentConfiguration;
|
|
1075
1076
|
/**
|
|
1076
1077
|
* Enforce that html element has lang attribute.
|
|
1077
|
-
See https://biomejs.dev/linter/rules/use-html-lang
|
|
1078
|
+
See <https://biomejs.dev/linter/rules/use-html-lang>
|
|
1078
1079
|
*/
|
|
1079
1080
|
useHtmlLang?: UseHtmlLangConfiguration;
|
|
1080
1081
|
/**
|
|
1081
1082
|
* Enforces the usage of the attribute title for the element iframe.
|
|
1082
|
-
See https://biomejs.dev/linter/rules/use-iframe-title
|
|
1083
|
+
See <https://biomejs.dev/linter/rules/use-iframe-title>
|
|
1083
1084
|
*/
|
|
1084
1085
|
useIframeTitle?: UseIframeTitleConfiguration;
|
|
1085
1086
|
/**
|
|
1086
1087
|
* Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
|
|
1087
|
-
See https://biomejs.dev/linter/rules/use-key-with-click-events
|
|
1088
|
+
See <https://biomejs.dev/linter/rules/use-key-with-click-events>
|
|
1088
1089
|
*/
|
|
1089
1090
|
useKeyWithClickEvents?: UseKeyWithClickEventsConfiguration;
|
|
1090
1091
|
/**
|
|
1091
1092
|
* Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
|
|
1092
|
-
See https://biomejs.dev/linter/rules/use-key-with-mouse-events
|
|
1093
|
+
See <https://biomejs.dev/linter/rules/use-key-with-mouse-events>
|
|
1093
1094
|
*/
|
|
1094
1095
|
useKeyWithMouseEvents?: UseKeyWithMouseEventsConfiguration;
|
|
1095
1096
|
/**
|
|
1096
1097
|
* Enforces that audio and video elements must have a track for captions.
|
|
1097
|
-
See https://biomejs.dev/linter/rules/use-media-caption
|
|
1098
|
+
See <https://biomejs.dev/linter/rules/use-media-caption>
|
|
1098
1099
|
*/
|
|
1099
1100
|
useMediaCaption?: UseMediaCaptionConfiguration;
|
|
1100
1101
|
/**
|
|
1101
1102
|
* It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
|
|
1102
|
-
See https://biomejs.dev/linter/rules/use-semantic-elements
|
|
1103
|
+
See <https://biomejs.dev/linter/rules/use-semantic-elements>
|
|
1103
1104
|
*/
|
|
1104
1105
|
useSemanticElements?: UseSemanticElementsConfiguration;
|
|
1105
1106
|
/**
|
|
1106
1107
|
* Enforce that all anchors are valid, and they are navigable elements.
|
|
1107
|
-
See https://biomejs.dev/linter/rules/use-valid-anchor
|
|
1108
|
+
See <https://biomejs.dev/linter/rules/use-valid-anchor>
|
|
1108
1109
|
*/
|
|
1109
1110
|
useValidAnchor?: UseValidAnchorConfiguration;
|
|
1110
1111
|
/**
|
|
1111
1112
|
* Ensures that ARIA properties aria-* are all valid.
|
|
1112
|
-
See https://biomejs.dev/linter/rules/use-valid-aria-props
|
|
1113
|
+
See <https://biomejs.dev/linter/rules/use-valid-aria-props>
|
|
1113
1114
|
*/
|
|
1114
1115
|
useValidAriaProps?: UseValidAriaPropsConfiguration;
|
|
1115
1116
|
/**
|
|
1116
1117
|
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
1117
|
-
See https://biomejs.dev/linter/rules/use-valid-aria-role
|
|
1118
|
+
See <https://biomejs.dev/linter/rules/use-valid-aria-role>
|
|
1118
1119
|
*/
|
|
1119
1120
|
useValidAriaRole?: UseValidAriaRoleConfiguration;
|
|
1120
1121
|
/**
|
|
1121
1122
|
* Enforce that ARIA state and property values are valid.
|
|
1122
|
-
See https://biomejs.dev/linter/rules/use-valid-aria-values
|
|
1123
|
+
See <https://biomejs.dev/linter/rules/use-valid-aria-values>
|
|
1123
1124
|
*/
|
|
1124
1125
|
useValidAriaValues?: UseValidAriaValuesConfiguration;
|
|
1125
1126
|
/**
|
|
1126
1127
|
* Use valid values for the autocomplete attribute on input elements.
|
|
1127
|
-
See https://biomejs.dev/linter/rules/use-valid-autocomplete
|
|
1128
|
+
See <https://biomejs.dev/linter/rules/use-valid-autocomplete>
|
|
1128
1129
|
*/
|
|
1129
1130
|
useValidAutocomplete?: UseValidAutocompleteConfiguration;
|
|
1130
1131
|
/**
|
|
1131
1132
|
* Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
|
|
1132
|
-
See https://biomejs.dev/linter/rules/use-valid-lang
|
|
1133
|
+
See <https://biomejs.dev/linter/rules/use-valid-lang>
|
|
1133
1134
|
*/
|
|
1134
1135
|
useValidLang?: UseValidLangConfiguration;
|
|
1135
1136
|
}
|
|
1136
1137
|
interface Complexity {
|
|
1137
1138
|
/**
|
|
1138
1139
|
* Disallow unclear usage of consecutive space characters in regular expression literals.
|
|
1139
|
-
See https://biomejs.dev/linter/rules/no-adjacent-spaces-in-regex
|
|
1140
|
+
See <https://biomejs.dev/linter/rules/no-adjacent-spaces-in-regex>
|
|
1140
1141
|
*/
|
|
1141
1142
|
noAdjacentSpacesInRegex?: NoAdjacentSpacesInRegexConfiguration;
|
|
1142
1143
|
/**
|
|
1143
1144
|
* Disallow the use of arguments.
|
|
1144
|
-
See https://biomejs.dev/linter/rules/no-arguments
|
|
1145
|
+
See <https://biomejs.dev/linter/rules/no-arguments>
|
|
1145
1146
|
*/
|
|
1146
1147
|
noArguments?: NoArgumentsConfiguration;
|
|
1147
1148
|
/**
|
|
1148
1149
|
* Disallow primitive type aliases and misleading types.
|
|
1149
|
-
See https://biomejs.dev/linter/rules/no-banned-types
|
|
1150
|
+
See <https://biomejs.dev/linter/rules/no-banned-types>
|
|
1150
1151
|
*/
|
|
1151
1152
|
noBannedTypes?: NoBannedTypesConfiguration;
|
|
1152
1153
|
/**
|
|
1153
1154
|
* Disallow comma operator.
|
|
1154
|
-
See https://biomejs.dev/linter/rules/no-comma-operator
|
|
1155
|
+
See <https://biomejs.dev/linter/rules/no-comma-operator>
|
|
1155
1156
|
*/
|
|
1156
1157
|
noCommaOperator?: NoCommaOperatorConfiguration;
|
|
1157
1158
|
/**
|
|
1158
1159
|
* Disallow empty type parameters in type aliases and interfaces.
|
|
1159
|
-
See https://biomejs.dev/linter/rules/no-empty-type-parameters
|
|
1160
|
+
See <https://biomejs.dev/linter/rules/no-empty-type-parameters>
|
|
1160
1161
|
*/
|
|
1161
1162
|
noEmptyTypeParameters?: NoEmptyTypeParametersConfiguration;
|
|
1162
1163
|
/**
|
|
1163
1164
|
* Disallow functions that exceed a given Cognitive Complexity score.
|
|
1164
|
-
See https://biomejs.dev/linter/rules/no-excessive-cognitive-complexity
|
|
1165
|
+
See <https://biomejs.dev/linter/rules/no-excessive-cognitive-complexity>
|
|
1165
1166
|
*/
|
|
1166
1167
|
noExcessiveCognitiveComplexity?: NoExcessiveCognitiveComplexityConfiguration;
|
|
1167
1168
|
/**
|
|
1168
1169
|
* Restrict the number of lines of code in a function.
|
|
1169
|
-
See https://biomejs.dev/linter/rules/no-excessive-lines-per-function
|
|
1170
|
+
See <https://biomejs.dev/linter/rules/no-excessive-lines-per-function>
|
|
1170
1171
|
*/
|
|
1171
1172
|
noExcessiveLinesPerFunction?: NoExcessiveLinesPerFunctionConfiguration;
|
|
1172
1173
|
/**
|
|
1173
1174
|
* This rule enforces a maximum depth to nested describe() in test files.
|
|
1174
|
-
See https://biomejs.dev/linter/rules/no-excessive-nested-test-suites
|
|
1175
|
+
See <https://biomejs.dev/linter/rules/no-excessive-nested-test-suites>
|
|
1175
1176
|
*/
|
|
1176
1177
|
noExcessiveNestedTestSuites?: NoExcessiveNestedTestSuitesConfiguration;
|
|
1177
1178
|
/**
|
|
1178
1179
|
* Disallow unnecessary boolean casts.
|
|
1179
|
-
See https://biomejs.dev/linter/rules/no-extra-boolean-cast
|
|
1180
|
+
See <https://biomejs.dev/linter/rules/no-extra-boolean-cast>
|
|
1180
1181
|
*/
|
|
1181
1182
|
noExtraBooleanCast?: NoExtraBooleanCastConfiguration;
|
|
1182
1183
|
/**
|
|
1183
1184
|
* Disallow to use unnecessary callback on flatMap.
|
|
1184
|
-
See https://biomejs.dev/linter/rules/no-flat-map-identity
|
|
1185
|
+
See <https://biomejs.dev/linter/rules/no-flat-map-identity>
|
|
1185
1186
|
*/
|
|
1186
1187
|
noFlatMapIdentity?: NoFlatMapIdentityConfiguration;
|
|
1187
1188
|
/**
|
|
1188
1189
|
* Prefer for...of statement instead of Array.forEach.
|
|
1189
|
-
See https://biomejs.dev/linter/rules/no-for-each
|
|
1190
|
+
See <https://biomejs.dev/linter/rules/no-for-each>
|
|
1190
1191
|
*/
|
|
1191
1192
|
noForEach?: NoForEachConfiguration;
|
|
1192
1193
|
/**
|
|
1193
1194
|
* Disallow shorthand type conversions.
|
|
1194
|
-
See https://biomejs.dev/linter/rules/no-implicit-coercions
|
|
1195
|
+
See <https://biomejs.dev/linter/rules/no-implicit-coercions>
|
|
1195
1196
|
*/
|
|
1196
1197
|
noImplicitCoercions?: NoImplicitCoercionsConfiguration;
|
|
1197
1198
|
/**
|
|
1198
1199
|
* Disallow the use of the !important style.
|
|
1199
|
-
See https://biomejs.dev/linter/rules/no-important-styles
|
|
1200
|
+
See <https://biomejs.dev/linter/rules/no-important-styles>
|
|
1200
1201
|
*/
|
|
1201
1202
|
noImportantStyles?: NoImportantStylesConfiguration;
|
|
1202
1203
|
/**
|
|
1203
1204
|
* This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
|
|
1204
|
-
See https://biomejs.dev/linter/rules/no-static-only-class
|
|
1205
|
+
See <https://biomejs.dev/linter/rules/no-static-only-class>
|
|
1205
1206
|
*/
|
|
1206
1207
|
noStaticOnlyClass?: NoStaticOnlyClassConfiguration;
|
|
1207
1208
|
/**
|
|
1208
1209
|
* Disallow this and super in static contexts.
|
|
1209
|
-
See https://biomejs.dev/linter/rules/no-this-in-static
|
|
1210
|
+
See <https://biomejs.dev/linter/rules/no-this-in-static>
|
|
1210
1211
|
*/
|
|
1211
1212
|
noThisInStatic?: NoThisInStaticConfiguration;
|
|
1212
1213
|
/**
|
|
1213
1214
|
* Disallow unnecessary catch clauses.
|
|
1214
|
-
See https://biomejs.dev/linter/rules/no-useless-catch
|
|
1215
|
+
See <https://biomejs.dev/linter/rules/no-useless-catch>
|
|
1215
1216
|
*/
|
|
1216
1217
|
noUselessCatch?: NoUselessCatchConfiguration;
|
|
1217
1218
|
/**
|
|
1218
1219
|
* Disallow unnecessary constructors.
|
|
1219
|
-
See https://biomejs.dev/linter/rules/no-useless-constructor
|
|
1220
|
+
See <https://biomejs.dev/linter/rules/no-useless-constructor>
|
|
1220
1221
|
*/
|
|
1221
1222
|
noUselessConstructor?: NoUselessConstructorConfiguration;
|
|
1222
1223
|
/**
|
|
1223
1224
|
* Avoid using unnecessary continue.
|
|
1224
|
-
See https://biomejs.dev/linter/rules/no-useless-continue
|
|
1225
|
+
See <https://biomejs.dev/linter/rules/no-useless-continue>
|
|
1225
1226
|
*/
|
|
1226
1227
|
noUselessContinue?: NoUselessContinueConfiguration;
|
|
1227
1228
|
/**
|
|
1228
1229
|
* Disallow empty exports that don't change anything in a module file.
|
|
1229
|
-
See https://biomejs.dev/linter/rules/no-useless-empty-export
|
|
1230
|
+
See <https://biomejs.dev/linter/rules/no-useless-empty-export>
|
|
1230
1231
|
*/
|
|
1231
1232
|
noUselessEmptyExport?: NoUselessEmptyExportConfiguration;
|
|
1232
1233
|
/**
|
|
1233
1234
|
* Disallow unnecessary escape sequence in regular expression literals.
|
|
1234
|
-
See https://biomejs.dev/linter/rules/no-useless-escape-in-regex
|
|
1235
|
+
See <https://biomejs.dev/linter/rules/no-useless-escape-in-regex>
|
|
1235
1236
|
*/
|
|
1236
1237
|
noUselessEscapeInRegex?: NoUselessEscapeInRegexConfiguration;
|
|
1237
1238
|
/**
|
|
1238
1239
|
* Disallow unnecessary fragments.
|
|
1239
|
-
See https://biomejs.dev/linter/rules/no-useless-fragments
|
|
1240
|
+
See <https://biomejs.dev/linter/rules/no-useless-fragments>
|
|
1240
1241
|
*/
|
|
1241
1242
|
noUselessFragments?: NoUselessFragmentsConfiguration;
|
|
1242
1243
|
/**
|
|
1243
1244
|
* Disallow unnecessary labels.
|
|
1244
|
-
See https://biomejs.dev/linter/rules/no-useless-label
|
|
1245
|
+
See <https://biomejs.dev/linter/rules/no-useless-label>
|
|
1245
1246
|
*/
|
|
1246
1247
|
noUselessLabel?: NoUselessLabelConfiguration;
|
|
1247
1248
|
/**
|
|
1248
1249
|
* Disallow unnecessary nested block statements.
|
|
1249
|
-
See https://biomejs.dev/linter/rules/no-useless-lone-block-statements
|
|
1250
|
+
See <https://biomejs.dev/linter/rules/no-useless-lone-block-statements>
|
|
1250
1251
|
*/
|
|
1251
1252
|
noUselessLoneBlockStatements?: NoUselessLoneBlockStatementsConfiguration;
|
|
1252
1253
|
/**
|
|
1253
1254
|
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
1254
|
-
See https://biomejs.dev/linter/rules/no-useless-rename
|
|
1255
|
+
See <https://biomejs.dev/linter/rules/no-useless-rename>
|
|
1255
1256
|
*/
|
|
1256
1257
|
noUselessRename?: NoUselessRenameConfiguration;
|
|
1257
1258
|
/**
|
|
1258
1259
|
* Disallow unnecessary concatenation of string or template literals.
|
|
1259
|
-
See https://biomejs.dev/linter/rules/no-useless-string-concat
|
|
1260
|
+
See <https://biomejs.dev/linter/rules/no-useless-string-concat>
|
|
1260
1261
|
*/
|
|
1261
1262
|
noUselessStringConcat?: NoUselessStringConcatConfiguration;
|
|
1262
1263
|
/**
|
|
1263
1264
|
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
1264
|
-
See https://biomejs.dev/linter/rules/no-useless-string-raw
|
|
1265
|
+
See <https://biomejs.dev/linter/rules/no-useless-string-raw>
|
|
1265
1266
|
*/
|
|
1266
1267
|
noUselessStringRaw?: NoUselessStringRawConfiguration;
|
|
1267
1268
|
/**
|
|
1268
1269
|
* Disallow useless case in switch statements.
|
|
1269
|
-
See https://biomejs.dev/linter/rules/no-useless-switch-case
|
|
1270
|
+
See <https://biomejs.dev/linter/rules/no-useless-switch-case>
|
|
1270
1271
|
*/
|
|
1271
1272
|
noUselessSwitchCase?: NoUselessSwitchCaseConfiguration;
|
|
1272
1273
|
/**
|
|
1273
1274
|
* Disallow ternary operators when simpler alternatives exist.
|
|
1274
|
-
See https://biomejs.dev/linter/rules/no-useless-ternary
|
|
1275
|
+
See <https://biomejs.dev/linter/rules/no-useless-ternary>
|
|
1275
1276
|
*/
|
|
1276
1277
|
noUselessTernary?: NoUselessTernaryConfiguration;
|
|
1277
1278
|
/**
|
|
1278
1279
|
* Disallow useless this aliasing.
|
|
1279
|
-
See https://biomejs.dev/linter/rules/no-useless-this-alias
|
|
1280
|
+
See <https://biomejs.dev/linter/rules/no-useless-this-alias>
|
|
1280
1281
|
*/
|
|
1281
1282
|
noUselessThisAlias?: NoUselessThisAliasConfiguration;
|
|
1282
1283
|
/**
|
|
1283
1284
|
* Disallow using any or unknown as type constraint.
|
|
1284
|
-
See https://biomejs.dev/linter/rules/no-useless-type-constraint
|
|
1285
|
+
See <https://biomejs.dev/linter/rules/no-useless-type-constraint>
|
|
1285
1286
|
*/
|
|
1286
1287
|
noUselessTypeConstraint?: NoUselessTypeConstraintConfiguration;
|
|
1287
1288
|
/**
|
|
1288
1289
|
* Disallow initializing variables to undefined.
|
|
1289
|
-
See https://biomejs.dev/linter/rules/no-useless-undefined-initialization
|
|
1290
|
+
See <https://biomejs.dev/linter/rules/no-useless-undefined-initialization>
|
|
1290
1291
|
*/
|
|
1291
1292
|
noUselessUndefinedInitialization?: NoUselessUndefinedInitializationConfiguration;
|
|
1292
1293
|
/**
|
|
1293
1294
|
* Disallow the use of void operators, which is not a familiar operator.
|
|
1294
|
-
See https://biomejs.dev/linter/rules/no-void
|
|
1295
|
+
See <https://biomejs.dev/linter/rules/no-void>
|
|
1295
1296
|
*/
|
|
1296
1297
|
noVoid?: NoVoidConfiguration;
|
|
1297
1298
|
/**
|
|
@@ -1300,324 +1301,324 @@ See https://biomejs.dev/linter/rules/no-void
|
|
|
1300
1301
|
recommended?: boolean;
|
|
1301
1302
|
/**
|
|
1302
1303
|
* Use arrow functions over function expressions.
|
|
1303
|
-
See https://biomejs.dev/linter/rules/use-arrow-function
|
|
1304
|
+
See <https://biomejs.dev/linter/rules/use-arrow-function>
|
|
1304
1305
|
*/
|
|
1305
1306
|
useArrowFunction?: UseArrowFunctionConfiguration;
|
|
1306
1307
|
/**
|
|
1307
1308
|
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
1308
|
-
See https://biomejs.dev/linter/rules/use-date-now
|
|
1309
|
+
See <https://biomejs.dev/linter/rules/use-date-now>
|
|
1309
1310
|
*/
|
|
1310
1311
|
useDateNow?: UseDateNowConfiguration;
|
|
1311
1312
|
/**
|
|
1312
1313
|
* Promotes the use of .flatMap() when map().flat() are used together.
|
|
1313
|
-
See https://biomejs.dev/linter/rules/use-flat-map
|
|
1314
|
+
See <https://biomejs.dev/linter/rules/use-flat-map>
|
|
1314
1315
|
*/
|
|
1315
1316
|
useFlatMap?: UseFlatMapConfiguration;
|
|
1316
1317
|
/**
|
|
1317
1318
|
* Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.
|
|
1318
|
-
See https://biomejs.dev/linter/rules/use-index-of
|
|
1319
|
+
See <https://biomejs.dev/linter/rules/use-index-of>
|
|
1319
1320
|
*/
|
|
1320
1321
|
useIndexOf?: UseIndexOfConfiguration;
|
|
1321
1322
|
/**
|
|
1322
1323
|
* Enforce the usage of a literal access to properties over computed property access.
|
|
1323
|
-
See https://biomejs.dev/linter/rules/use-literal-keys
|
|
1324
|
+
See <https://biomejs.dev/linter/rules/use-literal-keys>
|
|
1324
1325
|
*/
|
|
1325
1326
|
useLiteralKeys?: UseLiteralKeysConfiguration;
|
|
1326
1327
|
/**
|
|
1327
1328
|
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals.
|
|
1328
|
-
See https://biomejs.dev/linter/rules/use-numeric-literals
|
|
1329
|
+
See <https://biomejs.dev/linter/rules/use-numeric-literals>
|
|
1329
1330
|
*/
|
|
1330
1331
|
useNumericLiterals?: UseNumericLiteralsConfiguration;
|
|
1331
1332
|
/**
|
|
1332
1333
|
* Enforce using concise optional chain instead of chained logical expressions.
|
|
1333
|
-
See https://biomejs.dev/linter/rules/use-optional-chain
|
|
1334
|
+
See <https://biomejs.dev/linter/rules/use-optional-chain>
|
|
1334
1335
|
*/
|
|
1335
1336
|
useOptionalChain?: UseOptionalChainConfiguration;
|
|
1336
1337
|
/**
|
|
1337
1338
|
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
|
|
1338
|
-
See https://biomejs.dev/linter/rules/use-regex-literals
|
|
1339
|
+
See <https://biomejs.dev/linter/rules/use-regex-literals>
|
|
1339
1340
|
*/
|
|
1340
1341
|
useRegexLiterals?: UseRegexLiteralsConfiguration;
|
|
1341
1342
|
/**
|
|
1342
1343
|
* Disallow number literal object member names which are not base 10 or use underscore as separator.
|
|
1343
|
-
See https://biomejs.dev/linter/rules/use-simple-number-keys
|
|
1344
|
+
See <https://biomejs.dev/linter/rules/use-simple-number-keys>
|
|
1344
1345
|
*/
|
|
1345
1346
|
useSimpleNumberKeys?: UseSimpleNumberKeysConfiguration;
|
|
1346
1347
|
/**
|
|
1347
1348
|
* Discard redundant terms from logical expressions.
|
|
1348
|
-
See https://biomejs.dev/linter/rules/use-simplified-logic-expression
|
|
1349
|
+
See <https://biomejs.dev/linter/rules/use-simplified-logic-expression>
|
|
1349
1350
|
*/
|
|
1350
1351
|
useSimplifiedLogicExpression?: UseSimplifiedLogicExpressionConfiguration;
|
|
1351
1352
|
/**
|
|
1352
1353
|
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
|
|
1353
|
-
See https://biomejs.dev/linter/rules/use-while
|
|
1354
|
+
See <https://biomejs.dev/linter/rules/use-while>
|
|
1354
1355
|
*/
|
|
1355
1356
|
useWhile?: UseWhileConfiguration;
|
|
1356
1357
|
}
|
|
1357
1358
|
interface Correctness {
|
|
1358
1359
|
/**
|
|
1359
1360
|
* Prevent passing of children as props.
|
|
1360
|
-
See https://biomejs.dev/linter/rules/no-children-prop
|
|
1361
|
+
See <https://biomejs.dev/linter/rules/no-children-prop>
|
|
1361
1362
|
*/
|
|
1362
1363
|
noChildrenProp?: NoChildrenPropConfiguration;
|
|
1363
1364
|
/**
|
|
1364
1365
|
* Prevents from having const variables being re-assigned.
|
|
1365
|
-
See https://biomejs.dev/linter/rules/no-const-assign
|
|
1366
|
+
See <https://biomejs.dev/linter/rules/no-const-assign>
|
|
1366
1367
|
*/
|
|
1367
1368
|
noConstAssign?: NoConstAssignConfiguration;
|
|
1368
1369
|
/**
|
|
1369
1370
|
* Disallow constant expressions in conditions.
|
|
1370
|
-
See https://biomejs.dev/linter/rules/no-constant-condition
|
|
1371
|
+
See <https://biomejs.dev/linter/rules/no-constant-condition>
|
|
1371
1372
|
*/
|
|
1372
1373
|
noConstantCondition?: NoConstantConditionConfiguration;
|
|
1373
1374
|
/**
|
|
1374
1375
|
* Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
|
|
1375
|
-
See https://biomejs.dev/linter/rules/no-constant-math-min-max-clamp
|
|
1376
|
+
See <https://biomejs.dev/linter/rules/no-constant-math-min-max-clamp>
|
|
1376
1377
|
*/
|
|
1377
1378
|
noConstantMathMinMaxClamp?: NoConstantMathMinMaxClampConfiguration;
|
|
1378
1379
|
/**
|
|
1379
1380
|
* Disallow returning a value from a constructor.
|
|
1380
|
-
See https://biomejs.dev/linter/rules/no-constructor-return
|
|
1381
|
+
See <https://biomejs.dev/linter/rules/no-constructor-return>
|
|
1381
1382
|
*/
|
|
1382
1383
|
noConstructorReturn?: NoConstructorReturnConfiguration;
|
|
1383
1384
|
/**
|
|
1384
1385
|
* Disallow empty character classes in regular expression literals.
|
|
1385
|
-
See https://biomejs.dev/linter/rules/no-empty-character-class-in-regex
|
|
1386
|
+
See <https://biomejs.dev/linter/rules/no-empty-character-class-in-regex>
|
|
1386
1387
|
*/
|
|
1387
1388
|
noEmptyCharacterClassInRegex?: NoEmptyCharacterClassInRegexConfiguration;
|
|
1388
1389
|
/**
|
|
1389
1390
|
* Disallows empty destructuring patterns.
|
|
1390
|
-
See https://biomejs.dev/linter/rules/no-empty-pattern
|
|
1391
|
+
See <https://biomejs.dev/linter/rules/no-empty-pattern>
|
|
1391
1392
|
*/
|
|
1392
1393
|
noEmptyPattern?: NoEmptyPatternConfiguration;
|
|
1393
1394
|
/**
|
|
1394
1395
|
* Disallow the use of __dirname and __filename in the global scope.
|
|
1395
|
-
See https://biomejs.dev/linter/rules/no-global-dirname-filename
|
|
1396
|
+
See <https://biomejs.dev/linter/rules/no-global-dirname-filename>
|
|
1396
1397
|
*/
|
|
1397
1398
|
noGlobalDirnameFilename?: NoGlobalDirnameFilenameConfiguration;
|
|
1398
1399
|
/**
|
|
1399
1400
|
* Disallow calling global object properties as functions.
|
|
1400
|
-
See https://biomejs.dev/linter/rules/no-global-object-calls
|
|
1401
|
+
See <https://biomejs.dev/linter/rules/no-global-object-calls>
|
|
1401
1402
|
*/
|
|
1402
1403
|
noGlobalObjectCalls?: NoGlobalObjectCallsConfiguration;
|
|
1403
1404
|
/**
|
|
1404
1405
|
* Disallow function and var declarations that are accessible outside their block.
|
|
1405
|
-
See https://biomejs.dev/linter/rules/no-inner-declarations
|
|
1406
|
+
See <https://biomejs.dev/linter/rules/no-inner-declarations>
|
|
1406
1407
|
*/
|
|
1407
1408
|
noInnerDeclarations?: NoInnerDeclarationsConfiguration;
|
|
1408
1409
|
/**
|
|
1409
1410
|
* Ensure that builtins are correctly instantiated.
|
|
1410
|
-
See https://biomejs.dev/linter/rules/no-invalid-builtin-instantiation
|
|
1411
|
+
See <https://biomejs.dev/linter/rules/no-invalid-builtin-instantiation>
|
|
1411
1412
|
*/
|
|
1412
1413
|
noInvalidBuiltinInstantiation?: NoInvalidBuiltinInstantiationConfiguration;
|
|
1413
1414
|
/**
|
|
1414
1415
|
* Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
|
|
1415
|
-
See https://biomejs.dev/linter/rules/no-invalid-constructor-super
|
|
1416
|
+
See <https://biomejs.dev/linter/rules/no-invalid-constructor-super>
|
|
1416
1417
|
*/
|
|
1417
1418
|
noInvalidConstructorSuper?: NoInvalidConstructorSuperConfiguration;
|
|
1418
1419
|
/**
|
|
1419
1420
|
* Disallow non-standard direction values for linear gradient functions.
|
|
1420
|
-
See https://biomejs.dev/linter/rules/no-invalid-direction-in-linear-gradient
|
|
1421
|
+
See <https://biomejs.dev/linter/rules/no-invalid-direction-in-linear-gradient>
|
|
1421
1422
|
*/
|
|
1422
1423
|
noInvalidDirectionInLinearGradient?: NoInvalidDirectionInLinearGradientConfiguration;
|
|
1423
1424
|
/**
|
|
1424
1425
|
* Disallows invalid named grid areas in CSS Grid Layouts.
|
|
1425
|
-
See https://biomejs.dev/linter/rules/no-invalid-grid-areas
|
|
1426
|
+
See <https://biomejs.dev/linter/rules/no-invalid-grid-areas>
|
|
1426
1427
|
*/
|
|
1427
1428
|
noInvalidGridAreas?: NoInvalidGridAreasConfiguration;
|
|
1428
1429
|
/**
|
|
1429
1430
|
* Disallow the use of @import at-rules in invalid positions.
|
|
1430
|
-
See https://biomejs.dev/linter/rules/no-invalid-position-at-import-rule
|
|
1431
|
+
See <https://biomejs.dev/linter/rules/no-invalid-position-at-import-rule>
|
|
1431
1432
|
*/
|
|
1432
1433
|
noInvalidPositionAtImportRule?: NoInvalidPositionAtImportRuleConfiguration;
|
|
1433
1434
|
/**
|
|
1434
1435
|
* Disallow the use of variables, function parameters, classes, and enums before their declaration.
|
|
1435
|
-
See https://biomejs.dev/linter/rules/no-invalid-use-before-declaration
|
|
1436
|
+
See <https://biomejs.dev/linter/rules/no-invalid-use-before-declaration>
|
|
1436
1437
|
*/
|
|
1437
1438
|
noInvalidUseBeforeDeclaration?: NoInvalidUseBeforeDeclarationConfiguration;
|
|
1438
1439
|
/**
|
|
1439
1440
|
* Disallow missing var function for css variables.
|
|
1440
|
-
See https://biomejs.dev/linter/rules/no-missing-var-function
|
|
1441
|
+
See <https://biomejs.dev/linter/rules/no-missing-var-function>
|
|
1441
1442
|
*/
|
|
1442
1443
|
noMissingVarFunction?: NoMissingVarFunctionConfiguration;
|
|
1443
1444
|
/**
|
|
1444
1445
|
* Disallows defining React components inside other components.
|
|
1445
|
-
See https://biomejs.dev/linter/rules/no-nested-component-definitions
|
|
1446
|
+
See <https://biomejs.dev/linter/rules/no-nested-component-definitions>
|
|
1446
1447
|
*/
|
|
1447
1448
|
noNestedComponentDefinitions?: NoNestedComponentDefinitionsConfiguration;
|
|
1448
1449
|
/**
|
|
1449
1450
|
* Forbid the use of Node.js builtin modules.
|
|
1450
|
-
See https://biomejs.dev/linter/rules/no-nodejs-modules
|
|
1451
|
+
See <https://biomejs.dev/linter/rules/no-nodejs-modules>
|
|
1451
1452
|
*/
|
|
1452
1453
|
noNodejsModules?: NoNodejsModulesConfiguration;
|
|
1453
1454
|
/**
|
|
1454
1455
|
* Disallow \8 and \9 escape sequences in string literals.
|
|
1455
|
-
See https://biomejs.dev/linter/rules/no-nonoctal-decimal-escape
|
|
1456
|
+
See <https://biomejs.dev/linter/rules/no-nonoctal-decimal-escape>
|
|
1456
1457
|
*/
|
|
1457
1458
|
noNonoctalDecimalEscape?: NoNonoctalDecimalEscapeConfiguration;
|
|
1458
1459
|
/**
|
|
1459
1460
|
* Disallow literal numbers that lose precision.
|
|
1460
|
-
See https://biomejs.dev/linter/rules/no-precision-loss
|
|
1461
|
+
See <https://biomejs.dev/linter/rules/no-precision-loss>
|
|
1461
1462
|
*/
|
|
1462
1463
|
noPrecisionLoss?: NoPrecisionLossConfiguration;
|
|
1463
1464
|
/**
|
|
1464
1465
|
* Restrict imports of private exports.
|
|
1465
|
-
See https://biomejs.dev/linter/rules/no-private-imports
|
|
1466
|
+
See <https://biomejs.dev/linter/rules/no-private-imports>
|
|
1466
1467
|
*/
|
|
1467
1468
|
noPrivateImports?: NoPrivateImportsConfiguration;
|
|
1468
1469
|
/**
|
|
1469
1470
|
* Disallow the use of process global.
|
|
1470
|
-
See https://biomejs.dev/linter/rules/no-process-global
|
|
1471
|
+
See <https://biomejs.dev/linter/rules/no-process-global>
|
|
1471
1472
|
*/
|
|
1472
1473
|
noProcessGlobal?: NoProcessGlobalConfiguration;
|
|
1473
1474
|
/**
|
|
1474
1475
|
* Disallow useVisibleTask$() functions in Qwik components.
|
|
1475
|
-
See https://biomejs.dev/linter/rules/no-qwik-use-visible-task
|
|
1476
|
+
See <https://biomejs.dev/linter/rules/no-qwik-use-visible-task>
|
|
1476
1477
|
*/
|
|
1477
1478
|
noQwikUseVisibleTask?: NoQwikUseVisibleTaskConfiguration;
|
|
1478
1479
|
/**
|
|
1479
1480
|
* Disallow assigning to React component props.
|
|
1480
|
-
See https://biomejs.dev/linter/rules/no-react-prop-assignments
|
|
1481
|
+
See <https://biomejs.dev/linter/rules/no-react-prop-assignments>
|
|
1481
1482
|
*/
|
|
1482
1483
|
noReactPropAssignments?: NoReactPropAssignmentsConfiguration;
|
|
1483
1484
|
/**
|
|
1484
1485
|
* Prevent the usage of the return value of React.render.
|
|
1485
|
-
See https://biomejs.dev/linter/rules/no-render-return-value
|
|
1486
|
+
See <https://biomejs.dev/linter/rules/no-render-return-value>
|
|
1486
1487
|
*/
|
|
1487
1488
|
noRenderReturnValue?: NoRenderReturnValueConfiguration;
|
|
1488
1489
|
/**
|
|
1489
1490
|
* Disallow the use of configured elements.
|
|
1490
|
-
See https://biomejs.dev/linter/rules/no-restricted-elements
|
|
1491
|
+
See <https://biomejs.dev/linter/rules/no-restricted-elements>
|
|
1491
1492
|
*/
|
|
1492
1493
|
noRestrictedElements?: NoRestrictedElementsConfiguration;
|
|
1493
1494
|
/**
|
|
1494
1495
|
* Disallow assignments where both sides are exactly the same.
|
|
1495
|
-
See https://biomejs.dev/linter/rules/no-self-assign
|
|
1496
|
+
See <https://biomejs.dev/linter/rules/no-self-assign>
|
|
1496
1497
|
*/
|
|
1497
1498
|
noSelfAssign?: NoSelfAssignConfiguration;
|
|
1498
1499
|
/**
|
|
1499
1500
|
* Disallow returning a value from a setter.
|
|
1500
|
-
See https://biomejs.dev/linter/rules/no-setter-return
|
|
1501
|
+
See <https://biomejs.dev/linter/rules/no-setter-return>
|
|
1501
1502
|
*/
|
|
1502
1503
|
noSetterReturn?: NoSetterReturnConfiguration;
|
|
1503
1504
|
/**
|
|
1504
1505
|
* Disallow destructuring props inside JSX components in Solid projects.
|
|
1505
|
-
See https://biomejs.dev/linter/rules/no-solid-destructured-props
|
|
1506
|
+
See <https://biomejs.dev/linter/rules/no-solid-destructured-props>
|
|
1506
1507
|
*/
|
|
1507
1508
|
noSolidDestructuredProps?: NoSolidDestructuredPropsConfiguration;
|
|
1508
1509
|
/**
|
|
1509
1510
|
* Disallow comparison of expressions modifying the string case with non-compliant value.
|
|
1510
|
-
See https://biomejs.dev/linter/rules/no-string-case-mismatch
|
|
1511
|
+
See <https://biomejs.dev/linter/rules/no-string-case-mismatch>
|
|
1511
1512
|
*/
|
|
1512
1513
|
noStringCaseMismatch?: NoStringCaseMismatchConfiguration;
|
|
1513
1514
|
/**
|
|
1514
1515
|
* Disallow lexical declarations in switch clauses.
|
|
1515
|
-
See https://biomejs.dev/linter/rules/no-switch-declarations
|
|
1516
|
+
See <https://biomejs.dev/linter/rules/no-switch-declarations>
|
|
1516
1517
|
*/
|
|
1517
1518
|
noSwitchDeclarations?: NoSwitchDeclarationsConfiguration;
|
|
1518
1519
|
/**
|
|
1519
1520
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
1520
|
-
See https://biomejs.dev/linter/rules/no-undeclared-dependencies
|
|
1521
|
+
See <https://biomejs.dev/linter/rules/no-undeclared-dependencies>
|
|
1521
1522
|
*/
|
|
1522
1523
|
noUndeclaredDependencies?: NoUndeclaredDependenciesConfiguration;
|
|
1523
1524
|
/**
|
|
1524
1525
|
* Prevents the usage of variables that haven't been declared inside the document.
|
|
1525
|
-
See https://biomejs.dev/linter/rules/no-undeclared-variables
|
|
1526
|
+
See <https://biomejs.dev/linter/rules/no-undeclared-variables>
|
|
1526
1527
|
*/
|
|
1527
1528
|
noUndeclaredVariables?: NoUndeclaredVariablesConfiguration;
|
|
1528
1529
|
/**
|
|
1529
1530
|
* Disallow unknown CSS value functions.
|
|
1530
|
-
See https://biomejs.dev/linter/rules/no-unknown-function
|
|
1531
|
+
See <https://biomejs.dev/linter/rules/no-unknown-function>
|
|
1531
1532
|
*/
|
|
1532
1533
|
noUnknownFunction?: NoUnknownFunctionConfiguration;
|
|
1533
1534
|
/**
|
|
1534
1535
|
* Disallow unknown media feature names.
|
|
1535
|
-
See https://biomejs.dev/linter/rules/no-unknown-media-feature-name
|
|
1536
|
+
See <https://biomejs.dev/linter/rules/no-unknown-media-feature-name>
|
|
1536
1537
|
*/
|
|
1537
1538
|
noUnknownMediaFeatureName?: NoUnknownMediaFeatureNameConfiguration;
|
|
1538
1539
|
/**
|
|
1539
1540
|
* Disallow unknown properties.
|
|
1540
|
-
See https://biomejs.dev/linter/rules/no-unknown-property
|
|
1541
|
+
See <https://biomejs.dev/linter/rules/no-unknown-property>
|
|
1541
1542
|
*/
|
|
1542
1543
|
noUnknownProperty?: NoUnknownPropertyConfiguration;
|
|
1543
1544
|
/**
|
|
1544
1545
|
* Disallow unknown pseudo-class selectors.
|
|
1545
|
-
See https://biomejs.dev/linter/rules/no-unknown-pseudo-class
|
|
1546
|
+
See <https://biomejs.dev/linter/rules/no-unknown-pseudo-class>
|
|
1546
1547
|
*/
|
|
1547
1548
|
noUnknownPseudoClass?: NoUnknownPseudoClassConfiguration;
|
|
1548
1549
|
/**
|
|
1549
1550
|
* Disallow unknown pseudo-element selectors.
|
|
1550
|
-
See https://biomejs.dev/linter/rules/no-unknown-pseudo-element
|
|
1551
|
+
See <https://biomejs.dev/linter/rules/no-unknown-pseudo-element>
|
|
1551
1552
|
*/
|
|
1552
1553
|
noUnknownPseudoElement?: NoUnknownPseudoElementConfiguration;
|
|
1553
1554
|
/**
|
|
1554
1555
|
* Disallow unknown type selectors.
|
|
1555
|
-
See https://biomejs.dev/linter/rules/no-unknown-type-selector
|
|
1556
|
+
See <https://biomejs.dev/linter/rules/no-unknown-type-selector>
|
|
1556
1557
|
*/
|
|
1557
1558
|
noUnknownTypeSelector?: NoUnknownTypeSelectorConfiguration;
|
|
1558
1559
|
/**
|
|
1559
1560
|
* Disallow unknown CSS units.
|
|
1560
|
-
See https://biomejs.dev/linter/rules/no-unknown-unit
|
|
1561
|
+
See <https://biomejs.dev/linter/rules/no-unknown-unit>
|
|
1561
1562
|
*/
|
|
1562
1563
|
noUnknownUnit?: NoUnknownUnitConfiguration;
|
|
1563
1564
|
/**
|
|
1564
1565
|
* Disallow unmatchable An+B selectors.
|
|
1565
|
-
See https://biomejs.dev/linter/rules/no-unmatchable-anb-selector
|
|
1566
|
+
See <https://biomejs.dev/linter/rules/no-unmatchable-anb-selector>
|
|
1566
1567
|
*/
|
|
1567
1568
|
noUnmatchableAnbSelector?: NoUnmatchableAnbSelectorConfiguration;
|
|
1568
1569
|
/**
|
|
1569
1570
|
* Disallow unreachable code.
|
|
1570
|
-
See https://biomejs.dev/linter/rules/no-unreachable
|
|
1571
|
+
See <https://biomejs.dev/linter/rules/no-unreachable>
|
|
1571
1572
|
*/
|
|
1572
1573
|
noUnreachable?: NoUnreachableConfiguration;
|
|
1573
1574
|
/**
|
|
1574
1575
|
* 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.
|
|
1575
|
-
See https://biomejs.dev/linter/rules/no-unreachable-super
|
|
1576
|
+
See <https://biomejs.dev/linter/rules/no-unreachable-super>
|
|
1576
1577
|
*/
|
|
1577
1578
|
noUnreachableSuper?: NoUnreachableSuperConfiguration;
|
|
1578
1579
|
/**
|
|
1579
1580
|
* Disallow control flow statements in finally blocks.
|
|
1580
|
-
See https://biomejs.dev/linter/rules/no-unsafe-finally
|
|
1581
|
+
See <https://biomejs.dev/linter/rules/no-unsafe-finally>
|
|
1581
1582
|
*/
|
|
1582
1583
|
noUnsafeFinally?: NoUnsafeFinallyConfiguration;
|
|
1583
1584
|
/**
|
|
1584
1585
|
* Disallow the use of optional chaining in contexts where the undefined value is not allowed.
|
|
1585
|
-
See https://biomejs.dev/linter/rules/no-unsafe-optional-chaining
|
|
1586
|
+
See <https://biomejs.dev/linter/rules/no-unsafe-optional-chaining>
|
|
1586
1587
|
*/
|
|
1587
1588
|
noUnsafeOptionalChaining?: NoUnsafeOptionalChainingConfiguration;
|
|
1588
1589
|
/**
|
|
1589
1590
|
* Disallow unused function parameters.
|
|
1590
|
-
See https://biomejs.dev/linter/rules/no-unused-function-parameters
|
|
1591
|
+
See <https://biomejs.dev/linter/rules/no-unused-function-parameters>
|
|
1591
1592
|
*/
|
|
1592
1593
|
noUnusedFunctionParameters?: NoUnusedFunctionParametersConfiguration;
|
|
1593
1594
|
/**
|
|
1594
1595
|
* Disallow unused imports.
|
|
1595
|
-
See https://biomejs.dev/linter/rules/no-unused-imports
|
|
1596
|
+
See <https://biomejs.dev/linter/rules/no-unused-imports>
|
|
1596
1597
|
*/
|
|
1597
1598
|
noUnusedImports?: NoUnusedImportsConfiguration;
|
|
1598
1599
|
/**
|
|
1599
1600
|
* Disallow unused labels.
|
|
1600
|
-
See https://biomejs.dev/linter/rules/no-unused-labels
|
|
1601
|
+
See <https://biomejs.dev/linter/rules/no-unused-labels>
|
|
1601
1602
|
*/
|
|
1602
1603
|
noUnusedLabels?: NoUnusedLabelsConfiguration;
|
|
1603
1604
|
/**
|
|
1604
1605
|
* Disallow unused private class members.
|
|
1605
|
-
See https://biomejs.dev/linter/rules/no-unused-private-class-members
|
|
1606
|
+
See <https://biomejs.dev/linter/rules/no-unused-private-class-members>
|
|
1606
1607
|
*/
|
|
1607
1608
|
noUnusedPrivateClassMembers?: NoUnusedPrivateClassMembersConfiguration;
|
|
1608
1609
|
/**
|
|
1609
1610
|
* Disallow unused variables.
|
|
1610
|
-
See https://biomejs.dev/linter/rules/no-unused-variables
|
|
1611
|
+
See <https://biomejs.dev/linter/rules/no-unused-variables>
|
|
1611
1612
|
*/
|
|
1612
1613
|
noUnusedVariables?: NoUnusedVariablesConfiguration;
|
|
1613
1614
|
/**
|
|
1614
1615
|
* This rules prevents void elements (AKA self-closing elements) from having children.
|
|
1615
|
-
See https://biomejs.dev/linter/rules/no-void-elements-with-children
|
|
1616
|
+
See <https://biomejs.dev/linter/rules/no-void-elements-with-children>
|
|
1616
1617
|
*/
|
|
1617
1618
|
noVoidElementsWithChildren?: NoVoidElementsWithChildrenConfiguration;
|
|
1618
1619
|
/**
|
|
1619
1620
|
* Disallow returning a value from a function with the return type 'void'.
|
|
1620
|
-
See https://biomejs.dev/linter/rules/no-void-type-return
|
|
1621
|
+
See <https://biomejs.dev/linter/rules/no-void-type-return>
|
|
1621
1622
|
*/
|
|
1622
1623
|
noVoidTypeReturn?: NoVoidTypeReturnConfiguration;
|
|
1623
1624
|
/**
|
|
@@ -1625,240 +1626,250 @@ See https://biomejs.dev/linter/rules/no-void-type-return
|
|
|
1625
1626
|
*/
|
|
1626
1627
|
recommended?: boolean;
|
|
1627
1628
|
/**
|
|
1628
|
-
* Enforce
|
|
1629
|
-
See https://biomejs.dev/linter/rules/use-exhaustive-dependencies
|
|
1629
|
+
* Enforce correct dependency usage within React hooks.
|
|
1630
|
+
See <https://biomejs.dev/linter/rules/use-exhaustive-dependencies>
|
|
1630
1631
|
*/
|
|
1631
1632
|
useExhaustiveDependencies?: UseExhaustiveDependenciesConfiguration;
|
|
1632
1633
|
/**
|
|
1633
1634
|
* Enforce specifying the name of GraphQL operations.
|
|
1634
|
-
See https://biomejs.dev/linter/rules/use-graphql-named-operations
|
|
1635
|
+
See <https://biomejs.dev/linter/rules/use-graphql-named-operations>
|
|
1635
1636
|
*/
|
|
1636
1637
|
useGraphqlNamedOperations?: UseGraphqlNamedOperationsConfiguration;
|
|
1637
1638
|
/**
|
|
1638
1639
|
* Enforce that all React hooks are being called from the Top Level component functions.
|
|
1639
|
-
See https://biomejs.dev/linter/rules/use-hook-at-top-level
|
|
1640
|
+
See <https://biomejs.dev/linter/rules/use-hook-at-top-level>
|
|
1640
1641
|
*/
|
|
1641
1642
|
useHookAtTopLevel?: UseHookAtTopLevelConfiguration;
|
|
1642
1643
|
/**
|
|
1643
1644
|
* Enforces that \<img> elements have both width and height attributes.
|
|
1644
|
-
See https://biomejs.dev/linter/rules/use-image-size
|
|
1645
|
+
See <https://biomejs.dev/linter/rules/use-image-size>
|
|
1645
1646
|
*/
|
|
1646
1647
|
useImageSize?: UseImageSizeConfiguration;
|
|
1647
1648
|
/**
|
|
1648
1649
|
* Enforce file extensions for relative imports.
|
|
1649
|
-
See https://biomejs.dev/linter/rules/use-import-extensions
|
|
1650
|
+
See <https://biomejs.dev/linter/rules/use-import-extensions>
|
|
1650
1651
|
*/
|
|
1651
1652
|
useImportExtensions?: UseImportExtensionsConfiguration;
|
|
1652
1653
|
/**
|
|
1653
1654
|
* Require calls to isNaN() when checking for NaN.
|
|
1654
|
-
See https://biomejs.dev/linter/rules/use-is-nan
|
|
1655
|
+
See <https://biomejs.dev/linter/rules/use-is-nan>
|
|
1655
1656
|
*/
|
|
1656
1657
|
useIsNan?: UseIsNanConfiguration;
|
|
1657
1658
|
/**
|
|
1658
1659
|
* Enforces the use of with { type: "json" } for JSON module imports.
|
|
1659
|
-
See https://biomejs.dev/linter/rules/use-json-import-attributes
|
|
1660
|
+
See <https://biomejs.dev/linter/rules/use-json-import-attributes>
|
|
1660
1661
|
*/
|
|
1661
1662
|
useJsonImportAttributes?: UseJsonImportAttributesConfiguration;
|
|
1662
1663
|
/**
|
|
1663
1664
|
* Disallow missing key props in iterators/collection literals.
|
|
1664
|
-
See https://biomejs.dev/linter/rules/use-jsx-key-in-iterable
|
|
1665
|
+
See <https://biomejs.dev/linter/rules/use-jsx-key-in-iterable>
|
|
1665
1666
|
*/
|
|
1666
1667
|
useJsxKeyInIterable?: UseJsxKeyInIterableConfiguration;
|
|
1667
1668
|
/**
|
|
1668
1669
|
* Enforce the consistent use of the radix argument when using parseInt().
|
|
1669
|
-
See https://biomejs.dev/linter/rules/use-parse-int-radix
|
|
1670
|
+
See <https://biomejs.dev/linter/rules/use-parse-int-radix>
|
|
1670
1671
|
*/
|
|
1671
1672
|
useParseIntRadix?: UseParseIntRadixConfiguration;
|
|
1672
1673
|
/**
|
|
1673
1674
|
* Prefer using the class prop as a classlist over the classnames helper.
|
|
1674
|
-
See https://biomejs.dev/linter/rules/use-qwik-classlist
|
|
1675
|
+
See <https://biomejs.dev/linter/rules/use-qwik-classlist>
|
|
1675
1676
|
*/
|
|
1676
1677
|
useQwikClasslist?: UseQwikClasslistConfiguration;
|
|
1677
1678
|
/**
|
|
1678
1679
|
* Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
|
|
1679
|
-
See https://biomejs.dev/linter/rules/use-single-js-doc-asterisk
|
|
1680
|
+
See <https://biomejs.dev/linter/rules/use-single-js-doc-asterisk>
|
|
1680
1681
|
*/
|
|
1681
1682
|
useSingleJsDocAsterisk?: UseSingleJsDocAsteriskConfiguration;
|
|
1682
1683
|
/**
|
|
1683
1684
|
* Prevent the usage of static string literal id attribute on elements.
|
|
1684
|
-
See https://biomejs.dev/linter/rules/use-unique-element-ids
|
|
1685
|
+
See <https://biomejs.dev/linter/rules/use-unique-element-ids>
|
|
1685
1686
|
*/
|
|
1686
1687
|
useUniqueElementIds?: UseUniqueElementIdsConfiguration;
|
|
1687
1688
|
/**
|
|
1688
1689
|
* Enforce "for" loop update clause moving the counter in the right direction.
|
|
1689
|
-
See https://biomejs.dev/linter/rules/use-valid-for-direction
|
|
1690
|
+
See <https://biomejs.dev/linter/rules/use-valid-for-direction>
|
|
1690
1691
|
*/
|
|
1691
1692
|
useValidForDirection?: UseValidForDirectionConfiguration;
|
|
1692
1693
|
/**
|
|
1693
1694
|
* This rule checks that the result of a typeof expression is compared to a valid value.
|
|
1694
|
-
See https://biomejs.dev/linter/rules/use-valid-typeof
|
|
1695
|
+
See <https://biomejs.dev/linter/rules/use-valid-typeof>
|
|
1695
1696
|
*/
|
|
1696
1697
|
useValidTypeof?: UseValidTypeofConfiguration;
|
|
1697
1698
|
/**
|
|
1698
1699
|
* Require generator functions to contain yield.
|
|
1699
|
-
See https://biomejs.dev/linter/rules/use-yield
|
|
1700
|
+
See <https://biomejs.dev/linter/rules/use-yield>
|
|
1700
1701
|
*/
|
|
1701
1702
|
useYield?: UseYieldConfiguration;
|
|
1702
1703
|
}
|
|
1703
1704
|
interface Nursery {
|
|
1704
1705
|
/**
|
|
1705
1706
|
* Disallow continue statements.
|
|
1706
|
-
See https://biomejs.dev/linter/rules/no-continue
|
|
1707
|
+
See <https://biomejs.dev/linter/rules/no-continue>
|
|
1707
1708
|
*/
|
|
1708
1709
|
noContinue?: NoContinueConfiguration;
|
|
1709
1710
|
/**
|
|
1710
1711
|
* Restrict imports of deprecated exports.
|
|
1711
|
-
See https://biomejs.dev/linter/rules/no-deprecated-imports
|
|
1712
|
+
See <https://biomejs.dev/linter/rules/no-deprecated-imports>
|
|
1712
1713
|
*/
|
|
1713
1714
|
noDeprecatedImports?: NoDeprecatedImportsConfiguration;
|
|
1714
1715
|
/**
|
|
1715
1716
|
* Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
|
|
1716
|
-
See https://biomejs.dev/linter/rules/no-duplicate-dependencies
|
|
1717
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-dependencies>
|
|
1717
1718
|
*/
|
|
1718
1719
|
noDuplicateDependencies?: NoDuplicateDependenciesConfiguration;
|
|
1719
1720
|
/**
|
|
1720
1721
|
* Disallow JSX prop spreading the same identifier multiple times.
|
|
1721
|
-
See https://biomejs.dev/linter/rules/no-duplicated-spread-props
|
|
1722
|
+
See <https://biomejs.dev/linter/rules/no-duplicated-spread-props>
|
|
1722
1723
|
*/
|
|
1723
1724
|
noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration;
|
|
1724
1725
|
/**
|
|
1725
1726
|
* Disallow empty sources.
|
|
1726
|
-
See https://biomejs.dev/linter/rules/no-empty-source
|
|
1727
|
+
See <https://biomejs.dev/linter/rules/no-empty-source>
|
|
1727
1728
|
*/
|
|
1728
1729
|
noEmptySource?: NoEmptySourceConfiguration;
|
|
1729
1730
|
/**
|
|
1730
1731
|
* Require the use of === or !== for comparison with null.
|
|
1731
|
-
See https://biomejs.dev/linter/rules/no-equals-to-null
|
|
1732
|
+
See <https://biomejs.dev/linter/rules/no-equals-to-null>
|
|
1732
1733
|
*/
|
|
1733
1734
|
noEqualsToNull?: NoEqualsToNullConfiguration;
|
|
1734
1735
|
/**
|
|
1735
1736
|
* Require Promise-like statements to be handled appropriately.
|
|
1736
|
-
See https://biomejs.dev/linter/rules/no-floating-promises
|
|
1737
|
+
See <https://biomejs.dev/linter/rules/no-floating-promises>
|
|
1737
1738
|
*/
|
|
1738
1739
|
noFloatingPromises?: NoFloatingPromisesConfiguration;
|
|
1739
1740
|
/**
|
|
1740
1741
|
* Disallow iterating using a for-in loop.
|
|
1741
|
-
See https://biomejs.dev/linter/rules/no-for-in
|
|
1742
|
+
See <https://biomejs.dev/linter/rules/no-for-in>
|
|
1742
1743
|
*/
|
|
1743
1744
|
noForIn?: NoForInConfiguration;
|
|
1744
1745
|
/**
|
|
1745
1746
|
* Prevent import cycles.
|
|
1746
|
-
See https://biomejs.dev/linter/rules/no-import-cycles
|
|
1747
|
+
See <https://biomejs.dev/linter/rules/no-import-cycles>
|
|
1747
1748
|
*/
|
|
1748
1749
|
noImportCycles?: NoImportCyclesConfiguration;
|
|
1749
1750
|
/**
|
|
1750
1751
|
* Disallows the usage of the unary operators ++ and --.
|
|
1751
|
-
See https://biomejs.dev/linter/rules/no-increment-decrement
|
|
1752
|
+
See <https://biomejs.dev/linter/rules/no-increment-decrement>
|
|
1752
1753
|
*/
|
|
1753
1754
|
noIncrementDecrement?: NoIncrementDecrementConfiguration;
|
|
1754
1755
|
/**
|
|
1755
1756
|
* Disallow string literals inside JSX elements.
|
|
1756
|
-
See https://biomejs.dev/linter/rules/no-jsx-literals
|
|
1757
|
+
See <https://biomejs.dev/linter/rules/no-jsx-literals>
|
|
1757
1758
|
*/
|
|
1758
1759
|
noJsxLiterals?: NoJsxLiteralsConfiguration;
|
|
1759
1760
|
/**
|
|
1760
1761
|
* Prevent problematic leaked values from being rendered.
|
|
1761
|
-
See https://biomejs.dev/linter/rules/no-leaked-render
|
|
1762
|
+
See <https://biomejs.dev/linter/rules/no-leaked-render>
|
|
1762
1763
|
*/
|
|
1763
1764
|
noLeakedRender?: NoLeakedRenderConfiguration;
|
|
1764
1765
|
/**
|
|
1765
1766
|
* Disallow Promises to be used in places where they are almost certainly a mistake.
|
|
1766
|
-
See https://biomejs.dev/linter/rules/no-misused-promises
|
|
1767
|
+
See <https://biomejs.dev/linter/rules/no-misused-promises>
|
|
1767
1768
|
*/
|
|
1768
1769
|
noMisusedPromises?: NoMisusedPromisesConfiguration;
|
|
1769
1770
|
/**
|
|
1770
1771
|
* Disallow creating multiline strings by escaping newlines.
|
|
1771
|
-
See https://biomejs.dev/linter/rules/no-multi-str
|
|
1772
|
+
See <https://biomejs.dev/linter/rules/no-multi-str>
|
|
1772
1773
|
*/
|
|
1773
1774
|
noMultiStr?: NoMultiStrConfiguration;
|
|
1774
1775
|
/**
|
|
1775
1776
|
* Prevent client components from being async functions.
|
|
1776
|
-
See https://biomejs.dev/linter/rules/no-next-async-client-component
|
|
1777
|
+
See <https://biomejs.dev/linter/rules/no-next-async-client-component>
|
|
1777
1778
|
*/
|
|
1778
1779
|
noNextAsyncClientComponent?: NoNextAsyncClientComponentConfiguration;
|
|
1779
1780
|
/**
|
|
1780
1781
|
* Disallow function parameters that are only used in recursive calls.
|
|
1781
|
-
See https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion
|
|
1782
|
+
See <https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion>
|
|
1782
1783
|
*/
|
|
1783
1784
|
noParametersOnlyUsedInRecursion?: NoParametersOnlyUsedInRecursionConfiguration;
|
|
1784
1785
|
/**
|
|
1785
|
-
* Disallow the use of the __proto__ property.
|
|
1786
|
-
See https://biomejs.dev/linter/rules/no-proto
|
|
1786
|
+
* Disallow the use of the deprecated __proto__ object property.
|
|
1787
|
+
See <https://biomejs.dev/linter/rules/no-proto>
|
|
1787
1788
|
*/
|
|
1788
1789
|
noProto?: NoProtoConfiguration;
|
|
1789
1790
|
/**
|
|
1790
1791
|
* Replaces usages of forwardRef with passing ref as a prop.
|
|
1791
|
-
See https://biomejs.dev/linter/rules/no-react-forward-ref
|
|
1792
|
+
See <https://biomejs.dev/linter/rules/no-react-forward-ref>
|
|
1792
1793
|
*/
|
|
1793
1794
|
noReactForwardRef?: NoReactForwardRefConfiguration;
|
|
1794
1795
|
/**
|
|
1796
|
+
* Disallow javascript: URLs in HTML.
|
|
1797
|
+
See <https://biomejs.dev/linter/rules/no-script-url>
|
|
1798
|
+
*/
|
|
1799
|
+
noScriptUrl?: NoScriptUrlConfiguration;
|
|
1800
|
+
/**
|
|
1795
1801
|
* Disallow variable declarations from shadowing variables declared in the outer scope.
|
|
1796
|
-
See https://biomejs.dev/linter/rules/no-shadow
|
|
1802
|
+
See <https://biomejs.dev/linter/rules/no-shadow>
|
|
1797
1803
|
*/
|
|
1798
1804
|
noShadow?: NoShadowConfiguration;
|
|
1799
1805
|
/**
|
|
1800
1806
|
* Prevent the usage of synchronous scripts.
|
|
1801
|
-
See https://biomejs.dev/linter/rules/no-sync-scripts
|
|
1807
|
+
See <https://biomejs.dev/linter/rules/no-sync-scripts>
|
|
1802
1808
|
*/
|
|
1803
1809
|
noSyncScripts?: NoSyncScriptsConfiguration;
|
|
1804
1810
|
/**
|
|
1805
1811
|
* Disallow ternary operators.
|
|
1806
|
-
See https://biomejs.dev/linter/rules/no-ternary
|
|
1812
|
+
See <https://biomejs.dev/linter/rules/no-ternary>
|
|
1807
1813
|
*/
|
|
1808
1814
|
noTernary?: NoTernaryConfiguration;
|
|
1809
1815
|
/**
|
|
1810
1816
|
* Disallow unknown DOM properties.
|
|
1811
|
-
See https://biomejs.dev/linter/rules/no-unknown-attribute
|
|
1817
|
+
See <https://biomejs.dev/linter/rules/no-unknown-attribute>
|
|
1812
1818
|
*/
|
|
1813
1819
|
noUnknownAttribute?: NoUnknownAttributeConfiguration;
|
|
1814
1820
|
/**
|
|
1815
1821
|
* Disallow unnecessary type-based conditions that can be statically determined as redundant.
|
|
1816
|
-
See https://biomejs.dev/linter/rules/no-unnecessary-conditions
|
|
1822
|
+
See <https://biomejs.dev/linter/rules/no-unnecessary-conditions>
|
|
1817
1823
|
*/
|
|
1818
1824
|
noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration;
|
|
1819
1825
|
/**
|
|
1820
1826
|
* Warn when importing non-existing exports.
|
|
1821
|
-
See https://biomejs.dev/linter/rules/no-unresolved-imports
|
|
1827
|
+
See <https://biomejs.dev/linter/rules/no-unresolved-imports>
|
|
1822
1828
|
*/
|
|
1823
1829
|
noUnresolvedImports?: NoUnresolvedImportsConfiguration;
|
|
1824
1830
|
/**
|
|
1825
1831
|
* Disallow expression statements that are neither a function call nor an assignment.
|
|
1826
|
-
See https://biomejs.dev/linter/rules/no-unused-expressions
|
|
1832
|
+
See <https://biomejs.dev/linter/rules/no-unused-expressions>
|
|
1827
1833
|
*/
|
|
1828
1834
|
noUnusedExpressions?: NoUnusedExpressionsConfiguration;
|
|
1829
1835
|
/**
|
|
1830
1836
|
* Disallow unused catch bindings.
|
|
1831
|
-
See https://biomejs.dev/linter/rules/no-useless-catch-binding
|
|
1837
|
+
See <https://biomejs.dev/linter/rules/no-useless-catch-binding>
|
|
1832
1838
|
*/
|
|
1833
1839
|
noUselessCatchBinding?: NoUselessCatchBindingConfiguration;
|
|
1834
1840
|
/**
|
|
1835
1841
|
* Disallow the use of useless undefined.
|
|
1836
|
-
See https://biomejs.dev/linter/rules/no-useless-undefined
|
|
1842
|
+
See <https://biomejs.dev/linter/rules/no-useless-undefined>
|
|
1837
1843
|
*/
|
|
1838
1844
|
noUselessUndefined?: NoUselessUndefinedConfiguration;
|
|
1839
1845
|
/**
|
|
1840
1846
|
* Enforce that Vue component data options are declared as functions.
|
|
1841
|
-
See https://biomejs.dev/linter/rules/no-vue-data-object-declaration
|
|
1847
|
+
See <https://biomejs.dev/linter/rules/no-vue-data-object-declaration>
|
|
1842
1848
|
*/
|
|
1843
1849
|
noVueDataObjectDeclaration?: NoVueDataObjectDeclarationConfiguration;
|
|
1844
1850
|
/**
|
|
1845
1851
|
* Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
|
|
1846
|
-
See https://biomejs.dev/linter/rules/no-vue-duplicate-keys
|
|
1852
|
+
See <https://biomejs.dev/linter/rules/no-vue-duplicate-keys>
|
|
1847
1853
|
*/
|
|
1848
1854
|
noVueDuplicateKeys?: NoVueDuplicateKeysConfiguration;
|
|
1849
1855
|
/**
|
|
1850
1856
|
* Disallow reserved keys in Vue component data and computed properties.
|
|
1851
|
-
See https://biomejs.dev/linter/rules/no-vue-reserved-keys
|
|
1857
|
+
See <https://biomejs.dev/linter/rules/no-vue-reserved-keys>
|
|
1852
1858
|
*/
|
|
1853
1859
|
noVueReservedKeys?: NoVueReservedKeysConfiguration;
|
|
1854
1860
|
/**
|
|
1855
1861
|
* Disallow reserved names to be used as props.
|
|
1856
|
-
See https://biomejs.dev/linter/rules/no-vue-reserved-props
|
|
1862
|
+
See <https://biomejs.dev/linter/rules/no-vue-reserved-props>
|
|
1857
1863
|
*/
|
|
1858
1864
|
noVueReservedProps?: NoVueReservedPropsConfiguration;
|
|
1859
1865
|
/**
|
|
1866
|
+
* Disallow destructuring of props passed to setup in Vue projects.
|
|
1867
|
+
See <https://biomejs.dev/linter/rules/no-vue-setup-props-reactivity-loss>
|
|
1868
|
+
*/
|
|
1869
|
+
noVueSetupPropsReactivityLoss?: NoVueSetupPropsReactivityLossConfiguration;
|
|
1870
|
+
/**
|
|
1860
1871
|
* Disallow using v-if and v-for directives on the same element.
|
|
1861
|
-
See https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for
|
|
1872
|
+
See <https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for>
|
|
1862
1873
|
*/
|
|
1863
1874
|
noVueVIfWithVFor?: NoVueVIfWithVForConfiguration;
|
|
1864
1875
|
/**
|
|
@@ -1867,164 +1878,184 @@ See https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for
|
|
|
1867
1878
|
recommended?: boolean;
|
|
1868
1879
|
/**
|
|
1869
1880
|
* Require Array#sort and Array#toSorted calls to always provide a compareFunction.
|
|
1870
|
-
See https://biomejs.dev/linter/rules/use-array-sort-compare
|
|
1881
|
+
See <https://biomejs.dev/linter/rules/use-array-sort-compare>
|
|
1871
1882
|
*/
|
|
1872
1883
|
useArraySortCompare?: UseArraySortCompareConfiguration;
|
|
1873
1884
|
/**
|
|
1885
|
+
* Enforce that await is only used on Promise values.
|
|
1886
|
+
See <https://biomejs.dev/linter/rules/use-await-thenable>
|
|
1887
|
+
*/
|
|
1888
|
+
useAwaitThenable?: UseAwaitThenableConfiguration;
|
|
1889
|
+
/**
|
|
1874
1890
|
* Enforce consistent arrow function bodies.
|
|
1875
|
-
See https://biomejs.dev/linter/rules/use-consistent-arrow-return
|
|
1891
|
+
See <https://biomejs.dev/linter/rules/use-consistent-arrow-return>
|
|
1876
1892
|
*/
|
|
1877
1893
|
useConsistentArrowReturn?: UseConsistentArrowReturnConfiguration;
|
|
1878
1894
|
/**
|
|
1879
1895
|
* Require all descriptions to follow the same style (either block or inline) to maintain consistency and improve readability across the schema.
|
|
1880
|
-
See https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions
|
|
1896
|
+
See <https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions>
|
|
1881
1897
|
*/
|
|
1882
1898
|
useConsistentGraphqlDescriptions?: UseConsistentGraphqlDescriptionsConfiguration;
|
|
1883
1899
|
/**
|
|
1884
1900
|
* Require the @deprecated directive to specify a deletion date.
|
|
1885
|
-
See https://biomejs.dev/linter/rules/use-deprecated-date
|
|
1901
|
+
See <https://biomejs.dev/linter/rules/use-deprecated-date>
|
|
1886
1902
|
*/
|
|
1887
1903
|
useDeprecatedDate?: UseDeprecatedDateConfiguration;
|
|
1888
1904
|
/**
|
|
1905
|
+
* Require destructuring from arrays and/or objects.
|
|
1906
|
+
See <https://biomejs.dev/linter/rules/use-destructuring>
|
|
1907
|
+
*/
|
|
1908
|
+
useDestructuring?: UseDestructuringConfiguration;
|
|
1909
|
+
/**
|
|
1889
1910
|
* Require switch-case statements to be exhaustive.
|
|
1890
|
-
See https://biomejs.dev/linter/rules/use-exhaustive-switch-cases
|
|
1911
|
+
See <https://biomejs.dev/linter/rules/use-exhaustive-switch-cases>
|
|
1891
1912
|
*/
|
|
1892
1913
|
useExhaustiveSwitchCases?: UseExhaustiveSwitchCasesConfiguration;
|
|
1893
1914
|
/**
|
|
1894
1915
|
* Enforce types in functions, methods, variables, and parameters.
|
|
1895
|
-
See https://biomejs.dev/linter/rules/use-explicit-type
|
|
1916
|
+
See <https://biomejs.dev/linter/rules/use-explicit-type>
|
|
1896
1917
|
*/
|
|
1897
1918
|
useExplicitType?: UseExplicitTypeConfiguration;
|
|
1898
1919
|
/**
|
|
1899
1920
|
* Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.
|
|
1900
|
-
See https://biomejs.dev/linter/rules/use-find
|
|
1921
|
+
See <https://biomejs.dev/linter/rules/use-find>
|
|
1901
1922
|
*/
|
|
1902
1923
|
useFind?: UseFindConfiguration;
|
|
1903
1924
|
/**
|
|
1904
1925
|
* Enforce a maximum number of parameters in function definitions.
|
|
1905
|
-
See https://biomejs.dev/linter/rules/use-max-params
|
|
1926
|
+
See <https://biomejs.dev/linter/rules/use-max-params>
|
|
1906
1927
|
*/
|
|
1907
1928
|
useMaxParams?: UseMaxParamsConfiguration;
|
|
1908
1929
|
/**
|
|
1909
1930
|
* Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
|
|
1910
|
-
See https://biomejs.dev/linter/rules/use-qwik-method-usage
|
|
1931
|
+
See <https://biomejs.dev/linter/rules/use-qwik-method-usage>
|
|
1911
1932
|
*/
|
|
1912
1933
|
useQwikMethodUsage?: UseQwikMethodUsageConfiguration;
|
|
1913
1934
|
/**
|
|
1914
1935
|
* Disallow unserializable expressions in Qwik dollar ($) scopes.
|
|
1915
|
-
See https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope
|
|
1936
|
+
See <https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope>
|
|
1916
1937
|
*/
|
|
1917
1938
|
useQwikValidLexicalScope?: UseQwikValidLexicalScopeConfiguration;
|
|
1918
1939
|
/**
|
|
1940
|
+
* Enforce RegExp#exec over String#match if no global flag is provided.
|
|
1941
|
+
See <https://biomejs.dev/linter/rules/use-regexp-exec>
|
|
1942
|
+
*/
|
|
1943
|
+
useRegexpExec?: UseRegexpExecConfiguration;
|
|
1944
|
+
/**
|
|
1945
|
+
* Enforce the presence of required scripts in package.json.
|
|
1946
|
+
See <https://biomejs.dev/linter/rules/use-required-scripts>
|
|
1947
|
+
*/
|
|
1948
|
+
useRequiredScripts?: UseRequiredScriptsConfiguration;
|
|
1949
|
+
/**
|
|
1919
1950
|
* Enforce the sorting of CSS utility classes.
|
|
1920
|
-
See https://biomejs.dev/linter/rules/use-sorted-classes
|
|
1951
|
+
See <https://biomejs.dev/linter/rules/use-sorted-classes>
|
|
1921
1952
|
*/
|
|
1922
1953
|
useSortedClasses?: UseSortedClassesConfiguration;
|
|
1923
1954
|
/**
|
|
1924
1955
|
* Enforce the use of the spread operator over .apply().
|
|
1925
|
-
See https://biomejs.dev/linter/rules/use-spread
|
|
1956
|
+
See <https://biomejs.dev/linter/rules/use-spread>
|
|
1926
1957
|
*/
|
|
1927
1958
|
useSpread?: UseSpreadConfiguration;
|
|
1928
1959
|
/**
|
|
1929
1960
|
* Enforce unique operation names across a GraphQL document.
|
|
1930
|
-
See https://biomejs.dev/linter/rules/use-unique-graphql-operation-name
|
|
1961
|
+
See <https://biomejs.dev/linter/rules/use-unique-graphql-operation-name>
|
|
1931
1962
|
*/
|
|
1932
1963
|
useUniqueGraphqlOperationName?: UseUniqueGraphqlOperationNameConfiguration;
|
|
1933
1964
|
/**
|
|
1934
1965
|
* Enforce specific order of Vue compiler macros.
|
|
1935
|
-
See https://biomejs.dev/linter/rules/use-vue-define-macros-order
|
|
1966
|
+
See <https://biomejs.dev/linter/rules/use-vue-define-macros-order>
|
|
1936
1967
|
*/
|
|
1937
1968
|
useVueDefineMacrosOrder?: UseVueDefineMacrosOrderConfiguration;
|
|
1938
1969
|
/**
|
|
1939
1970
|
* Enforce hyphenated (kebab-case) attribute names in Vue templates.
|
|
1940
|
-
See https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes
|
|
1971
|
+
See <https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes>
|
|
1941
1972
|
*/
|
|
1942
1973
|
useVueHyphenatedAttributes?: UseVueHyphenatedAttributesConfiguration;
|
|
1943
1974
|
/**
|
|
1944
1975
|
* Enforce multi-word component names in Vue components.
|
|
1945
|
-
See https://biomejs.dev/linter/rules/use-vue-multi-word-component-names
|
|
1976
|
+
See <https://biomejs.dev/linter/rules/use-vue-multi-word-component-names>
|
|
1946
1977
|
*/
|
|
1947
1978
|
useVueMultiWordComponentNames?: UseVueMultiWordComponentNamesConfiguration;
|
|
1948
1979
|
/**
|
|
1949
1980
|
* Forbids v-bind directives with missing arguments or invalid modifiers.
|
|
1950
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-bind
|
|
1981
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-bind>
|
|
1951
1982
|
*/
|
|
1952
1983
|
useVueValidVBind?: UseVueValidVBindConfiguration;
|
|
1953
1984
|
/**
|
|
1954
1985
|
* Enforce valid usage of v-else.
|
|
1955
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-else
|
|
1986
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-else>
|
|
1956
1987
|
*/
|
|
1957
1988
|
useVueValidVElse?: UseVueValidVElseConfiguration;
|
|
1958
1989
|
/**
|
|
1959
1990
|
* Enforce valid v-else-if directives.
|
|
1960
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-else-if
|
|
1991
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-else-if>
|
|
1961
1992
|
*/
|
|
1962
1993
|
useVueValidVElseIf?: UseVueValidVElseIfConfiguration;
|
|
1963
1994
|
/**
|
|
1964
1995
|
* Enforce valid v-html directives.
|
|
1965
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-html
|
|
1996
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-html>
|
|
1966
1997
|
*/
|
|
1967
1998
|
useVueValidVHtml?: UseVueValidVHtmlConfiguration;
|
|
1968
1999
|
/**
|
|
1969
2000
|
* Enforces valid v-if usage for Vue templates.
|
|
1970
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-if
|
|
2001
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-if>
|
|
1971
2002
|
*/
|
|
1972
2003
|
useVueValidVIf?: UseVueValidVIfConfiguration;
|
|
1973
2004
|
/**
|
|
1974
2005
|
* Enforce valid v-on directives with proper arguments, modifiers, and handlers.
|
|
1975
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-on
|
|
2006
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-on>
|
|
1976
2007
|
*/
|
|
1977
2008
|
useVueValidVOn?: UseVueValidVOnConfiguration;
|
|
1978
2009
|
/**
|
|
1979
2010
|
* Enforce valid v-text Vue directives.
|
|
1980
|
-
See https://biomejs.dev/linter/rules/use-vue-valid-v-text
|
|
2011
|
+
See <https://biomejs.dev/linter/rules/use-vue-valid-v-text>
|
|
1981
2012
|
*/
|
|
1982
2013
|
useVueValidVText?: UseVueValidVTextConfiguration;
|
|
1983
2014
|
}
|
|
1984
2015
|
interface Performance {
|
|
1985
2016
|
/**
|
|
1986
2017
|
* Disallow the use of spread (...) syntax on accumulators.
|
|
1987
|
-
See https://biomejs.dev/linter/rules/no-accumulating-spread
|
|
2018
|
+
See <https://biomejs.dev/linter/rules/no-accumulating-spread>
|
|
1988
2019
|
*/
|
|
1989
2020
|
noAccumulatingSpread?: NoAccumulatingSpreadConfiguration;
|
|
1990
2021
|
/**
|
|
1991
2022
|
* Disallow await inside loops.
|
|
1992
|
-
See https://biomejs.dev/linter/rules/no-await-in-loops
|
|
2023
|
+
See <https://biomejs.dev/linter/rules/no-await-in-loops>
|
|
1993
2024
|
*/
|
|
1994
2025
|
noAwaitInLoops?: NoAwaitInLoopsConfiguration;
|
|
1995
2026
|
/**
|
|
1996
2027
|
* Disallow the use of barrel file.
|
|
1997
|
-
See https://biomejs.dev/linter/rules/no-barrel-file
|
|
2028
|
+
See <https://biomejs.dev/linter/rules/no-barrel-file>
|
|
1998
2029
|
*/
|
|
1999
2030
|
noBarrelFile?: NoBarrelFileConfiguration;
|
|
2000
2031
|
/**
|
|
2001
2032
|
* Disallow the use of the delete operator.
|
|
2002
|
-
See https://biomejs.dev/linter/rules/no-delete
|
|
2033
|
+
See <https://biomejs.dev/linter/rules/no-delete>
|
|
2003
2034
|
*/
|
|
2004
2035
|
noDelete?: NoDeleteConfiguration;
|
|
2005
2036
|
/**
|
|
2006
2037
|
* Disallow accessing namespace imports dynamically.
|
|
2007
|
-
See https://biomejs.dev/linter/rules/no-dynamic-namespace-import-access
|
|
2038
|
+
See <https://biomejs.dev/linter/rules/no-dynamic-namespace-import-access>
|
|
2008
2039
|
*/
|
|
2009
2040
|
noDynamicNamespaceImportAccess?: NoDynamicNamespaceImportAccessConfiguration;
|
|
2010
2041
|
/**
|
|
2011
2042
|
* Prevent usage of \<img> element in a Next.js project.
|
|
2012
|
-
See https://biomejs.dev/linter/rules/no-img-element
|
|
2043
|
+
See <https://biomejs.dev/linter/rules/no-img-element>
|
|
2013
2044
|
*/
|
|
2014
2045
|
noImgElement?: NoImgElementConfiguration;
|
|
2015
2046
|
/**
|
|
2016
2047
|
* Disallow the use of namespace imports.
|
|
2017
|
-
See https://biomejs.dev/linter/rules/no-namespace-import
|
|
2048
|
+
See <https://biomejs.dev/linter/rules/no-namespace-import>
|
|
2018
2049
|
*/
|
|
2019
2050
|
noNamespaceImport?: NoNamespaceImportConfiguration;
|
|
2020
2051
|
/**
|
|
2021
2052
|
* Avoid re-export all.
|
|
2022
|
-
See https://biomejs.dev/linter/rules/no-re-export-all
|
|
2053
|
+
See <https://biomejs.dev/linter/rules/no-re-export-all>
|
|
2023
2054
|
*/
|
|
2024
2055
|
noReExportAll?: NoReExportAllConfiguration;
|
|
2025
2056
|
/**
|
|
2026
2057
|
* Prevent duplicate polyfills from Polyfill.io.
|
|
2027
|
-
See https://biomejs.dev/linter/rules/no-unwanted-polyfillio
|
|
2058
|
+
See <https://biomejs.dev/linter/rules/no-unwanted-polyfillio>
|
|
2028
2059
|
*/
|
|
2029
2060
|
noUnwantedPolyfillio?: NoUnwantedPolyfillioConfiguration;
|
|
2030
2061
|
/**
|
|
@@ -2033,44 +2064,44 @@ See https://biomejs.dev/linter/rules/no-unwanted-polyfillio
|
|
|
2033
2064
|
recommended?: boolean;
|
|
2034
2065
|
/**
|
|
2035
2066
|
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
2036
|
-
See https://biomejs.dev/linter/rules/use-google-font-preconnect
|
|
2067
|
+
See <https://biomejs.dev/linter/rules/use-google-font-preconnect>
|
|
2037
2068
|
*/
|
|
2038
2069
|
useGoogleFontPreconnect?: UseGoogleFontPreconnectConfiguration;
|
|
2039
2070
|
/**
|
|
2040
2071
|
* Enforce using Solid's \<For /> component for mapping an array to JSX elements.
|
|
2041
|
-
See https://biomejs.dev/linter/rules/use-solid-for-component
|
|
2072
|
+
See <https://biomejs.dev/linter/rules/use-solid-for-component>
|
|
2042
2073
|
*/
|
|
2043
2074
|
useSolidForComponent?: UseSolidForComponentConfiguration;
|
|
2044
2075
|
/**
|
|
2045
2076
|
* Require regex literals to be declared at the top level.
|
|
2046
|
-
See https://biomejs.dev/linter/rules/use-top-level-regex
|
|
2077
|
+
See <https://biomejs.dev/linter/rules/use-top-level-regex>
|
|
2047
2078
|
*/
|
|
2048
2079
|
useTopLevelRegex?: UseTopLevelRegexConfiguration;
|
|
2049
2080
|
}
|
|
2050
2081
|
interface Security {
|
|
2051
2082
|
/**
|
|
2052
2083
|
* Disallow target="_blank" attribute without rel="noopener".
|
|
2053
|
-
See https://biomejs.dev/linter/rules/no-blank-target
|
|
2084
|
+
See <https://biomejs.dev/linter/rules/no-blank-target>
|
|
2054
2085
|
*/
|
|
2055
2086
|
noBlankTarget?: NoBlankTargetConfiguration;
|
|
2056
2087
|
/**
|
|
2057
2088
|
* Prevent the usage of dangerous JSX props.
|
|
2058
|
-
See https://biomejs.dev/linter/rules/no-dangerously-set-inner-html
|
|
2089
|
+
See <https://biomejs.dev/linter/rules/no-dangerously-set-inner-html>
|
|
2059
2090
|
*/
|
|
2060
2091
|
noDangerouslySetInnerHtml?: NoDangerouslySetInnerHtmlConfiguration;
|
|
2061
2092
|
/**
|
|
2062
2093
|
* Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
|
|
2063
|
-
See https://biomejs.dev/linter/rules/no-dangerously-set-inner-html-with-children
|
|
2094
|
+
See <https://biomejs.dev/linter/rules/no-dangerously-set-inner-html-with-children>
|
|
2064
2095
|
*/
|
|
2065
2096
|
noDangerouslySetInnerHtmlWithChildren?: NoDangerouslySetInnerHtmlWithChildrenConfiguration;
|
|
2066
2097
|
/**
|
|
2067
2098
|
* Disallow the use of global eval().
|
|
2068
|
-
See https://biomejs.dev/linter/rules/no-global-eval
|
|
2099
|
+
See <https://biomejs.dev/linter/rules/no-global-eval>
|
|
2069
2100
|
*/
|
|
2070
2101
|
noGlobalEval?: NoGlobalEvalConfiguration;
|
|
2071
2102
|
/**
|
|
2072
2103
|
* Disallow usage of sensitive data such as API keys and tokens.
|
|
2073
|
-
See https://biomejs.dev/linter/rules/no-secrets
|
|
2104
|
+
See <https://biomejs.dev/linter/rules/no-secrets>
|
|
2074
2105
|
*/
|
|
2075
2106
|
noSecrets?: NoSecretsConfiguration;
|
|
2076
2107
|
/**
|
|
@@ -2081,132 +2112,132 @@ See https://biomejs.dev/linter/rules/no-secrets
|
|
|
2081
2112
|
interface Style {
|
|
2082
2113
|
/**
|
|
2083
2114
|
* Disallow use of CommonJs module system in favor of ESM style imports.
|
|
2084
|
-
See https://biomejs.dev/linter/rules/no-common-js
|
|
2115
|
+
See <https://biomejs.dev/linter/rules/no-common-js>
|
|
2085
2116
|
*/
|
|
2086
2117
|
noCommonJs?: NoCommonJsConfiguration;
|
|
2087
2118
|
/**
|
|
2088
2119
|
* Disallow default exports.
|
|
2089
|
-
See https://biomejs.dev/linter/rules/no-default-export
|
|
2120
|
+
See <https://biomejs.dev/linter/rules/no-default-export>
|
|
2090
2121
|
*/
|
|
2091
2122
|
noDefaultExport?: NoDefaultExportConfiguration;
|
|
2092
2123
|
/**
|
|
2093
2124
|
* Disallow a lower specificity selector from coming after a higher specificity selector.
|
|
2094
|
-
See https://biomejs.dev/linter/rules/no-descending-specificity
|
|
2125
|
+
See <https://biomejs.dev/linter/rules/no-descending-specificity>
|
|
2095
2126
|
*/
|
|
2096
2127
|
noDescendingSpecificity?: NoDescendingSpecificityConfiguration;
|
|
2097
2128
|
/**
|
|
2098
2129
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
2099
|
-
See https://biomejs.dev/linter/rules/no-done-callback
|
|
2130
|
+
See <https://biomejs.dev/linter/rules/no-done-callback>
|
|
2100
2131
|
*/
|
|
2101
2132
|
noDoneCallback?: NoDoneCallbackConfiguration;
|
|
2102
2133
|
/**
|
|
2103
2134
|
* Disallow TypeScript enum.
|
|
2104
|
-
See https://biomejs.dev/linter/rules/no-enum
|
|
2135
|
+
See <https://biomejs.dev/linter/rules/no-enum>
|
|
2105
2136
|
*/
|
|
2106
2137
|
noEnum?: NoEnumConfiguration;
|
|
2107
2138
|
/**
|
|
2108
2139
|
* Disallow exporting an imported variable.
|
|
2109
|
-
See https://biomejs.dev/linter/rules/no-exported-imports
|
|
2140
|
+
See <https://biomejs.dev/linter/rules/no-exported-imports>
|
|
2110
2141
|
*/
|
|
2111
2142
|
noExportedImports?: NoExportedImportsConfiguration;
|
|
2112
2143
|
/**
|
|
2113
2144
|
* Prevent usage of \<head> element in a Next.js project.
|
|
2114
|
-
See https://biomejs.dev/linter/rules/no-head-element
|
|
2145
|
+
See <https://biomejs.dev/linter/rules/no-head-element>
|
|
2115
2146
|
*/
|
|
2116
2147
|
noHeadElement?: NoHeadElementConfiguration;
|
|
2117
2148
|
/**
|
|
2118
2149
|
* Disallow implicit true values on JSX boolean attributes.
|
|
2119
|
-
See https://biomejs.dev/linter/rules/no-implicit-boolean
|
|
2150
|
+
See <https://biomejs.dev/linter/rules/no-implicit-boolean>
|
|
2120
2151
|
*/
|
|
2121
2152
|
noImplicitBoolean?: NoImplicitBooleanConfiguration;
|
|
2122
2153
|
/**
|
|
2123
2154
|
* Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.
|
|
2124
|
-
See https://biomejs.dev/linter/rules/no-inferrable-types
|
|
2155
|
+
See <https://biomejs.dev/linter/rules/no-inferrable-types>
|
|
2125
2156
|
*/
|
|
2126
2157
|
noInferrableTypes?: NoInferrableTypesConfiguration;
|
|
2127
2158
|
/**
|
|
2128
2159
|
* Reports usage of "magic numbers" — numbers used directly instead of being assigned to named constants.
|
|
2129
|
-
See https://biomejs.dev/linter/rules/no-magic-numbers
|
|
2160
|
+
See <https://biomejs.dev/linter/rules/no-magic-numbers>
|
|
2130
2161
|
*/
|
|
2131
2162
|
noMagicNumbers?: NoMagicNumbersConfiguration;
|
|
2132
2163
|
/**
|
|
2133
2164
|
* Disallow the use of TypeScript's namespaces.
|
|
2134
|
-
See https://biomejs.dev/linter/rules/no-namespace
|
|
2165
|
+
See <https://biomejs.dev/linter/rules/no-namespace>
|
|
2135
2166
|
*/
|
|
2136
2167
|
noNamespace?: NoNamespaceConfiguration;
|
|
2137
2168
|
/**
|
|
2138
2169
|
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
2139
|
-
See https://biomejs.dev/linter/rules/no-negation-else
|
|
2170
|
+
See <https://biomejs.dev/linter/rules/no-negation-else>
|
|
2140
2171
|
*/
|
|
2141
2172
|
noNegationElse?: NoNegationElseConfiguration;
|
|
2142
2173
|
/**
|
|
2143
2174
|
* Disallow nested ternary expressions.
|
|
2144
|
-
See https://biomejs.dev/linter/rules/no-nested-ternary
|
|
2175
|
+
See <https://biomejs.dev/linter/rules/no-nested-ternary>
|
|
2145
2176
|
*/
|
|
2146
2177
|
noNestedTernary?: NoNestedTernaryConfiguration;
|
|
2147
2178
|
/**
|
|
2148
2179
|
* Disallow non-null assertions using the ! postfix operator.
|
|
2149
|
-
See https://biomejs.dev/linter/rules/no-non-null-assertion
|
|
2180
|
+
See <https://biomejs.dev/linter/rules/no-non-null-assertion>
|
|
2150
2181
|
*/
|
|
2151
2182
|
noNonNullAssertion?: NoNonNullAssertionConfiguration;
|
|
2152
2183
|
/**
|
|
2153
2184
|
* Disallow reassigning function parameters.
|
|
2154
|
-
See https://biomejs.dev/linter/rules/no-parameter-assign
|
|
2185
|
+
See <https://biomejs.dev/linter/rules/no-parameter-assign>
|
|
2155
2186
|
*/
|
|
2156
2187
|
noParameterAssign?: NoParameterAssignConfiguration;
|
|
2157
2188
|
/**
|
|
2158
2189
|
* Disallow the use of parameter properties in class constructors.
|
|
2159
|
-
See https://biomejs.dev/linter/rules/no-parameter-properties
|
|
2190
|
+
See <https://biomejs.dev/linter/rules/no-parameter-properties>
|
|
2160
2191
|
*/
|
|
2161
2192
|
noParameterProperties?: NoParameterPropertiesConfiguration;
|
|
2162
2193
|
/**
|
|
2163
2194
|
* Disallow the use of process.env.
|
|
2164
|
-
See https://biomejs.dev/linter/rules/no-process-env
|
|
2195
|
+
See <https://biomejs.dev/linter/rules/no-process-env>
|
|
2165
2196
|
*/
|
|
2166
2197
|
noProcessEnv?: NoProcessEnvConfiguration;
|
|
2167
2198
|
/**
|
|
2168
2199
|
* This rule allows you to specify global variable names that you don’t want to use in your application.
|
|
2169
|
-
See https://biomejs.dev/linter/rules/no-restricted-globals
|
|
2200
|
+
See <https://biomejs.dev/linter/rules/no-restricted-globals>
|
|
2170
2201
|
*/
|
|
2171
2202
|
noRestrictedGlobals?: NoRestrictedGlobalsConfiguration;
|
|
2172
2203
|
/**
|
|
2173
2204
|
* Disallow specified modules when loaded by import or require.
|
|
2174
|
-
See https://biomejs.dev/linter/rules/no-restricted-imports
|
|
2205
|
+
See <https://biomejs.dev/linter/rules/no-restricted-imports>
|
|
2175
2206
|
*/
|
|
2176
2207
|
noRestrictedImports?: NoRestrictedImportsConfiguration;
|
|
2177
2208
|
/**
|
|
2178
2209
|
* Disallow user defined types.
|
|
2179
|
-
See https://biomejs.dev/linter/rules/no-restricted-types
|
|
2210
|
+
See <https://biomejs.dev/linter/rules/no-restricted-types>
|
|
2180
2211
|
*/
|
|
2181
2212
|
noRestrictedTypes?: NoRestrictedTypesConfiguration;
|
|
2182
2213
|
/**
|
|
2183
2214
|
* Disallow the use of constants which its value is the upper-case version of its name.
|
|
2184
|
-
See https://biomejs.dev/linter/rules/no-shouty-constants
|
|
2215
|
+
See <https://biomejs.dev/linter/rules/no-shouty-constants>
|
|
2185
2216
|
*/
|
|
2186
2217
|
noShoutyConstants?: NoShoutyConstantsConfiguration;
|
|
2187
2218
|
/**
|
|
2188
2219
|
* Enforce the use of String.slice() over String.substr() and String.substring().
|
|
2189
|
-
See https://biomejs.dev/linter/rules/no-substr
|
|
2220
|
+
See <https://biomejs.dev/linter/rules/no-substr>
|
|
2190
2221
|
*/
|
|
2191
2222
|
noSubstr?: NoSubstrConfiguration;
|
|
2192
2223
|
/**
|
|
2193
2224
|
* Disallow template literals if interpolation and special-character handling are not needed.
|
|
2194
|
-
See https://biomejs.dev/linter/rules/no-unused-template-literal
|
|
2225
|
+
See <https://biomejs.dev/linter/rules/no-unused-template-literal>
|
|
2195
2226
|
*/
|
|
2196
2227
|
noUnusedTemplateLiteral?: NoUnusedTemplateLiteralConfiguration;
|
|
2197
2228
|
/**
|
|
2198
2229
|
* Disallow else block when the if block breaks early.
|
|
2199
|
-
See https://biomejs.dev/linter/rules/no-useless-else
|
|
2230
|
+
See <https://biomejs.dev/linter/rules/no-useless-else>
|
|
2200
2231
|
*/
|
|
2201
2232
|
noUselessElse?: NoUselessElseConfiguration;
|
|
2202
2233
|
/**
|
|
2203
2234
|
* Disallow use of @value rule in css modules.
|
|
2204
|
-
See https://biomejs.dev/linter/rules/no-value-at-rule
|
|
2235
|
+
See <https://biomejs.dev/linter/rules/no-value-at-rule>
|
|
2205
2236
|
*/
|
|
2206
2237
|
noValueAtRule?: NoValueAtRuleConfiguration;
|
|
2207
2238
|
/**
|
|
2208
2239
|
* Disallow the use of yoda expressions.
|
|
2209
|
-
See https://biomejs.dev/linter/rules/no-yoda-expression
|
|
2240
|
+
See <https://biomejs.dev/linter/rules/no-yoda-expression>
|
|
2210
2241
|
*/
|
|
2211
2242
|
noYodaExpression?: NoYodaExpressionConfiguration;
|
|
2212
2243
|
/**
|
|
@@ -2215,644 +2246,644 @@ See https://biomejs.dev/linter/rules/no-yoda-expression
|
|
|
2215
2246
|
recommended?: boolean;
|
|
2216
2247
|
/**
|
|
2217
2248
|
* Disallow Array constructors.
|
|
2218
|
-
See https://biomejs.dev/linter/rules/use-array-literals
|
|
2249
|
+
See <https://biomejs.dev/linter/rules/use-array-literals>
|
|
2219
2250
|
*/
|
|
2220
2251
|
useArrayLiterals?: UseArrayLiteralsConfiguration;
|
|
2221
2252
|
/**
|
|
2222
2253
|
* Enforce the use of as const over literal type and type annotation.
|
|
2223
|
-
See https://biomejs.dev/linter/rules/use-as-const-assertion
|
|
2254
|
+
See <https://biomejs.dev/linter/rules/use-as-const-assertion>
|
|
2224
2255
|
*/
|
|
2225
2256
|
useAsConstAssertion?: UseAsConstAssertionConfiguration;
|
|
2226
2257
|
/**
|
|
2227
2258
|
* Use at() instead of integer index access.
|
|
2228
|
-
See https://biomejs.dev/linter/rules/use-at-index
|
|
2259
|
+
See <https://biomejs.dev/linter/rules/use-at-index>
|
|
2229
2260
|
*/
|
|
2230
2261
|
useAtIndex?: UseAtIndexConfiguration;
|
|
2231
2262
|
/**
|
|
2232
2263
|
* Requires following curly brace conventions.
|
|
2233
|
-
See https://biomejs.dev/linter/rules/use-block-statements
|
|
2264
|
+
See <https://biomejs.dev/linter/rules/use-block-statements>
|
|
2234
2265
|
*/
|
|
2235
2266
|
useBlockStatements?: UseBlockStatementsConfiguration;
|
|
2236
2267
|
/**
|
|
2237
2268
|
* Enforce using else if instead of nested if in else clauses.
|
|
2238
|
-
See https://biomejs.dev/linter/rules/use-collapsed-else-if
|
|
2269
|
+
See <https://biomejs.dev/linter/rules/use-collapsed-else-if>
|
|
2239
2270
|
*/
|
|
2240
2271
|
useCollapsedElseIf?: UseCollapsedElseIfConfiguration;
|
|
2241
2272
|
/**
|
|
2242
2273
|
* Enforce using single if instead of nested if clauses.
|
|
2243
|
-
See https://biomejs.dev/linter/rules/use-collapsed-if
|
|
2274
|
+
See <https://biomejs.dev/linter/rules/use-collapsed-if>
|
|
2244
2275
|
*/
|
|
2245
2276
|
useCollapsedIf?: UseCollapsedIfConfiguration;
|
|
2246
2277
|
/**
|
|
2247
2278
|
* Enforce declaring components only within modules that export React Components exclusively.
|
|
2248
|
-
See https://biomejs.dev/linter/rules/use-component-export-only-modules
|
|
2279
|
+
See <https://biomejs.dev/linter/rules/use-component-export-only-modules>
|
|
2249
2280
|
*/
|
|
2250
2281
|
useComponentExportOnlyModules?: UseComponentExportOnlyModulesConfiguration;
|
|
2251
2282
|
/**
|
|
2252
2283
|
* Require consistently using either T\[] or Array\<T>.
|
|
2253
|
-
See https://biomejs.dev/linter/rules/use-consistent-array-type
|
|
2284
|
+
See <https://biomejs.dev/linter/rules/use-consistent-array-type>
|
|
2254
2285
|
*/
|
|
2255
2286
|
useConsistentArrayType?: UseConsistentArrayTypeConfiguration;
|
|
2256
2287
|
/**
|
|
2257
2288
|
* Enforce the use of new for all builtins, except String, Number and Boolean.
|
|
2258
|
-
See https://biomejs.dev/linter/rules/use-consistent-builtin-instantiation
|
|
2289
|
+
See <https://biomejs.dev/linter/rules/use-consistent-builtin-instantiation>
|
|
2259
2290
|
*/
|
|
2260
2291
|
useConsistentBuiltinInstantiation?: UseConsistentBuiltinInstantiationConfiguration;
|
|
2261
2292
|
/**
|
|
2262
2293
|
* This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
|
|
2263
|
-
See https://biomejs.dev/linter/rules/use-consistent-curly-braces
|
|
2294
|
+
See <https://biomejs.dev/linter/rules/use-consistent-curly-braces>
|
|
2264
2295
|
*/
|
|
2265
2296
|
useConsistentCurlyBraces?: UseConsistentCurlyBracesConfiguration;
|
|
2266
2297
|
/**
|
|
2267
2298
|
* Require consistent accessibility modifiers on class properties and methods.
|
|
2268
|
-
See https://biomejs.dev/linter/rules/use-consistent-member-accessibility
|
|
2299
|
+
See <https://biomejs.dev/linter/rules/use-consistent-member-accessibility>
|
|
2269
2300
|
*/
|
|
2270
2301
|
useConsistentMemberAccessibility?: UseConsistentMemberAccessibilityConfiguration;
|
|
2271
2302
|
/**
|
|
2272
2303
|
* Require the consistent declaration of object literals. Defaults to explicit definitions.
|
|
2273
|
-
See https://biomejs.dev/linter/rules/use-consistent-object-definitions
|
|
2304
|
+
See <https://biomejs.dev/linter/rules/use-consistent-object-definitions>
|
|
2274
2305
|
*/
|
|
2275
2306
|
useConsistentObjectDefinitions?: UseConsistentObjectDefinitionsConfiguration;
|
|
2276
2307
|
/**
|
|
2277
2308
|
* Enforce type definitions to consistently use either interface or type.
|
|
2278
|
-
See https://biomejs.dev/linter/rules/use-consistent-type-definitions
|
|
2309
|
+
See <https://biomejs.dev/linter/rules/use-consistent-type-definitions>
|
|
2279
2310
|
*/
|
|
2280
2311
|
useConsistentTypeDefinitions?: UseConsistentTypeDefinitionsConfiguration;
|
|
2281
2312
|
/**
|
|
2282
2313
|
* Require const declarations for variables that are only assigned once.
|
|
2283
|
-
See https://biomejs.dev/linter/rules/use-const
|
|
2314
|
+
See <https://biomejs.dev/linter/rules/use-const>
|
|
2284
2315
|
*/
|
|
2285
2316
|
useConst?: UseConstConfiguration;
|
|
2286
2317
|
/**
|
|
2287
2318
|
* Enforce default function parameters and optional function parameters to be last.
|
|
2288
|
-
See https://biomejs.dev/linter/rules/use-default-parameter-last
|
|
2319
|
+
See <https://biomejs.dev/linter/rules/use-default-parameter-last>
|
|
2289
2320
|
*/
|
|
2290
2321
|
useDefaultParameterLast?: UseDefaultParameterLastConfiguration;
|
|
2291
2322
|
/**
|
|
2292
2323
|
* Require the default clause in switch statements.
|
|
2293
|
-
See https://biomejs.dev/linter/rules/use-default-switch-clause
|
|
2324
|
+
See <https://biomejs.dev/linter/rules/use-default-switch-clause>
|
|
2294
2325
|
*/
|
|
2295
2326
|
useDefaultSwitchClause?: UseDefaultSwitchClauseConfiguration;
|
|
2296
2327
|
/**
|
|
2297
2328
|
* Require specifying the reason argument when using @deprecated directive.
|
|
2298
|
-
See https://biomejs.dev/linter/rules/use-deprecated-reason
|
|
2329
|
+
See <https://biomejs.dev/linter/rules/use-deprecated-reason>
|
|
2299
2330
|
*/
|
|
2300
2331
|
useDeprecatedReason?: UseDeprecatedReasonConfiguration;
|
|
2301
2332
|
/**
|
|
2302
2333
|
* Require that each enum member value be explicitly initialized.
|
|
2303
|
-
See https://biomejs.dev/linter/rules/use-enum-initializers
|
|
2334
|
+
See <https://biomejs.dev/linter/rules/use-enum-initializers>
|
|
2304
2335
|
*/
|
|
2305
2336
|
useEnumInitializers?: UseEnumInitializersConfiguration;
|
|
2306
2337
|
/**
|
|
2307
2338
|
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
2308
|
-
See https://biomejs.dev/linter/rules/use-explicit-length-check
|
|
2339
|
+
See <https://biomejs.dev/linter/rules/use-explicit-length-check>
|
|
2309
2340
|
*/
|
|
2310
2341
|
useExplicitLengthCheck?: UseExplicitLengthCheckConfiguration;
|
|
2311
2342
|
/**
|
|
2312
2343
|
* Disallow the use of Math.pow in favor of the ** operator.
|
|
2313
|
-
See https://biomejs.dev/linter/rules/use-exponentiation-operator
|
|
2344
|
+
See <https://biomejs.dev/linter/rules/use-exponentiation-operator>
|
|
2314
2345
|
*/
|
|
2315
2346
|
useExponentiationOperator?: UseExponentiationOperatorConfiguration;
|
|
2316
2347
|
/**
|
|
2317
2348
|
* Promotes the use of export type for types.
|
|
2318
|
-
See https://biomejs.dev/linter/rules/use-export-type
|
|
2349
|
+
See <https://biomejs.dev/linter/rules/use-export-type>
|
|
2319
2350
|
*/
|
|
2320
2351
|
useExportType?: UseExportTypeConfiguration;
|
|
2321
2352
|
/**
|
|
2322
2353
|
* Require that all exports are declared after all non-export statements.
|
|
2323
|
-
See https://biomejs.dev/linter/rules/use-exports-last
|
|
2354
|
+
See <https://biomejs.dev/linter/rules/use-exports-last>
|
|
2324
2355
|
*/
|
|
2325
2356
|
useExportsLast?: UseExportsLastConfiguration;
|
|
2326
2357
|
/**
|
|
2327
2358
|
* Enforce naming conventions for JavaScript and TypeScript filenames.
|
|
2328
|
-
See https://biomejs.dev/linter/rules/use-filenaming-convention
|
|
2359
|
+
See <https://biomejs.dev/linter/rules/use-filenaming-convention>
|
|
2329
2360
|
*/
|
|
2330
2361
|
useFilenamingConvention?: UseFilenamingConventionConfiguration;
|
|
2331
2362
|
/**
|
|
2332
2363
|
* Prefer using for...of loops over standard for loops where possible.
|
|
2333
|
-
See https://biomejs.dev/linter/rules/use-for-of
|
|
2364
|
+
See <https://biomejs.dev/linter/rules/use-for-of>
|
|
2334
2365
|
*/
|
|
2335
2366
|
useForOf?: UseForOfConfiguration;
|
|
2336
2367
|
/**
|
|
2337
2368
|
* This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
|
|
2338
|
-
See https://biomejs.dev/linter/rules/use-fragment-syntax
|
|
2369
|
+
See <https://biomejs.dev/linter/rules/use-fragment-syntax>
|
|
2339
2370
|
*/
|
|
2340
2371
|
useFragmentSyntax?: UseFragmentSyntaxConfiguration;
|
|
2341
2372
|
/**
|
|
2342
2373
|
* Validates that all enum values are capitalized.
|
|
2343
|
-
See https://biomejs.dev/linter/rules/use-graphql-naming-convention
|
|
2374
|
+
See <https://biomejs.dev/linter/rules/use-graphql-naming-convention>
|
|
2344
2375
|
*/
|
|
2345
2376
|
useGraphqlNamingConvention?: UseGraphqlNamingConventionConfiguration;
|
|
2346
2377
|
/**
|
|
2347
2378
|
* Enforce that getters and setters for the same property are adjacent in class and object definitions.
|
|
2348
|
-
See https://biomejs.dev/linter/rules/use-grouped-accessor-pairs
|
|
2379
|
+
See <https://biomejs.dev/linter/rules/use-grouped-accessor-pairs>
|
|
2349
2380
|
*/
|
|
2350
2381
|
useGroupedAccessorPairs?: UseGroupedAccessorPairsConfiguration;
|
|
2351
2382
|
/**
|
|
2352
2383
|
* Promotes the use of import type for types.
|
|
2353
|
-
See https://biomejs.dev/linter/rules/use-import-type
|
|
2384
|
+
See <https://biomejs.dev/linter/rules/use-import-type>
|
|
2354
2385
|
*/
|
|
2355
2386
|
useImportType?: UseImportTypeConfiguration;
|
|
2356
2387
|
/**
|
|
2357
2388
|
* Require all enum members to be literal values.
|
|
2358
|
-
See https://biomejs.dev/linter/rules/use-literal-enum-members
|
|
2389
|
+
See <https://biomejs.dev/linter/rules/use-literal-enum-members>
|
|
2359
2390
|
*/
|
|
2360
2391
|
useLiteralEnumMembers?: UseLiteralEnumMembersConfiguration;
|
|
2361
2392
|
/**
|
|
2362
2393
|
* Enforce naming conventions for everything across a codebase.
|
|
2363
|
-
See https://biomejs.dev/linter/rules/use-naming-convention
|
|
2394
|
+
See <https://biomejs.dev/linter/rules/use-naming-convention>
|
|
2364
2395
|
*/
|
|
2365
2396
|
useNamingConvention?: UseNamingConventionConfiguration;
|
|
2366
2397
|
/**
|
|
2367
2398
|
* Promotes the usage of node:assert/strict over node:assert.
|
|
2368
|
-
See https://biomejs.dev/linter/rules/use-node-assert-strict
|
|
2399
|
+
See <https://biomejs.dev/linter/rules/use-node-assert-strict>
|
|
2369
2400
|
*/
|
|
2370
2401
|
useNodeAssertStrict?: UseNodeAssertStrictConfiguration;
|
|
2371
2402
|
/**
|
|
2372
2403
|
* Enforces using the node: protocol for Node.js builtin modules.
|
|
2373
|
-
See https://biomejs.dev/linter/rules/use-nodejs-import-protocol
|
|
2404
|
+
See <https://biomejs.dev/linter/rules/use-nodejs-import-protocol>
|
|
2374
2405
|
*/
|
|
2375
2406
|
useNodejsImportProtocol?: UseNodejsImportProtocolConfiguration;
|
|
2376
2407
|
/**
|
|
2377
2408
|
* Use the Number properties instead of global ones.
|
|
2378
|
-
See https://biomejs.dev/linter/rules/use-number-namespace
|
|
2409
|
+
See <https://biomejs.dev/linter/rules/use-number-namespace>
|
|
2379
2410
|
*/
|
|
2380
2411
|
useNumberNamespace?: UseNumberNamespaceConfiguration;
|
|
2381
2412
|
/**
|
|
2382
2413
|
* Enforce the use of numeric separators in numeric literals.
|
|
2383
|
-
See https://biomejs.dev/linter/rules/use-numeric-separators
|
|
2414
|
+
See <https://biomejs.dev/linter/rules/use-numeric-separators>
|
|
2384
2415
|
*/
|
|
2385
2416
|
useNumericSeparators?: UseNumericSeparatorsConfiguration;
|
|
2386
2417
|
/**
|
|
2387
2418
|
* Prefer object spread over Object.assign() when constructing new objects.
|
|
2388
|
-
See https://biomejs.dev/linter/rules/use-object-spread
|
|
2419
|
+
See <https://biomejs.dev/linter/rules/use-object-spread>
|
|
2389
2420
|
*/
|
|
2390
2421
|
useObjectSpread?: UseObjectSpreadConfiguration;
|
|
2391
2422
|
/**
|
|
2392
2423
|
* Enforce that components are defined as functions and never as classes.
|
|
2393
|
-
See https://biomejs.dev/linter/rules/use-react-function-components
|
|
2424
|
+
See <https://biomejs.dev/linter/rules/use-react-function-components>
|
|
2394
2425
|
*/
|
|
2395
2426
|
useReactFunctionComponents?: UseReactFunctionComponentsConfiguration;
|
|
2396
2427
|
/**
|
|
2397
2428
|
* Enforce marking members as readonly if they are never modified outside the constructor.
|
|
2398
|
-
See https://biomejs.dev/linter/rules/use-readonly-class-properties
|
|
2429
|
+
See <https://biomejs.dev/linter/rules/use-readonly-class-properties>
|
|
2399
2430
|
*/
|
|
2400
2431
|
useReadonlyClassProperties?: UseReadonlyClassPropertiesConfiguration;
|
|
2401
2432
|
/**
|
|
2402
2433
|
* Prevent extra closing tags for components without children.
|
|
2403
|
-
See https://biomejs.dev/linter/rules/use-self-closing-elements
|
|
2434
|
+
See <https://biomejs.dev/linter/rules/use-self-closing-elements>
|
|
2404
2435
|
*/
|
|
2405
2436
|
useSelfClosingElements?: UseSelfClosingElementsConfiguration;
|
|
2406
2437
|
/**
|
|
2407
2438
|
* Require assignment operator shorthand where possible.
|
|
2408
|
-
See https://biomejs.dev/linter/rules/use-shorthand-assign
|
|
2439
|
+
See <https://biomejs.dev/linter/rules/use-shorthand-assign>
|
|
2409
2440
|
*/
|
|
2410
2441
|
useShorthandAssign?: UseShorthandAssignConfiguration;
|
|
2411
2442
|
/**
|
|
2412
2443
|
* Enforce using function types instead of object type with call signatures.
|
|
2413
|
-
See https://biomejs.dev/linter/rules/use-shorthand-function-type
|
|
2444
|
+
See <https://biomejs.dev/linter/rules/use-shorthand-function-type>
|
|
2414
2445
|
*/
|
|
2415
2446
|
useShorthandFunctionType?: UseShorthandFunctionTypeConfiguration;
|
|
2416
2447
|
/**
|
|
2417
2448
|
* Disallow multiple variable declarations in the same variable statement.
|
|
2418
|
-
See https://biomejs.dev/linter/rules/use-single-var-declarator
|
|
2449
|
+
See <https://biomejs.dev/linter/rules/use-single-var-declarator>
|
|
2419
2450
|
*/
|
|
2420
2451
|
useSingleVarDeclarator?: UseSingleVarDeclaratorConfiguration;
|
|
2421
2452
|
/**
|
|
2422
2453
|
* Require a description parameter for the Symbol().
|
|
2423
|
-
See https://biomejs.dev/linter/rules/use-symbol-description
|
|
2454
|
+
See <https://biomejs.dev/linter/rules/use-symbol-description>
|
|
2424
2455
|
*/
|
|
2425
2456
|
useSymbolDescription?: UseSymbolDescriptionConfiguration;
|
|
2426
2457
|
/**
|
|
2427
2458
|
* Prefer template literals over string concatenation.
|
|
2428
|
-
See https://biomejs.dev/linter/rules/use-template
|
|
2459
|
+
See <https://biomejs.dev/linter/rules/use-template>
|
|
2429
2460
|
*/
|
|
2430
2461
|
useTemplate?: UseTemplateConfiguration;
|
|
2431
2462
|
/**
|
|
2432
2463
|
* Require new when throwing an error.
|
|
2433
|
-
See https://biomejs.dev/linter/rules/use-throw-new-error
|
|
2464
|
+
See <https://biomejs.dev/linter/rules/use-throw-new-error>
|
|
2434
2465
|
*/
|
|
2435
2466
|
useThrowNewError?: UseThrowNewErrorConfiguration;
|
|
2436
2467
|
/**
|
|
2437
2468
|
* Disallow throwing non-Error values.
|
|
2438
|
-
See https://biomejs.dev/linter/rules/use-throw-only-error
|
|
2469
|
+
See <https://biomejs.dev/linter/rules/use-throw-only-error>
|
|
2439
2470
|
*/
|
|
2440
2471
|
useThrowOnlyError?: UseThrowOnlyErrorConfiguration;
|
|
2441
2472
|
/**
|
|
2442
2473
|
* Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
|
|
2443
|
-
See https://biomejs.dev/linter/rules/use-trim-start-end
|
|
2474
|
+
See <https://biomejs.dev/linter/rules/use-trim-start-end>
|
|
2444
2475
|
*/
|
|
2445
2476
|
useTrimStartEnd?: UseTrimStartEndConfiguration;
|
|
2446
2477
|
/**
|
|
2447
2478
|
* Disallow overload signatures that can be unified into a single signature.
|
|
2448
|
-
See https://biomejs.dev/linter/rules/use-unified-type-signatures
|
|
2479
|
+
See <https://biomejs.dev/linter/rules/use-unified-type-signatures>
|
|
2449
2480
|
*/
|
|
2450
2481
|
useUnifiedTypeSignatures?: UseUnifiedTypeSignaturesConfiguration;
|
|
2451
2482
|
}
|
|
2452
2483
|
interface Suspicious {
|
|
2453
2484
|
/**
|
|
2454
2485
|
* Disallow the use of alert, confirm, and prompt.
|
|
2455
|
-
See https://biomejs.dev/linter/rules/no-alert
|
|
2486
|
+
See <https://biomejs.dev/linter/rules/no-alert>
|
|
2456
2487
|
*/
|
|
2457
2488
|
noAlert?: NoAlertConfiguration;
|
|
2458
2489
|
/**
|
|
2459
2490
|
* Use standard constants instead of approximated literals.
|
|
2460
|
-
See https://biomejs.dev/linter/rules/no-approximative-numeric-constant
|
|
2491
|
+
See <https://biomejs.dev/linter/rules/no-approximative-numeric-constant>
|
|
2461
2492
|
*/
|
|
2462
2493
|
noApproximativeNumericConstant?: NoApproximativeNumericConstantConfiguration;
|
|
2463
2494
|
/**
|
|
2464
2495
|
* Discourage the usage of Array index in keys.
|
|
2465
|
-
See https://biomejs.dev/linter/rules/no-array-index-key
|
|
2496
|
+
See <https://biomejs.dev/linter/rules/no-array-index-key>
|
|
2466
2497
|
*/
|
|
2467
2498
|
noArrayIndexKey?: NoArrayIndexKeyConfiguration;
|
|
2468
2499
|
/**
|
|
2469
2500
|
* Disallow assignments in expressions.
|
|
2470
|
-
See https://biomejs.dev/linter/rules/no-assign-in-expressions
|
|
2501
|
+
See <https://biomejs.dev/linter/rules/no-assign-in-expressions>
|
|
2471
2502
|
*/
|
|
2472
2503
|
noAssignInExpressions?: NoAssignInExpressionsConfiguration;
|
|
2473
2504
|
/**
|
|
2474
2505
|
* Disallows using an async function as a Promise executor.
|
|
2475
|
-
See https://biomejs.dev/linter/rules/no-async-promise-executor
|
|
2506
|
+
See <https://biomejs.dev/linter/rules/no-async-promise-executor>
|
|
2476
2507
|
*/
|
|
2477
2508
|
noAsyncPromiseExecutor?: NoAsyncPromiseExecutorConfiguration;
|
|
2478
2509
|
/**
|
|
2479
|
-
* Prevents the
|
|
2480
|
-
See https://biomejs.dev/linter/rules/no-biome-first-exception
|
|
2510
|
+
* Prevents the misuse of glob patterns inside the files.includes field.
|
|
2511
|
+
See <https://biomejs.dev/linter/rules/no-biome-first-exception>
|
|
2481
2512
|
*/
|
|
2482
2513
|
noBiomeFirstException?: NoBiomeFirstExceptionConfiguration;
|
|
2483
2514
|
/**
|
|
2484
2515
|
* Disallow bitwise operators.
|
|
2485
|
-
See https://biomejs.dev/linter/rules/no-bitwise-operators
|
|
2516
|
+
See <https://biomejs.dev/linter/rules/no-bitwise-operators>
|
|
2486
2517
|
*/
|
|
2487
2518
|
noBitwiseOperators?: NoBitwiseOperatorsConfiguration;
|
|
2488
2519
|
/**
|
|
2489
2520
|
* Disallow reassigning exceptions in catch clauses.
|
|
2490
|
-
See https://biomejs.dev/linter/rules/no-catch-assign
|
|
2521
|
+
See <https://biomejs.dev/linter/rules/no-catch-assign>
|
|
2491
2522
|
*/
|
|
2492
2523
|
noCatchAssign?: NoCatchAssignConfiguration;
|
|
2493
2524
|
/**
|
|
2494
2525
|
* Disallow reassigning class members.
|
|
2495
|
-
See https://biomejs.dev/linter/rules/no-class-assign
|
|
2526
|
+
See <https://biomejs.dev/linter/rules/no-class-assign>
|
|
2496
2527
|
*/
|
|
2497
2528
|
noClassAssign?: NoClassAssignConfiguration;
|
|
2498
2529
|
/**
|
|
2499
2530
|
* Prevent comments from being inserted as text nodes.
|
|
2500
|
-
See https://biomejs.dev/linter/rules/no-comment-text
|
|
2531
|
+
See <https://biomejs.dev/linter/rules/no-comment-text>
|
|
2501
2532
|
*/
|
|
2502
2533
|
noCommentText?: NoCommentTextConfiguration;
|
|
2503
2534
|
/**
|
|
2504
2535
|
* Disallow comparing against -0.
|
|
2505
|
-
See https://biomejs.dev/linter/rules/no-compare-neg-zero
|
|
2536
|
+
See <https://biomejs.dev/linter/rules/no-compare-neg-zero>
|
|
2506
2537
|
*/
|
|
2507
2538
|
noCompareNegZero?: NoCompareNegZeroConfiguration;
|
|
2508
2539
|
/**
|
|
2509
2540
|
* Disallow labeled statements that are not loops.
|
|
2510
|
-
See https://biomejs.dev/linter/rules/no-confusing-labels
|
|
2541
|
+
See <https://biomejs.dev/linter/rules/no-confusing-labels>
|
|
2511
2542
|
*/
|
|
2512
2543
|
noConfusingLabels?: NoConfusingLabelsConfiguration;
|
|
2513
2544
|
/**
|
|
2514
2545
|
* Disallow void type outside of generic or return types.
|
|
2515
|
-
See https://biomejs.dev/linter/rules/no-confusing-void-type
|
|
2546
|
+
See <https://biomejs.dev/linter/rules/no-confusing-void-type>
|
|
2516
2547
|
*/
|
|
2517
2548
|
noConfusingVoidType?: NoConfusingVoidTypeConfiguration;
|
|
2518
2549
|
/**
|
|
2519
2550
|
* Disallow the use of console.
|
|
2520
|
-
See https://biomejs.dev/linter/rules/no-console
|
|
2551
|
+
See <https://biomejs.dev/linter/rules/no-console>
|
|
2521
2552
|
*/
|
|
2522
2553
|
noConsole?: NoConsoleConfiguration;
|
|
2523
2554
|
/**
|
|
2524
2555
|
* Disallow TypeScript const enum.
|
|
2525
|
-
See https://biomejs.dev/linter/rules/no-const-enum
|
|
2556
|
+
See <https://biomejs.dev/linter/rules/no-const-enum>
|
|
2526
2557
|
*/
|
|
2527
2558
|
noConstEnum?: NoConstEnumConfiguration;
|
|
2528
2559
|
/**
|
|
2529
2560
|
* Disallow expressions where the operation doesn't affect the value.
|
|
2530
|
-
See https://biomejs.dev/linter/rules/no-constant-binary-expressions
|
|
2561
|
+
See <https://biomejs.dev/linter/rules/no-constant-binary-expressions>
|
|
2531
2562
|
*/
|
|
2532
2563
|
noConstantBinaryExpressions?: NoConstantBinaryExpressionsConfiguration;
|
|
2533
2564
|
/**
|
|
2534
2565
|
* Prevents from having control characters and some escape sequences that match control characters in regular expression literals.
|
|
2535
|
-
See https://biomejs.dev/linter/rules/no-control-characters-in-regex
|
|
2566
|
+
See <https://biomejs.dev/linter/rules/no-control-characters-in-regex>
|
|
2536
2567
|
*/
|
|
2537
2568
|
noControlCharactersInRegex?: NoControlCharactersInRegexConfiguration;
|
|
2538
2569
|
/**
|
|
2539
2570
|
* Disallow the use of debugger.
|
|
2540
|
-
See https://biomejs.dev/linter/rules/no-debugger
|
|
2571
|
+
See <https://biomejs.dev/linter/rules/no-debugger>
|
|
2541
2572
|
*/
|
|
2542
2573
|
noDebugger?: NoDebuggerConfiguration;
|
|
2543
2574
|
/**
|
|
2544
2575
|
* Disallow direct assignments to document.cookie.
|
|
2545
|
-
See https://biomejs.dev/linter/rules/no-document-cookie
|
|
2576
|
+
See <https://biomejs.dev/linter/rules/no-document-cookie>
|
|
2546
2577
|
*/
|
|
2547
2578
|
noDocumentCookie?: NoDocumentCookieConfiguration;
|
|
2548
2579
|
/**
|
|
2549
2580
|
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
2550
|
-
See https://biomejs.dev/linter/rules/no-document-import-in-page
|
|
2581
|
+
See <https://biomejs.dev/linter/rules/no-document-import-in-page>
|
|
2551
2582
|
*/
|
|
2552
2583
|
noDocumentImportInPage?: NoDocumentImportInPageConfiguration;
|
|
2553
2584
|
/**
|
|
2554
2585
|
* Require the use of === and !==.
|
|
2555
|
-
See https://biomejs.dev/linter/rules/no-double-equals
|
|
2586
|
+
See <https://biomejs.dev/linter/rules/no-double-equals>
|
|
2556
2587
|
*/
|
|
2557
2588
|
noDoubleEquals?: NoDoubleEqualsConfiguration;
|
|
2558
2589
|
/**
|
|
2559
2590
|
* Disallow duplicate @import rules.
|
|
2560
|
-
See https://biomejs.dev/linter/rules/no-duplicate-at-import-rules
|
|
2591
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-at-import-rules>
|
|
2561
2592
|
*/
|
|
2562
2593
|
noDuplicateAtImportRules?: NoDuplicateAtImportRulesConfiguration;
|
|
2563
2594
|
/**
|
|
2564
2595
|
* Disallow duplicate case labels.
|
|
2565
|
-
See https://biomejs.dev/linter/rules/no-duplicate-case
|
|
2596
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-case>
|
|
2566
2597
|
*/
|
|
2567
2598
|
noDuplicateCase?: NoDuplicateCaseConfiguration;
|
|
2568
2599
|
/**
|
|
2569
2600
|
* Disallow duplicate class members.
|
|
2570
|
-
See https://biomejs.dev/linter/rules/no-duplicate-class-members
|
|
2601
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-class-members>
|
|
2571
2602
|
*/
|
|
2572
2603
|
noDuplicateClassMembers?: NoDuplicateClassMembersConfiguration;
|
|
2573
2604
|
/**
|
|
2574
2605
|
* Disallow duplicate custom properties within declaration blocks.
|
|
2575
|
-
See https://biomejs.dev/linter/rules/no-duplicate-custom-properties
|
|
2606
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-custom-properties>
|
|
2576
2607
|
*/
|
|
2577
2608
|
noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration;
|
|
2578
2609
|
/**
|
|
2579
2610
|
* Disallow duplicate conditions in if-else-if chains.
|
|
2580
|
-
See https://biomejs.dev/linter/rules/no-duplicate-else-if
|
|
2611
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-else-if>
|
|
2581
2612
|
*/
|
|
2582
2613
|
noDuplicateElseIf?: NoDuplicateElseIfConfiguration;
|
|
2583
2614
|
/**
|
|
2584
2615
|
* No duplicated fields in GraphQL operations.
|
|
2585
|
-
See https://biomejs.dev/linter/rules/no-duplicate-fields
|
|
2616
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-fields>
|
|
2586
2617
|
*/
|
|
2587
2618
|
noDuplicateFields?: NoDuplicateFieldsConfiguration;
|
|
2588
2619
|
/**
|
|
2589
2620
|
* Disallow duplicate names within font families.
|
|
2590
|
-
See https://biomejs.dev/linter/rules/no-duplicate-font-names
|
|
2621
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-font-names>
|
|
2591
2622
|
*/
|
|
2592
2623
|
noDuplicateFontNames?: NoDuplicateFontNamesConfiguration;
|
|
2593
2624
|
/**
|
|
2594
2625
|
* Prevents JSX properties to be assigned multiple times.
|
|
2595
|
-
See https://biomejs.dev/linter/rules/no-duplicate-jsx-props
|
|
2626
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-jsx-props>
|
|
2596
2627
|
*/
|
|
2597
2628
|
noDuplicateJsxProps?: NoDuplicateJsxPropsConfiguration;
|
|
2598
2629
|
/**
|
|
2599
2630
|
* Disallow two keys with the same name inside objects.
|
|
2600
|
-
See https://biomejs.dev/linter/rules/no-duplicate-object-keys
|
|
2631
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-object-keys>
|
|
2601
2632
|
*/
|
|
2602
2633
|
noDuplicateObjectKeys?: NoDuplicateObjectKeysConfiguration;
|
|
2603
2634
|
/**
|
|
2604
2635
|
* Disallow duplicate function parameter name.
|
|
2605
|
-
See https://biomejs.dev/linter/rules/no-duplicate-parameters
|
|
2636
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-parameters>
|
|
2606
2637
|
*/
|
|
2607
2638
|
noDuplicateParameters?: NoDuplicateParametersConfiguration;
|
|
2608
2639
|
/**
|
|
2609
2640
|
* Disallow duplicate properties within declaration blocks.
|
|
2610
|
-
See https://biomejs.dev/linter/rules/no-duplicate-properties
|
|
2641
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-properties>
|
|
2611
2642
|
*/
|
|
2612
2643
|
noDuplicateProperties?: NoDuplicatePropertiesConfiguration;
|
|
2613
2644
|
/**
|
|
2614
2645
|
* Disallow duplicate selectors within keyframe blocks.
|
|
2615
|
-
See https://biomejs.dev/linter/rules/no-duplicate-selectors-keyframe-block
|
|
2646
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-selectors-keyframe-block>
|
|
2616
2647
|
*/
|
|
2617
2648
|
noDuplicateSelectorsKeyframeBlock?: NoDuplicateSelectorsKeyframeBlockConfiguration;
|
|
2618
2649
|
/**
|
|
2619
2650
|
* A describe block should not contain duplicate hooks.
|
|
2620
|
-
See https://biomejs.dev/linter/rules/no-duplicate-test-hooks
|
|
2651
|
+
See <https://biomejs.dev/linter/rules/no-duplicate-test-hooks>
|
|
2621
2652
|
*/
|
|
2622
2653
|
noDuplicateTestHooks?: NoDuplicateTestHooksConfiguration;
|
|
2623
2654
|
/**
|
|
2624
2655
|
* Disallow CSS empty blocks.
|
|
2625
|
-
See https://biomejs.dev/linter/rules/no-empty-block
|
|
2656
|
+
See <https://biomejs.dev/linter/rules/no-empty-block>
|
|
2626
2657
|
*/
|
|
2627
2658
|
noEmptyBlock?: NoEmptyBlockConfiguration;
|
|
2628
2659
|
/**
|
|
2629
2660
|
* Disallow empty block statements and static blocks.
|
|
2630
|
-
See https://biomejs.dev/linter/rules/no-empty-block-statements
|
|
2661
|
+
See <https://biomejs.dev/linter/rules/no-empty-block-statements>
|
|
2631
2662
|
*/
|
|
2632
2663
|
noEmptyBlockStatements?: NoEmptyBlockStatementsConfiguration;
|
|
2633
2664
|
/**
|
|
2634
2665
|
* Disallow the declaration of empty interfaces.
|
|
2635
|
-
See https://biomejs.dev/linter/rules/no-empty-interface
|
|
2666
|
+
See <https://biomejs.dev/linter/rules/no-empty-interface>
|
|
2636
2667
|
*/
|
|
2637
2668
|
noEmptyInterface?: NoEmptyInterfaceConfiguration;
|
|
2638
2669
|
/**
|
|
2639
2670
|
* Disallow variables from evolving into any type through reassignments.
|
|
2640
|
-
See https://biomejs.dev/linter/rules/no-evolving-types
|
|
2671
|
+
See <https://biomejs.dev/linter/rules/no-evolving-types>
|
|
2641
2672
|
*/
|
|
2642
2673
|
noEvolvingTypes?: NoEvolvingTypesConfiguration;
|
|
2643
2674
|
/**
|
|
2644
2675
|
* Disallow the any type usage.
|
|
2645
|
-
See https://biomejs.dev/linter/rules/no-explicit-any
|
|
2676
|
+
See <https://biomejs.dev/linter/rules/no-explicit-any>
|
|
2646
2677
|
*/
|
|
2647
2678
|
noExplicitAny?: NoExplicitAnyConfiguration;
|
|
2648
2679
|
/**
|
|
2649
2680
|
* Disallow using export or module.exports in files containing tests.
|
|
2650
|
-
See https://biomejs.dev/linter/rules/no-exports-in-test
|
|
2681
|
+
See <https://biomejs.dev/linter/rules/no-exports-in-test>
|
|
2651
2682
|
*/
|
|
2652
2683
|
noExportsInTest?: NoExportsInTestConfiguration;
|
|
2653
2684
|
/**
|
|
2654
2685
|
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
2655
|
-
See https://biomejs.dev/linter/rules/no-extra-non-null-assertion
|
|
2686
|
+
See <https://biomejs.dev/linter/rules/no-extra-non-null-assertion>
|
|
2656
2687
|
*/
|
|
2657
2688
|
noExtraNonNullAssertion?: NoExtraNonNullAssertionConfiguration;
|
|
2658
2689
|
/**
|
|
2659
2690
|
* Disallow fallthrough of switch clauses.
|
|
2660
|
-
See https://biomejs.dev/linter/rules/no-fallthrough-switch-clause
|
|
2691
|
+
See <https://biomejs.dev/linter/rules/no-fallthrough-switch-clause>
|
|
2661
2692
|
*/
|
|
2662
2693
|
noFallthroughSwitchClause?: NoFallthroughSwitchClauseConfiguration;
|
|
2663
2694
|
/**
|
|
2664
2695
|
* Disallow focused tests.
|
|
2665
|
-
See https://biomejs.dev/linter/rules/no-focused-tests
|
|
2696
|
+
See <https://biomejs.dev/linter/rules/no-focused-tests>
|
|
2666
2697
|
*/
|
|
2667
2698
|
noFocusedTests?: NoFocusedTestsConfiguration;
|
|
2668
2699
|
/**
|
|
2669
2700
|
* Disallow reassigning function declarations.
|
|
2670
|
-
See https://biomejs.dev/linter/rules/no-function-assign
|
|
2701
|
+
See <https://biomejs.dev/linter/rules/no-function-assign>
|
|
2671
2702
|
*/
|
|
2672
2703
|
noFunctionAssign?: NoFunctionAssignConfiguration;
|
|
2673
2704
|
/**
|
|
2674
2705
|
* Disallow assignments to native objects and read-only global variables.
|
|
2675
|
-
See https://biomejs.dev/linter/rules/no-global-assign
|
|
2706
|
+
See <https://biomejs.dev/linter/rules/no-global-assign>
|
|
2676
2707
|
*/
|
|
2677
2708
|
noGlobalAssign?: NoGlobalAssignConfiguration;
|
|
2678
2709
|
/**
|
|
2679
2710
|
* Use Number.isFinite instead of global isFinite.
|
|
2680
|
-
See https://biomejs.dev/linter/rules/no-global-is-finite
|
|
2711
|
+
See <https://biomejs.dev/linter/rules/no-global-is-finite>
|
|
2681
2712
|
*/
|
|
2682
2713
|
noGlobalIsFinite?: NoGlobalIsFiniteConfiguration;
|
|
2683
2714
|
/**
|
|
2684
2715
|
* Use Number.isNaN instead of global isNaN.
|
|
2685
|
-
See https://biomejs.dev/linter/rules/no-global-is-nan
|
|
2716
|
+
See <https://biomejs.dev/linter/rules/no-global-is-nan>
|
|
2686
2717
|
*/
|
|
2687
2718
|
noGlobalIsNan?: NoGlobalIsNanConfiguration;
|
|
2688
2719
|
/**
|
|
2689
2720
|
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
2690
|
-
See https://biomejs.dev/linter/rules/no-head-import-in-document
|
|
2721
|
+
See <https://biomejs.dev/linter/rules/no-head-import-in-document>
|
|
2691
2722
|
*/
|
|
2692
2723
|
noHeadImportInDocument?: NoHeadImportInDocumentConfiguration;
|
|
2693
2724
|
/**
|
|
2694
2725
|
* Disallow use of implicit any type on variable declarations.
|
|
2695
|
-
See https://biomejs.dev/linter/rules/no-implicit-any-let
|
|
2726
|
+
See <https://biomejs.dev/linter/rules/no-implicit-any-let>
|
|
2696
2727
|
*/
|
|
2697
2728
|
noImplicitAnyLet?: NoImplicitAnyLetConfiguration;
|
|
2698
2729
|
/**
|
|
2699
2730
|
* Disallow assigning to imported bindings.
|
|
2700
|
-
See https://biomejs.dev/linter/rules/no-import-assign
|
|
2731
|
+
See <https://biomejs.dev/linter/rules/no-import-assign>
|
|
2701
2732
|
*/
|
|
2702
2733
|
noImportAssign?: NoImportAssignConfiguration;
|
|
2703
2734
|
/**
|
|
2704
2735
|
* Disallow invalid !important within keyframe declarations.
|
|
2705
|
-
See https://biomejs.dev/linter/rules/no-important-in-keyframe
|
|
2736
|
+
See <https://biomejs.dev/linter/rules/no-important-in-keyframe>
|
|
2706
2737
|
*/
|
|
2707
2738
|
noImportantInKeyframe?: NoImportantInKeyframeConfiguration;
|
|
2708
2739
|
/**
|
|
2709
2740
|
* Disallows the use of irregular whitespace characters.
|
|
2710
|
-
See https://biomejs.dev/linter/rules/no-irregular-whitespace
|
|
2741
|
+
See <https://biomejs.dev/linter/rules/no-irregular-whitespace>
|
|
2711
2742
|
*/
|
|
2712
2743
|
noIrregularWhitespace?: NoIrregularWhitespaceConfiguration;
|
|
2713
2744
|
/**
|
|
2714
2745
|
* Disallow labels that share a name with a variable.
|
|
2715
|
-
See https://biomejs.dev/linter/rules/no-label-var
|
|
2746
|
+
See <https://biomejs.dev/linter/rules/no-label-var>
|
|
2716
2747
|
*/
|
|
2717
2748
|
noLabelVar?: NoLabelVarConfiguration;
|
|
2718
2749
|
/**
|
|
2719
2750
|
* Disallow characters made with multiple code points in character class syntax.
|
|
2720
|
-
See https://biomejs.dev/linter/rules/no-misleading-character-class
|
|
2751
|
+
See <https://biomejs.dev/linter/rules/no-misleading-character-class>
|
|
2721
2752
|
*/
|
|
2722
2753
|
noMisleadingCharacterClass?: NoMisleadingCharacterClassConfiguration;
|
|
2723
2754
|
/**
|
|
2724
2755
|
* Enforce proper usage of new and constructor.
|
|
2725
|
-
See https://biomejs.dev/linter/rules/no-misleading-instantiator
|
|
2756
|
+
See <https://biomejs.dev/linter/rules/no-misleading-instantiator>
|
|
2726
2757
|
*/
|
|
2727
2758
|
noMisleadingInstantiator?: NoMisleadingInstantiatorConfiguration;
|
|
2728
2759
|
/**
|
|
2729
2760
|
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
2730
|
-
See https://biomejs.dev/linter/rules/no-misplaced-assertion
|
|
2761
|
+
See <https://biomejs.dev/linter/rules/no-misplaced-assertion>
|
|
2731
2762
|
*/
|
|
2732
2763
|
noMisplacedAssertion?: NoMisplacedAssertionConfiguration;
|
|
2733
2764
|
/**
|
|
2734
2765
|
* Disallow shorthand assign when variable appears on both sides.
|
|
2735
|
-
See https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign
|
|
2766
|
+
See <https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign>
|
|
2736
2767
|
*/
|
|
2737
2768
|
noMisrefactoredShorthandAssign?: NoMisrefactoredShorthandAssignConfiguration;
|
|
2738
2769
|
/**
|
|
2739
2770
|
* Disallow non-null assertions after optional chaining expressions.
|
|
2740
|
-
See https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain
|
|
2771
|
+
See <https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain>
|
|
2741
2772
|
*/
|
|
2742
2773
|
noNonNullAssertedOptionalChain?: NoNonNullAssertedOptionalChainConfiguration;
|
|
2743
2774
|
/**
|
|
2744
2775
|
* Disallow octal escape sequences in string literals.
|
|
2745
|
-
See https://biomejs.dev/linter/rules/no-octal-escape
|
|
2776
|
+
See <https://biomejs.dev/linter/rules/no-octal-escape>
|
|
2746
2777
|
*/
|
|
2747
2778
|
noOctalEscape?: NoOctalEscapeConfiguration;
|
|
2748
2779
|
/**
|
|
2749
2780
|
* Disallow direct use of Object.prototype builtins.
|
|
2750
|
-
See https://biomejs.dev/linter/rules/no-prototype-builtins
|
|
2781
|
+
See <https://biomejs.dev/linter/rules/no-prototype-builtins>
|
|
2751
2782
|
*/
|
|
2752
2783
|
noPrototypeBuiltins?: NoPrototypeBuiltinsConfiguration;
|
|
2753
2784
|
/**
|
|
2754
2785
|
* Disallow the use if quickfix.biome inside editor settings file.
|
|
2755
|
-
See https://biomejs.dev/linter/rules/no-quickfix-biome
|
|
2786
|
+
See <https://biomejs.dev/linter/rules/no-quickfix-biome>
|
|
2756
2787
|
*/
|
|
2757
2788
|
noQuickfixBiome?: NoQuickfixBiomeConfiguration;
|
|
2758
2789
|
/**
|
|
2759
2790
|
* Prevents React-specific JSX properties from being used.
|
|
2760
|
-
See https://biomejs.dev/linter/rules/no-react-specific-props
|
|
2791
|
+
See <https://biomejs.dev/linter/rules/no-react-specific-props>
|
|
2761
2792
|
*/
|
|
2762
2793
|
noReactSpecificProps?: NoReactSpecificPropsConfiguration;
|
|
2763
2794
|
/**
|
|
2764
2795
|
* Disallow variable, function, class, and type redeclarations in the same scope.
|
|
2765
|
-
See https://biomejs.dev/linter/rules/no-redeclare
|
|
2796
|
+
See <https://biomejs.dev/linter/rules/no-redeclare>
|
|
2766
2797
|
*/
|
|
2767
2798
|
noRedeclare?: NoRedeclareConfiguration;
|
|
2768
2799
|
/**
|
|
2769
2800
|
* Prevents from having redundant "use strict".
|
|
2770
|
-
See https://biomejs.dev/linter/rules/no-redundant-use-strict
|
|
2801
|
+
See <https://biomejs.dev/linter/rules/no-redundant-use-strict>
|
|
2771
2802
|
*/
|
|
2772
2803
|
noRedundantUseStrict?: NoRedundantUseStrictConfiguration;
|
|
2773
2804
|
/**
|
|
2774
2805
|
* Disallow comparisons where both sides are exactly the same.
|
|
2775
|
-
See https://biomejs.dev/linter/rules/no-self-compare
|
|
2806
|
+
See <https://biomejs.dev/linter/rules/no-self-compare>
|
|
2776
2807
|
*/
|
|
2777
2808
|
noSelfCompare?: NoSelfCompareConfiguration;
|
|
2778
2809
|
/**
|
|
2779
2810
|
* Disallow identifiers from shadowing restricted names.
|
|
2780
|
-
See https://biomejs.dev/linter/rules/no-shadow-restricted-names
|
|
2811
|
+
See <https://biomejs.dev/linter/rules/no-shadow-restricted-names>
|
|
2781
2812
|
*/
|
|
2782
2813
|
noShadowRestrictedNames?: NoShadowRestrictedNamesConfiguration;
|
|
2783
2814
|
/**
|
|
2784
2815
|
* Disallow shorthand properties that override related longhand properties.
|
|
2785
|
-
See https://biomejs.dev/linter/rules/no-shorthand-property-overrides
|
|
2816
|
+
See <https://biomejs.dev/linter/rules/no-shorthand-property-overrides>
|
|
2786
2817
|
*/
|
|
2787
2818
|
noShorthandPropertyOverrides?: NoShorthandPropertyOverridesConfiguration;
|
|
2788
2819
|
/**
|
|
2789
2820
|
* Disallow disabled tests.
|
|
2790
|
-
See https://biomejs.dev/linter/rules/no-skipped-tests
|
|
2821
|
+
See <https://biomejs.dev/linter/rules/no-skipped-tests>
|
|
2791
2822
|
*/
|
|
2792
2823
|
noSkippedTests?: NoSkippedTestsConfiguration;
|
|
2793
2824
|
/**
|
|
2794
2825
|
* Prevents the use of sparse arrays (arrays with holes).
|
|
2795
|
-
See https://biomejs.dev/linter/rules/no-sparse-array
|
|
2826
|
+
See <https://biomejs.dev/linter/rules/no-sparse-array>
|
|
2796
2827
|
*/
|
|
2797
2828
|
noSparseArray?: NoSparseArrayConfiguration;
|
|
2798
2829
|
/**
|
|
2799
2830
|
* It detects possible "wrong" semicolons inside JSX elements.
|
|
2800
|
-
See https://biomejs.dev/linter/rules/no-suspicious-semicolon-in-jsx
|
|
2831
|
+
See <https://biomejs.dev/linter/rules/no-suspicious-semicolon-in-jsx>
|
|
2801
2832
|
*/
|
|
2802
2833
|
noSuspiciousSemicolonInJsx?: NoSuspiciousSemicolonInJsxConfiguration;
|
|
2803
2834
|
/**
|
|
2804
2835
|
* Disallow template literal placeholder syntax in regular strings.
|
|
2805
|
-
See https://biomejs.dev/linter/rules/no-template-curly-in-string
|
|
2836
|
+
See <https://biomejs.dev/linter/rules/no-template-curly-in-string>
|
|
2806
2837
|
*/
|
|
2807
2838
|
noTemplateCurlyInString?: NoTemplateCurlyInStringConfiguration;
|
|
2808
2839
|
/**
|
|
2809
2840
|
* Disallow then property.
|
|
2810
|
-
See https://biomejs.dev/linter/rules/no-then-property
|
|
2841
|
+
See <https://biomejs.dev/linter/rules/no-then-property>
|
|
2811
2842
|
*/
|
|
2812
2843
|
noThenProperty?: NoThenPropertyConfiguration;
|
|
2813
2844
|
/**
|
|
2814
2845
|
* Prevents the use of the TypeScript directive @ts-ignore.
|
|
2815
|
-
See https://biomejs.dev/linter/rules/no-ts-ignore
|
|
2846
|
+
See <https://biomejs.dev/linter/rules/no-ts-ignore>
|
|
2816
2847
|
*/
|
|
2817
2848
|
noTsIgnore?: NoTsIgnoreConfiguration;
|
|
2818
2849
|
/**
|
|
2819
2850
|
* Disallow let or var variables that are read but never assigned.
|
|
2820
|
-
See https://biomejs.dev/linter/rules/no-unassigned-variables
|
|
2851
|
+
See <https://biomejs.dev/linter/rules/no-unassigned-variables>
|
|
2821
2852
|
*/
|
|
2822
2853
|
noUnassignedVariables?: NoUnassignedVariablesConfiguration;
|
|
2823
2854
|
/**
|
|
2824
2855
|
* Disallow unknown at-rules.
|
|
2825
|
-
See https://biomejs.dev/linter/rules/no-unknown-at-rules
|
|
2856
|
+
See <https://biomejs.dev/linter/rules/no-unknown-at-rules>
|
|
2826
2857
|
*/
|
|
2827
2858
|
noUnknownAtRules?: NoUnknownAtRulesConfiguration;
|
|
2828
2859
|
/**
|
|
2829
2860
|
* Disallow unsafe declaration merging between interfaces and classes.
|
|
2830
|
-
See https://biomejs.dev/linter/rules/no-unsafe-declaration-merging
|
|
2861
|
+
See <https://biomejs.dev/linter/rules/no-unsafe-declaration-merging>
|
|
2831
2862
|
*/
|
|
2832
2863
|
noUnsafeDeclarationMerging?: NoUnsafeDeclarationMergingConfiguration;
|
|
2833
2864
|
/**
|
|
2834
2865
|
* Disallow using unsafe negation.
|
|
2835
|
-
See https://biomejs.dev/linter/rules/no-unsafe-negation
|
|
2866
|
+
See <https://biomejs.dev/linter/rules/no-unsafe-negation>
|
|
2836
2867
|
*/
|
|
2837
2868
|
noUnsafeNegation?: NoUnsafeNegationConfiguration;
|
|
2838
2869
|
/**
|
|
2839
2870
|
* Disallow unnecessary escapes in string literals.
|
|
2840
|
-
See https://biomejs.dev/linter/rules/no-useless-escape-in-string
|
|
2871
|
+
See <https://biomejs.dev/linter/rules/no-useless-escape-in-string>
|
|
2841
2872
|
*/
|
|
2842
2873
|
noUselessEscapeInString?: NoUselessEscapeInStringConfiguration;
|
|
2843
2874
|
/**
|
|
2844
2875
|
* Disallow useless backreferences in regular expression literals that always match an empty string.
|
|
2845
|
-
See https://biomejs.dev/linter/rules/no-useless-regex-backrefs
|
|
2876
|
+
See <https://biomejs.dev/linter/rules/no-useless-regex-backrefs>
|
|
2846
2877
|
*/
|
|
2847
2878
|
noUselessRegexBackrefs?: NoUselessRegexBackrefsConfiguration;
|
|
2848
2879
|
/**
|
|
2849
2880
|
* Disallow the use of var.
|
|
2850
|
-
See https://biomejs.dev/linter/rules/no-var
|
|
2881
|
+
See <https://biomejs.dev/linter/rules/no-var>
|
|
2851
2882
|
*/
|
|
2852
2883
|
noVar?: NoVarConfiguration;
|
|
2853
2884
|
/**
|
|
2854
2885
|
* Disallow with statements in non-strict contexts.
|
|
2855
|
-
See https://biomejs.dev/linter/rules/no-with
|
|
2886
|
+
See <https://biomejs.dev/linter/rules/no-with>
|
|
2856
2887
|
*/
|
|
2857
2888
|
noWith?: NoWithConfiguration;
|
|
2858
2889
|
/**
|
|
@@ -2861,72 +2892,72 @@ See https://biomejs.dev/linter/rules/no-with
|
|
|
2861
2892
|
recommended?: boolean;
|
|
2862
2893
|
/**
|
|
2863
2894
|
* Disallow the use of overload signatures that are not next to each other.
|
|
2864
|
-
See https://biomejs.dev/linter/rules/use-adjacent-overload-signatures
|
|
2895
|
+
See <https://biomejs.dev/linter/rules/use-adjacent-overload-signatures>
|
|
2865
2896
|
*/
|
|
2866
2897
|
useAdjacentOverloadSignatures?: UseAdjacentOverloadSignaturesConfiguration;
|
|
2867
2898
|
/**
|
|
2868
2899
|
* Ensure async functions utilize await.
|
|
2869
|
-
See https://biomejs.dev/linter/rules/use-await
|
|
2900
|
+
See <https://biomejs.dev/linter/rules/use-await>
|
|
2870
2901
|
*/
|
|
2871
2902
|
useAwait?: UseAwaitConfiguration;
|
|
2872
2903
|
/**
|
|
2873
2904
|
* Promotes the correct usage for ignoring folders in the configuration file.
|
|
2874
|
-
See https://biomejs.dev/linter/rules/use-biome-ignore-folder
|
|
2905
|
+
See <https://biomejs.dev/linter/rules/use-biome-ignore-folder>
|
|
2875
2906
|
*/
|
|
2876
2907
|
useBiomeIgnoreFolder?: UseBiomeIgnoreFolderConfiguration;
|
|
2877
2908
|
/**
|
|
2878
2909
|
* Enforce default clauses in switch statements to be last.
|
|
2879
|
-
See https://biomejs.dev/linter/rules/use-default-switch-clause-last
|
|
2910
|
+
See <https://biomejs.dev/linter/rules/use-default-switch-clause-last>
|
|
2880
2911
|
*/
|
|
2881
2912
|
useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration;
|
|
2882
2913
|
/**
|
|
2883
2914
|
* Enforce passing a message value when creating a built-in error.
|
|
2884
|
-
See https://biomejs.dev/linter/rules/use-error-message
|
|
2915
|
+
See <https://biomejs.dev/linter/rules/use-error-message>
|
|
2885
2916
|
*/
|
|
2886
2917
|
useErrorMessage?: UseErrorMessageConfiguration;
|
|
2887
2918
|
/**
|
|
2888
2919
|
* Enforce get methods to always return a value.
|
|
2889
|
-
See https://biomejs.dev/linter/rules/use-getter-return
|
|
2920
|
+
See <https://biomejs.dev/linter/rules/use-getter-return>
|
|
2890
2921
|
*/
|
|
2891
2922
|
useGetterReturn?: UseGetterReturnConfiguration;
|
|
2892
2923
|
/**
|
|
2893
2924
|
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
2894
|
-
See https://biomejs.dev/linter/rules/use-google-font-display
|
|
2925
|
+
See <https://biomejs.dev/linter/rules/use-google-font-display>
|
|
2895
2926
|
*/
|
|
2896
2927
|
useGoogleFontDisplay?: UseGoogleFontDisplayConfiguration;
|
|
2897
2928
|
/**
|
|
2898
2929
|
* Require for-in loops to include an if statement.
|
|
2899
|
-
See https://biomejs.dev/linter/rules/use-guard-for-in
|
|
2930
|
+
See <https://biomejs.dev/linter/rules/use-guard-for-in>
|
|
2900
2931
|
*/
|
|
2901
2932
|
useGuardForIn?: UseGuardForInConfiguration;
|
|
2902
2933
|
/**
|
|
2903
2934
|
* Use Array.isArray() instead of instanceof Array.
|
|
2904
|
-
See https://biomejs.dev/linter/rules/use-is-array
|
|
2935
|
+
See <https://biomejs.dev/linter/rules/use-is-array>
|
|
2905
2936
|
*/
|
|
2906
2937
|
useIsArray?: UseIsArrayConfiguration;
|
|
2907
2938
|
/**
|
|
2908
2939
|
* Enforce consistent return values in iterable callbacks.
|
|
2909
|
-
See https://biomejs.dev/linter/rules/use-iterable-callback-return
|
|
2940
|
+
See <https://biomejs.dev/linter/rules/use-iterable-callback-return>
|
|
2910
2941
|
*/
|
|
2911
2942
|
useIterableCallbackReturn?: UseIterableCallbackReturnConfiguration;
|
|
2912
2943
|
/**
|
|
2913
2944
|
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
2914
|
-
See https://biomejs.dev/linter/rules/use-namespace-keyword
|
|
2945
|
+
See <https://biomejs.dev/linter/rules/use-namespace-keyword>
|
|
2915
2946
|
*/
|
|
2916
2947
|
useNamespaceKeyword?: UseNamespaceKeywordConfiguration;
|
|
2917
2948
|
/**
|
|
2918
2949
|
* Enforce using the digits argument with Number#toFixed().
|
|
2919
|
-
See https://biomejs.dev/linter/rules/use-number-to-fixed-digits-argument
|
|
2950
|
+
See <https://biomejs.dev/linter/rules/use-number-to-fixed-digits-argument>
|
|
2920
2951
|
*/
|
|
2921
2952
|
useNumberToFixedDigitsArgument?: UseNumberToFixedDigitsArgumentConfiguration;
|
|
2922
2953
|
/**
|
|
2923
2954
|
* Use static Response methods instead of new Response() constructor when possible.
|
|
2924
|
-
See https://biomejs.dev/linter/rules/use-static-response-methods
|
|
2955
|
+
See <https://biomejs.dev/linter/rules/use-static-response-methods>
|
|
2925
2956
|
*/
|
|
2926
2957
|
useStaticResponseMethods?: UseStaticResponseMethodsConfiguration;
|
|
2927
2958
|
/**
|
|
2928
2959
|
* Enforce the use of the directive "use strict" in script files.
|
|
2929
|
-
See https://biomejs.dev/linter/rules/use-strict-mode
|
|
2960
|
+
See <https://biomejs.dev/linter/rules/use-strict-mode>
|
|
2930
2961
|
*/
|
|
2931
2962
|
useStrictMode?: UseStrictModeConfiguration;
|
|
2932
2963
|
}
|
|
@@ -3432,6 +3463,9 @@ type NoProtoConfiguration = RulePlainConfiguration | RuleWithNoProtoOptions;
|
|
|
3432
3463
|
type NoReactForwardRefConfiguration =
|
|
3433
3464
|
| RulePlainConfiguration
|
|
3434
3465
|
| RuleWithNoReactForwardRefOptions;
|
|
3466
|
+
type NoScriptUrlConfiguration =
|
|
3467
|
+
| RulePlainConfiguration
|
|
3468
|
+
| RuleWithNoScriptUrlOptions;
|
|
3435
3469
|
type NoShadowConfiguration = RulePlainConfiguration | RuleWithNoShadowOptions;
|
|
3436
3470
|
type NoSyncScriptsConfiguration =
|
|
3437
3471
|
| RulePlainConfiguration
|
|
@@ -3467,12 +3501,18 @@ type NoVueReservedKeysConfiguration =
|
|
|
3467
3501
|
type NoVueReservedPropsConfiguration =
|
|
3468
3502
|
| RulePlainConfiguration
|
|
3469
3503
|
| RuleWithNoVueReservedPropsOptions;
|
|
3504
|
+
type NoVueSetupPropsReactivityLossConfiguration =
|
|
3505
|
+
| RulePlainConfiguration
|
|
3506
|
+
| RuleWithNoVueSetupPropsReactivityLossOptions;
|
|
3470
3507
|
type NoVueVIfWithVForConfiguration =
|
|
3471
3508
|
| RulePlainConfiguration
|
|
3472
3509
|
| RuleWithNoVueVIfWithVForOptions;
|
|
3473
3510
|
type UseArraySortCompareConfiguration =
|
|
3474
3511
|
| RulePlainConfiguration
|
|
3475
3512
|
| RuleWithUseArraySortCompareOptions;
|
|
3513
|
+
type UseAwaitThenableConfiguration =
|
|
3514
|
+
| RulePlainConfiguration
|
|
3515
|
+
| RuleWithUseAwaitThenableOptions;
|
|
3476
3516
|
type UseConsistentArrowReturnConfiguration =
|
|
3477
3517
|
| RulePlainConfiguration
|
|
3478
3518
|
| RuleWithUseConsistentArrowReturnOptions;
|
|
@@ -3482,6 +3522,9 @@ type UseConsistentGraphqlDescriptionsConfiguration =
|
|
|
3482
3522
|
type UseDeprecatedDateConfiguration =
|
|
3483
3523
|
| RulePlainConfiguration
|
|
3484
3524
|
| RuleWithUseDeprecatedDateOptions;
|
|
3525
|
+
type UseDestructuringConfiguration =
|
|
3526
|
+
| RulePlainConfiguration
|
|
3527
|
+
| RuleWithUseDestructuringOptions;
|
|
3485
3528
|
type UseExhaustiveSwitchCasesConfiguration =
|
|
3486
3529
|
| RulePlainConfiguration
|
|
3487
3530
|
| RuleWithUseExhaustiveSwitchCasesOptions;
|
|
@@ -3498,6 +3541,12 @@ type UseQwikMethodUsageConfiguration =
|
|
|
3498
3541
|
type UseQwikValidLexicalScopeConfiguration =
|
|
3499
3542
|
| RulePlainConfiguration
|
|
3500
3543
|
| RuleWithUseQwikValidLexicalScopeOptions;
|
|
3544
|
+
type UseRegexpExecConfiguration =
|
|
3545
|
+
| RulePlainConfiguration
|
|
3546
|
+
| RuleWithUseRegexpExecOptions;
|
|
3547
|
+
type UseRequiredScriptsConfiguration =
|
|
3548
|
+
| RulePlainConfiguration
|
|
3549
|
+
| RuleWithUseRequiredScriptsOptions;
|
|
3501
3550
|
type UseSortedClassesConfiguration =
|
|
3502
3551
|
| RulePlainConfiguration
|
|
3503
3552
|
| RuleWithUseSortedClassesOptions;
|
|
@@ -4819,6 +4868,10 @@ interface RuleWithNoReactForwardRefOptions {
|
|
|
4819
4868
|
level: RulePlainConfiguration;
|
|
4820
4869
|
options?: NoReactForwardRefOptions;
|
|
4821
4870
|
}
|
|
4871
|
+
interface RuleWithNoScriptUrlOptions {
|
|
4872
|
+
level: RulePlainConfiguration;
|
|
4873
|
+
options?: NoScriptUrlOptions;
|
|
4874
|
+
}
|
|
4822
4875
|
interface RuleWithNoShadowOptions {
|
|
4823
4876
|
level: RulePlainConfiguration;
|
|
4824
4877
|
options?: NoShadowOptions;
|
|
@@ -4874,6 +4927,10 @@ interface RuleWithNoVueReservedPropsOptions {
|
|
|
4874
4927
|
level: RulePlainConfiguration;
|
|
4875
4928
|
options?: NoVueReservedPropsOptions;
|
|
4876
4929
|
}
|
|
4930
|
+
interface RuleWithNoVueSetupPropsReactivityLossOptions {
|
|
4931
|
+
level: RulePlainConfiguration;
|
|
4932
|
+
options?: NoVueSetupPropsReactivityLossOptions;
|
|
4933
|
+
}
|
|
4877
4934
|
interface RuleWithNoVueVIfWithVForOptions {
|
|
4878
4935
|
level: RulePlainConfiguration;
|
|
4879
4936
|
options?: NoVueVIfWithVForOptions;
|
|
@@ -4882,6 +4939,10 @@ interface RuleWithUseArraySortCompareOptions {
|
|
|
4882
4939
|
level: RulePlainConfiguration;
|
|
4883
4940
|
options?: UseArraySortCompareOptions;
|
|
4884
4941
|
}
|
|
4942
|
+
interface RuleWithUseAwaitThenableOptions {
|
|
4943
|
+
level: RulePlainConfiguration;
|
|
4944
|
+
options?: UseAwaitThenableOptions;
|
|
4945
|
+
}
|
|
4885
4946
|
interface RuleWithUseConsistentArrowReturnOptions {
|
|
4886
4947
|
fix?: FixKind;
|
|
4887
4948
|
level: RulePlainConfiguration;
|
|
@@ -4895,6 +4956,10 @@ interface RuleWithUseDeprecatedDateOptions {
|
|
|
4895
4956
|
level: RulePlainConfiguration;
|
|
4896
4957
|
options?: UseDeprecatedDateOptions;
|
|
4897
4958
|
}
|
|
4959
|
+
interface RuleWithUseDestructuringOptions {
|
|
4960
|
+
level: RulePlainConfiguration;
|
|
4961
|
+
options?: UseDestructuringOptions;
|
|
4962
|
+
}
|
|
4898
4963
|
interface RuleWithUseExhaustiveSwitchCasesOptions {
|
|
4899
4964
|
fix?: FixKind;
|
|
4900
4965
|
level: RulePlainConfiguration;
|
|
@@ -4920,6 +4985,14 @@ interface RuleWithUseQwikValidLexicalScopeOptions {
|
|
|
4920
4985
|
level: RulePlainConfiguration;
|
|
4921
4986
|
options?: UseQwikValidLexicalScopeOptions;
|
|
4922
4987
|
}
|
|
4988
|
+
interface RuleWithUseRegexpExecOptions {
|
|
4989
|
+
level: RulePlainConfiguration;
|
|
4990
|
+
options?: UseRegexpExecOptions;
|
|
4991
|
+
}
|
|
4992
|
+
interface RuleWithUseRequiredScriptsOptions {
|
|
4993
|
+
level: RulePlainConfiguration;
|
|
4994
|
+
options?: UseRequiredScriptsOptions;
|
|
4995
|
+
}
|
|
4923
4996
|
interface RuleWithUseSortedClassesOptions {
|
|
4924
4997
|
fix?: FixKind;
|
|
4925
4998
|
level: RulePlainConfiguration;
|
|
@@ -6117,6 +6190,7 @@ type NoNextAsyncClientComponentOptions = {};
|
|
|
6117
6190
|
type NoParametersOnlyUsedInRecursionOptions = {};
|
|
6118
6191
|
type NoProtoOptions = {};
|
|
6119
6192
|
type NoReactForwardRefOptions = {};
|
|
6193
|
+
type NoScriptUrlOptions = {};
|
|
6120
6194
|
type NoShadowOptions = {};
|
|
6121
6195
|
type NoSyncScriptsOptions = {};
|
|
6122
6196
|
type NoTernaryOptions = {};
|
|
@@ -6132,8 +6206,10 @@ type NoVueDataObjectDeclarationOptions = {};
|
|
|
6132
6206
|
type NoVueDuplicateKeysOptions = {};
|
|
6133
6207
|
type NoVueReservedKeysOptions = {};
|
|
6134
6208
|
type NoVueReservedPropsOptions = {};
|
|
6209
|
+
type NoVueSetupPropsReactivityLossOptions = {};
|
|
6135
6210
|
type NoVueVIfWithVForOptions = {};
|
|
6136
6211
|
type UseArraySortCompareOptions = {};
|
|
6212
|
+
type UseAwaitThenableOptions = {};
|
|
6137
6213
|
interface UseConsistentArrowReturnOptions {
|
|
6138
6214
|
/**
|
|
6139
6215
|
* Determines whether the rule enforces a consistent style when the return value is an object literal.
|
|
@@ -6155,6 +6231,7 @@ interface UseConsistentGraphqlDescriptionsOptions {
|
|
|
6155
6231
|
interface UseDeprecatedDateOptions {
|
|
6156
6232
|
argumentName?: string;
|
|
6157
6233
|
}
|
|
6234
|
+
type UseDestructuringOptions = {};
|
|
6158
6235
|
type UseExhaustiveSwitchCasesOptions = {};
|
|
6159
6236
|
type UseExplicitTypeOptions = {};
|
|
6160
6237
|
type UseFindOptions = {};
|
|
@@ -6166,6 +6243,13 @@ interface UseMaxParamsOptions {
|
|
|
6166
6243
|
}
|
|
6167
6244
|
type UseQwikMethodUsageOptions = {};
|
|
6168
6245
|
type UseQwikValidLexicalScopeOptions = {};
|
|
6246
|
+
type UseRegexpExecOptions = {};
|
|
6247
|
+
interface UseRequiredScriptsOptions {
|
|
6248
|
+
/**
|
|
6249
|
+
* List of script names that must be present in package.json
|
|
6250
|
+
*/
|
|
6251
|
+
requiredScripts?: string[];
|
|
6252
|
+
}
|
|
6169
6253
|
interface UseSortedClassesOptions {
|
|
6170
6254
|
/**
|
|
6171
6255
|
* Additional attributes that will be sorted.
|
|
@@ -6895,6 +6979,7 @@ type Category =
|
|
|
6895
6979
|
| "lint/nursery/noContinue"
|
|
6896
6980
|
| "lint/nursery/noDeprecatedImports"
|
|
6897
6981
|
| "lint/nursery/noDuplicateDependencies"
|
|
6982
|
+
| "lint/nursery/noDuplicatedSpreadProps"
|
|
6898
6983
|
| "lint/nursery/noEmptySource"
|
|
6899
6984
|
| "lint/nursery/noEqualsToNull"
|
|
6900
6985
|
| "lint/nursery/noFloatingPromises"
|
|
@@ -6912,7 +6997,6 @@ type Category =
|
|
|
6912
6997
|
| "lint/nursery/noProto"
|
|
6913
6998
|
| "lint/nursery/noReactForwardRef"
|
|
6914
6999
|
| "lint/nursery/noShadow"
|
|
6915
|
-
| "lint/nursery/noDuplicatedSpreadProps"
|
|
6916
7000
|
| "lint/nursery/noSyncScripts"
|
|
6917
7001
|
| "lint/nursery/noTernary"
|
|
6918
7002
|
| "lint/nursery/noUnknownAttribute"
|
|
@@ -6927,14 +7011,17 @@ type Category =
|
|
|
6927
7011
|
| "lint/nursery/noVueDuplicateKeys"
|
|
6928
7012
|
| "lint/nursery/noVueReservedKeys"
|
|
6929
7013
|
| "lint/nursery/noVueReservedProps"
|
|
7014
|
+
| "lint/nursery/noVueSetupPropsReactivityLoss"
|
|
6930
7015
|
| "lint/nursery/noVueVIfWithVFor"
|
|
6931
7016
|
| "lint/nursery/useAnchorHref"
|
|
6932
7017
|
| "lint/nursery/useArraySortCompare"
|
|
7018
|
+
| "lint/nursery/useAwaitThenable"
|
|
6933
7019
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
6934
7020
|
| "lint/nursery/useConsistentArrowReturn"
|
|
6935
7021
|
| "lint/nursery/useConsistentGraphqlDescriptions"
|
|
6936
7022
|
| "lint/nursery/useConsistentObjectDefinition"
|
|
6937
7023
|
| "lint/nursery/useDeprecatedDate"
|
|
7024
|
+
| "lint/nursery/useDestructuring"
|
|
6938
7025
|
| "lint/nursery/useExhaustiveSwitchCases"
|
|
6939
7026
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
6940
7027
|
| "lint/nursery/useExplicitType"
|
|
@@ -6944,6 +7031,8 @@ type Category =
|
|
|
6944
7031
|
| "lint/nursery/useMaxParams"
|
|
6945
7032
|
| "lint/nursery/useQwikMethodUsage"
|
|
6946
7033
|
| "lint/nursery/useQwikValidLexicalScope"
|
|
7034
|
+
| "lint/nursery/useRegexpExec"
|
|
7035
|
+
| "lint/nursery/useRequiredScripts"
|
|
6947
7036
|
| "lint/nursery/useSortedClasses"
|
|
6948
7037
|
| "lint/nursery/useSpread"
|
|
6949
7038
|
| "lint/nursery/useUniqueGraphqlOperationName"
|
|
@@ -6975,6 +7064,7 @@ type Category =
|
|
|
6975
7064
|
| "lint/security/noDangerouslySetInnerHtml"
|
|
6976
7065
|
| "lint/security/noDangerouslySetInnerHtmlWithChildren"
|
|
6977
7066
|
| "lint/security/noGlobalEval"
|
|
7067
|
+
| "lint/nursery/noScriptUrl"
|
|
6978
7068
|
| "lint/security/noSecrets"
|
|
6979
7069
|
| "lint/style/noCommonJs"
|
|
6980
7070
|
| "lint/style/noDefaultExport"
|