@biomejs/wasm-web 2.4.6 → 2.4.8

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
@@ -929,6 +929,7 @@ type Semicolons = "always" | "asNeeded";
929
929
  type JsTrailingCommas = "all" | "es5" | "none";
930
930
  type JsonTrailingCommas = "none" | "all";
931
931
  type RuleDomain =
932
+ | "drizzle"
932
933
  | "react"
933
934
  | "test"
934
935
  | "solid"
@@ -1911,6 +1912,16 @@ See https://biomejs.dev/linter/rules/no-div-regex
1911
1912
  */
1912
1913
  noDivRegex?: NoDivRegexConfiguration;
1913
1914
  /**
1915
+ * Require .where() to be called when using .delete() with Drizzle ORM.
1916
+ See https://biomejs.dev/linter/rules/no-drizzle-delete-without-where
1917
+ */
1918
+ noDrizzleDeleteWithoutWhere?: NoDrizzleDeleteWithoutWhereConfiguration;
1919
+ /**
1920
+ * Require .where() to be called when using .update() with Drizzle ORM.
1921
+ See https://biomejs.dev/linter/rules/no-drizzle-update-without-where
1922
+ */
1923
+ noDrizzleUpdateWithoutWhere?: NoDrizzleUpdateWithoutWhereConfiguration;
1924
+ /**
1914
1925
  * Require all argument names for fields & directives to be unique.
1915
1926
  See https://biomejs.dev/linter/rules/no-duplicate-argument-names
1916
1927
  */
@@ -1956,6 +1967,11 @@ See https://biomejs.dev/linter/rules/no-duplicated-spread-props
1956
1967
  */
1957
1968
  noDuplicatedSpreadProps?: NoDuplicatedSpreadPropsConfiguration;
1958
1969
  /**
1970
+ * Disallow empty keys in JSON objects.
1971
+ See https://biomejs.dev/linter/rules/no-empty-object-keys
1972
+ */
1973
+ noEmptyObjectKeys?: NoEmptyObjectKeysConfiguration;
1974
+ /**
1959
1975
  * Require the use of === or !== for comparison with null.
1960
1976
  See https://biomejs.dev/linter/rules/no-equals-to-null
1961
1977
  */
@@ -2121,6 +2137,11 @@ See https://biomejs.dev/linter/rules/no-ternary
2121
2137
  */
2122
2138
  noTernary?: NoTernaryConfiguration;
2123
2139
  /**
2140
+ * Require the JSON top-level value to be an array or object.
2141
+ See https://biomejs.dev/linter/rules/no-top-level-literals
2142
+ */
2143
+ noTopLevelLiterals?: NoTopLevelLiteralsConfiguration;
2144
+ /**
2124
2145
  * Disallow the use of undeclared environment variables.
2125
2146
  See https://biomejs.dev/linter/rules/no-undeclared-env-vars
2126
2147
  */
@@ -2180,6 +2201,11 @@ See https://biomejs.dev/linter/rules/use-await-thenable
2180
2201
  */
2181
2202
  useAwaitThenable?: UseAwaitThenableConfiguration;
2182
2203
  /**
2204
+ * Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.
2205
+ See https://biomejs.dev/linter/rules/use-baseline
2206
+ */
2207
+ useBaseline?: UseBaselineConfiguration;
2208
+ /**
2183
2209
  * Disallow enums from having both number and string members.
2184
2210
  See https://biomejs.dev/linter/rules/use-consistent-enum-value-type
2185
2211
  */
@@ -2230,6 +2256,11 @@ See https://biomejs.dev/linter/rules/use-global-this
2230
2256
  */
2231
2257
  useGlobalThis?: UseGlobalThisConfiguration;
2232
2258
  /**
2259
+ * Enforce that all imports appear at the top of the module.
2260
+ See https://biomejs.dev/linter/rules/use-imports-first
2261
+ */
2262
+ useImportsFirst?: UseImportsFirstConfiguration;
2263
+ /**
2233
2264
  * Enforce id attribute on next/script components with inline content or dangerouslySetInnerHTML.
2234
2265
  See https://biomejs.dev/linter/rules/use-inline-script-id
2235
2266
  */
