@biomejs/wasm-bundler 2.2.4 → 2.2.5

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
@@ -1485,7 +1485,11 @@ interface Correctness {
1485
1485
  }
1486
1486
  interface Nursery {
1487
1487
  /**
1488
- * Disallow any dependency from being specified more than once (e.g. in dependencies and devDependencies)
1488
+ * Restrict imports of deprecated exports.
1489
+ */
1490
+ noDeprecatedImports?: RuleConfiguration_for_NoDeprecatedImportsOptions;
1491
+ /**
1492
+ * Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
1489
1493
  */
1490
1494
  noDuplicateDependencies?: RuleConfiguration_for_NoDuplicateDependenciesOptions;
1491
1495
  /**
@@ -1516,6 +1520,10 @@ interface Nursery {
1516
1520
  * Disallow useVisibleTask$() functions in Qwik components.
1517
1521
  */
1518
1522
  noQwikUseVisibleTask?: RuleConfiguration_for_NoQwikUseVisibleTaskOptions;
1523
+ /**
1524
+ * Replaces usages of forwardRef with passing ref as a prop.
1525
+ */
1526
+ noReactForwardRef?: RuleFixConfiguration_for_NoReactForwardRefOptions;
1519
1527
  /**
1520
1528
  * Disallow usage of sensitive data such as API keys and tokens.
1521
1529
  */
@@ -1532,6 +1540,10 @@ interface Nursery {
1532
1540
  * Warn when importing non-existing exports.
1533
1541
  */
1534
1542
  noUnresolvedImports?: RuleConfiguration_for_NoUnresolvedImportsOptions;
1543
+ /**
1544
+ * Disallow expression statements that are neither a function call nor an assignment.
1545
+ */
1546
+ noUnusedExpressions?: RuleConfiguration_for_NoUnusedExpressionsOptions;
1535
1547
  /**
1536
1548
  * Disallow unused catch bindings.
1537
1549
  */
@@ -1544,6 +1556,10 @@ interface Nursery {
1544
1556
  * Enforce that Vue component data options are declared as functions.
1545
1557
  */
1546
1558
  noVueDataObjectDeclaration?: RuleFixConfiguration_for_NoVueDataObjectDeclarationOptions;
1559
+ /**
1560
+ * Disallow duplicate keys in Vue component data, methods, computed properties, and other options.
1561
+ */
1562
+ noVueDuplicateKeys?: RuleConfiguration_for_NoVueDuplicateKeysOptions;
1547
1563
  /**
1548
1564
  * Disallow reserved keys in Vue component data and computed properties.
1549
1565
  */
@@ -2825,6 +2841,9 @@ type RuleFixConfiguration_for_UseValidTypeofOptions =
2825
2841
  type RuleConfiguration_for_UseYieldOptions =
2826
2842
  | RulePlainConfiguration
2827
2843
  | RuleWithOptions_for_UseYieldOptions;
2844
+ type RuleConfiguration_for_NoDeprecatedImportsOptions =
2845
+ | RulePlainConfiguration
2846
+ | RuleWithOptions_for_NoDeprecatedImportsOptions;
2828
2847
  type RuleConfiguration_for_NoDuplicateDependenciesOptions =
2829
2848
  | RulePlainConfiguration
2830
2849
  | RuleWithOptions_for_NoDuplicateDependenciesOptions;
@@ -2849,6 +2868,9 @@ type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
2849
2868
  type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
2850
2869
  | RulePlainConfiguration
2851
2870
  | RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
2871
+ type RuleFixConfiguration_for_NoReactForwardRefOptions =
2872
+ | RulePlainConfiguration
2873
+ | RuleWithFixOptions_for_NoReactForwardRefOptions;
2852
2874
  type RuleConfiguration_for_NoSecretsOptions =
2853
2875
  | RulePlainConfiguration
2854
2876
  | RuleWithOptions_for_NoSecretsOptions;
@@ -2861,6 +2883,9 @@ type RuleConfiguration_for_NoUnnecessaryConditionsOptions =
2861
2883
  type RuleConfiguration_for_NoUnresolvedImportsOptions =
2862
2884
  | RulePlainConfiguration
2863
2885
  | RuleWithOptions_for_NoUnresolvedImportsOptions;
2886
+ type RuleConfiguration_for_NoUnusedExpressionsOptions =
2887
+ | RulePlainConfiguration
2888
+ | RuleWithOptions_for_NoUnusedExpressionsOptions;
2864
2889
  type RuleFixConfiguration_for_NoUselessCatchBindingOptions =
2865
2890
  | RulePlainConfiguration
2866
2891
  | RuleWithFixOptions_for_NoUselessCatchBindingOptions;
@@ -2870,6 +2895,9 @@ type RuleFixConfiguration_for_NoUselessUndefinedOptions =
2870
2895
  type RuleFixConfiguration_for_NoVueDataObjectDeclarationOptions =
2871
2896
  | RulePlainConfiguration
2872
2897
  | RuleWithFixOptions_for_NoVueDataObjectDeclarationOptions;
2898
+ type RuleConfiguration_for_NoVueDuplicateKeysOptions =
2899
+ | RulePlainConfiguration
2900
+ | RuleWithOptions_for_NoVueDuplicateKeysOptions;
2873
2901
  type RuleConfiguration_for_NoVueReservedKeysOptions =
2874
2902
  | RulePlainConfiguration
2875
2903
  | RuleWithOptions_for_NoVueReservedKeysOptions;
@@ -5194,6 +5222,16 @@ interface RuleWithOptions_for_UseYieldOptions {
5194
5222
  */
5195
5223
  options: UseYieldOptions;
5196
5224
  }
5225
+ interface RuleWithOptions_for_NoDeprecatedImportsOptions {
5226
+ /**
5227
+ * The severity of the emitted diagnostics by the rule
5228
+ */
5229
+ level: RulePlainConfiguration;
5230
+ /**
5231
+ * Rule's options
5232
+ */
5233
+ options: NoDeprecatedImportsOptions;
5234
+ }
5197
5235
  interface RuleWithOptions_for_NoDuplicateDependenciesOptions {
5198
5236
  /**
5199
5237
  * The severity of the emitted diagnostics by the rule
@@ -5282,6 +5320,20 @@ interface RuleWithOptions_for_NoQwikUseVisibleTaskOptions {
5282
5320
  */
5283
5321
  options: NoQwikUseVisibleTaskOptions;
5284
5322
  }
5323
+ interface RuleWithFixOptions_for_NoReactForwardRefOptions {
5324
+ /**
5325
+ * The kind of the code actions emitted by the rule
5326
+ */
5327
+ fix?: FixKind;
5328
+ /**
5329
+ * The severity of the emitted diagnostics by the rule
5330
+ */
5331
+ level: RulePlainConfiguration;
5332
+ /**
5333
+ * Rule's options
5334
+ */
5335
+ options: NoReactForwardRefOptions;
5336
+ }
5285
5337
  interface RuleWithOptions_for_NoSecretsOptions {
5286
5338
  /**
5287
5339
  * The severity of the emitted diagnostics by the rule
@@ -5322,6 +5374,16 @@ interface RuleWithOptions_for_NoUnresolvedImportsOptions {
5322
5374
  */
5323
5375
  options: NoUnresolvedImportsOptions;
5324
5376
  }
5377
+ interface RuleWithOptions_for_NoUnusedExpressionsOptions {
5378
+ /**
5379
+ * The severity of the emitted diagnostics by the rule
5380
+ */
5381
+ level: RulePlainConfiguration;
5382
+ /**
5383
+ * Rule's options
5384
+ */
5385
+ options: NoUnusedExpressionsOptions;
5386
+ }
5325
5387
  interface RuleWithFixOptions_for_NoUselessCatchBindingOptions {
5326
5388
  /**
5327
5389
  * The kind of the code actions emitted by the rule
@@ -5364,6 +5426,16 @@ interface RuleWithFixOptions_for_NoVueDataObjectDeclarationOptions {
5364
5426
  */
5365
5427
  options: NoVueDataObjectDeclarationOptions;
5366
5428
  }
5429
+ interface RuleWithOptions_for_NoVueDuplicateKeysOptions {
5430
+ /**
5431
+ * The severity of the emitted diagnostics by the rule
5432
+ */
5433
+ level: RulePlainConfiguration;
5434
+ /**
5435
+ * Rule's options
5436
+ */
5437
+ options: NoVueDuplicateKeysOptions;
5438
+ }
5367
5439
  interface RuleWithOptions_for_NoVueReservedKeysOptions {
5368
5440
  /**
5369
5441
  * The severity of the emitted diagnostics by the rule
@@ -7902,6 +7974,7 @@ interface UseUniqueElementIdsOptions {
7902
7974
  interface UseValidForDirectionOptions {}
7903
7975
  interface UseValidTypeofOptions {}
7904
7976
  interface UseYieldOptions {}
7977
+ interface NoDeprecatedImportsOptions {}
7905
7978
  interface NoDuplicateDependenciesOptions {}
7906
7979
  interface NoFloatingPromisesOptions {}
7907
7980
  interface NoImportCyclesOptions {
@@ -7928,6 +8001,7 @@ interface NoMisusedPromisesOptions {}
7928
8001
  interface NoNextAsyncClientComponentOptions {}
7929
8002
  interface NoNonNullAssertedOptionalChainOptions {}
7930
8003
  interface NoQwikUseVisibleTaskOptions {}
8004
+ interface NoReactForwardRefOptions {}
7931
8005
  interface NoSecretsOptions {
7932
8006
  /**
7933
8007
  * Set entropy threshold (default is 41).
@@ -7937,13 +8011,26 @@ interface NoSecretsOptions {
7937
8011
  interface NoShadowOptions {}
7938
8012
  interface NoUnnecessaryConditionsOptions {}
7939
8013
  interface NoUnresolvedImportsOptions {}
8014
+ interface NoUnusedExpressionsOptions {}
7940
8015
  interface NoUselessCatchBindingOptions {}
7941
8016
  interface NoUselessUndefinedOptions {}
7942
8017
  interface NoVueDataObjectDeclarationOptions {}
8018
+ interface NoVueDuplicateKeysOptions {}
7943
8019
  interface NoVueReservedKeysOptions {}
7944
8020
  interface NoVueReservedPropsOptions {}
7945
8021
  type UseAnchorHrefOptions = null;
7946
- interface UseConsistentArrowReturnOptions {}
8022
+ interface UseConsistentArrowReturnOptions {
8023
+ /**
8024
+ * Determines whether the rule enforces a consistent style when the return value is an object literal.
8025
+
8026
+ This option is only applicable when used in conjunction with the `asNeeded` option.
8027
+ */
8028
+ requireForObjectLiteral?: boolean;
8029
+ /**
8030
+ * The style to enforce for arrow function return statements.
8031
+ */
8032
+ style?: UseConsistentArrowReturnStyle;
8033
+ }
7947
8034
  interface UseConsistentTypeDefinitionsOptions {
7948
8035
  style?: ConsistentTypeDefinition;
7949
8036
  }
@@ -8305,6 +8392,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
8305
8392
  */
8306
8393
  stableResult?: StableHookResult;
8307
8394
  }
8395
+ type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
8308
8396
  type ConsistentTypeDefinition = "interface" | "type";
8309
8397
  type PropertyAssignmentMode = "allow" | "deny";
8310
8398
  type Paths = string | PathOptions;
@@ -8626,6 +8714,8 @@ type Category =
8626
8714
  | "lint/correctness/useValidTypeof"
8627
8715
  | "lint/correctness/useYield"
8628
8716
  | "lint/nursery/noColorInvalidHex"
8717
+ | "lint/nursery/noDeprecatedImports"
8718
+ | "lint/nursery/noDuplicateDependencies"
8629
8719
  | "lint/nursery/noFloatingPromises"
8630
8720
  | "lint/nursery/noImplicitCoercion"
8631
8721
  | "lint/nursery/noImportCycles"
@@ -8635,15 +8725,18 @@ type Category =
8635
8725
  | "lint/nursery/noNextAsyncClientComponent"
8636
8726
  | "lint/nursery/noNonNullAssertedOptionalChain"
8637
8727
  | "lint/nursery/noQwikUseVisibleTask"
8728
+ | "lint/nursery/noReactForwardRef"
8638
8729
  | "lint/nursery/noSecrets"
8639
8730
  | "lint/nursery/noShadow"
8640
8731
  | "lint/nursery/noUnnecessaryConditions"
8641
8732
  | "lint/nursery/noUnresolvedImports"
8733
+ | "lint/nursery/noUnusedExpressions"
8642
8734
  | "lint/nursery/noUnwantedPolyfillio"
8643
8735
  | "lint/nursery/noUselessBackrefInRegex"
8644
8736
  | "lint/nursery/noUselessCatchBinding"
8645
8737
  | "lint/nursery/noUselessUndefined"
8646
8738
  | "lint/nursery/noVueDataObjectDeclaration"
8739
+ | "lint/nursery/noVueDuplicateKeys"
8647
8740
  | "lint/nursery/noVueReservedKeys"
8648
8741
  | "lint/nursery/noVueReservedProps"
8649
8742
  | "lint/nursery/useAnchorHref"
@@ -8776,7 +8869,6 @@ type Category =
8776
8869
  | "lint/suspicious/noDuplicateCase"
8777
8870
  | "lint/suspicious/noDuplicateClassMembers"
8778
8871
  | "lint/suspicious/noDuplicateCustomProperties"
8779
- | "lint/nursery/noDuplicateDependencies"
8780
8872
  | "lint/suspicious/noDuplicateElseIf"
8781
8873
  | "lint/suspicious/noDuplicateFields"
8782
8874
  | "lint/suspicious/noDuplicateFontNames"
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.2.4",
8
+ "version": "2.2.5",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",