@biomejs/wasm-bundler 2.4.6 → 2.4.7

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
@@ -1956,6 +1956,11 @@ See https://biomejs.dev/linter/rules/no-duplicated-spread-props
1956
1956
  */
1957
1957
  noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration;
1958
1958
  /**
1959
+ * Disallow empty keys in JSON objects.
1960
+ See https://biomejs.dev/linter/rules/no-empty-object-keys
1961
+ */
1962
+ noEmptyObjectKeys?: NoEmptyObjectKeysConfiguration;
1963
+ /**
1959
1964
  * Require the use of === or !== for comparison with null.
1960
1965
  See https://biomejs.dev/linter/rules/no-equals-to-null
1961
1966
  */
@@ -2121,6 +2126,11 @@ See https://biomejs.dev/linter/rules/no-ternary
2121
2126
  */
2122
2127
  noTernary?: NoTernaryConfiguration;
2123
2128
  /**
2129
+ * Require the JSON top-level value to be an array or object.
2130
+ See https://biomejs.dev/linter/rules/no-top-level-literals
2131
+ */
2132
+ noTopLevelLiterals?: NoTopLevelLiteralsConfiguration;
2133
+ /**
2124
2134
  * Disallow the use of undeclared environment variables.
2125
2135
  See https://biomejs.dev/linter/rules/no-undeclared-env-vars
2126
2136
  */
@@ -2180,6 +2190,11 @@ See https://biomejs.dev/linter/rules/use-await-thenable
2180
2190
  */
2181
2191
  useAwaitThenable?: UseAwaitThenableConfiguration;
2182
2192
  /**
2193
+ * Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.
2194
+ See https://biomejs.dev/linter/rules/use-baseline
2195
+ */
2196
+ useBaseline?: UseBaselineConfiguration;
2197
+ /**
2183
2198
  * Disallow enums from having both number and string members.
2184
2199
  See https://biomejs.dev/linter/rules/use-consistent-enum-value-type
2185
2200
  */
@@ -2230,6 +2245,11 @@ See https://biomejs.dev/linter/rules/use-global-this
2230
2245
  */
2231
2246
  useGlobalThis?: UseGlobalThisConfiguration;
2232
2247
  /**
2248
+ * Enforce that all imports appear at the top of the module.
2249
+ See https://biomejs.dev/linter/rules/use-imports-first
2250
+ */
2251
+ useImportsFirst?: UseImportsFirstConfiguration;
2252
+ /**
2233
2253
  * Enforce id attribute on next/script components with inline content or dangerouslySetInnerHTML.
2234
2254
  See https://biomejs.dev/linter/rules/use-inline-script-id
2235
2255
  */
@@ -3925,6 +3945,9 @@ type NoDuplicateVariableNamesConfiguration =
3925
3945
  type NoDuplicatedSpreadPropsConfiguration =
3926
3946
  | RulePlainConfiguration
3927
3947
  | RuleWithNoDuplicatedSpreadPropsOptions;
3948
+ type NoEmptyObjectKeysConfiguration =
3949
+ | RulePlainConfiguration
3950
+ | RuleWithNoEmptyObjectKeysOptions;
3928
3951
  type NoEqualsToNullConfiguration =
3929
3952
  | RulePlainConfiguration
3930
3953
  | RuleWithNoEqualsToNullOptions;
@@ -4016,6 +4039,9 @@ type NoSyncScriptsConfiguration =
4016
4039
  | RulePlainConfiguration
4017
4040
  | RuleWithNoSyncScriptsOptions;
4018
4041
  type NoTernaryConfiguration = RulePlainConfiguration | RuleWithNoTernaryOptions;
4042
+ type NoTopLevelLiteralsConfiguration =
4043
+ | RulePlainConfiguration
4044
+ | RuleWithNoTopLevelLiteralsOptions;
4019
4045
  type NoUndeclaredEnvVarsConfiguration =
4020
4046
  | RulePlainConfiguration