@@ -3898,6 +3929,12 @@ type NoDeprecatedMediaTypeConfiguration =
3898
3929
  type NoDivRegexConfiguration =
3899
3930
  | RulePlainConfiguration
3900
3931
  | RuleWithNoDivRegexOptions;
3932
+ type NoDrizzleDeleteWithoutWhereConfiguration =
3933
+ | RulePlainConfiguration
3934
+ | RuleWithNoDrizzleDeleteWithoutWhereOptions;
3935
+ type NoDrizzleUpdateWithoutWhereConfiguration =
3936
+ | RulePlainConfiguration
3937
+ | RuleWithNoDrizzleUpdateWithoutWhereOptions;
3901
3938
  type NoDuplicateArgumentNamesConfiguration =
3902
3939
  | RulePlainConfiguration
3903
3940
  | RuleWithNoDuplicateArgumentNamesOptions;
@@ -3925,6 +3962,9 @@ type NoDuplicateVariableNamesConfiguration =
3925
3962
  type NoDuplicatedSpreadPropsConfiguration =
3926
3963
  | RulePlainConfiguration
3927
3964
  | RuleWithNoDuplicatedSpreadPropsOptions;
3965
+ type NoEmptyObjectKeysConfiguration =
3966
+ | RulePlainConfiguration
3967
+ | RuleWithNoEmptyObjectKeysOptions;
3928
3968
  type NoEqualsToNullConfiguration =
3929
3969
  | RulePlainConfiguration
3930
3970
  | RuleWithNoEqualsToNullOptions;
@@ -4016,6 +4056,9 @@ type NoSyncScriptsConfiguration =
4016
4056
  | RulePlainConfiguration
4017
4057
  | RuleWithNoSyncScriptsOptions;
4018
4058
  type NoTernaryConfiguration = RulePlainConfiguration | RuleWithNoTernaryOptions;
4059
+ type NoTopLevelLiteralsConfiguration =
4060
+ | RulePlainConfiguration
4061
+ | RuleWithNoTopLevelLiteralsOptions;
4019
4062
  type NoUndeclaredEnvVarsConfiguration =
4020
4063
  | RulePlainConfiguration
4021
4064
  | RuleWithNoUndeclaredEnvVarsOptions;
@@ -4049,6 +4092,9 @@ type UseArraySortCompareConfiguration =
4049
4092
  type UseAwaitThenableConfiguration =
4050
4093
  | RulePlainConfiguration
4051
4094
  | RuleWithUseAwaitThenableOptions;
4095
+ type UseBaselineConfiguration =
4096
+ | RulePlainConfiguration
4097
+ | RuleWithUseBaselineOptions;
4052
4098
  type UseConsistentEnumValueTypeConfiguration =
4053
4099
  | RulePlainConfiguration
4054
4100
  | RuleWithUseConsistentEnumValueTypeOptions;
@@ -4075,6 +4121,9 @@ type UseFindConfiguration = RulePlainConfiguration | RuleWithUseFindOptions;
4075
4121
  type UseGlobalThisConfiguration =
4076
4122
  | RulePlainConfiguration
4077
4123
  | RuleWithUseGlobalThisOptions;
4124
+ type UseImportsFirstConfiguration =
4125
+ | RulePlainConfiguration
4126
+ | RuleWithUseImportsFirstOptions;
4078
4127
  type UseInlineScriptIdConfiguration =
4079
4128
  | RulePlainConfiguration
4080
4129
  | RuleWithUseInlineScriptIdOptions;
@@ -5496,6 +5545,14 @@ interface RuleWithNoDivRegexOptions {
5496
5545
  level: RulePlainConfiguration;
5497
5546
  options?: NoDivRegexOptions;
5498
5547
  }
