@biomejs/wasm-web 1.8.4-nightly.d079e53 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/biome_wasm.d.ts CHANGED
@@ -9,9 +9,27 @@ interface SupportsFeatureParams {
9
9
  }
10
10
  type FeatureName = FeatureKind[];
11
11
  interface BiomePath {
12
+ /**
13
+ * Determines the kind of the file inside Biome. Some files are considered as configuration files, others as manifest files, and others as files to handle
14
+ */
15
+ kind: FileKind;
16
+ /**
17
+ * The path to the file
18
+ */
12
19
  path: string;
20
+ /**
21
+ * Whether this path (usually a file) was fixed as a result of a format/lint/check command with the `--write` filag.
22
+ */
23
+ was_written: boolean;
13
24
  }
14
25
  type FeatureKind = "Format" | "Lint" | "OrganizeImports" | "Search" | "Assists";
26
+ type FileKind = FileKind2[];
27
+ type FileKind2 =
28
+ | "Config"
29
+ | "Manifest"
30
+ | "Ignore"
31
+ | "Inspectable"
32
+ | "Handleable";
15
33
  interface SupportsFeatureResult {
16
34
  reason?: SupportKind;
17
35
  }
@@ -585,6 +603,10 @@ interface OverridePattern {
585
603
  }
586
604
  type VcsClientKind = "git";