4021
4047
  | RuleWithNoUndeclaredEnvVarsOptions;
@@ -4049,6 +4075,9 @@ type UseArraySortCompareConfiguration =
4049
4075
  type UseAwaitThenableConfiguration =
4050
4076
  | RulePlainConfiguration
4051
4077
  | RuleWithUseAwaitThenableOptions;
4078
+ type UseBaselineConfiguration =
4079
+ | RulePlainConfiguration
4080
+ | RuleWithUseBaselineOptions;
4052
4081
  type UseConsistentEnumValueTypeConfiguration =
4053
4082
  | RulePlainConfiguration
4054
4083
  | RuleWithUseConsistentEnumValueTypeOptions;
@@ -4075,6 +4104,9 @@ type UseFindConfiguration = RulePlainConfiguration | RuleWithUseFindOptions;
4075
4104
  type UseGlobalThisConfiguration =
4076
4105
  | RulePlainConfiguration
4077
4106
  | RuleWithUseGlobalThisOptions;
4107
+ type UseImportsFirstConfiguration =
4108
+ | RulePlainConfiguration
4109
+ | RuleWithUseImportsFirstOptions;
4078
4110
  type UseInlineScriptIdConfiguration =
4079
4111
  | RulePlainConfiguration
4080
4112
  | RuleWithUseInlineScriptIdOptions;
@@ -5532,6 +5564,10 @@ interface RuleWithNoDuplicatedSpreadPropsOptions {
5532
5564
  level: RulePlainConfiguration;
5533
5565
  options?: NoDuplicatedSpreadPropsOptions;
5534
5566
  }
