@biomejs/wasm-bundler 2.4.12 → 2.4.13

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
@@ -889,7 +889,7 @@ interface Source {
889
889
  */
890
890
  noDuplicateClasses?: NoDuplicateClassesConfiguration;
891
891
  /**
892
- * Provides a code action to sort the imports and exports in the file using a built-in or custom order.
892
+ * Sorts imports and exports in your JavaScript and TypeScript files.
893
893
  See https://biomejs.dev/assist/actions/organize-imports
894
894
  */
895
895
  organizeImports?: OrganizeImportsConfiguration;
@@ -931,6 +931,7 @@ type JsonTrailingCommas = "none" | "all";
931
931
  type RuleDomain =
932
932
  | "drizzle"
933
933
  | "react"
934
+ | "reactNative"
934
935
  | "test"
935
936
  | "solid"
936
937
  | "next"
@@ -2041,6 +2042,11 @@ interface Nursery {
2041
2042
  See https://biomejs.dev/linter/rules/no-inline-styles
2042
2043
  */
2043
2044
  noInlineStyles?: NoInlineStylesConfiguration;
2045
+ /**
2046
+ * Flags text nodes with a trailing $ before a JSX expression.
2047
+ See https://biomejs.dev/linter/rules/no-jsx-leaked-dollar
2048
+ */
2049
+ noJsxLeakedDollar?: NoJsxLeakedDollarConfiguration;
2044
2050
  /**
2045
2051
  * Disallow JSX namespace syntax.
2046
2052
  See https://biomejs.dev/linter/rules/no-jsx-namespace
@@ -2056,6 +2062,11 @@ interface Nursery {
2056
2062
  See https://biomejs.dev/linter/rules/no-leaked-render
2057
2063
  */
2058
2064
  noLeakedRender?: NoLeakedRenderConfiguration;
2065
+ /**
2066
+ * Disallow functions declared inside loops that capture unsafe outer variables.
2067
+ See https://biomejs.dev/linter/rules/no-loop-func
2068
+ */
2069
+ noLoopFunc?: NoLoopFuncConfiguration;
2059
2070
  /**
2060
2071
  * Detect return type annotations that are misleadingly wider than what the implementation actually returns.
2061
2072
  See https://biomejs.dev/linter/rules/no-misleading-return-type
@@ -2141,6 +2152,21 @@ interface Nursery {
2141
2152
  See https://biomejs.dev/linter/rules/no-proto
2142
2153
  */
2143
2154
  noProto?: NoProtoConfiguration;
2155
+ /**
2156
+ * Disallow deep imports from the react-native package.
2157
+ See https://biomejs.dev/linter/rules/no-react-native-deep-imports
2158
+ */
2159
+ noReactNativeDeepImports?: NoReactNativeDeepImportsConfiguration;
2160
+ /**
2161
+ * Disallow color literals in React Native styles.
2162
+ See https://biomejs.dev/linter/rules/no-react-native-literal-colors
2163
+ */
2164
+ noReactNativeLiteralColors?: NoReactNativeLiteralColorsConfiguration;
2165
+ /**
2166
+ * Disallow raw text outside \<Text> components in React Native.
2167
+ See https://biomejs.dev/linter/rules/no-react-native-raw-text
2168
+ */
2169
+ noReactNativeRawText?: NoReactNativeRawTextConfiguration;
2144
2170
  /**
2145
2171
  * Checks if a default export exports the same symbol as a named export.
2146
2172
  See https://biomejs.dev/linter/rules/no-redundant-default-export
@@ -2196,6 +2222,11 @@ interface Nursery {
2196
2222
  See https://biomejs.dev/linter/rules/no-unnecessary-conditions
2197
2223
  */
2198
2224
  noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration;
2225
+ /**
2226
+ * Disallow unnecessary template expressions.
2227
+ See https://biomejs.dev/linter/rules/no-unnecessary-template-expression
2228
+ */
2229
+ noUnnecessaryTemplateExpression?: NoUnnecessaryTemplateExpressionConfiguration;
2199
2230
  /**
2200
2231
  * Disallow + operations with operands that are known to be unsafe.
2201
2232
  See https://biomejs.dev/linter/rules/no-unsafe-plus-operands
@@ -2290,6 +2321,16 @@ interface Nursery {
2290
2321
  See https://biomejs.dev/linter/rules/use-disposables
2291
2322
  */
2292
2323
  useDisposables?: UseDisposablesConfiguration;
2324
+ /**
2325
+ * Prefer .textContent over .innerText for DOM node text.
2326
+ See https://biomejs.dev/linter/rules/use-dom-node-text-content
2327
+ */
2328
+ useDomNodeTextContent?: UseDomNodeTextContentConfiguration;
2329
+ /**
2330
+ * Prefer querySelector() and querySelectorAll() over older DOM query APIs.
2331
+ See https://biomejs.dev/linter/rules/use-dom-query-selector
2332
+ */
2333
+ useDomQuerySelector?: UseDomQuerySelectorConfiguration;
2293
2334
  /**
2294
2335
  * Enforce that new Error() is thrown with the original error as cause.
2295
2336
  See https://biomejs.dev/linter/rules/use-error-cause
@@ -2380,6 +2421,11 @@ interface Nursery {
2380
2421
  See https://biomejs.dev/linter/rules/use-react-async-server-function
2381
2422
  */
2382
2423
  useReactAsyncServerFunction?: UseReactAsyncServerFunctionConfiguration;
2424
+ /**
2425
+ * Ensure that platform-specific React Native components are only imported in files named for that platform.
2426
+ See https://biomejs.dev/linter/rules/use-react-native-platform-components
2427
+ */
2428
+ useReactNativePlatformComponents?: UseReactNativePlatformComponentsConfiguration;
2383
2429
  /**
2384
2430
  * Enforce using a type parameter on Array#reduce instead of casting the initial value.
2385
2431
  See https://biomejs.dev/linter/rules/use-reduce-type-parameter
@@ -2390,6 +2436,11 @@ interface Nursery {
2390
2436
  See https://biomejs.dev/linter/rules/use-regexp-exec
2391
2437
  */
2392
2438
  useRegexpExec?: UseRegexpExecConfiguration;
2439
+ /**
2440
+ * Enforce the use of RegExp.prototype.test() over String.prototype.match() and RegExp.prototype.exec() in boolean contexts.
2441
+ See https://biomejs.dev/linter/rules/use-regexp-test
2442
+ */
2443
+ useRegexpTest?: UseRegexpTestConfiguration;
2393
2444
  /**
2394
2445
  * Enforce the presence of required scripts in package.json.
2395
2446
  See https://biomejs.dev/linter/rules/use-required-scripts
@@ -4105,6 +4156,9 @@ type NoIncrementDecrementConfiguration =
4105
4156
  type NoInlineStylesConfiguration =
4106
4157
  | RulePlainConfiguration
4107
4158
  | RuleWithNoInlineStylesOptions;
4159
+ type NoJsxLeakedDollarConfiguration =
4160
+ | RulePlainConfiguration
4161
+ | RuleWithNoJsxLeakedDollarOptions;
4108
4162
  type NoJsxNamespaceConfiguration =
4109
4163
  | RulePlainConfiguration
4110
4164
  | RuleWithNoJsxNamespaceOptions;
@@ -4114,6 +4168,9 @@ type NoJsxPropsBindConfiguration =
4114
4168
  type NoLeakedRenderConfiguration =
4115
4169
  | RulePlainConfiguration
4116
4170
  | RuleWithNoLeakedRenderOptions;
4171
+ type NoLoopFuncConfiguration =
4172
+ | RulePlainConfiguration
4173
+ | RuleWithNoLoopFuncOptions;
4117
4174
  type NoMisleadingReturnTypeConfiguration =
4118
4175
  | RulePlainConfiguration
4119
4176
  | RuleWithNoMisleadingReturnTypeOptions;
@@ -4163,6 +4220,15 @@ type NoPlaywrightWaitForTimeoutConfiguration =
4163
4220
  | RulePlainConfiguration
4164
4221
  | RuleWithNoPlaywrightWaitForTimeoutOptions;
4165
4222
  type NoProtoConfiguration = RulePlainConfiguration | RuleWithNoProtoOptions;
4223
+ type NoReactNativeDeepImportsConfiguration =
4224
+ | RulePlainConfiguration
4225
+ | RuleWithNoReactNativeDeepImportsOptions;
4226
+ type NoReactNativeLiteralColorsConfiguration =
4227
+ | RulePlainConfiguration
4228
+ | RuleWithNoReactNativeLiteralColorsOptions;
4229
+ type NoReactNativeRawTextConfiguration =
4230
+ | RulePlainConfiguration
4231
+ | RuleWithNoReactNativeRawTextOptions;
4166
4232
  type NoRedundantDefaultExportConfiguration =
4167
4233
  | RulePlainConfiguration
4168
4234
  | RuleWithNoRedundantDefaultExportOptions;
@@ -4192,6 +4258,9 @@ type NoUnknownAttributeConfiguration =
4192
4258
  type NoUnnecessaryConditionsConfiguration =
4193
4259
  | RulePlainConfiguration
4194
4260
  | RuleWithNoUnnecessaryConditionsOptions;
4261
+ type NoUnnecessaryTemplateExpressionConfiguration =
4262
+ | RulePlainConfiguration
4263
+ | RuleWithNoUnnecessaryTemplateExpressionOptions;
4195
4264
  type NoUnsafePlusOperandsConfiguration =
4196
4265
  | RulePlainConfiguration
4197
4266
  | RuleWithNoUnsafePlusOperandsOptions;
@@ -4246,6 +4315,12 @@ type UseDestructuringConfiguration =
4246
4315
  type UseDisposablesConfiguration =
4247
4316
  | RulePlainConfiguration
4248
4317
  | RuleWithUseDisposablesOptions;
4318
+ type UseDomNodeTextContentConfiguration =
4319
+ | RulePlainConfiguration
4320
+ | RuleWithUseDomNodeTextContentOptions;
4321
+ type UseDomQuerySelectorConfiguration =
4322
+ | RulePlainConfiguration
4323
+ | RuleWithUseDomQuerySelectorOptions;
4249
4324
  type UseErrorCauseConfiguration =
4250
4325
  | RulePlainConfiguration
4251
4326
  | RuleWithUseErrorCauseOptions;
@@ -4296,12 +4371,18 @@ type UseQwikLoaderLocationConfiguration =
4296
4371
  type UseReactAsyncServerFunctionConfiguration =
4297
4372
  | RulePlainConfiguration
4298
4373
  | RuleWithUseReactAsyncServerFunctionOptions;
4374
+ type UseReactNativePlatformComponentsConfiguration =
4375
+ | RulePlainConfiguration
4376
+ | RuleWithUseReactNativePlatformComponentsOptions;
4299
4377
  type UseReduceTypeParameterConfiguration =
4300
4378
  | RulePlainConfiguration
4301
4379
  | RuleWithUseReduceTypeParameterOptions;
4302
4380
  type UseRegexpExecConfiguration =
4303
4381
  | RulePlainConfiguration
4304
4382
  | RuleWithUseRegexpExecOptions;
4383
+ type UseRegexpTestConfiguration =
4384
+ | RulePlainConfiguration
4385
+ | RuleWithUseRegexpTestOptions;
4305
4386
  type UseRequiredScriptsConfiguration =
4306
4387
  | RulePlainConfiguration
4307
4388
  | RuleWithUseRequiredScriptsOptions;
@@ -5812,6 +5893,11 @@ interface RuleWithNoInlineStylesOptions {
5812
5893
  level: RulePlainConfiguration;
5813
5894
  options?: NoInlineStylesOptions;
5814
5895
  }
5896
+ interface RuleWithNoJsxLeakedDollarOptions {
5897
+ fix?: FixKind;
5898
+ level: RulePlainConfiguration;
5899
+ options?: NoJsxLeakedDollarOptions;
5900
+ }
5815
5901
  interface RuleWithNoJsxNamespaceOptions {
5816
5902
  level: RulePlainConfiguration;
5817
5903
  options?: NoJsxNamespaceOptions;
@@ -5824,6 +5910,10 @@ interface RuleWithNoLeakedRenderOptions {
5824
5910
  level: RulePlainConfiguration;
5825
5911
  options?: NoLeakedRenderOptions;
5826
5912
  }
5913
+ interface RuleWithNoLoopFuncOptions {
5914
+ level: RulePlainConfiguration;
5915
+ options?: NoLoopFuncOptions;
5916
+ }
5827
5917
  interface RuleWithNoMisleadingReturnTypeOptions {
5828
5918
  level: RulePlainConfiguration;
5829
5919
  options?: NoMisleadingReturnTypeOptions;
@@ -5898,6 +5988,18 @@ interface RuleWithNoProtoOptions {
5898
5988
  level: RulePlainConfiguration;
5899
5989
  options?: NoProtoOptions;
5900
5990
  }
5991
+ interface RuleWithNoReactNativeDeepImportsOptions {
5992
+ level: RulePlainConfiguration;
5993
+ options?: NoReactNativeDeepImportsOptions;
5994
+ }
5995
+ interface RuleWithNoReactNativeLiteralColorsOptions {
5996
+ level: RulePlainConfiguration;
5997
+ options?: NoReactNativeLiteralColorsOptions;
5998
+ }
5999
+ interface RuleWithNoReactNativeRawTextOptions {
6000
+ level: RulePlainConfiguration;
6001
+ options?: NoReactNativeRawTextOptions;
6002
+ }
5901
6003
  interface RuleWithNoRedundantDefaultExportOptions {
5902
6004
  level: RulePlainConfiguration;
5903
6005
  options?: NoRedundantDefaultExportOptions;
@@ -5942,6 +6044,11 @@ interface RuleWithNoUnnecessaryConditionsOptions {
5942
6044
  level: RulePlainConfiguration;
5943
6045
  options?: NoUnnecessaryConditionsOptions;
5944
6046
  }
6047
+ interface RuleWithNoUnnecessaryTemplateExpressionOptions {
6048
+ fix?: FixKind;
6049
+ level: RulePlainConfiguration;
6050
+ options?: NoUnnecessaryTemplateExpressionOptions;
6051
+ }
5945
6052
  interface RuleWithNoUnsafePlusOperandsOptions {
5946
6053
  level: RulePlainConfiguration;
5947
6054
  options?: NoUnsafePlusOperandsOptions;
@@ -6020,6 +6127,16 @@ interface RuleWithUseDisposablesOptions {
6020
6127
  level: RulePlainConfiguration;
6021
6128
  options?: UseDisposablesOptions;
6022
6129
  }
6130
+ interface RuleWithUseDomNodeTextContentOptions {
6131
+ fix?: FixKind;
6132
+ level: RulePlainConfiguration;
6133
+ options?: UseDomNodeTextContentOptions;
6134
+ }
6135
+ interface RuleWithUseDomQuerySelectorOptions {
6136
+ fix?: FixKind;
6137
+ level: RulePlainConfiguration;
6138
+ options?: UseDomQuerySelectorOptions;
6139
+ }
6023
6140
  interface RuleWithUseErrorCauseOptions {
6024
6141
  level: RulePlainConfiguration;
6025
6142
  options?: UseErrorCauseOptions;
@@ -6095,6 +6212,10 @@ interface RuleWithUseReactAsyncServerFunctionOptions {
6095
6212
  level: RulePlainConfiguration;
6096
6213
  options?: UseReactAsyncServerFunctionOptions;
6097
6214
  }
6215
+ interface RuleWithUseReactNativePlatformComponentsOptions {
6216
+ level: RulePlainConfiguration;
6217
+ options?: UseReactNativePlatformComponentsOptions;
6218
+ }
6098
6219
  interface RuleWithUseReduceTypeParameterOptions {
6099
6220
  fix?: FixKind;
6100
6221
  level: RulePlainConfiguration;
@@ -6104,6 +6225,11 @@ interface RuleWithUseRegexpExecOptions {
6104
6225
  level: RulePlainConfiguration;
6105
6226
  options?: UseRegexpExecOptions;
6106
6227
  }
6228
+ interface RuleWithUseRegexpTestOptions {
6229
+ fix?: FixKind;
6230
+ level: RulePlainConfiguration;
6231
+ options?: UseRegexpTestOptions;
6232
+ }
6107
6233
  interface RuleWithUseRequiredScriptsOptions {
6108
6234
  level: RulePlainConfiguration;
6109
6235
  options?: UseRequiredScriptsOptions;
@@ -7479,9 +7605,11 @@ interface NoIncrementDecrementOptions {
7479
7605
  allowForLoopAfterthoughts?: boolean;
7480
7606
  }
7481
7607
  type NoInlineStylesOptions = {};
7608
+ type NoJsxLeakedDollarOptions = {};
7482
7609
  type NoJsxNamespaceOptions = {};
7483
7610
  type NoJsxPropsBindOptions = {};
7484
7611
  type NoLeakedRenderOptions = {};
7612
+ type NoLoopFuncOptions = {};
7485
7613
  type NoMisleadingReturnTypeOptions = {};
7486
7614
  type NoMisusedPromisesOptions = {};
7487
7615
  type NoMultiAssignOptions = {};
@@ -7499,6 +7627,14 @@ type NoPlaywrightWaitForNavigationOptions = {};
7499
7627
  type NoPlaywrightWaitForSelectorOptions = {};
7500
7628
  type NoPlaywrightWaitForTimeoutOptions = {};
7501
7629
  type NoProtoOptions = {};
7630
+ type NoReactNativeDeepImportsOptions = {};
7631
+ type NoReactNativeLiteralColorsOptions = {};
7632
+ interface NoReactNativeRawTextOptions {
7633
+ /**
7634
+ * Names of additional components that are allowed to contain raw text.
7635
+ */
7636
+ skip?: string[];
7637
+ }
7502
7638
  type NoRedundantDefaultExportOptions = {};
7503
7639
  type NoReturnAssignOptions = {};
7504
7640
  interface NoRootTypeOptions {
@@ -7526,6 +7662,7 @@ interface NoUnknownAttributeOptions {
7526
7662
  ignore?: string[];
7527
7663
  }
7528
7664
  type NoUnnecessaryConditionsOptions = {};
7665
+ type NoUnnecessaryTemplateExpressionOptions = {};
7529
7666
  type NoUnsafePlusOperandsOptions = {};
7530
7667
  interface NoUntrustedLicensesOptions {
7531
7668
  /**
@@ -7629,6 +7766,8 @@ interface UseConsistentTestItOptions {
7629
7766
  }
7630
7767
  type UseDestructuringOptions = {};
7631
7768
  type UseDisposablesOptions = {};
7769
+ type UseDomNodeTextContentOptions = {};
7770
+ type UseDomQuerySelectorOptions = {};
7632
7771
  interface UseErrorCauseOptions {
7633
7772
  /**
7634
7773
  * When set to `true`, the rule requires that `catch` clauses have a parameter.
@@ -7689,8 +7828,21 @@ interface UseNullishCoalescingOptions {
7689
7828
  type UsePlaywrightValidDescribeCallbackOptions = {};
7690
7829
  type UseQwikLoaderLocationOptions = {};
7691
7830
  type UseReactAsyncServerFunctionOptions = {};
7831
+ interface UseReactNativePlatformComponentsOptions {
7832
+ /**
7833
+ * A list of glob patterns to identify Android-specific files.
7834
+ Defaults to `["**\/*.android.{js,jsx,ts,tsx}"]`.
7835
+ */
7836
+ androidPathPatterns?: NormalizedGlob[];
7837
+ /**
7838
+ * A list of glob patterns to identify iOS-specific files.
7839
+ Defaults to `["**\/*.ios.{js,jsx,ts,tsx}"]`.
7840
+ */
7841
+ iosPathPatterns?: NormalizedGlob[];
7842
+ }
7692
7843
  type UseReduceTypeParameterOptions = {};
7693
7844
  type UseRegexpExecOptions = {};
7845
+ type UseRegexpTestOptions = {};
7694
7846
  interface UseRequiredScriptsOptions {
7695
7847
  /**
7696
7848
  * List of script names that must be present in package.json
@@ -8581,10 +8733,12 @@ type Category =
8581
8733
  | "lint/nursery/noImpliedEval"
8582
8734
  | "lint/nursery/noIncrementDecrement"
8583
8735
  | "lint/nursery/noInlineStyles"
8736
+ | "lint/nursery/noJsxLeakedDollar"
8584
8737
  | "lint/nursery/noJsxNamespace"
8585
8738
  | "lint/nursery/noJsxPropsBind"
8586
8739
  | "lint/nursery/noLeakedRender"
8587
8740
  | "lint/nursery/noMisleadingReturnType"
8741
+ | "lint/nursery/noLoopFunc"
8588
8742
  | "lint/nursery/noMissingGenericFamilyKeyword"
8589
8743
  | "lint/nursery/noMisusedPromises"
8590
8744
  | "lint/nursery/noMultiAssign"
@@ -8602,6 +8756,9 @@ type Category =
8602
8756
  | "lint/nursery/noPlaywrightWaitForSelector"
8603
8757
  | "lint/nursery/noPlaywrightWaitForTimeout"
8604
8758
  | "lint/nursery/noProto"
8759
+ | "lint/nursery/noReactNativeLiteralColors"
8760
+ | "lint/nursery/noReactNativeDeepImports"
8761
+ | "lint/nursery/noReactNativeRawText"
8605
8762
  | "lint/nursery/noRedundantDefaultExport"
8606
8763
  | "lint/nursery/noReturnAssign"
8607
8764
  | "lint/nursery/noRootType"
@@ -8613,6 +8770,7 @@ type Category =
8613
8770
  | "lint/nursery/noUndeclaredEnvVars"
8614
8771
  | "lint/nursery/noUnknownAttribute"
8615
8772
  | "lint/nursery/noUnnecessaryConditions"
8773
+ | "lint/nursery/noUnnecessaryTemplateExpression"
8616
8774
  | "lint/nursery/noUnsafePlusOperands"
8617
8775
  | "lint/nursery/noUntrustedLicenses"
8618
8776
  | "lint/nursery/noUnwantedPolyfillio"
@@ -8635,6 +8793,8 @@ type Category =
8635
8793
  | "lint/nursery/useConsistentTestIt"
8636
8794
  | "lint/nursery/useDestructuring"
8637
8795
  | "lint/nursery/useDisposables"
8796
+ | "lint/nursery/useDomQuerySelector"
8797
+ | "lint/nursery/useDomNodeTextContent"
8638
8798
  | "lint/nursery/useErrorCause"
8639
8799
  | "lint/nursery/useExhaustiveSwitchCases"
8640
8800
  | "lint/nursery/useExpect"
@@ -8659,8 +8819,10 @@ type Category =
8659
8819
  | "lint/nursery/useQwikMethodUsage"
8660
8820
  | "lint/nursery/useQwikValidLexicalScope"
8661
8821
  | "lint/nursery/useReactAsyncServerFunction"
8822
+ | "lint/nursery/useReactNativePlatformComponents"
8662
8823
  | "lint/nursery/useReduceTypeParameter"
8663
8824
  | "lint/nursery/useRegexpExec"
8825
+ | "lint/nursery/useRegexpTest"
8664
8826
  | "lint/nursery/useRequiredScripts"
8665
8827
  | "lint/nursery/useScopedStyles"
8666
8828
  | "lint/nursery/useSortedClasses"
@@ -9172,6 +9334,10 @@ type EmbeddingKind =
9172
9334
  }
9173
9335
  | {
9174
9336
  Svelte: {
9337
+ /**
9338
+ * Whether this is the declaration of a function, usually declared in `#snippet`
9339
+ */
9340
+ is_function_signature: boolean;
9175
9341
  /**
9176
9342
  * Where the bindings are defined
9177
9343
  */
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.4.12",
8
+ "version": "2.4.13",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",