587
605
  interface Source {
606
+ /**
607
+ * Enforce props sorting in JSX elements.
608
+ */
609
+ sortJsxProps?: RuleAssistConfiguration;
588
610
  /**
589
611
  * Sorts the keys of a JSON object in natural order
590
612
  */
@@ -633,6 +655,10 @@ interface A11y {
633
655
  * Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
634
656
  */
635
657
  noInteractiveElementToNoninteractiveRole?: RuleFixConfiguration_for_Null;
658
+ /**
659
+ * Enforce that a label element or component has a text label and an associated input.
660
+ */
661
+ noLabelWithoutControl?: RuleConfiguration_for_NoLabelWithoutControlOptions;
636
662
  /**
637
663
  * Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
638
664
  */
@@ -681,6 +707,14 @@ interface A11y {
681
707
  * Enforces the usage of the attribute type for the element button
682
708
  */
683
709
  useButtonType?: RuleConfiguration_for_Null;
710
+ /**
711
+ * Elements with an interactive role and interaction handlers must be focusable.
712
+ */
713
+ useFocusableInteractive?: RuleConfiguration_for_Null;
714
+ /**
715
+ * Disallow a missing generic family keyword within font families.
716
+ */
717
+ useGenericFontNames?: RuleConfiguration_for_Null;
684
718
  /**
685
719
  * 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.
686
720
  */
@@ -705,6 +739,10 @@ interface A11y {
705
739
  * Enforces that audio and video elements must have a track for captions.
706
740
  */
707
741
  useMediaCaption?: RuleConfiguration_for_Null;
742
+ /**
743
+ * It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
744
+ */
745
+ useSemanticElements?: RuleConfiguration_for_Null;
708
746
  /**
709
747
  * Enforce that all anchors are valid, and they are navigable elements.
710
748
  */
@@ -795,6 +833,10 @@ interface Complexity {
795
833
  * Disallow renaming import, export, and destructured assignments to the same name.
796
834
  */
797
835
  noUselessRename?: RuleFixConfiguration_for_Null;
836
+ /**
837
+ * Disallow unnecessary concatenation of string or template literals.
838
+ */
839
+ noUselessStringConcat?: RuleFixConfiguration_for_Null;
798
840
  /**
799
841
  * Disallow useless case in switch statements.
800
842
  */
@@ -811,6 +853,10 @@ interface Complexity {
811
853
  * Disallow using any or unknown as type constraint.
812
854
  */
813
855
  noUselessTypeConstraint?: RuleFixConfiguration_for_Null;
856
+ /**
857
+ * Disallow initializing variables to undefined.
858
+ */
859
+ noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
814
860
  /**
815
861
  * Disallow the use of void operators, which is not a familiar operator.
816
862
  */
@@ -827,6 +873,10 @@ interface Complexity {
827
873
  * Use arrow functions over function expressions.
828
874
  */
829
875
  useArrowFunction?: RuleFixConfiguration_for_Null;
876
+ /**
877
+ * Use Date.now() to get the number of milliseconds since the Unix Epoch.
878
+ */
879
+ useDateNow?: RuleFixConfiguration_for_Null;
830
880
  /**
831
881
  * Promotes the use of .flatMap() when map().flat() are used together.
832
882
  */
@@ -897,14 +947,30 @@ interface Correctness {
897
947
  * Disallow function and var declarations that are accessible outside their block.
898
948
  */
899
949
  noInnerDeclarations?: RuleConfiguration_for_Null;
950
+ /**
951
+ * Ensure that builtins are correctly instantiated.
952
+ */
953
+ noInvalidBuiltinInstantiation?: RuleFixConfiguration_for_Null;
900
954
  /**
901
955
  * Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
902
956
  */
903
957
  noInvalidConstructorSuper?: RuleConfiguration_for_Null;
958
+ /**
959
+ * Disallow non-standard direction values for linear gradient functions.
960
+ */
961
+ noInvalidDirectionInLinearGradient?: RuleConfiguration_for_Null;
962
+ /**
963
+ * Disallows invalid named grid areas in CSS Grid Layouts.
964
+ */
965
+ noInvalidGridAreas?: RuleConfiguration_for_Null;
904
966
  /**
905
967
  * Disallow new operators with global non-constructor functions.
906
968
  */
907
969
  noInvalidNewBuiltin?: RuleFixConfiguration_for_Null;
970
+ /**
971
+ * Disallow the use of @import at-rules in invalid positions.
972
+ */
973
+ noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
908
974
  /**
909
975
  * Disallow the use of variables and function parameters before their declaration
910
976
  */
@@ -945,10 +1011,34 @@ interface Correctness {
945
1011
  * Disallow lexical declarations in switch clauses.
946
1012
  */
947
1013
  noSwitchDeclarations?: RuleFixConfiguration_for_Null;
1014
+ /**
1015
+ * Disallow the use of dependencies that aren't specified in the package.json.
1016
+ */
1017
+ noUndeclaredDependencies?: RuleConfiguration_for_Null;
948
1018
  /**
949
1019
  * Prevents the usage of variables that haven't been declared inside the document.
950
1020
  */
951
1021
  noUndeclaredVariables?: RuleConfiguration_for_Null;
1022
+ /**
1023
+ * Disallow unknown CSS value functions.
1024
+ */
1025
+ noUnknownFunction?: RuleConfiguration_for_Null;
1026
+ /**
1027
+ * Disallow unknown media feature names.
1028
+ */
1029
+ noUnknownMediaFeatureName?: RuleConfiguration_for_Null;
1030
+ /**
1031
+ * Disallow unknown properties.
1032
+ */
1033
+ noUnknownProperty?: RuleConfiguration_for_Null;
1034
+ /**
1035
+ * Disallow unknown CSS units.
1036
+ */
1037
+ noUnknownUnit?: RuleConfiguration_for_Null;
1038
+ /**
1039
+ * Disallow unmatchable An+B selectors.
1040
+ */
1041
+ noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
952
1042
  /**
953
1043
  * Avoid using unnecessary continue.
954
1044
  */
@@ -969,6 +1059,10 @@ interface Correctness {
969
1059
  * Disallow the use of optional chaining in contexts where the undefined value is not allowed.
970
1060
  */
971
1061
  noUnsafeOptionalChaining?: RuleConfiguration_for_Null;
1062
+ /**
1063
+ * Disallow unused function parameters.
1064
+ */
1065
+ noUnusedFunctionParameters?: RuleFixConfiguration_for_Null;
972
1066
  /**
973
1067
  * Disallow unused imports.
974
1068
  */
@@ -1009,6 +1103,10 @@ interface Correctness {
1009
1103
  * Enforce that all React hooks are being called from the Top Level component functions.
1010
1104
  */
1011
1105
  useHookAtTopLevel?: RuleConfiguration_for_DeprecatedHooksOptions;
1106
+ /**
1107
+ * Enforce file extensions for relative imports.
1108
+ */
1109
+ useImportExtensions?: RuleFixConfiguration_for_UseImportExtensionsOptions;
1012
1110
  /**
1013
1111
  * Require calls to isNaN() when checking for NaN.
1014
1112
  */
@@ -1032,33 +1130,17 @@ interface Nursery {
1032
1130
  */
1033
1131
  all?: boolean;
1034
1132
  /**
1035
- * Disallow the use of console.
1133
+ * Disallow use of CommonJs module system in favor of ESM style imports.
1036
1134
  */
1037
- noConsole?: RuleFixConfiguration_for_Null;
1135
+ noCommonJs?: RuleConfiguration_for_Null;
1038
1136
  /**
1039
- * Disallow using a callback in asynchronous tests and hooks.
1137
+ * Disallow duplicate custom properties within declaration blocks.
1040
1138
  */
1041
- noDoneCallback?: RuleConfiguration_for_Null;
1042
- /**
1043
- * Disallow duplicate @import rules.
1044
- */
1045
- noDuplicateAtImportRules?: RuleConfiguration_for_Null;
1139
+ noDuplicateCustomProperties?: RuleConfiguration_for_Null;
1046
1140
  /**
1047
1141
  * Disallow duplicate conditions in if-else-if chains
1048
1142
  */
1049
1143
  noDuplicateElseIf?: RuleConfiguration_for_Null;
1050
- /**
1051
- * Disallow duplicate names within font families.
1052
- */
1053
- noDuplicateFontNames?: RuleConfiguration_for_Null;
1054
- /**
1055
- * Disallow two keys with the same name inside a JSON object.
1056
- */
1057
- noDuplicateJsonKeys?: RuleConfiguration_for_Null;
1058
- /**
1059
- * Disallow duplicate selectors within keyframe blocks.
1060
- */
1061
- noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
1062
1144
  /**
1063
1145
  * No duplicated fields in GraphQL operations.
1064
1146
  */
@@ -1068,53 +1150,29 @@ interface Nursery {
1068
1150
  */
1069
1151
  noDynamicNamespaceImportAccess?: RuleConfiguration_for_Null;
1070
1152
  /**
1071
- * Disallow CSS empty blocks.
1072
- */
1073
- noEmptyBlock?: RuleConfiguration_for_Null;
1074
- /**
1075
- * Disallow variables from evolving into any type through reassignments.
1153
+ * Disallow TypeScript enum.
1076
1154
  */
1077
- noEvolvingTypes?: RuleConfiguration_for_Null;
1155
+ noEnum?: RuleConfiguration_for_Null;
1078
1156
  /**
1079
1157
  * Disallow exporting an imported variable.
1080
1158
  */
1081
1159
  noExportedImports?: RuleConfiguration_for_Null;
1082
- /**
1083
- * Disallow invalid !important within keyframe declarations
1084
- */
1085
- noImportantInKeyframe?: RuleConfiguration_for_Null;
1086
- /**
1087
- * Disallow non-standard direction values for linear gradient functions.
1088
- */
1089
- noInvalidDirectionInLinearGradient?: RuleConfiguration_for_Null;
1090
- /**
1091
- * Disallow the use of @import at-rules in invalid positions.
1092
- */
1093
- noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
1094
1160
  /**
1095
1161
  * Disallows the use of irregular whitespace characters.
1096
1162
  */
1097
1163
  noIrregularWhitespace?: RuleConfiguration_for_Null;
1098
- /**
1099
- * Enforce that a label element or component has a text label and an associated input.
1100
- */
1101
- noLabelWithoutControl?: RuleConfiguration_for_NoLabelWithoutControlOptions;
1102
- /**
1103
- * Checks that the assertion function, for example expect, is placed inside an it() function call.
1104
- */
1105
- noMisplacedAssertion?: RuleConfiguration_for_Null;
1106
- /**
1107
- * Prevents React-specific JSX properties from being used.
1108
- */
1109
- noReactSpecificProps?: RuleFixConfiguration_for_Null;
1110
1164
  /**
1111
1165
  * Disallow specified modules when loaded by import or require.
1112
1166
  */
1113
1167
  noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
1114
1168
  /**
1115
- * Disallow shorthand properties that override related longhand properties.
1169
+ * Disallow user defined types.
1116
1170
  */
1117
- noShorthandPropertyOverrides?: RuleConfiguration_for_Null;
1171
+ noRestrictedTypes?: RuleFixConfiguration_for_NoRestrictedTypesOptions;
1172
+ /**
1173
+ * Disallow usage of sensitive data such as API keys and tokens.
1174
+ */
1175
+ noSecrets?: RuleConfiguration_for_Null;
1118
1176
  /**
1119
1177
  * Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
1120
1178
  */
@@ -1123,62 +1181,22 @@ interface Nursery {
1123
1181
  * Enforce the use of String.slice() over String.substr() and String.substring().
1124
1182
  */
1125
1183
  noSubstr?: RuleFixConfiguration_for_Null;
1126
- /**
1127
- * Disallow the use of dependencies that aren't specified in the package.json.
1128
- */
1129
- noUndeclaredDependencies?: RuleConfiguration_for_Null;
1130
- /**
1131
- * Disallow unknown CSS value functions.
1132
- */
1133
- noUnknownFunction?: RuleConfiguration_for_Null;
1134
- /**
1135
- * Disallow unknown media feature names.
1136
- */
1137
- noUnknownMediaFeatureName?: RuleConfiguration_for_Null;
1138
- /**
1139
- * Disallow unknown properties.
1140
- */
1141
- noUnknownProperty?: RuleConfiguration_for_Null;
1142
1184
  /**
1143
1185
  * Disallow unknown pseudo-class selectors.
1144
1186
  */
1145
- noUnknownPseudoClassSelector?: RuleConfiguration_for_Null;
1187
+ noUnknownPseudoClass?: RuleConfiguration_for_Null;
1146
1188
  /**
1147
1189
  * Disallow unknown pseudo-element selectors.
1148
1190
  */
1149
- noUnknownSelectorPseudoElement?: RuleConfiguration_for_Null;
1150
- /**
1151
- * Disallow unknown CSS units.
1152
- */
1153
- noUnknownUnit?: RuleConfiguration_for_Null;
1154
- /**
1155
- * Disallow unmatchable An+B selectors.
1156
- */
1157
- noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
1158
- /**
1159
- * Disallow unused function parameters.
1160
- */
1161
- noUnusedFunctionParameters?: RuleFixConfiguration_for_Null;
1191
+ noUnknownPseudoElement?: RuleConfiguration_for_Null;
1162
1192
  /**
1163
1193
  * Disallow unnecessary escape sequence in regular expression literals.
1164
1194
  */
1165
1195
  noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
1166
- /**
1167
- * Disallow unnecessary concatenation of string or template literals.
1168
- */
1169
- noUselessStringConcat?: RuleFixConfiguration_for_Null;
1170
- /**
1171
- * Disallow initializing variables to undefined.
1172
- */
1173
- noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
1174
1196
  /**
1175
1197
  * Disallow use of @value rule in css modules.
1176
1198
  */
1177
1199
  noValueAtRule?: RuleConfiguration_for_Null;
1178
- /**
1179
- * Disallow the use of yoda expressions.
1180
- */
1181
- noYodaExpression?: RuleFixConfiguration_for_Null;
1182
1200
  /**
1183
1201
  * It enables the recommended rules for this group
1184
1202
  */
@@ -1188,61 +1206,25 @@ interface Nursery {
1188
1206
  */
1189
1207
  useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
1190
1208
  /**
1191
- * Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
1209
+ * Enforce that ARIA properties are valid for the roles that are supported by the element.
1192
1210
  */
1193
- useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
1211
+ useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
1194
1212
  /**
1195
1213
  * This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
1196
1214
  */
1197
1215
  useConsistentCurlyBraces?: RuleFixConfiguration_for_Null;
1198
1216
  /**
1199
- * Disallows invalid named grid areas in CSS Grid Layouts.
1217
+ * Require consistent accessibility modifiers on class properties and methods.
1200
1218
  */
1201
- useConsistentGridAreas?: RuleConfiguration_for_Null;
1202
- /**
1203
- * Use Date.now() to get the number of milliseconds since the Unix Epoch.
1204
- */
1205
- useDateNow?: RuleFixConfiguration_for_Null;
1206
- /**
1207
- * Require the default clause in switch statements.
1208
- */
1209
- useDefaultSwitchClause?: RuleConfiguration_for_Null;
1219
+ useConsistentMemberAccessibility?: RuleConfiguration_for_ConsistentMemberAccessibilityOptions;
1210
1220
  /**
1211
1221
  * Require specifying the reason argument when using @deprecated directive
1212
1222
  */
1213
1223
  useDeprecatedReason?: RuleConfiguration_for_Null;
1214
- /**
1215
- * Enforce passing a message value when creating a built-in error.
1216
- */
1217
- useErrorMessage?: RuleConfiguration_for_Null;
1218
- /**
1219
- * Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
1220
- */
1221
- useExplicitLengthCheck?: RuleFixConfiguration_for_Null;
1222
- /**
1223
- * Elements with an interactive role and interaction handlers must be focusable.
1224
- */
1225
- useFocusableInteractive?: RuleConfiguration_for_Null;
1226
- /**
1227
- * Disallow a missing generic family keyword within font families.
1228
- */
1229
- useGenericFontNames?: RuleConfiguration_for_Null;
1230
- /**
1231
- * Enforce file extensions for relative imports.
1232
- */
1233
- useImportExtensions?: RuleFixConfiguration_for_UseImportExtensionsOptions;
1234
1224
  /**
1235
1225
  * Disallows package private imports.
1236
1226
  */
1237
1227
  useImportRestrictions?: RuleConfiguration_for_Null;
1238
- /**
1239
- * Enforce using the digits argument with Number#toFixed().
1240
- */
1241
- useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
1242
- /**
1243
- * It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
1244
- */
1245
- useSemanticElements?: RuleConfiguration_for_Null;
1246
1228
  /**
1247
1229
  * Enforce the sorting of CSS utility classes.
1248
1230
  */
@@ -1251,18 +1233,6 @@ interface Nursery {
1251
1233
  * Enforce the use of the directive "use strict" in script files.
1252
1234
  */
1253
1235
  useStrictMode?: RuleFixConfiguration_for_Null;
1254
- /**
1255
- * Require new when throwing an error.
1256
- */
1257
- useThrowNewError?: RuleFixConfiguration_for_Null;
1258
- /**
1259
- * Disallow throwing non-Error values.
1260
- */
1261
- useThrowOnlyError?: RuleConfiguration_for_Null;
1262
- /**
1263
- * Require regex literals to be declared at the top level.
1264
- */
1265
- useTopLevelRegex?: RuleConfiguration_for_Null;
1266
1236
  /**
1267
1237
  * Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
1268
1238
  */
@@ -1297,6 +1267,10 @@ interface Performance {
1297
1267
  * It enables the recommended rules for this group
1298
1268
  */
1299
1269
  recommended?: boolean;
1270
+ /**
1271
+ * Require regex literals to be declared at the top level.
1272
+ */
1273
+ useTopLevelRegex?: RuleConfiguration_for_Null;
1300
1274
  }
1301
1275
  interface Security {
1302
1276
  /**
@@ -1337,6 +1311,10 @@ interface Style {
1337
1311
  * Disallow default exports.
1338
1312
  */
1339
1313
  noDefaultExport?: RuleConfiguration_for_Null;
1314
+ /**
1315
+ * Disallow using a callback in asynchronous tests and hooks.
1316
+ */
1317
+ noDoneCallback?: RuleConfiguration_for_Null;
1340
1318
  /**
1341
1319
  * Disallow implicit true values on JSX boolean attributes
1342
1320
  */
@@ -1389,6 +1367,10 @@ interface Style {
1389
1367
  * Disallow the use of var
1390
1368
  */
1391
1369
  noVar?: RuleFixConfiguration_for_Null;
1370
+ /**
1371
+ * Disallow the use of yoda expressions.
1372
+ */
1373
+ noYodaExpression?: RuleFixConfiguration_for_Null;
1392
1374
  /**
1393
1375
  * It enables the recommended rules for this group
1394
1376
  */
@@ -1409,6 +1391,10 @@ interface Style {
1409
1391
  * Require consistently using either T\[] or Array\<T>
1410
1392
  */
1411
1393
  useConsistentArrayType?: RuleFixConfiguration_for_ConsistentArrayTypeOptions;
1394
+ /**
1395
+ * Enforce the use of new for all builtins, except String, Number and Boolean.
1396
+ */
1397
+ useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
1412
1398
  /**
1413
1399
  * Require const declarations for variables that are only assigned once.
1414
1400
  */
@@ -1417,10 +1403,18 @@ interface Style {
1417
1403
  * Enforce default function parameters and optional function parameters to be last.
1418
1404
  */
1419
1405
  useDefaultParameterLast?: RuleFixConfiguration_for_Null;
1406
+ /**
1407
+ * Require the default clause in switch statements.
1408
+ */
1409
+ useDefaultSwitchClause?: RuleConfiguration_for_Null;
1420
1410
  /**
1421
1411
  * Require that each enum member value be explicitly initialized.
1422
1412
  */
1423
1413
  useEnumInitializers?: RuleFixConfiguration_for_Null;
1414
+ /**
1415
+ * Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
1416
+ */
1417
+ useExplicitLengthCheck?: RuleFixConfiguration_for_Null;
1424
1418
  /**
1425
1419
  * Disallow the use of Math.pow in favor of the ** operator.
1426
1420
  */
@@ -1497,6 +1491,14 @@ interface Style {
1497
1491
  * Prefer template literals over string concatenation.
1498
1492
  */
1499
1493
  useTemplate?: RuleFixConfiguration_for_Null;
1494
+ /**
1495
+ * Require new when throwing an error.
1496
+ */
1497
+ useThrowNewError?: RuleFixConfiguration_for_Null;
1498
+ /**
1499
+ * Disallow throwing non-Error values.
1500
+ */
1501
+ useThrowOnlyError?: RuleConfiguration_for_Null;
1500
1502
  /**
1501
1503
  * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
1502
1504
  */
@@ -1547,6 +1549,10 @@ interface Suspicious {
1547
1549
  * Disallow void type outside of generic or return types.
1548
1550
  */
1549
1551
  noConfusingVoidType?: RuleFixConfiguration_for_Null;
1552
+ /**
1553
+ * Disallow the use of console.
1554
+ */
1555
+ noConsole?: RuleFixConfiguration_for_NoConsoleOptions;
1550
1556
  /**
1551
1557
  * Disallow the use of console.log
1552
1558
  */
@@ -1564,9 +1570,13 @@ interface Suspicious {
1564
1570
  */
1565
1571
  noDebugger?: RuleFixConfiguration_for_Null;
1566
1572
  /**
1567
- * Require the use of === and !==
1573
+ * Require the use of === and !==.
1568
1574
  */
1569
- noDoubleEquals?: RuleFixConfiguration_for_Null;
1575
+ noDoubleEquals?: RuleFixConfiguration_for_NoDoubleEqualsOptions;
1576
+ /**
1577
+ * Disallow duplicate @import rules.
1578
+ */
1579
+ noDuplicateAtImportRules?: RuleConfiguration_for_Null;
1570
1580
  /**
1571
1581
  * Disallow duplicate case labels.
1572
1582
  */
@@ -1575,22 +1585,34 @@ interface Suspicious {
1575
1585
  * Disallow duplicate class members.
1576
1586
  */
1577
1587
  noDuplicateClassMembers?: RuleConfiguration_for_Null;
1588
+ /**
1589
+ * Disallow duplicate names within font families.
1590
+ */
1591
+ noDuplicateFontNames?: RuleConfiguration_for_Null;
1578
1592
  /**
1579
1593
  * Prevents JSX properties to be assigned multiple times.
1580
1594
  */
1581
1595
  noDuplicateJsxProps?: RuleConfiguration_for_Null;
1582
1596
  /**
1583
- * Prevents object literals having more than one property declaration for the same name.
1597
+ * Disallow two keys with the same name inside objects.
1584
1598
  */
1585
- noDuplicateObjectKeys?: RuleFixConfiguration_for_Null;
1599
+ noDuplicateObjectKeys?: RuleConfiguration_for_Null;
1586
1600
  /**
1587
1601
  * Disallow duplicate function parameter name.
1588
1602
  */
1589
1603
  noDuplicateParameters?: RuleConfiguration_for_Null;
1604
+ /**
1605
+ * Disallow duplicate selectors within keyframe blocks.
1606
+ */
1607
+ noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
1590
1608
  /**
1591
1609
  * A describe block should not contain duplicate hooks.
1592
1610
  */
1593
1611
  noDuplicateTestHooks?: RuleConfiguration_for_Null;
1612
+ /**
1613
+ * Disallow CSS empty blocks.
1614
+ */
1615
+ noEmptyBlock?: RuleConfiguration_for_Null;
1594
1616
  /**
1595
1617
  * Disallow empty block statements and static blocks.
1596
1618
  */
@@ -1599,6 +1621,10 @@ interface Suspicious {
1599
1621
  * Disallow the declaration of empty interfaces.
1600
1622
  */
1601
1623
  noEmptyInterface?: RuleFixConfiguration_for_Null;
1624
+ /**
1625
+ * Disallow variables from evolving into any type through reassignments.
1626
+ */
1627
+ noEvolvingTypes?: RuleConfiguration_for_Null;
1602
1628
  /**
1603
1629
  * Disallow the any type usage.
1604
1630
  */
@@ -1643,6 +1669,10 @@ interface Suspicious {
1643
1669
  * Disallow assigning to imported bindings
1644
1670
  */
1645
1671
  noImportAssign?: RuleConfiguration_for_Null;
1672
+ /**
1673
+ * Disallow invalid !important within keyframe declarations
1674
+ */
1675
+ noImportantInKeyframe?: RuleConfiguration_for_Null;
1646
1676
  /**
1647
1677
  * Disallow labels that share a name with a variable
1648
1678
  */
@@ -1655,6 +1685,10 @@ interface Suspicious {
1655
1685
  * Enforce proper usage of new and constructor.
1656
1686
  */
1657
1687
  noMisleadingInstantiator?: RuleConfiguration_for_Null;
1688
+ /**
1689
+ * Checks that the assertion function, for example expect, is placed inside an it() function call.
1690
+ */
1691
+ noMisplacedAssertion?: RuleConfiguration_for_Null;
1658
1692
  /**
1659
1693
  * Disallow shorthand assign when variable appears on both sides.
1660
1694
  */
@@ -1663,6 +1697,10 @@ interface Suspicious {
1663
1697
  * Disallow direct use of Object.prototype builtins.
1664
1698
  */
1665
1699
  noPrototypeBuiltins?: RuleConfiguration_for_Null;
1700
+ /**
1701
+ * Prevents React-specific JSX properties from being used.
1702
+ */
1703
+ noReactSpecificProps?: RuleFixConfiguration_for_Null;
1666
1704
  /**
1667
1705
  * Disallow variable, function, class, and type redeclarations in the same scope.
1668
1706
  */
@@ -1679,6 +1717,10 @@ interface Suspicious {
1679
1717
  * Disallow identifiers from shadowing restricted names.
1680
1718
  */
1681
1719
  noShadowRestrictedNames?: RuleConfiguration_for_Null;
1720
+ /**
1721
+ * Disallow shorthand properties that override related longhand properties.
1722
+ */
1723
+ noShorthandPropertyOverrides?: RuleConfiguration_for_Null;
1682
1724
  /**
1683
1725
  * Disallow disabled tests.
1684
1726
  */
@@ -1715,6 +1757,10 @@ interface Suspicious {
1715
1757
  * Enforce default clauses in switch statements to be last
1716
1758
  */
1717
1759
  useDefaultSwitchClauseLast?: RuleConfiguration_for_Null;
1760
+ /**
1761
+ * Enforce passing a message value when creating a built-in error.
1762
+ */
1763
+ useErrorMessage?: RuleConfiguration_for_Null;
1718
1764
  /**
1719
1765
  * Enforce get methods to always return a value.
1720
1766
  */
@@ -1727,6 +1773,10 @@ interface Suspicious {
1727
1773
  * Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
1728
1774
  */
1729
1775
  useNamespaceKeyword?: RuleFixConfiguration_for_Null;
1776
+ /**
1777
+ * Enforce using the digits argument with Number#toFixed().
1778
+ */
1779
+ useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
1730
1780
  /**
1731
1781
  * This rule verifies the result of typeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other typeof expressions
1732
1782
  */
@@ -1790,6 +1840,9 @@ type RuleFixConfiguration_for_Null =
1790
1840
  type RuleFixConfiguration_for_AllowDomainOptions =
1791
1841
  | RulePlainConfiguration
1792
1842
  | RuleWithFixOptions_for_AllowDomainOptions;
1843
+ type RuleConfiguration_for_NoLabelWithoutControlOptions =
1844
+ | RulePlainConfiguration
1845
+ | RuleWithOptions_for_NoLabelWithoutControlOptions;
1793
1846
  type RuleConfiguration_for_Null =
1794
1847
  | RulePlainConfiguration
1795
1848
  | RuleWithOptions_for_Null;
@@ -1805,15 +1858,18 @@ type RuleConfiguration_for_HooksOptions =
1805
1858
  type RuleConfiguration_for_DeprecatedHooksOptions =
1806
1859
  | RulePlainConfiguration
1807
1860
  | RuleWithOptions_for_DeprecatedHooksOptions;
1808
- type RuleConfiguration_for_NoLabelWithoutControlOptions =
1861
+ type RuleFixConfiguration_for_UseImportExtensionsOptions =
1809
1862
  | RulePlainConfiguration
1810
- | RuleWithOptions_for_NoLabelWithoutControlOptions;
1863
+ | RuleWithFixOptions_for_UseImportExtensionsOptions;
1811
1864
  type RuleConfiguration_for_RestrictedImportsOptions =
1812
1865
  | RulePlainConfiguration
1813
1866
  | RuleWithOptions_for_RestrictedImportsOptions;
1814
- type RuleFixConfiguration_for_UseImportExtensionsOptions =
1867
+ type RuleFixConfiguration_for_NoRestrictedTypesOptions =
1815
1868
  | RulePlainConfiguration
1816
- | RuleWithFixOptions_for_UseImportExtensionsOptions;
1869
+ | RuleWithFixOptions_for_NoRestrictedTypesOptions;
1870
+ type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
1871
+ | RulePlainConfiguration
1872
+ | RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
1817
1873
  type RuleFixConfiguration_for_UtilityClassSortingOptions =
1818
1874
  | RulePlainConfiguration
1819
1875
  | RuleWithFixOptions_for_UtilityClassSortingOptions;
@@ -1832,6 +1888,12 @@ type RuleConfiguration_for_FilenamingConventionOptions =
1832
1888
  type RuleFixConfiguration_for_NamingConventionOptions =
1833
1889
  | RulePlainConfiguration
1834
1890
  | RuleWithFixOptions_for_NamingConventionOptions;
1891
+ type RuleFixConfiguration_for_NoConsoleOptions =
1892
+ | RulePlainConfiguration
1893
+ | RuleWithFixOptions_for_NoConsoleOptions;
1894
+ type RuleFixConfiguration_for_NoDoubleEqualsOptions =
1895
+ | RulePlainConfiguration
1896
+ | RuleWithFixOptions_for_NoDoubleEqualsOptions;
1835
1897
  type RulePlainConfiguration = "warn" | "error" | "info" | "off";
1836
1898
  interface RuleWithFixOptions_for_Null {
1837
1899
  /**
@@ -1861,6 +1923,16 @@ interface RuleWithFixOptions_for_AllowDomainOptions {
1861
1923
  */
1862
1924
  options: AllowDomainOptions;
1863
1925
  }
1926
+ interface RuleWithOptions_for_NoLabelWithoutControlOptions {
1927
+ /**
1928
+ * The severity of the emitted diagnostics by the rule
1929
+ */
1930
+ level: RulePlainConfiguration;
1931
+ /**
1932
+ * Rule's options
1933
+ */
1934
+ options: NoLabelWithoutControlOptions;
1935
+ }
1864
1936
  interface RuleWithOptions_for_Null {
1865
1937
  /**
1866
1938
  * The severity of the emitted diagnostics by the rule
@@ -1915,7 +1987,11 @@ interface RuleWithOptions_for_DeprecatedHooksOptions {
1915
1987
  */
1916
1988
  options: DeprecatedHooksOptions;
1917
1989
  }
1918
- interface RuleWithOptions_for_NoLabelWithoutControlOptions {
1990
+ interface RuleWithFixOptions_for_UseImportExtensionsOptions {
1991
+ /**
1992
+ * The kind of the code actions emitted by the rule
1993
+ */
1994
+ fix?: FixKind;
1919
1995
  /**
1920
1996
  * The severity of the emitted diagnostics by the rule
1921
1997
  */
@@ -1923,7 +1999,7 @@ interface RuleWithOptions_for_NoLabelWithoutControlOptions {
1923
1999
  /**
1924
2000
  * Rule's options
1925
2001
  */
1926
- options: NoLabelWithoutControlOptions;
2002
+ options: UseImportExtensionsOptions;
1927
2003
  }
1928
2004
  interface RuleWithOptions_for_RestrictedImportsOptions {
1929
2005
  /**
@@ -1935,7 +2011,7 @@ interface RuleWithOptions_for_RestrictedImportsOptions {
1935
2011
  */
1936
2012
  options: RestrictedImportsOptions;
1937
2013
  }
1938
- interface RuleWithFixOptions_for_UseImportExtensionsOptions {
2014
+ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
1939
2015
  /**
1940
2016
  * The kind of the code actions emitted by the rule
1941
2017
  */
@@ -1947,7 +2023,17 @@ interface RuleWithFixOptions_for_UseImportExtensionsOptions {
1947
2023
  /**
1948
2024
  * Rule's options
1949
2025
  */
1950
- options: UseImportExtensionsOptions;
2026
+ options: NoRestrictedTypesOptions;
2027
+ }
2028
+ interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
2029
+ /**
2030
+ * The severity of the emitted diagnostics by the rule
2031
+ */
2032
+ level: RulePlainConfiguration;
2033
+ /**
2034
+ * Rule's options
2035
+ */
2036
+ options: ConsistentMemberAccessibilityOptions;
1951
2037
  }
1952
2038
  interface RuleWithFixOptions_for_UtilityClassSortingOptions {
1953
2039
  /**
@@ -2021,6 +2107,34 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
2021
2107
  */
2022
2108
  options: NamingConventionOptions;
2023
2109
  }
2110
+ interface RuleWithFixOptions_for_NoConsoleOptions {
2111
+ /**
2112
+ * The kind of the code actions emitted by the rule
2113
+ */
2114
+ fix?: FixKind;
2115
+ /**
2116
+ * The severity of the emitted diagnostics by the rule
2117
+ */
2118
+ level: RulePlainConfiguration;
2119
+ /**
2120
+ * Rule's options
2121
+ */
2122
+ options: NoConsoleOptions;
2123
+ }
2124
+ interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
2125
+ /**
2126
+ * The kind of the code actions emitted by the rule
2127
+ */
2128
+ fix?: FixKind;
2129
+ /**
2130
+ * The severity of the emitted diagnostics by the rule
2131
+ */
2132
+ level: RulePlainConfiguration;
2133
+ /**
2134
+ * Rule's options
2135
+ */
2136
+ options: NoDoubleEqualsOptions;
2137
+ }
2024
2138
  type FixKind = "none" | "safe" | "unsafe";
2025
2139
  interface AllowDomainOptions {
2026
2140
  /**
@@ -2028,6 +2142,20 @@ interface AllowDomainOptions {
2028
2142
  */
2029
2143
  allowDomains: string[];
2030
2144
  }
2145
+ interface NoLabelWithoutControlOptions {
2146
+ /**
2147
+ * Array of component names that should be considered the same as an `input` element.
2148
+ */
2149
+ inputComponents: string[];
2150
+ /**
2151
+ * Array of attributes that should be treated as the `label` accessible text content.
2152
+ */
2153
+ labelAttributes: string[];
2154
+ /**
2155
+ * Array of component names that should be considered the same as a `label` element.
2156
+ */
2157
+ labelComponents: string[];
2158
+ }
2031
2159
  interface ValidAriaRoleOptions {
2032
2160
  allowInvalidRoles: string[];
2033
2161
  ignoreNonDom: boolean;
@@ -2045,19 +2173,11 @@ interface HooksOptions {
2045
2173
  hooks: Hook[];
2046
2174
  }
2047
2175
  interface DeprecatedHooksOptions {}
2048
- interface NoLabelWithoutControlOptions {
2049
- /**
2050
- * Array of component names that should be considered the same as an `input` element.
2051
- */
2052
- inputComponents: string[];
2053
- /**
2054
- * Array of attributes that should be treated as the `label` accessible text content.
2055
- */
2056
- labelAttributes: string[];
2176
+ interface UseImportExtensionsOptions {
2057
2177
  /**
2058
- * Array of component names that should be considered the same as a `label` element.
2178
+ * A map of custom import extension mappings, where the key is the inspected file extension, and the value is a pair of `module` extension and `component` import extension
2059
2179
  */
2060
- labelComponents: string[];
2180
+ suggestedExtensions: {};
2061
2181
  }
2062
2182
  interface RestrictedImportsOptions {
2063
2183
  /**
@@ -2065,11 +2185,11 @@ interface RestrictedImportsOptions {
2065
2185
  */
2066
2186
  paths: {};
2067
2187
  }
2068
- interface UseImportExtensionsOptions {
2069
- /**
2070
- * A map of custom import extension mappings, where the key is the inspected file extension, and the value is a pair of `module` extension and `component` import extension
2071
- */
2072
- suggestedExtensions: {};
2188
+ interface NoRestrictedTypesOptions {
2189
+ types: {};
2190
+ }
2191
+ interface ConsistentMemberAccessibilityOptions {
2192
+ accessibility: Accessibility;
2073
2193
  }
2074
2194
  interface UtilityClassSortingOptions {
2075
2195
  /**
@@ -2128,6 +2248,20 @@ interface NamingConventionOptions {
2128
2248
  */
2129
2249
  strictCase: boolean;
2130
2250
  }
2251
+ interface NoConsoleOptions {
2252
+ /**
2253
+ * Allowed calls on the console object.
2254
+ */
2255
+ allow: string[];
2256
+ }
2257
+ interface NoDoubleEqualsOptions {
2258
+ /**
2259
+ * If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.
2260
+
2261
+ If `false`, no such exception will be made.
2262
+ */
2263
+ ignoreNull: boolean;
2264
+ }
2131
2265
  interface Hook {
2132
2266
  /**
2133
2267
  * The "position" of the closure function, starting from zero.
@@ -2152,8 +2286,9 @@ Set to `true` to mark the identity of the hook's return value as stable, or use
2152
2286
 
2153
2287
  For example, for React's `useRef()` hook the value would be `true`, while for `useState()` it would be `[1]`.
2154
2288
  */
2155
- stableResult: StableHookResult;
2289
+ stableResult?: StableHookResult;
2156
2290
  }
2291
+ type Accessibility = "noPublic" | "explicit" | "none";
2157
2292
  type ConsistentArrayType = "shorthand" | "generic";
2158
2293
  type FilenameCases = FilenameCase[];
2159
2294
  interface Convention {
@@ -2246,12 +2381,9 @@ interface RegisterProjectFolderParams {
2246
2381
  setAsCurrentWorkspace: boolean;
2247
2382
  }
2248
2383
  type ProjectKey = string;
2249
- interface UpdateProjectParams {
2250
- path: BiomePath;
2251
- }
2252
- interface OpenProjectParams {
2384
+ interface SetManifestForProjectParams {
2253
2385
  content: string;
2254
- path: BiomePath;
2386
+ manifest_path: BiomePath;
2255
2387
  version: number;
2256
2388
  }
2257
2389
  interface OpenFileParams {
@@ -2265,7 +2397,8 @@ type DocumentFileSource =
2265
2397
  | { Js: JsFileSource }
2266
2398
  | { Json: JsonFileSource }
2267
2399
  | { Css: CssFileSource }
2268
- | { Graphql: GraphqlFileSource };
2400
+ | { Graphql: GraphqlFileSource }
2401
+ | { Html: HtmlFileSource };
2269
2402
  interface JsFileSource {
2270
2403
  /**
2271
2404
  * Used to mark if the source is being used for an Astro, Svelte or Vue file
@@ -2286,6 +2419,9 @@ interface CssFileSource {
2286
2419
  interface GraphqlFileSource {
2287
2420
  variant: GraphqlVariant;
2288
2421
  }
2422
+ interface HtmlFileSource {
2423
+ variant: HtmlVariant;
2424
+ }
2289
2425
  type EmbeddingKind = "Astro" | "Vue" | "Svelte" | "None";
2290
2426
  type Language = "JavaScript" | { TypeScript: { definition_file: boolean } };
2291
2427
  type ModuleKind = "Script" | "Module";
@@ -2293,6 +2429,7 @@ type LanguageVariant = "Standard" | "StandardRestricted" | "Jsx";
2293
2429
  type LanguageVersion = "ES2022" | "ESNext";
2294
2430
  type CssVariant = "Standard";
2295
2431
  type GraphqlVariant = "Standard";
2432
+ type HtmlVariant = "Standard" | "Astro";
2296
2433
  interface ChangeFileParams {
2297
2434
  content: string;
2298
2435
  path: BiomePath;
@@ -2363,6 +2500,7 @@ type Category =
2363
2500
  | "lint/a11y/noDistractingElements"
2364
2501
  | "lint/a11y/noHeaderScope"
2365
2502
  | "lint/a11y/noInteractiveElementToNoninteractiveRole"
2503
+ | "lint/a11y/noLabelWithoutControl"
2366
2504
  | "lint/a11y/noNoninteractiveElementToInteractiveRole"
2367
2505
  | "lint/a11y/noNoninteractiveTabindex"
2368
2506
  | "lint/a11y/noPositiveTabindex"
@@ -2374,12 +2512,15 @@ type Category =
2374
2512
  | "lint/a11y/useAriaActivedescendantWithTabindex"
2375
2513
  | "lint/a11y/useAriaPropsForRole"
2376
2514
  | "lint/a11y/useButtonType"
2515
+ | "lint/a11y/useFocusableInteractive"
2516
+ | "lint/a11y/useGenericFontNames"
2377
2517
  | "lint/a11y/useHeadingContent"
2378
2518
  | "lint/a11y/useHtmlLang"
2379
2519
  | "lint/a11y/useIframeTitle"
2380
2520
  | "lint/a11y/useKeyWithClickEvents"
2381
2521
  | "lint/a11y/useKeyWithMouseEvents"
2382
2522
  | "lint/a11y/useMediaCaption"
2523
+ | "lint/a11y/useSemanticElements"
2383
2524
  | "lint/a11y/useValidAnchor"
2384
2525
  | "lint/a11y/useValidAriaProps"
2385
2526
  | "lint/a11y/useValidAriaRole"
@@ -2401,13 +2542,16 @@ type Category =
2401
2542
  | "lint/complexity/noUselessLabel"
2402
2543
  | "lint/complexity/noUselessLoneBlockStatements"
2403
2544
  | "lint/complexity/noUselessRename"
2545
+ | "lint/complexity/noUselessStringConcat"
2404
2546
  | "lint/complexity/noUselessSwitchCase"
2405
2547
  | "lint/complexity/noUselessTernary"
2406
2548
  | "lint/complexity/noUselessThisAlias"
2407
2549
  | "lint/complexity/noUselessTypeConstraint"
2550
+ | "lint/complexity/noUselessUndefinedInitialization"
2408
2551
  | "lint/complexity/noVoid"
2409
2552
  | "lint/complexity/noWith"
2410
2553
  | "lint/complexity/useArrowFunction"
2554
+ | "lint/complexity/useDateNow"
2411
2555
  | "lint/complexity/useFlatMap"
2412
2556
  | "lint/complexity/useLiteralKeys"
2413
2557
  | "lint/complexity/useOptionalChain"
@@ -2415,17 +2559,21 @@ type Category =
2415
2559
  | "lint/complexity/useSimpleNumberKeys"
2416
2560
  | "lint/complexity/useSimplifiedLogicExpression"
2417
2561
  | "lint/correctness/noChildrenProp"
2418
- | "lint/correctness/noConstAssign"
2419
2562
  | "lint/correctness/noConstantCondition"
2420
2563
  | "lint/correctness/noConstantMathMinMaxClamp"
2564
+ | "lint/correctness/noConstAssign"
2421
2565
  | "lint/correctness/noConstructorReturn"
2422
2566
  | "lint/correctness/noEmptyCharacterClassInRegex"
2423
2567
  | "lint/correctness/noEmptyPattern"
2424
2568
  | "lint/correctness/noFlatMapIdentity"
2425
2569
  | "lint/correctness/noGlobalObjectCalls"
2426
2570
  | "lint/correctness/noInnerDeclarations"
2571
+ | "lint/correctness/noInvalidBuiltinInstantiation"
2427
2572
  | "lint/correctness/noInvalidConstructorSuper"
2573
+ | "lint/correctness/noInvalidDirectionInLinearGradient"
2574
+ | "lint/correctness/noInvalidGridAreas"
2428
2575
  | "lint/correctness/noInvalidNewBuiltin"
2576
+ | "lint/correctness/noInvalidPositionAtImportRule"
2429
2577
  | "lint/correctness/noInvalidUseBeforeDeclaration"
2430
2578
  | "lint/correctness/noNewSymbol"
2431
2579
  | "lint/correctness/noNodejsModules"
@@ -2436,12 +2584,19 @@ type Category =
2436
2584
  | "lint/correctness/noSetterReturn"
2437
2585
  | "lint/correctness/noStringCaseMismatch"
2438
2586
  | "lint/correctness/noSwitchDeclarations"
2587
+ | "lint/correctness/noUndeclaredDependencies"
2439
2588
  | "lint/correctness/noUndeclaredVariables"
2589
+ | "lint/correctness/noUnknownFunction"
2590
+ | "lint/correctness/noUnknownMediaFeatureName"
2591
+ | "lint/correctness/noUnknownProperty"
2592
+ | "lint/correctness/noUnknownUnit"
2593
+ | "lint/correctness/noUnmatchableAnbSelector"
2440
2594
  | "lint/correctness/noUnnecessaryContinue"
2441
2595
  | "lint/correctness/noUnreachable"
2442
2596
  | "lint/correctness/noUnreachableSuper"
2443
2597
  | "lint/correctness/noUnsafeFinally"
2444
2598
  | "lint/correctness/noUnsafeOptionalChaining"
2599
+ | "lint/correctness/noUnusedFunctionParameters"
2445
2600
  | "lint/correctness/noUnusedImports"
2446
2601
  | "lint/correctness/noUnusedLabels"
2447
2602
  | "lint/correctness/noUnusedPrivateClassMembers"
@@ -2451,33 +2606,32 @@ type Category =
2451
2606
  | "lint/correctness/useArrayLiterals"
2452
2607
  | "lint/correctness/useExhaustiveDependencies"
2453
2608
  | "lint/correctness/useHookAtTopLevel"
2609
+ | "lint/correctness/useImportExtensions"
2454
2610
  | "lint/correctness/useIsNan"
2455
2611
  | "lint/correctness/useJsxKeyInIterable"
2456
2612
  | "lint/correctness/useValidForDirection"
2457
2613
  | "lint/correctness/useYield"
2458
2614
  | "lint/nursery/colorNoInvalidHex"
2459
2615
  | "lint/nursery/noColorInvalidHex"
2616
+ | "lint/nursery/noCommonJs"
2460
2617
  | "lint/nursery/noConsole"
2461
2618
  | "lint/nursery/noDoneCallback"
2462
2619
  | "lint/nursery/noDuplicateAtImportRules"
2463
- | "lint/nursery/noDuplicateElseIf"
2464
- | "lint/nursery/noDuplicateFontNames"
2465
- | "lint/nursery/noDuplicateJsonKeys"
2466
- | "lint/nursery/noDuplicateSelectorsKeyframeBlock"
2620
+ | "lint/nursery/noDuplicateCustomProperties"
2467
2621
  | "lint/nursery/noDuplicatedFields"
2622
+ | "lint/nursery/noDuplicateElseIf"
2468
2623
  | "lint/nursery/noDynamicNamespaceImportAccess"
2469
- | "lint/nursery/noEmptyBlock"
2470
- | "lint/nursery/noEvolvingTypes"
2624
+ | "lint/nursery/noEnum"
2471
2625
  | "lint/nursery/noExportedImports"
2472
2626
  | "lint/nursery/noImportantInKeyframe"
2473
2627
  | "lint/nursery/noInvalidDirectionInLinearGradient"
2628
+ | "lint/nursery/noInvalidGridAreas"
2474
2629
  | "lint/nursery/noInvalidPositionAtImportRule"
2475
2630
  | "lint/nursery/noIrregularWhitespace"
2476
- | "lint/nursery/noLabelWithoutControl"
2477
- | "lint/nursery/noMisplacedAssertion"
2478
2631
  | "lint/nursery/noMissingGenericFamilyKeyword"
2479
- | "lint/nursery/noReactSpecificProps"
2480
2632
  | "lint/nursery/noRestrictedImports"
2633
+ | "lint/nursery/noRestrictedTypes"
2634
+ | "lint/nursery/noSecrets"
2481
2635
  | "lint/nursery/noShorthandPropertyOverrides"
2482
2636
  | "lint/nursery/noStaticElementInteractions"
2483
2637
  | "lint/nursery/noSubstr"
@@ -2485,50 +2639,39 @@ type Category =
2485
2639
  | "lint/nursery/noUnknownFunction"
2486
2640
  | "lint/nursery/noUnknownMediaFeatureName"
2487
2641
  | "lint/nursery/noUnknownProperty"
2642
+ | "lint/nursery/noUnknownPseudoClass"
2488
2643
  | "lint/nursery/noUnknownPseudoClassSelector"
2644
+ | "lint/nursery/noUnknownPseudoElement"
2489
2645
  | "lint/nursery/noUnknownSelectorPseudoElement"
2490
2646
  | "lint/nursery/noUnknownUnit"
2491
2647
  | "lint/nursery/noUnmatchableAnbSelector"
2492
2648
  | "lint/nursery/noUnusedFunctionParameters"
2493
2649
  | "lint/nursery/noUselessEscapeInRegex"
2494
- | "lint/nursery/noUselessStringConcat"
2495
- | "lint/nursery/noUselessUndefinedInitialization"
2496
2650
  | "lint/nursery/noValueAtRule"
2497
- | "lint/nursery/noYodaExpression"
2498
2651
  | "lint/nursery/useAdjacentOverloadSignatures"
2652
+ | "lint/nursery/useAriaPropsSupportedByRole"
2499
2653
  | "lint/nursery/useBiomeSuppressionComment"
2500
- | "lint/nursery/useConsistentBuiltinInstantiation"
2501
2654
  | "lint/nursery/useConsistentCurlyBraces"
2502
- | "lint/nursery/useConsistentGridAreas"
2503
- | "lint/nursery/useDateNow"
2504
- | "lint/nursery/useDefaultSwitchClause"
2655
+ | "lint/nursery/useConsistentMemberAccessibility"
2505
2656
  | "lint/nursery/useDeprecatedReason"
2506
- | "lint/nursery/useErrorMessage"
2507
- | "lint/nursery/useExplicitLengthCheck"
2508
- | "lint/nursery/useFocusableInteractive"
2509
- | "lint/nursery/useGenericFontNames"
2510
- | "lint/nursery/useImportExtensions"
2511
2657
  | "lint/nursery/useImportRestrictions"
2512
2658
  | "lint/nursery/useJsxCurlyBraceConvention"
2513
- | "lint/nursery/useNumberToFixedDigitsArgument"
2514
- | "lint/nursery/useSemanticElements"
2515
2659
  | "lint/nursery/useSortedClasses"
2516
2660
  | "lint/nursery/useStrictMode"
2517
- | "lint/nursery/useThrowNewError"
2518
- | "lint/nursery/useThrowOnlyError"
2519
- | "lint/nursery/useTopLevelRegex"
2520
2661
  | "lint/nursery/useTrimStartEnd"
2521
2662
  | "lint/nursery/useValidAutocomplete"
2522
2663
  | "lint/performance/noAccumulatingSpread"
2523
2664
  | "lint/performance/noBarrelFile"
2524
2665
  | "lint/performance/noDelete"
2525
2666
  | "lint/performance/noReExportAll"
2667
+ | "lint/performance/useTopLevelRegex"
2526
2668
  | "lint/security/noDangerouslySetInnerHtml"
2527
2669
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
2528
2670
  | "lint/security/noGlobalEval"
2529
2671
  | "lint/style/noArguments"
2530
2672
  | "lint/style/noCommaOperator"
2531
2673
  | "lint/style/noDefaultExport"
2674
+ | "lint/style/noDoneCallback"
2532
2675
  | "lint/style/noImplicitBoolean"
2533
2676
  | "lint/style/noInferrableTypes"
2534
2677
  | "lint/style/noNamespace"
@@ -2542,13 +2685,17 @@ type Category =
2542
2685
  | "lint/style/noUnusedTemplateLiteral"
2543
2686
  | "lint/style/noUselessElse"
2544
2687
  | "lint/style/noVar"
2688
+ | "lint/style/noYodaExpression"
2545
2689
  | "lint/style/useAsConstAssertion"
2546
2690
  | "lint/style/useBlockStatements"
2547
2691
  | "lint/style/useCollapsedElseIf"
2548
2692
  | "lint/style/useConsistentArrayType"
2693
+ | "lint/style/useConsistentBuiltinInstantiation"
2549
2694
  | "lint/style/useConst"
2550
2695
  | "lint/style/useDefaultParameterLast"
2696
+ | "lint/style/useDefaultSwitchClause"
2551
2697
  | "lint/style/useEnumInitializers"
2698
+ | "lint/style/useExplicitLengthCheck"
2552
2699
  | "lint/style/useExponentiationOperator"
2553
2700
  | "lint/style/useExportType"
2554
2701
  | "lint/style/useFilenamingConvention"
@@ -2568,6 +2715,8 @@ type Category =
2568
2715
  | "lint/style/useSingleCaseStatement"
2569
2716
  | "lint/style/useSingleVarDeclarator"
2570
2717
  | "lint/style/useTemplate"
2718
+ | "lint/style/useThrowNewError"
2719
+ | "lint/style/useThrowOnlyError"
2571
2720
  | "lint/style/useWhile"
2572
2721
  | "lint/suspicious/noApproximativeNumericConstant"
2573
2722
  | "lint/suspicious/noArrayIndexKey"
@@ -2579,19 +2728,25 @@ type Category =
2579
2728
  | "lint/suspicious/noCompareNegZero"
2580
2729
  | "lint/suspicious/noConfusingLabels"
2581
2730
  | "lint/suspicious/noConfusingVoidType"
2731
+ | "lint/suspicious/noConsole"
2582
2732
  | "lint/suspicious/noConsoleLog"
2583
2733
  | "lint/suspicious/noConstEnum"
2584
2734
  | "lint/suspicious/noControlCharactersInRegex"
2585
2735
  | "lint/suspicious/noDebugger"
2586
2736
  | "lint/suspicious/noDoubleEquals"
2737
+ | "lint/suspicious/noDuplicateAtImportRules"
2587
2738
  | "lint/suspicious/noDuplicateCase"
2588
2739
  | "lint/suspicious/noDuplicateClassMembers"
2740
+ | "lint/suspicious/noDuplicateFontNames"
2589
2741
  | "lint/suspicious/noDuplicateJsxProps"
2590
2742
  | "lint/suspicious/noDuplicateObjectKeys"
2591
2743
  | "lint/suspicious/noDuplicateParameters"
2744
+ | "lint/suspicious/noDuplicateSelectorsKeyframeBlock"
2592
2745
  | "lint/suspicious/noDuplicateTestHooks"
2746
+ | "lint/suspicious/noEmptyBlock"
2593
2747
  | "lint/suspicious/noEmptyBlockStatements"
2594
2748
  | "lint/suspicious/noEmptyInterface"
2749
+ | "lint/suspicious/noEvolvingTypes"
2595
2750
  | "lint/suspicious/noExplicitAny"
2596
2751
  | "lint/suspicious/noExportsInTest"
2597
2752
  | "lint/suspicious/noExtraNonNullAssertion"
@@ -2602,16 +2757,20 @@ type Category =
2602
2757
  | "lint/suspicious/noGlobalIsFinite"
2603
2758
  | "lint/suspicious/noGlobalIsNan"
2604
2759
  | "lint/suspicious/noImplicitAnyLet"
2760
+ | "lint/suspicious/noImportantInKeyframe"
2605
2761
  | "lint/suspicious/noImportAssign"
2606
2762
  | "lint/suspicious/noLabelVar"
2607
2763
  | "lint/suspicious/noMisleadingCharacterClass"
2608
2764
  | "lint/suspicious/noMisleadingInstantiator"
2765
+ | "lint/suspicious/noMisplacedAssertion"
2609
2766
  | "lint/suspicious/noMisrefactoredShorthandAssign"
2610
2767
  | "lint/suspicious/noPrototypeBuiltins"
2768
+ | "lint/suspicious/noReactSpecificProps"
2611
2769
  | "lint/suspicious/noRedeclare"
2612
2770
  | "lint/suspicious/noRedundantUseStrict"
2613
2771
  | "lint/suspicious/noSelfCompare"
2614
2772
  | "lint/suspicious/noShadowRestrictedNames"
2773
+ | "lint/suspicious/noShorthandPropertyOverrides"
2615
2774
  | "lint/suspicious/noSkippedTests"
2616
2775
  | "lint/suspicious/noSparseArray"
2617
2776
  | "lint/suspicious/noSuspiciousSemicolonInJsx"
@@ -2620,12 +2779,14 @@ type Category =
2620
2779
  | "lint/suspicious/noUnsafeNegation"
2621
2780
  | "lint/suspicious/useAwait"
2622
2781
  | "lint/suspicious/useDefaultSwitchClauseLast"
2782
+ | "lint/suspicious/useErrorMessage"
2623
2783
  | "lint/suspicious/useGetterReturn"
2624
2784
  | "lint/suspicious/useIsArray"
2625
2785
  | "lint/suspicious/useNamespaceKeyword"
2786
+ | "lint/suspicious/useNumberToFixedDigitsArgument"
2626
2787
  | "lint/suspicious/useValidTypeof"
2627
2788
  | "assists/source/useSortedKeys"
2628
- | "syntax/nursery/noTypeOnlyImportAttributes"
2789
+ | "syntax/correctness/noTypeOnlyImportAttributes"
2629
2790
  | "syntax/correctness/noSuperWithoutExtends"
2630
2791
  | "syntax/correctness/noInitializerWithDefinite"
2631
2792
  | "syntax/correctness/noDuplicatePrivateClassMembers"
@@ -2633,6 +2794,7 @@ type Category =
2633
2794
  | "format"
2634
2795
  | "check"
2635
2796
  | "ci"
2797
+ | "stdin"
2636
2798
  | "configuration"
2637
2799
  | "organizeImports"
2638
2800
  | "assists"
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Biome Developers and Contributors"
6
6
  ],
7
7
  "description": "WebAssembly bindings to the Biome workspace API",
8
- "version": "1.8.4-nightly.d079e53",
8
+ "version": "1.9.0",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",