@biomejs/wasm-nodejs 1.9.4 → 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
@@ -1249,6 +1249,10 @@ interface Nursery {
1249
1249
  * Disallow unnecessary String.raw function in template string literals without any escape sequence.
1250
1250
  */
1251
1251
  noUselessStringRaw?: RuleConfiguration_for_Null;
1252
+ /**
1253
+ * Disallow the use of useless undefined.
1254
+ */
1255
+ noUselessUndefined?: RuleFixConfiguration_for_Null;
1252
1256
  /**
1253
1257
  * Disallow use of @value rule in css modules.
1254
1258
  */
@@ -1546,7 +1550,7 @@ interface Style {
1546
1550
  /**
1547
1551
  * Prevent extra closing tags for components without children
1548
1552
  */
1549
- useSelfClosingElements?: RuleFixConfiguration_for_Null;
1553
+ useSelfClosingElements?: RuleFixConfiguration_for_UseSelfClosingElementsOptions;
1550
1554
  /**
1551
1555
  * When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
1552
1556
  */
@@ -1776,7 +1780,7 @@ interface Suspicious {
1776
1780
  /**
1777
1781
  * Disallow direct use of Object.prototype builtins.
1778
1782
  */
1779
- noPrototypeBuiltins?: RuleConfiguration_for_Null;
1783
+ noPrototypeBuiltins?: RuleFixConfiguration_for_Null;
1780
1784
  /**
1781
1785
  * Prevents React-specific JSX properties from being used.
1782
1786
  */
@@ -1974,6 +1978,9 @@ type RuleConfiguration_for_FilenamingConventionOptions =
1974
1978
  type RuleFixConfiguration_for_NamingConventionOptions =
1975
1979
  | RulePlainConfiguration
1976
1980
  | RuleWithFixOptions_for_NamingConventionOptions;
1981
+ type RuleFixConfiguration_for_UseSelfClosingElementsOptions =
1982
+ | RulePlainConfiguration
1983
+ | RuleWithFixOptions_for_UseSelfClosingElementsOptions;
1977
1984
  type RuleFixConfiguration_for_NoConsoleOptions =
1978
1985
  | RulePlainConfiguration
1979
1986
  | RuleWithFixOptions_for_NoConsoleOptions;
@@ -2213,6 +2220,20 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
2213
2220
  */
2214
2221
  options: NamingConventionOptions;
2215
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
+ }
2216
2237
  interface RuleWithFixOptions_for_NoConsoleOptions {
2217
2238
  /**
2218
2239
  * The kind of the code actions emitted by the rule
@@ -2351,6 +2372,10 @@ interface FilenamingConventionOptions {
2351
2372
  * Allowed cases for file names.
2352
2373
  */
2353
2374
  filenameCases: FilenameCases;
2375
+ /**
2376
+ * Regular expression to enforce
2377
+ */
2378
+ match?: Regex;
2354
2379
  /**
2355
2380
  * If `false`, then non-ASCII characters are allowed.
2356
2381
  */
@@ -2378,6 +2403,9 @@ interface NamingConventionOptions {
2378
2403
  */
2379
2404
  strictCase: boolean;
2380
2405
  }
2406
+ interface UseSelfClosingElementsOptions {
2407
+ ignoreHtmlElements?: boolean;
2408
+ }
2381
2409
  interface NoConsoleOptions {
2382
2410
  /**
2383
2411
  * Allowed calls on the console object.
@@ -2421,6 +2449,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
2421
2449
  type Accessibility = "noPublic" | "explicit" | "none";
2422
2450
  type ConsistentArrayType = "shorthand" | "generic";
2423
2451
  type FilenameCases = FilenameCase[];
2452
+ type Regex = string;
2424
2453
  interface Convention {
2425
2454
  /**
2426
2455
  * String cases to enforce
@@ -2444,7 +2473,6 @@ type FilenameCase =
2444
2473
  | "PascalCase"
2445
2474
  | "snake_case";
2446
2475
  type Formats = Format[];
2447
- type Regex = string;
2448
2476
  interface Selector {
2449
2477
  /**
2450
2478
  * Declaration kind
@@ -2797,6 +2825,7 @@ type Category =
2797
2825
  | "lint/nursery/noUnusedFunctionParameters"
2798
2826
  | "lint/nursery/noUselessEscapeInRegex"
2799
2827
  | "lint/nursery/noUselessStringRaw"
2828
+ | "lint/nursery/noUselessUndefined"
2800
2829
  | "lint/nursery/noValueAtRule"
2801
2830
  | "lint/nursery/useAdjacentOverloadSignatures"
2802
2831
  | "lint/nursery/useAriaPropsSupportedByRole"
@@ -3119,7 +3148,7 @@ interface FixFileParams {
3119
3148
  should_format: boolean;
3120
3149
  skip: RuleCode[];
3121
3150
  }
3122
- type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
3151
+ type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
3123
3152
  interface FixFileResult {
3124
3153
  /**
3125
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.4",
7
+ "version": "1.9.5-nightly.92879ae",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",