@biomejs/wasm-nodejs 1.9.3 → 1.9.5-nightly.92879ae

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
@@ -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?: RuleConfiguration_for_Null;
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,22 @@ 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;
1252
+ /**
1253
+ * Disallow the use of useless undefined.
1254
+ */
1255
+ noUselessUndefined?: RuleFixConfiguration_for_Null;
1220
1256
  /**
1221
1257
  * Disallow use of @value rule in css modules.
1222
1258
  */
@@ -1233,6 +1269,14 @@ interface Nursery {
1233
1269
  * Enforce that ARIA properties are valid for the roles that are supported by the element.
1234
1270
  */
1235
1271
  useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
1272
+ /**
1273
+ * Use at() instead of integer index access.
1274
+ */
1275
+ useAtIndex?: RuleFixConfiguration_for_Null;
1276
+ /**
1277
+ * Enforce using single if instead of nested if clauses.
1278
+ */
1279
+ useCollapsedIf?: RuleFixConfiguration_for_Null;
1236
1280
  /**
1237
1281
  * Enforce declaring components only within modules that export React Components exclusively.
1238
1282
  */
@@ -1252,7 +1296,15 @@ interface Nursery {
1252
1296
  /**
1253
1297
  * Require explicit return types on functions and class methods.
1254
1298
  */
1255
- useExplicitFunctionReturnType?: RuleConfiguration_for_Null;
1299
+ useExplicitType?: RuleConfiguration_for_Null;
1300
+ /**
1301
+ * Enforces the use of a recommended display strategy with Google Fonts.
1302
+ */
1303
+ useGoogleFontDisplay?: RuleConfiguration_for_Null;
1304
+ /**
1305
+ * Require for-in loops to include an if statement.
1306
+ */
1307
+ useGuardForIn?: RuleConfiguration_for_Null;
1256
1308
  /**
1257
1309
  * Disallows package private imports.
1258
1310
  */
@@ -1498,7 +1550,7 @@ interface Style {
1498
1550
  /**
1499
1551
  * Prevent extra closing tags for components without children
1500
1552
  */
1501
- useSelfClosingElements?: RuleFixConfiguration_for_Null;
1553
+ useSelfClosingElements?: RuleFixConfiguration_for_UseSelfClosingElementsOptions;
1502
1554
  /**
1503
1555
  * When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
1504
1556
  */
@@ -1728,7 +1780,7 @@ interface Suspicious {
1728
1780
  /**
1729
1781
  * Disallow direct use of Object.prototype builtins.
1730
1782
  */
1731
- noPrototypeBuiltins?: RuleConfiguration_for_Null;
1783
+ noPrototypeBuiltins?: RuleFixConfiguration_for_Null;
1732
1784
  /**
1733
1785
  * Prevents React-specific JSX properties from being used.
1734
1786
  */
@@ -1899,6 +1951,9 @@ type RuleConfiguration_for_RestrictedImportsOptions =
1899
1951
  type RuleFixConfiguration_for_NoRestrictedTypesOptions =
1900
1952
  | RulePlainConfiguration
1901
1953
  | RuleWithFixOptions_for_NoRestrictedTypesOptions;
1954
+ type RuleConfiguration_for_NoSecretsOptions =
1955
+ | RulePlainConfiguration
1956
+ | RuleWithOptions_for_NoSecretsOptions;
1902
1957
  type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
1903
1958
  | RulePlainConfiguration
1904
1959
  | RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
@@ -1923,6 +1978,9 @@ type RuleConfiguration_for_FilenamingConventionOptions =
1923
1978
  type RuleFixConfiguration_for_NamingConventionOptions =
1924
1979
  | RulePlainConfiguration
1925
1980
  | RuleWithFixOptions_for_NamingConventionOptions;
1981
+ type RuleFixConfiguration_for_UseSelfClosingElementsOptions =
1982
+ | RulePlainConfiguration
1983
+ | RuleWithFixOptions_for_UseSelfClosingElementsOptions;
1926
1984
  type RuleFixConfiguration_for_NoConsoleOptions =
1927
1985
  | RulePlainConfiguration
1928
1986
  | RuleWithFixOptions_for_NoConsoleOptions;
@@ -2060,6 +2118,16 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
2060
2118
  */
2061
2119
  options: NoRestrictedTypesOptions;
2062
2120
  }
2121
+ interface RuleWithOptions_for_NoSecretsOptions {
2122
+ /**
2123
+ * The severity of the emitted diagnostics by the rule
2124
+ */
2125
+ level: RulePlainConfiguration;
2126
+ /**
2127
+ * Rule's options
2128
+ */
2129
+ options: NoSecretsOptions;
2130
+ }
2063
2131
  interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
2064
2132
  /**
2065
2133
  * The severity of the emitted diagnostics by the rule
@@ -2152,6 +2220,20 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
2152
2220
  */
2153
2221
  options: NamingConventionOptions;
2154
2222
  }
2223
+ interface RuleWithFixOptions_for_UseSelfClosingElementsOptions {
2224
+ /**
2225
+ * The kind of the code actions emitted by the rule
2226
+ */
2227
+ fix?: FixKind;
2228
+ /**
2229
+ * The severity of the emitted diagnostics by the rule
2230
+ */
2231
+ level: RulePlainConfiguration;
2232
+ /**
2233
+ * Rule's options
2234
+ */
2235
+ options: UseSelfClosingElementsOptions;
2236
+ }
2155
2237
  interface RuleWithFixOptions_for_NoConsoleOptions {
2156
2238
  /**
2157
2239
  * The kind of the code actions emitted by the rule
@@ -2202,20 +2284,24 @@ interface NoLabelWithoutControlOptions {
2202
2284
  labelComponents?: string[];
2203
2285
  }
2204
2286
  interface ValidAriaRoleOptions {
2205
- allowInvalidRoles: string[];
2206
- ignoreNonDom: boolean;
2287
+ allowInvalidRoles?: string[];
2288
+ ignoreNonDom?: boolean;
2207
2289
  }
2208
2290
  interface ComplexityOptions {
2209
2291
  /**
2210
2292
  * The maximum complexity score that we allow. Anything higher is considered excessive.
2211
2293
  */
2212
- maxAllowedComplexity: number;
2294
+ maxAllowedComplexity?: number;
2213
2295
  }
2214
2296
  interface UseExhaustiveDependenciesOptions {
2215
2297
  /**
2216
2298
  * List of hooks of which the dependencies should be validated.
2217
2299
  */
2218
2300
  hooks?: Hook[];
2301
+ /**
2302
+ * Whether to report an error when a hook has no dependencies array.
2303
+ */
2304
+ reportMissingDependenciesArray?: boolean;
2219
2305
  /**
2220
2306
  * Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.
2221
2307
  */
@@ -2226,7 +2312,7 @@ interface UseImportExtensionsOptions {
2226
2312
  /**
2227
2313
  * 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
2314
  */
2229
- suggestedExtensions: {};
2315
+ suggestedExtensions?: {};
2230
2316
  }
2231
2317
  interface RestrictedImportsOptions {
2232
2318
  /**
@@ -2235,7 +2321,13 @@ interface RestrictedImportsOptions {
2235
2321
  paths: {};
2236
2322
  }
2237
2323
  interface NoRestrictedTypesOptions {
2238
- types: {};
2324
+ types?: {};
2325
+ }
2326
+ interface NoSecretsOptions {
2327
+ /**
2328
+ * Set entropy threshold (default is 41).
2329
+ */
2330
+ entropyThreshold?: number;
2239
2331
  }
2240
2332
  interface UseComponentExportOnlyModulesOptions {
2241
2333
  /**
@@ -2248,7 +2340,7 @@ interface UseComponentExportOnlyModulesOptions {
2248
2340
  allowExportNames: string[];
2249
2341
  }
2250
2342
  interface ConsistentMemberAccessibilityOptions {
2251
- accessibility: Accessibility;
2343
+ accessibility?: Accessibility;
2252
2344
  }
2253
2345
  interface UtilityClassSortingOptions {
2254
2346
  /**
@@ -2264,7 +2356,7 @@ interface UseValidAutocompleteOptions {
2264
2356
  /**
2265
2357
  * `input` like custom components that should be checked.
2266
2358
  */
2267
- inputComponents: string[];
2359
+ inputComponents?: string[];
2268
2360
  }
2269
2361
  interface RestrictedGlobalsOptions {
2270
2362
  /**
@@ -2273,13 +2365,17 @@ interface RestrictedGlobalsOptions {
2273
2365
  deniedGlobals: string[];
2274
2366
  }
2275
2367
  interface ConsistentArrayTypeOptions {
2276
- syntax: ConsistentArrayType;
2368
+ syntax?: ConsistentArrayType;
2277
2369
  }
2278
2370
  interface FilenamingConventionOptions {
2279
2371
  /**
2280
2372
  * Allowed cases for file names.
2281
2373
  */
2282
2374
  filenameCases: FilenameCases;
2375
+ /**
2376
+ * Regular expression to enforce
2377
+ */
2378
+ match?: Regex;
2283
2379
  /**
2284
2380
  * If `false`, then non-ASCII characters are allowed.
2285
2381
  */
@@ -2307,6 +2403,9 @@ interface NamingConventionOptions {
2307
2403
  */
2308
2404
  strictCase: boolean;
2309
2405
  }
2406
+ interface UseSelfClosingElementsOptions {
2407
+ ignoreHtmlElements?: boolean;
2408
+ }
2310
2409
  interface NoConsoleOptions {
2311
2410
  /**
2312
2411
  * Allowed calls on the console object.
@@ -2337,7 +2436,7 @@ For example, for React's `useEffect()` hook, the dependencies index is 1.
2337
2436
  /**
2338
2437
  * The name of the hook.
2339
2438
  */
2340
- name: string;
2439
+ name?: string;
2341
2440
  /**
2342
2441
  * Whether the result of the hook is stable.
2343
2442
 
@@ -2350,6 +2449,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
2350
2449
  type Accessibility = "noPublic" | "explicit" | "none";
2351
2450
  type ConsistentArrayType = "shorthand" | "generic";
2352
2451
  type FilenameCases = FilenameCase[];
2452
+ type Regex = string;
2353
2453
  interface Convention {
2354
2454
  /**
2355
2455
  * String cases to enforce
@@ -2373,7 +2473,6 @@ type FilenameCase =
2373
2473
  | "PascalCase"
2374
2474
  | "snake_case";
2375
2475
  type Formats = Format[];
2376
- type Regex = string;
2377
2476
  interface Selector {
2378
2477
  /**
2379
2478
  * Declaration kind
@@ -2680,14 +2779,20 @@ type Category =
2680
2779
  | "lint/nursery/noCommonJs"
2681
2780
  | "lint/nursery/noConsole"
2682
2781
  | "lint/nursery/noDescendingSpecificity"
2782
+ | "lint/nursery/noDocumentCookie"
2783
+ | "lint/nursery/noDocumentImportInPage"
2683
2784
  | "lint/nursery/noDoneCallback"
2684
2785
  | "lint/nursery/noDuplicateAtImportRules"
2685
2786
  | "lint/nursery/noDuplicateCustomProperties"
2686
2787
  | "lint/nursery/noDuplicateElseIf"
2788
+ | "lint/nursery/noDuplicateProperties"
2687
2789
  | "lint/nursery/noDuplicatedFields"
2688
2790
  | "lint/nursery/noDynamicNamespaceImportAccess"
2689
2791
  | "lint/nursery/noEnum"
2690
2792
  | "lint/nursery/noExportedImports"
2793
+ | "lint/nursery/noHeadElement"
2794
+ | "lint/nursery/noHeadImportInDocument"
2795
+ | "lint/nursery/noImgElement"
2691
2796
  | "lint/nursery/noImportantInKeyframe"
2692
2797
  | "lint/nursery/noInvalidDirectionInLinearGradient"
2693
2798
  | "lint/nursery/noInvalidGridAreas"
@@ -2714,19 +2819,27 @@ type Category =
2714
2819
  | "lint/nursery/noUnknownPseudoClassSelector"
2715
2820
  | "lint/nursery/noUnknownPseudoElement"
2716
2821
  | "lint/nursery/noUnknownSelectorPseudoElement"
2822
+ | "lint/nursery/noUnknownTypeSelector"
2717
2823
  | "lint/nursery/noUnknownUnit"
2718
2824
  | "lint/nursery/noUnmatchableAnbSelector"
2719
2825
  | "lint/nursery/noUnusedFunctionParameters"
2720
2826
  | "lint/nursery/noUselessEscapeInRegex"
2827
+ | "lint/nursery/noUselessStringRaw"
2828
+ | "lint/nursery/noUselessUndefined"
2721
2829
  | "lint/nursery/noValueAtRule"
2722
2830
  | "lint/nursery/useAdjacentOverloadSignatures"
2723
2831
  | "lint/nursery/useAriaPropsSupportedByRole"
2832
+ | "lint/nursery/useAtIndex"
2724
2833
  | "lint/nursery/useBiomeSuppressionComment"
2834
+ | "lint/nursery/useCollapsedIf"
2725
2835
  | "lint/nursery/useComponentExportOnlyModules"
2726
2836
  | "lint/nursery/useConsistentCurlyBraces"
2727
2837
  | "lint/nursery/useConsistentMemberAccessibility"
2728
2838
  | "lint/nursery/useDeprecatedReason"
2729
2839
  | "lint/nursery/useExplicitFunctionReturnType"
2840
+ | "lint/nursery/useExplicitType"
2841
+ | "lint/nursery/useGoogleFontDisplay"
2842
+ | "lint/nursery/useGuardForIn"
2730
2843
  | "lint/nursery/useImportRestrictions"
2731
2844
  | "lint/nursery/useJsxCurlyBraceConvention"
2732
2845
  | "lint/nursery/useSortedClasses"
@@ -2878,6 +2991,10 @@ type Category =
2878
2991
  | "internalError/io"
2879
2992
  | "internalError/fs"
2880
2993
  | "internalError/panic"
2994
+ | "reporter/parse"
2995
+ | "reporter/format"
2996
+ | "reporter/analyzer"
2997
+ | "reporter/organizeImports"
2881
2998
  | "parse"
2882
2999
  | "lint"
2883
3000
  | "lint/a11y"
@@ -3031,7 +3148,7 @@ interface FixFileParams {
3031
3148
  should_format: boolean;
3032
3149
  skip: RuleCode[];
3033
3150
  }
3034
- type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
3151
+ type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
3035
3152
  interface FixFileResult {
3036
3153
  /**
3037
3154
  * List of all the code actions applied to the file
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Biome Developers and Contributors"
5
5
  ],
6
6
  "description": "WebAssembly bindings to the Biome workspace API",
7
- "version": "1.9.3",
7
+ "version": "1.9.5-nightly.92879ae",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",