@biomejs/wasm-web 1.9.3 → 1.9.4
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 +99 -11
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1137,6 +1137,14 @@ interface Nursery {
|
|
|
1137
1137
|
* Disallow a lower specificity selector from coming after a higher specificity selector.
|
|
1138
1138
|
*/
|
|
1139
1139
|
noDescendingSpecificity?: RuleConfiguration_for_Null;
|
|
1140
|
+
/**
|
|
1141
|
+
* Disallow direct assignments to document.cookie.
|
|
1142
|
+
*/
|
|
1143
|
+
noDocumentCookie?: RuleConfiguration_for_Null;
|
|
1144
|
+
/**
|
|
1145
|
+
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
1146
|
+
*/
|
|
1147
|
+
noDocumentImportInPage?: RuleConfiguration_for_Null;
|
|
1140
1148
|
/**
|
|
1141
1149
|
* Disallow duplicate custom properties within declaration blocks.
|
|
1142
1150
|
*/
|
|
@@ -1145,6 +1153,10 @@ interface Nursery {
|
|
|
1145
1153
|
* Disallow duplicate conditions in if-else-if chains
|
|
1146
1154
|
*/
|
|
1147
1155
|
noDuplicateElseIf?: RuleConfiguration_for_Null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Disallow duplicate properties within declaration blocks.
|
|
1158
|
+
*/
|
|
1159
|
+
noDuplicateProperties?: RuleConfiguration_for_Null;
|
|
1148
1160
|
/**
|
|
1149
1161
|
* No duplicated fields in GraphQL operations.
|
|
1150
1162
|
*/
|
|
@@ -1161,6 +1173,18 @@ interface Nursery {
|
|
|
1161
1173
|
* Disallow exporting an imported variable.
|
|
1162
1174
|
*/
|
|
1163
1175
|
noExportedImports?: RuleConfiguration_for_Null;
|
|
1176
|
+
/**
|
|
1177
|
+
* Prevent usage of \<head> element in a Next.js project.
|
|
1178
|
+
*/
|
|
1179
|
+
noHeadElement?: RuleConfiguration_for_Null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
1182
|
+
*/
|
|
1183
|
+
noHeadImportInDocument?: RuleConfiguration_for_Null;
|
|
1184
|
+
/**
|
|
1185
|
+
* Prevent usage of \<img> element in a Next.js project.
|
|
1186
|
+
*/
|
|
1187
|
+
noImgElement?: RuleConfiguration_for_Null;
|
|
1164
1188
|
/**
|
|
1165
1189
|
* Disallows the use of irregular whitespace characters.
|
|
1166
1190
|
*/
|
|
@@ -1192,7 +1216,7 @@ interface Nursery {
|
|
|
1192
1216
|
/**
|
|
1193
1217
|
* Disallow usage of sensitive data such as API keys and tokens.
|
|
1194
1218
|
*/
|
|
1195
|
-
noSecrets?:
|
|
1219
|
+
noSecrets?: RuleConfiguration_for_NoSecretsOptions;
|
|
1196
1220
|
/**
|
|
1197
1221
|
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
1198
1222
|
*/
|
|
@@ -1213,10 +1237,18 @@ interface Nursery {
|
|
|
1213
1237
|
* Disallow unknown pseudo-element selectors.
|
|
1214
1238
|
*/
|
|
1215
1239
|
noUnknownPseudoElement?: RuleConfiguration_for_Null;
|
|
1240
|
+
/**
|
|
1241
|
+
* Disallow unknown type selectors.
|
|
1242
|
+
*/
|
|
1243
|
+
noUnknownTypeSelector?: RuleConfiguration_for_Null;
|
|
1216
1244
|
/**
|
|
1217
1245
|
* Disallow unnecessary escape sequence in regular expression literals.
|
|
1218
1246
|
*/
|
|
1219
1247
|
noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
|
|
1248
|
+
/**
|
|
1249
|
+
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
1250
|
+
*/
|
|
1251
|
+
noUselessStringRaw?: RuleConfiguration_for_Null;
|
|
1220
1252
|
/**
|
|
1221
1253
|
* Disallow use of @value rule in css modules.
|
|
1222
1254
|
*/
|
|
@@ -1233,6 +1265,14 @@ interface Nursery {
|
|
|
1233
1265
|
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1234
1266
|
*/
|
|
1235
1267
|
useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
|
|
1268
|
+
/**
|
|
1269
|
+
* Use at() instead of integer index access.
|
|
1270
|
+
*/
|
|
1271
|
+
useAtIndex?: RuleFixConfiguration_for_Null;
|
|
1272
|
+
/**
|
|
1273
|
+
* Enforce using single if instead of nested if clauses.
|
|
1274
|
+
*/
|
|
1275
|
+
useCollapsedIf?: RuleFixConfiguration_for_Null;
|
|
1236
1276
|
/**
|
|
1237
1277
|
* Enforce declaring components only within modules that export React Components exclusively.
|
|
1238
1278
|
*/
|
|
@@ -1252,7 +1292,15 @@ interface Nursery {
|
|
|
1252
1292
|
/**
|
|
1253
1293
|
* Require explicit return types on functions and class methods.
|
|
1254
1294
|
*/
|
|
1255
|
-
|
|
1295
|
+
useExplicitType?: RuleConfiguration_for_Null;
|
|
1296
|
+
/**
|
|
1297
|
+
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
1298
|
+
*/
|
|
1299
|
+
useGoogleFontDisplay?: RuleConfiguration_for_Null;
|
|
1300
|
+
/**
|
|
1301
|
+
* Require for-in loops to include an if statement.
|
|
1302
|
+
*/
|
|
1303
|
+
useGuardForIn?: RuleConfiguration_for_Null;
|
|
1256
1304
|
/**
|
|
1257
1305
|
* Disallows package private imports.
|
|
1258
1306
|
*/
|
|
@@ -1899,6 +1947,9 @@ type RuleConfiguration_for_RestrictedImportsOptions =
|
|
|
1899
1947
|
type RuleFixConfiguration_for_NoRestrictedTypesOptions =
|
|
1900
1948
|
| RulePlainConfiguration
|
|
1901
1949
|
| RuleWithFixOptions_for_NoRestrictedTypesOptions;
|
|
1950
|
+
type RuleConfiguration_for_NoSecretsOptions =
|
|
1951
|
+
| RulePlainConfiguration
|
|
1952
|
+
| RuleWithOptions_for_NoSecretsOptions;
|
|
1902
1953
|
type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
|
|
1903
1954
|
| RulePlainConfiguration
|
|
1904
1955
|
| RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
|
|
@@ -2060,6 +2111,16 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
|
|
|
2060
2111
|
*/
|
|
2061
2112
|
options: NoRestrictedTypesOptions;
|
|
2062
2113
|
}
|
|
2114
|
+
interface RuleWithOptions_for_NoSecretsOptions {
|
|
2115
|
+
/**
|
|
2116
|
+
* The severity of the emitted diagnostics by the rule
|
|
2117
|
+
*/
|
|
2118
|
+
level: RulePlainConfiguration;
|
|
2119
|
+
/**
|
|
2120
|
+
* Rule's options
|
|
2121
|
+
*/
|
|
2122
|
+
options: NoSecretsOptions;
|
|
2123
|
+
}
|
|
2063
2124
|
interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
|
|
2064
2125
|
/**
|
|
2065
2126
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2202,20 +2263,24 @@ interface NoLabelWithoutControlOptions {
|
|
|
2202
2263
|
labelComponents?: string[];
|
|
2203
2264
|
}
|
|
2204
2265
|
interface ValidAriaRoleOptions {
|
|
2205
|
-
allowInvalidRoles
|
|
2206
|
-
ignoreNonDom
|
|
2266
|
+
allowInvalidRoles?: string[];
|
|
2267
|
+
ignoreNonDom?: boolean;
|
|
2207
2268
|
}
|
|
2208
2269
|
interface ComplexityOptions {
|
|
2209
2270
|
/**
|
|
2210
2271
|
* The maximum complexity score that we allow. Anything higher is considered excessive.
|
|
2211
2272
|
*/
|
|
2212
|
-
maxAllowedComplexity
|
|
2273
|
+
maxAllowedComplexity?: number;
|
|
2213
2274
|
}
|
|
2214
2275
|
interface UseExhaustiveDependenciesOptions {
|
|
2215
2276
|
/**
|
|
2216
2277
|
* List of hooks of which the dependencies should be validated.
|
|
2217
2278
|
*/
|
|
2218
2279
|
hooks?: Hook[];
|
|
2280
|
+
/**
|
|
2281
|
+
* Whether to report an error when a hook has no dependencies array.
|
|
2282
|
+
*/
|
|
2283
|
+
reportMissingDependenciesArray?: boolean;
|
|
2219
2284
|
/**
|
|
2220
2285
|
* Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.
|
|
2221
2286
|
*/
|
|
@@ -2226,7 +2291,7 @@ interface UseImportExtensionsOptions {
|
|
|
2226
2291
|
/**
|
|
2227
2292
|
* 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
|
|
2228
2293
|
*/
|
|
2229
|
-
suggestedExtensions
|
|
2294
|
+
suggestedExtensions?: {};
|
|
2230
2295
|
}
|
|
2231
2296
|
interface RestrictedImportsOptions {
|
|
2232
2297
|
/**
|
|
@@ -2235,7 +2300,13 @@ interface RestrictedImportsOptions {
|
|
|
2235
2300
|
paths: {};
|
|
2236
2301
|
}
|
|
2237
2302
|
interface NoRestrictedTypesOptions {
|
|
2238
|
-
types
|
|
2303
|
+
types?: {};
|
|
2304
|
+
}
|
|
2305
|
+
interface NoSecretsOptions {
|
|
2306
|
+
/**
|
|
2307
|
+
* Set entropy threshold (default is 41).
|
|
2308
|
+
*/
|
|
2309
|
+
entropyThreshold?: number;
|
|
2239
2310
|
}
|
|
2240
2311
|
interface UseComponentExportOnlyModulesOptions {
|
|
2241
2312
|
/**
|
|
@@ -2248,7 +2319,7 @@ interface UseComponentExportOnlyModulesOptions {
|
|
|
2248
2319
|
allowExportNames: string[];
|
|
2249
2320
|
}
|
|
2250
2321
|
interface ConsistentMemberAccessibilityOptions {
|
|
2251
|
-
accessibility
|
|
2322
|
+
accessibility?: Accessibility;
|
|
2252
2323
|
}
|
|
2253
2324
|
interface UtilityClassSortingOptions {
|
|
2254
2325
|
/**
|
|
@@ -2264,7 +2335,7 @@ interface UseValidAutocompleteOptions {
|
|
|
2264
2335
|
/**
|
|
2265
2336
|
* `input` like custom components that should be checked.
|
|
2266
2337
|
*/
|
|
2267
|
-
inputComponents
|
|
2338
|
+
inputComponents?: string[];
|
|
2268
2339
|
}
|
|
2269
2340
|
interface RestrictedGlobalsOptions {
|
|
2270
2341
|
/**
|
|
@@ -2273,7 +2344,7 @@ interface RestrictedGlobalsOptions {
|
|
|
2273
2344
|
deniedGlobals: string[];
|
|
2274
2345
|
}
|
|
2275
2346
|
interface ConsistentArrayTypeOptions {
|
|
2276
|
-
syntax
|
|
2347
|
+
syntax?: ConsistentArrayType;
|
|
2277
2348
|
}
|
|
2278
2349
|
interface FilenamingConventionOptions {
|
|
2279
2350
|
/**
|
|
@@ -2337,7 +2408,7 @@ For example, for React's `useEffect()` hook, the dependencies index is 1.
|
|
|
2337
2408
|
/**
|
|
2338
2409
|
* The name of the hook.
|
|
2339
2410
|
*/
|
|
2340
|
-
name
|
|
2411
|
+
name?: string;
|
|
2341
2412
|
/**
|
|
2342
2413
|
* Whether the result of the hook is stable.
|
|
2343
2414
|
|
|
@@ -2680,14 +2751,20 @@ type Category =
|
|
|
2680
2751
|
| "lint/nursery/noCommonJs"
|
|
2681
2752
|
| "lint/nursery/noConsole"
|
|
2682
2753
|
| "lint/nursery/noDescendingSpecificity"
|
|
2754
|
+
| "lint/nursery/noDocumentCookie"
|
|
2755
|
+
| "lint/nursery/noDocumentImportInPage"
|
|
2683
2756
|
| "lint/nursery/noDoneCallback"
|
|
2684
2757
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
2685
2758
|
| "lint/nursery/noDuplicateCustomProperties"
|
|
2686
2759
|
| "lint/nursery/noDuplicateElseIf"
|
|
2760
|
+
| "lint/nursery/noDuplicateProperties"
|
|
2687
2761
|
| "lint/nursery/noDuplicatedFields"
|
|
2688
2762
|
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2689
2763
|
| "lint/nursery/noEnum"
|
|
2690
2764
|
| "lint/nursery/noExportedImports"
|
|
2765
|
+
| "lint/nursery/noHeadElement"
|
|
2766
|
+
| "lint/nursery/noHeadImportInDocument"
|
|
2767
|
+
| "lint/nursery/noImgElement"
|
|
2691
2768
|
| "lint/nursery/noImportantInKeyframe"
|
|
2692
2769
|
| "lint/nursery/noInvalidDirectionInLinearGradient"
|
|
2693
2770
|
| "lint/nursery/noInvalidGridAreas"
|
|
@@ -2714,19 +2791,26 @@ type Category =
|
|
|
2714
2791
|
| "lint/nursery/noUnknownPseudoClassSelector"
|
|
2715
2792
|
| "lint/nursery/noUnknownPseudoElement"
|
|
2716
2793
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
2794
|
+
| "lint/nursery/noUnknownTypeSelector"
|
|
2717
2795
|
| "lint/nursery/noUnknownUnit"
|
|
2718
2796
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2719
2797
|
| "lint/nursery/noUnusedFunctionParameters"
|
|
2720
2798
|
| "lint/nursery/noUselessEscapeInRegex"
|
|
2799
|
+
| "lint/nursery/noUselessStringRaw"
|
|
2721
2800
|
| "lint/nursery/noValueAtRule"
|
|
2722
2801
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2723
2802
|
| "lint/nursery/useAriaPropsSupportedByRole"
|
|
2803
|
+
| "lint/nursery/useAtIndex"
|
|
2724
2804
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2805
|
+
| "lint/nursery/useCollapsedIf"
|
|
2725
2806
|
| "lint/nursery/useComponentExportOnlyModules"
|
|
2726
2807
|
| "lint/nursery/useConsistentCurlyBraces"
|
|
2727
2808
|
| "lint/nursery/useConsistentMemberAccessibility"
|
|
2728
2809
|
| "lint/nursery/useDeprecatedReason"
|
|
2729
2810
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
2811
|
+
| "lint/nursery/useExplicitType"
|
|
2812
|
+
| "lint/nursery/useGoogleFontDisplay"
|
|
2813
|
+
| "lint/nursery/useGuardForIn"
|
|
2730
2814
|
| "lint/nursery/useImportRestrictions"
|
|
2731
2815
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2732
2816
|
| "lint/nursery/useSortedClasses"
|
|
@@ -2878,6 +2962,10 @@ type Category =
|
|
|
2878
2962
|
| "internalError/io"
|
|
2879
2963
|
| "internalError/fs"
|
|
2880
2964
|
| "internalError/panic"
|
|
2965
|
+
| "reporter/parse"
|
|
2966
|
+
| "reporter/format"
|
|
2967
|
+
| "reporter/analyzer"
|
|
2968
|
+
| "reporter/organizeImports"
|
|
2881
2969
|
| "parse"
|
|
2882
2970
|
| "lint"
|
|
2883
2971
|
| "lint/a11y"
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|