@biomejs/wasm-web 2.0.4 → 2.0.6

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
@@ -1411,6 +1411,10 @@ interface Nursery {
1411
1411
  * Disallow destructuring props inside JSX components in Solid projects.
1412
1412
  */
1413
1413
  noDestructuredProps?: RuleConfiguration_for_Null;
1414
+ /**
1415
+ * Restrict the number of lines of code in a function.
1416
+ */
1417
+ noExcessiveLinesPerFunction?: RuleConfiguration_for_NoExcessiveLinesPerFunctionOptions;
1414
1418
  /**
1415
1419
  * Require Promise-like statements to be handled appropriately.
1416
1420
  */
@@ -1419,6 +1423,10 @@ interface Nursery {
1419
1423
  * Disallow the use of __dirname and __filename in the global scope.
1420
1424
  */
1421
1425
  noGlobalDirnameFilename?: RuleFixConfiguration_for_Null;
1426
+ /**
1427
+ * Disallow shorthand type conversions.
1428
+ */
1429
+ noImplicitCoercion?: RuleFixConfiguration_for_Null;
1422
1430
  /**
1423
1431
  * Prevent import cycles.
1424
1432
  */
@@ -1459,6 +1467,10 @@ interface Nursery {
1459
1467
  * Prevents the use of the TypeScript directive @ts-ignore.
1460
1468
  */
1461
1469
  noTsIgnore?: RuleFixConfiguration_for_Null;
1470
+ /**
1471
+ * Disallow let or var variables that are read but never assigned.
1472
+ */
1473
+ noUnassignedVariables?: RuleConfiguration_for_Null;
1462
1474
  /**
1463
1475
  * Disallow unknown at-rules.
1464
1476
  */
@@ -1567,6 +1579,10 @@ interface Nursery {
1567
1579
  * Require a description parameter for the Symbol().
1568
1580
  */
1569
1581
  useSymbolDescription?: RuleConfiguration_for_Null;
1582
+ /**
1583
+ * Disallow overload signatures that can be unified into a single signature.
1584
+ */
1585
+ useUnifiedTypeSignature?: RuleFixConfiguration_for_Null;
1570
1586
  /**
1571
1587
  * Prevent the usage of static string literal id attribute on elements.
1572
1588
  */
@@ -1883,6 +1899,10 @@ interface Style {
1883
1899
  useTrimStartEnd?: RuleFixConfiguration_for_Null;
1884
1900
  }
1885
1901
  interface Suspicious {
1902
+ /**
1903
+ * Disallow the use of alert, confirm, and prompt.
1904
+ */
1905
+ noAlert?: RuleConfiguration_for_Null;
1886
1906
  /**
1887
1907
  * Use standard constants instead of approximated literals.
1888
1908
  */
@@ -2281,6 +2301,9 @@ type RuleConfiguration_for_UseJsxKeyInIterableOptions =
2281
2301
  type RuleConfiguration_for_NoBitwiseOperatorsOptions =
2282
2302
  | RulePlainConfiguration
2283
2303
  | RuleWithOptions_for_NoBitwiseOperatorsOptions;
2304
+ type RuleConfiguration_for_NoExcessiveLinesPerFunctionOptions =
2305
+ | RulePlainConfiguration
2306
+ | RuleWithOptions_for_NoExcessiveLinesPerFunctionOptions;
2284
2307
  type RuleConfiguration_for_NoRestrictedElementsOptions =
2285
2308
  | RulePlainConfiguration
2286
2309
  | RuleWithOptions_for_NoRestrictedElementsOptions;
@@ -2525,6 +2548,16 @@ interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2525
2548
  */
2526
2549
  options: NoBitwiseOperatorsOptions;
2527
2550
  }
2551
+ interface RuleWithOptions_for_NoExcessiveLinesPerFunctionOptions {
2552
+ /**
2553
+ * The severity of the emitted diagnostics by the rule
2554
+ */
2555
+ level: RulePlainConfiguration;
2556
+ /**
2557
+ * Rule's options
2558
+ */
2559
+ options: NoExcessiveLinesPerFunctionOptions;
2560
+ }
2528
2561
  interface RuleWithOptions_for_NoRestrictedElementsOptions {
2529
2562
  /**
2530
2563
  * The severity of the emitted diagnostics by the rule
@@ -2874,6 +2907,20 @@ interface NoBitwiseOperatorsOptions {
2874
2907
  */
2875
2908
  allow: string[];
2876
2909
  }
2910
+ interface NoExcessiveLinesPerFunctionOptions {
2911
+ /**
2912
+ * The maximum number of lines allowed in a function body.
2913
+ */
2914
+ maxLines?: number;
2915
+ /**
2916
+ * When this options is set to `true`, blank lines in the function body are not counted towards the maximum line limit.
2917
+ */
2918
+ skipBlankLines?: boolean;
2919
+ /**
2920
+ * When this option is set to `true`, Immediately Invoked Function Expressions (IIFEs) are not checked for the maximum line limit.
2921
+ */
2922
+ skipIifes?: boolean;
2923
+ }
2877
2924
  interface NoRestrictedElementsOptions {
2878
2925
  /**
2879
2926
  * Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.
@@ -3336,8 +3383,10 @@ type Category =
3336
3383
  | "lint/nursery/noDestructuredProps"
3337
3384
  | "lint/nursery/noDoneCallback"
3338
3385
  | "lint/nursery/noDuplicateAtImportRules"
3386
+ | "lint/nursery/noExcessiveLinesPerFunction"
3339
3387
  | "lint/nursery/noFloatingPromises"
3340
3388
  | "lint/nursery/noGlobalDirnameFilename"
3389
+ | "lint/nursery/noImplicitCoercion"
3341
3390
  | "lint/nursery/noImportCycles"
3342
3391
  | "lint/nursery/noImportantInKeyframe"
3343
3392
  | "lint/nursery/noImportantStyles"
@@ -3355,6 +3404,7 @@ type Category =
3355
3404
  | "lint/nursery/noShadow"
3356
3405
  | "lint/nursery/noShorthandPropertyOverrides"
3357
3406
  | "lint/nursery/noTsIgnore"
3407
+ | "lint/nursery/noUnassignedVariables"
3358
3408
  | "lint/nursery/noUndeclaredDependencies"
3359
3409
  | "lint/nursery/noUnknownAtRule"
3360
3410
  | "lint/nursery/noUnknownFunction"
@@ -3394,6 +3444,7 @@ type Category =
3394
3444
  | "lint/nursery/useSortedClasses"
3395
3445
  | "lint/nursery/useSortedProperties"
3396
3446
  | "lint/nursery/useSymbolDescription"
3447
+ | "lint/nursery/useUnifiedTypeSignature"
3397
3448
  | "lint/nursery/useUniqueElementIds"
3398
3449
  | "lint/performance/noAccumulatingSpread"
3399
3450
  | "lint/performance/noBarrelFile"
@@ -3470,6 +3521,7 @@ type Category =
3470
3521
  | "lint/style/useThrowNewError"
3471
3522
  | "lint/style/useThrowOnlyError"
3472
3523
  | "lint/style/useTrimStartEnd"
3524
+ | "lint/suspicious/noAlert"
3473
3525
  | "lint/suspicious/noApproximativeNumericConstant"
3474
3526
  | "lint/suspicious/noArrayIndexKey"
3475
3527
  | "lint/suspicious/noAssignInExpressions"
@@ -3769,6 +3821,9 @@ interface GetSyntaxTreeResult {
3769
3821
  ast: string;
3770
3822
  cst: string;
3771
3823
  }
3824
+ interface FileExitsParams {
3825
+ filePath: BiomePath;
3826
+ }
3772
3827
  interface CheckFileSizeParams {
3773
3828
  path: BiomePath;
3774
3829
  projectKey: ProjectKey;
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": "2.0.4",
8
+ "version": "2.0.6",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",