5548
+ interface RuleWithNoDrizzleDeleteWithoutWhereOptions {
5549
+ level: RulePlainConfiguration;
5550
+ options?: NoDrizzleDeleteWithoutWhereOptions;
5551
+ }
5552
+ interface RuleWithNoDrizzleUpdateWithoutWhereOptions {
5553
+ level: RulePlainConfiguration;
5554
+ options?: NoDrizzleUpdateWithoutWhereOptions;
5555
+ }
5499
5556
  interface RuleWithNoDuplicateArgumentNamesOptions {
5500
5557
  level: RulePlainConfiguration;
5501
5558
  options?: NoDuplicateArgumentNamesOptions;
@@ -5532,6 +5589,10 @@ interface RuleWithNoDuplicatedSpreadPropsOptions {
5532
5589
  level: RulePlainConfiguration;
5533
5590
  options?: NoDuplicatedSpreadPropsOptions;
5534
5591
  }
5592
+ interface RuleWithNoEmptyObjectKeysOptions {
5593
+ level: RulePlainConfiguration;
5594
+ options?: NoEmptyObjectKeysOptions;
5595
+ }
5535
5596
  interface RuleWithNoEqualsToNullOptions {
5536
5597
  fix?: FixKind;
5537
5598
  level: RulePlainConfiguration;
@@ -5672,6 +5733,10 @@ interface RuleWithNoTernaryOptions {
5672
5733
  level: RulePlainConfiguration;
5673
5734
  options?: NoTernaryOptions;
5674
5735
  }
5736
+ interface RuleWithNoTopLevelLiteralsOptions {
5737
+ level: RulePlainConfiguration;
5738
+ options?: NoTopLevelLiteralsOptions;
5739
+ }
5675
5740
  interface RuleWithNoUndeclaredEnvVarsOptions {
5676
5741
  level: RulePlainConfiguration;
5677
5742
  options?: NoUndeclaredEnvVarsOptions;
@@ -5719,6 +5784,10 @@ interface RuleWithUseAwaitThenableOptions {
5719
5784
  level: RulePlainConfiguration;
5720
5785
  options?: UseAwaitThenableOptions;
5721
5786
  }
5787
+ interface RuleWithUseBaselineOptions {
5788
+ level: RulePlainConfiguration;
5789
+ options?: UseBaselineOptions;
5790
+ }
5722
5791
  interface RuleWithUseConsistentEnumValueTypeOptions {
5723
5792
  level: RulePlainConfiguration;
5724
5793
  options?: UseConsistentEnumValueTypeOptions;
@@ -5760,6 +5829,10 @@ interface RuleWithUseGlobalThisOptions {
5760
5829
  level: RulePlainConfiguration;
5761
5830
  options?: UseGlobalThisOptions;
5762
5831
  }
5832
+ interface RuleWithUseImportsFirstOptions {
5833
+ level: RulePlainConfiguration;
5834
+ options?: UseImportsFirstOptions;
5835
+ }
5763
5836
  interface RuleWithUseInlineScriptIdOptions {
5764
5837
  level: RulePlainConfiguration;
5765
5838
  options?: UseInlineScriptIdOptions;
@@ -7096,6 +7169,18 @@ interface NoDeprecatedMediaTypeOptions {
7096
7169
  allow?: string[];
7097
7170
  }
7098
7171
  type NoDivRegexOptions = {};
7172
+ interface NoDrizzleDeleteWithoutWhereOptions {
7173
+ /**
7174
+ * List of variable names to consider as Drizzle ORM instances.
7175
+ */
7176
+ drizzleObjectName?: string[];
7177
+ }
7178
+ interface NoDrizzleUpdateWithoutWhereOptions {
7179
+ /**
7180
+ * List of variable names to consider as Drizzle ORM instances.
7181
+ */
7182
+ drizzleObjectName?: string[];
7183
+ }
7099
7184
  type NoDuplicateArgumentNamesOptions = {};
7100
7185
  type NoDuplicateAttributesOptions = {};
7101
7186
  type NoDuplicateEnumValueNamesOptions = {};
@@ -7105,6 +7190,7 @@ type NoDuplicateGraphqlOperationNameOptions = {};
7105
7190
  type NoDuplicateInputFieldNamesOptions = {};
7106
7191
  type NoDuplicateVariableNamesOptions = {};
7107
7192
  type NoDuplicatedSpreadPropsOptions = {};
7193
+ type NoEmptyObjectKeysOptions = {};
7108
7194
  type NoEqualsToNullOptions = {};
7109
7195
  interface NoExcessiveClassesPerFileOptions {
7110
7196
  /**
@@ -7163,6 +7249,7 @@ type NoScriptUrlOptions = {};
7163
7249
  type NoShadowOptions = {};
7164
7250
  type NoSyncScriptsOptions = {};
7165
7251
  type NoTernaryOptions = {};
7252
+ type NoTopLevelLiteralsOptions = {};
7166
7253
  interface NoUndeclaredEnvVarsOptions {
7167
7254
  /**
7168
7255
  * Environment variables that should always be allowed.
@@ -7184,6 +7271,36 @@ type NoVueVIfWithVForOptions = {};
7184
7271
  type UseArraySomeOptions = {};
7185
7272
  type UseArraySortCompareOptions = {};
7186
7273
  type UseAwaitThenableOptions = {};
7274
+ interface UseBaselineOptions {
7275
+ /**
7276
+ * CSS at-rules to exclude from checking (without `@`, case-insensitive).
7277
+ */
7278
+ allowAtRules?: string[];
7279
+ /**
7280
+ * CSS value functions to exclude from checking (case-insensitive).
7281
+ */
7282
+ allowFunctions?: string[];
7283
+ /**
7284
+ * CSS media conditions to exclude from checking (case-insensitive).
7285
+ */
7286
+ allowMediaConditions?: string[];
7287
+ /**
7288
+ * CSS properties to exclude from checking (case-insensitive).
7289
+ */
7290
+ allowProperties?: string[];
7291
+ /**
7292
+ * CSS property values to exclude from checking (maps property name to allowed values, case-insensitive).
7293
+ */
7294
+ allowPropertyValues?: Record<string, string[]>;
7295
+ /**
7296
+ * CSS pseudo-selectors to exclude from checking (without `:` or `::`, case-insensitive).
7297
+ */
7298
+ allowSelectors?: string[];
7299
+ /**
7300
+ * The availability level to target. Defaults to `"widely"`.
7301
+ */
7302
+ available?: AvailabilityTarget;
7303
+ }
7187
7304
  type UseConsistentEnumValueTypeOptions = {};
7188
7305
  interface UseConsistentGraphqlDescriptionsOptions {
7189
7306
  /**
@@ -7211,6 +7328,7 @@ type UseExpectOptions = {};
7211
7328
  type UseExplicitTypeOptions = {};
7212
7329
  type UseFindOptions = {};
7213
7330
  type UseGlobalThisOptions = {};
7331
+ type UseImportsFirstOptions = {};
7214
7332
  type UseInlineScriptIdOptions = {};
7215
7333
  interface UseInputNameOptions {
7216
7334
  /**
@@ -7729,6 +7847,7 @@ while for `useState()` it would be `[1]`.
7729
7847
  stableResult?: StableHookResult;
7730
7848
  }
7731
7849
  type Regex = string;
7850
+ type AvailabilityTarget = AvailabilityNamed | number;
7732
7851
  type UseConsistentGraphqlDescriptionsStyle = "block" | "inline";
7733
7852
  type MethodSignatureStyle = "property" | "method";
7734
7853
  type CheckInputType = "off" | "loose" | "strict";
@@ -7762,6 +7881,7 @@ interface Convention {
7762
7881
  }
7763
7882
  type GroupMatcher = ImportMatcher | SourceMatcher;
7764
7883
  type StableHookResult = boolean | number[] | string[];
7884
+ type AvailabilityNamed = "widely" | "newly";
7765
7885
  interface PathOptions {
7766
7886
  /**
7767
7887
  * Names of the exported members that allowed to be not be used.
@@ -8102,6 +8222,7 @@ type Category =
8102
8222
  | "lint/nursery/noDuplicateInputFieldNames"
8103
8223
  | "lint/nursery/noDuplicateVariableNames"
8104
8224
  | "lint/nursery/noDuplicatedSpreadProps"
8225
+ | "lint/nursery/noEmptyObjectKeys"
8105
8226
  | "lint/nursery/noEqualsToNull"
8106
8227
  | "lint/nursery/noExcessiveClassesPerFile"
8107
8228
  | "lint/nursery/noExcessiveLinesPerFile"
@@ -8119,6 +8240,8 @@ type Category =
8119
8240
  | "lint/nursery/noMultiStr"
8120
8241
  | "lint/nursery/noNestedPromises"
8121
8242
  | "lint/nursery/noParametersOnlyUsedInRecursion"
8243
+ | "lint/nursery/noDrizzleDeleteWithoutWhere"
8244
+ | "lint/nursery/noDrizzleUpdateWithoutWhere"
8122
8245
  | "lint/nursery/noPlaywrightElementHandle"
8123
8246
  | "lint/nursery/noPlaywrightEval"
8124
8247
  | "lint/nursery/noPlaywrightForceOption"
@@ -8150,6 +8273,7 @@ type Category =
8150
8273
  | "lint/nursery/useArraySome"
8151
8274
  | "lint/nursery/useArraySortCompare"
8152
8275
  | "lint/nursery/useAwaitThenable"
8276
+ | "lint/nursery/useBaseline"
8153
8277
  | "lint/nursery/useBiomeSuppressionComment"
8154
8278
  | "lint/nursery/useConsistentEnumValueType"
8155
8279
  | "lint/nursery/useConsistentGraphqlDescriptions"
@@ -8164,21 +8288,24 @@ type Category =
8164
8288
  | "lint/nursery/useFind"
8165
8289
  | "lint/nursery/useGlobalThis"
8166
8290
  | "lint/nursery/useImportRestrictions"
8291
+ | "lint/nursery/useImportsFirst"
8167
8292
  | "lint/nursery/useInlineScriptId"
8168
8293
  | "lint/nursery/useInputName"
8169
8294
  | "lint/nursery/useJsxCurlyBraceConvention"
8170
8295
  | "lint/nursery/useLoneAnonymousOperation"
8171
8296
  | "lint/nursery/useLoneExecutableDefinition"
8172
- | "lint/nursery/useNullishCoalescing"
8173
8297
  | "lint/nursery/useMaxParams"
8174
8298
  | "lint/nursery/useNamedCaptureGroup"
8299
+ | "lint/nursery/useNullishCoalescing"
8175
8300
  | "lint/nursery/usePlaywrightValidDescribeCallback"
8176
8301
  | "lint/nursery/useQwikMethodUsage"
8177
8302
  | "lint/nursery/useQwikValidLexicalScope"
8178
8303
  | "lint/nursery/useRegexpExec"
8179
8304
  | "lint/nursery/useRequiredScripts"
8305
+ | "lint/nursery/useScopedStyles"
8180
8306
  | "lint/nursery/useSortedClasses"
8181
8307
  | "lint/nursery/useSpread"
8308
+ | "lint/nursery/noTopLevelLiterals"
8182
8309
  | "lint/nursery/useUnicodeRegex"
8183
8310
  | "lint/nursery/useUniqueArgumentNames"
8184
8311
  | "lint/nursery/useUniqueFieldDefinitionNames"
@@ -8191,7 +8318,6 @@ type Category =
8191
8318
  | "lint/nursery/useVueDefineMacrosOrder"
8192
8319
  | "lint/nursery/useVueHyphenatedAttributes"
8193
8320
  | "lint/nursery/useVueMultiWordComponentNames"
8194
- | "lint/nursery/useScopedStyles"
8195
8321
  | "lint/nursery/useVueVForKey"
8196
8322
  | "lint/nursery/useVueValidTemplateRoot"
8197
8323
  | "lint/nursery/useVueValidVBind"
@@ -8733,6 +8859,11 @@ When this field is empty, Biome checks only `files.includes`.
8733
8859
  * Controls how to ignore check should be done
8734
8860
  */
8735
8861
  ignoreKind?: IgnoreKind;
8862
+ /**
8863
+ * Whether the path is a directory. Used to skip stat calls when the caller
8864
+ already knows the file type from the filesystem traversal.
8865
+ */
8866
+ isDir?: boolean;
8736
8867
  /**
8737
8868
  * The path to inspect
8738
8869
  */
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.8",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",