5567
+ interface RuleWithNoEmptyObjectKeysOptions {
5568
+ level: RulePlainConfiguration;
5569
+ options?: NoEmptyObjectKeysOptions;
5570
+ }
5535
5571
  interface RuleWithNoEqualsToNullOptions {
5536
5572
  fix?: FixKind;
5537
5573
  level: RulePlainConfiguration;
@@ -5672,6 +5708,10 @@ interface RuleWithNoTernaryOptions {
5672
5708
  level: RulePlainConfiguration;
5673
5709
  options?: NoTernaryOptions;
5674
5710
  }
5711
+ interface RuleWithNoTopLevelLiteralsOptions {
5712
+ level: RulePlainConfiguration;
5713
+ options?: NoTopLevelLiteralsOptions;
5714
+ }
5675
5715
  interface RuleWithNoUndeclaredEnvVarsOptions {
5676
5716
  level: RulePlainConfiguration;
5677
5717
  options?: NoUndeclaredEnvVarsOptions;
@@ -5719,6 +5759,10 @@ interface RuleWithUseAwaitThenableOptions {
5719
5759
  level: RulePlainConfiguration;
5720
5760
  options?: UseAwaitThenableOptions;
5721
5761
  }
5762
+ interface RuleWithUseBaselineOptions {
5763
+ level: RulePlainConfiguration;
5764
+ options?: UseBaselineOptions;
5765
+ }
5722
5766
  interface RuleWithUseConsistentEnumValueTypeOptions {
5723
5767
  level: RulePlainConfiguration;
5724
5768
  options?: UseConsistentEnumValueTypeOptions;
@@ -5760,6 +5804,10 @@ interface RuleWithUseGlobalThisOptions {
5760
5804
  level: RulePlainConfiguration;
5761
5805
  options?: UseGlobalThisOptions;
5762
5806
  }
5807
+ interface RuleWithUseImportsFirstOptions {
5808
+ level: RulePlainConfiguration;
5809
+ options?: UseImportsFirstOptions;
5810
+ }
5763
5811
  interface RuleWithUseInlineScriptIdOptions {
5764
5812
  level: RulePlainConfiguration;
5765
5813
  options?: UseInlineScriptIdOptions;
@@ -7105,6 +7153,7 @@ type NoDuplicateGraphqlOperationNameOptions = {};
7105
7153
  type NoDuplicateInputFieldNamesOptions = {};
7106
7154
  type NoDuplicateVariableNamesOptions = {};
7107
7155
  type NoDuplicatedSpreadPropsOptions = {};
7156
+ type NoEmptyObjectKeysOptions = {};
7108
7157
  type NoEqualsToNullOptions = {};
7109
7158
  interface NoExcessiveClassesPerFileOptions {
7110
7159
  /**
@@ -7163,6 +7212,7 @@ type NoScriptUrlOptions = {};
7163
7212
  type NoShadowOptions = {};
7164
7213
  type NoSyncScriptsOptions = {};
7165
7214
  type NoTernaryOptions = {};
7215
+ type NoTopLevelLiteralsOptions = {};
7166
7216
  interface NoUndeclaredEnvVarsOptions {
7167
7217
  /**
7168
7218
  * Environment variables that should always be allowed.
@@ -7184,6 +7234,36 @@ type NoVueVIfWithVForOptions = {};
7184
7234
  type UseArraySomeOptions = {};
7185
7235
  type UseArraySortCompareOptions = {};
7186
7236
  type UseAwaitThenableOptions = {};
7237
+ interface UseBaselineOptions {
7238
+ /**
7239
+ * CSS at-rules to exclude from checking (without `@`, case-insensitive).
7240
+ */
7241
+ allowAtRules?: string[];
7242
+ /**
7243
+ * CSS value functions to exclude from checking (case-insensitive).
7244
+ */
7245
+ allowFunctions?: string[];
7246
+ /**
7247
+ * CSS media conditions to exclude from checking (case-insensitive).
7248
+ */
7249
+ allowMediaConditions?: string[];
7250
+ /**
7251
+ * CSS properties to exclude from checking (case-insensitive).
7252
+ */
7253
+ allowProperties?: string[];
7254
+ /**
7255
+ * CSS property values to exclude from checking (maps property name to allowed values, case-insensitive).
7256
+ */
7257
+ allowPropertyValues?: Record<string, string[]>;
7258
+ /**
7259
+ * CSS pseudo-selectors to exclude from checking (without `:` or `::`, case-insensitive).
7260
+ */
7261
+ allowSelectors?: string[];
7262
+ /**
7263
+ * The availability level to target. Defaults to `"widely"`.
7264
+ */
7265
+ available?: AvailabilityTarget;
7266
+ }
7187
7267
  type UseConsistentEnumValueTypeOptions = {};
7188
7268
  interface UseConsistentGraphqlDescriptionsOptions {
7189
7269
  /**
@@ -7211,6 +7291,7 @@ type UseExpectOptions = {};
7211
7291
  type UseExplicitTypeOptions = {};
7212
7292
  type UseFindOptions = {};
7213
7293
  type UseGlobalThisOptions = {};
7294
+ type UseImportsFirstOptions = {};
7214
7295
  type UseInlineScriptIdOptions = {};
7215
7296
  interface UseInputNameOptions {
7216
7297
  /**
@@ -7729,6 +7810,7 @@ while for `useState()` it would be `[1]`.
7729
7810
  stableResult?: StableHookResult;
7730
7811
  }
7731
7812
  type Regex = string;
7813
+ type AvailabilityTarget = AvailabilityNamed | number;
7732
7814
  type UseConsistentGraphqlDescriptionsStyle = "block" | "inline";
7733
7815
  type MethodSignatureStyle = "property" | "method";
7734
7816
  type CheckInputType = "off" | "loose" | "strict";
@@ -7762,6 +7844,7 @@ interface Convention {
7762
7844
  }
7763
7845
  type GroupMatcher = ImportMatcher | SourceMatcher;
7764
7846
  type StableHookResult = boolean | number[] | string[];
7847
+ type AvailabilityNamed = "widely" | "newly";
7765
7848
  interface PathOptions {
7766
7849
  /**
7767
7850
  * Names of the exported members that allowed to be not be used.
@@ -8102,6 +8185,7 @@ type Category =
8102
8185
  | "lint/nursery/noDuplicateInputFieldNames"
8103
8186
  | "lint/nursery/noDuplicateVariableNames"
8104
8187
  | "lint/nursery/noDuplicatedSpreadProps"
8188
+ | "lint/nursery/noEmptyObjectKeys"
8105
8189
  | "lint/nursery/noEqualsToNull"
8106
8190
  | "lint/nursery/noExcessiveClassesPerFile"
8107
8191
  | "lint/nursery/noExcessiveLinesPerFile"
@@ -8150,6 +8234,7 @@ type Category =
8150
8234
  | "lint/nursery/useArraySome"
8151
8235
  | "lint/nursery/useArraySortCompare"
8152
8236
  | "lint/nursery/useAwaitThenable"
8237
+ | "lint/nursery/useBaseline"
8153
8238
  | "lint/nursery/useBiomeSuppressionComment"
8154
8239
  | "lint/nursery/useConsistentEnumValueType"
8155
8240
  | "lint/nursery/useConsistentGraphqlDescriptions"
@@ -8164,21 +8249,24 @@ type Category =
8164
8249
  | "lint/nursery/useFind"
8165
8250
  | "lint/nursery/useGlobalThis"
8166
8251
  | "lint/nursery/useImportRestrictions"
8252
+ | "lint/nursery/useImportsFirst"
8167
8253
  | "lint/nursery/useInlineScriptId"
8168
8254
  | "lint/nursery/useInputName"
8169
8255
  | "lint/nursery/useJsxCurlyBraceConvention"
8170
8256
  | "lint/nursery/useLoneAnonymousOperation"
8171
8257
  | "lint/nursery/useLoneExecutableDefinition"
8172
- | "lint/nursery/useNullishCoalescing"
8173
8258
  | "lint/nursery/useMaxParams"
8174
8259
  | "lint/nursery/useNamedCaptureGroup"
8260
+ | "lint/nursery/useNullishCoalescing"
8175
8261
  | "lint/nursery/usePlaywrightValidDescribeCallback"
8176
8262
  | "lint/nursery/useQwikMethodUsage"
8177
8263
  | "lint/nursery/useQwikValidLexicalScope"
8178
8264
  | "lint/nursery/useRegexpExec"
8179
8265
  | "lint/nursery/useRequiredScripts"
8266
+ | "lint/nursery/useScopedStyles"
8180
8267
  | "lint/nursery/useSortedClasses"
8181
8268
  | "lint/nursery/useSpread"
8269
+ | "lint/nursery/noTopLevelLiterals"
8182
8270
  | "lint/nursery/useUnicodeRegex"
8183
8271
  | "lint/nursery/useUniqueArgumentNames"
8184
8272
  | "lint/nursery/useUniqueFieldDefinitionNames"
@@ -8191,7 +8279,6 @@ type Category =
8191
8279
  | "lint/nursery/useVueDefineMacrosOrder"
8192
8280
  | "lint/nursery/useVueHyphenatedAttributes"
8193
8281
  | "lint/nursery/useVueMultiWordComponentNames"
8194
- | "lint/nursery/useScopedStyles"
8195
8282
  | "lint/nursery/useVueVForKey"
8196
8283
  | "lint/nursery/useVueValidTemplateRoot"
8197
8284
  | "lint/nursery/useVueValidVBind"
@@ -8733,6 +8820,11 @@ When this field is empty, Biome checks only `files.includes`.
8733
8820
  * Controls how to ignore check should be done
8734
8821
  */
8735
8822
  ignoreKind?: IgnoreKind;
8823
+ /**
8824
+ * Whether the path is a directory. Used to skip stat calls when the caller
8825
+ already knows the file type from the filesystem traversal.
8826
+ */
8827
+ isDir?: boolean;
8736
8828
  /**
8737
8829
  * The path to inspect
8738
8830
  */
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.6",
8
+ "version": "2.4.7",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",