@biomejs/wasm-web 2.5.1 → 2.5.3

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
@@ -2343,6 +2343,11 @@ interface Nursery {
2343
2343
  See https://biomejs.dev/linter/rules/no-restricted-dependencies
2344
2344
  */
2345
2345
  noRestrictedDependencies?: NoRestrictedDependenciesConfiguration;
2346
+ /**
2347
+ * Disallow unnecessary $state wrapping of reactive classes.
2348
+ See https://biomejs.dev/linter/rules/no-svelte-unnecessary-state-wrap
2349
+ */
2350
+ noSvelteUnnecessaryStateWrap?: NoSvelteUnnecessaryStateWrapConfiguration;
2346
2351
  /**
2347
2352
  * Require the JSON top-level value to be an array or object.
2348
2353
  See https://biomejs.dev/linter/rules/no-top-level-literals
@@ -4522,6 +4527,9 @@ type NoReactStringRefsConfiguration =
4522
4527
  type NoRestrictedDependenciesConfiguration =
4523
4528
  | RulePlainConfiguration
4524
4529
  | RuleWithNoRestrictedDependenciesOptions;
4530
+ type NoSvelteUnnecessaryStateWrapConfiguration =
4531
+ | RulePlainConfiguration
4532
+ | RuleWithNoSvelteUnnecessaryStateWrapOptions;
4525
4533
  type NoTopLevelLiteralsConfiguration =
4526
4534
  | RulePlainConfiguration
4527
4535
  | RuleWithNoTopLevelLiteralsOptions;
@@ -6366,6 +6374,11 @@ interface RuleWithNoRestrictedDependenciesOptions {
6366
6374
  level: RulePlainConfiguration;
6367
6375
  options?: NoRestrictedDependenciesOptions;
6368
6376
  }
6377
+ interface RuleWithNoSvelteUnnecessaryStateWrapOptions {
6378
+ fix?: FixKind;
6379
+ level: RulePlainConfiguration;
6380
+ options?: NoSvelteUnnecessaryStateWrapOptions;
6381
+ }
6369
6382
  interface RuleWithNoTopLevelLiteralsOptions {
6370
6383
  level: RulePlainConfiguration;
6371
6384
  options?: NoTopLevelLiteralsOptions;
@@ -8058,6 +8071,16 @@ interface NoReactNativeRawTextOptions {
8058
8071
  }
8059
8072
  type NoReactStringRefsOptions = {};
8060
8073
  type NoRestrictedDependenciesOptions = {};
8074
+ interface NoSvelteUnnecessaryStateWrapOptions {
8075
+ /**
8076
+ * Additional class names to treat as already reactive (beyond the built-in `svelte/reactivity` classes).
8077
+ */
8078
+ additionalReactiveClasses?: string[];
8079
+ /**
8080
+ * When `true`, allows `$state()` wrapping for variables that are reassigned after declaration.
8081
+ */
8082
+ allowReassign?: boolean;
8083
+ }
8061
8084
  type NoTopLevelLiteralsOptions = {};
8062
8085
  type NoUndeclaredClassesOptions = {};
8063
8086
  type NoUnnecessaryTemplateExpressionOptions = {};
@@ -8147,7 +8170,14 @@ interface UseConsistentTestItOptions {
8147
8170
  }
8148
8171
  type UseDisposablesOptions = {};
8149
8172
  type UseDomNodeTextContentOptions = {};
8150
- type UseDomQuerySelectorOptions = {};
8173
+ interface UseDomQuerySelectorOptions {
8174
+ /**
8175
+ * A list of receiver identifiers to ignore.
8176
+
8177
+ In the expression `document.querySelector('div')`, the receiver is `document`.
8178
+ */
8179
+ ignore?: string[];
8180
+ }
8151
8181
  type UseExhaustiveSwitchCasesOptions = {};
8152
8182
  type UseExpectOptions = {};
8153
8183
  interface UseExplicitReturnTypeOptions {
@@ -8172,6 +8202,10 @@ type UseIncludesOptions = {};
8172
8202
  type UseMathMinMaxOptions = {};
8173
8203
  type UseNamedCaptureGroupOptions = {};
8174
8204
  interface UseNullishCoalescingOptions {
8205
+ /**
8206
+ * Whether to ignore `||` and `||=` binary operations used inside a `Boolean()` call (default: `false`).
8207
+ */
8208
+ ignoreBooleanCoercion?: boolean;
8175
8209
  /**
8176
8210
  * Ignore `||` expressions in conditional test positions (default: `true`).
8177
8211
  */
@@ -8180,6 +8214,10 @@ interface UseNullishCoalescingOptions {
8180
8214
  * Whether to ignore `||` and `||=` binary operations that are part of a mixed logical expression with `&&` (default: `false`).
8181
8215
  */
8182
8216
  ignoreMixedLogicalExpressions?: boolean;
8217
+ /**
8218
+ * Whether to ignore `||` and `||=` operations whose non-nullish operand types are all primitives of the configured kinds. Accepts `true` for every primitive, or an object selecting `string`, `number`, `boolean`, `bigint` (default: none).
8219
+ */
8220
+ ignorePrimitives?: IgnorePrimitives;
8183
8221
  /**
8184
8222
  * Ignore ternary expressions that check for `null` or `undefined` (default: `false`).
8185
8223
  */
@@ -8895,6 +8933,9 @@ interface Hook {
8895
8933
  }
8896
8934
  type AvailabilityTarget = AvailabilityNamed | number;
8897
8935
  type TestFunctionKind = "it" | "test";
8936
+ type IgnorePrimitives =
8937
+ | boolean
8938
+ | { bigint?: boolean; boolean?: boolean; number?: boolean; string?: boolean };
8898
8939
  type ComponentDefinitionStyle =
8899
8940
  | "functionDeclaration"
8900
8941
  | "functionExpression"
@@ -9342,6 +9383,7 @@ type Category =
9342
9383
  | "lint/nursery/noReactNativeLiteralColors"
9343
9384
  | "lint/nursery/noReactNativeRawText"
9344
9385
  | "lint/nursery/noReactStringRefs"
9386
+ | "lint/nursery/noSvelteUnnecessaryStateWrap"
9345
9387
  | "lint/nursery/noTopLevelLiterals"
9346
9388
  | "lint/nursery/noUndeclaredClasses"
9347
9389
  | "lint/nursery/noUnnecessaryTemplateExpression"
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.5.1",
8
+ "version": "2.5.3",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",