@biomejs/wasm-web 2.5.4 → 2.5.6
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 +124 -19
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -2243,6 +2243,11 @@ interface Nursery {
|
|
|
2243
2243
|
See https://biomejs.dev/linter/rules/no-inline-styles
|
|
2244
2244
|
*/
|
|
2245
2245
|
noInlineStyles?: NoInlineStylesConfiguration;
|
|
2246
|
+
/**
|
|
2247
|
+
* Disallow specific object properties.
|
|
2248
|
+
See https://biomejs.dev/linter/rules/no-js-restricted-properties
|
|
2249
|
+
*/
|
|
2250
|
+
noJsRestrictedProperties?: NoJsRestrictedPropertiesConfiguration;
|
|
2246
2251
|
/**
|
|
2247
2252
|
* Flags text nodes with a trailing $ before a JSX expression.
|
|
2248
2253
|
See https://biomejs.dev/linter/rules/no-jsx-leaked-dollar
|
|
@@ -2268,6 +2273,11 @@ interface Nursery {
|
|
|
2268
2273
|
See https://biomejs.dev/linter/rules/no-misused-promises
|
|
2269
2274
|
*/
|
|
2270
2275
|
noMisusedPromises?: NoMisusedPromisesConfiguration;
|
|
2276
|
+
/**
|
|
2277
|
+
* Disallow negated expressions on the left side of an equality check.
|
|
2278
|
+
See https://biomejs.dev/linter/rules/no-negation-in-equality-check
|
|
2279
|
+
*/
|
|
2280
|
+
noNegationInEqualityCheck?: NoNegationInEqualityCheckConfiguration;
|
|
2271
2281
|
/**
|
|
2272
2282
|
* Disallow usage of element handles (page.$() and page.$$()).
|
|
2273
2283
|
See https://biomejs.dev/linter/rules/no-playwright-element-handle
|
|
@@ -4467,6 +4477,9 @@ type NoImpliedEvalConfiguration =
|
|
|
4467
4477
|
type NoInlineStylesConfiguration =
|
|
4468
4478
|
| RulePlainConfiguration
|
|
4469
4479
|
| RuleWithNoInlineStylesOptions;
|
|
4480
|
+
type NoJsRestrictedPropertiesConfiguration =
|
|
4481
|
+
| RulePlainConfiguration
|
|
4482
|
+
| RuleWithNoJsRestrictedPropertiesOptions;
|
|
4470
4483
|
type NoJsxLeakedDollarConfiguration =
|
|
4471
4484
|
| RulePlainConfiguration
|
|
4472
4485
|
| RuleWithNoJsxLeakedDollarOptions;
|
|
@@ -4482,6 +4495,9 @@ type NoMisleadingReturnTypeConfiguration =
|
|
|
4482
4495
|
type NoMisusedPromisesConfiguration =
|
|
4483
4496
|
| RulePlainConfiguration
|
|
4484
4497
|
| RuleWithNoMisusedPromisesOptions;
|
|
4498
|
+
type NoNegationInEqualityCheckConfiguration =
|
|
4499
|
+
| RulePlainConfiguration
|
|
4500
|
+
| RuleWithNoNegationInEqualityCheckOptions;
|
|
4485
4501
|
type NoPlaywrightElementHandleConfiguration =
|
|
4486
4502
|
| RulePlainConfiguration
|
|
4487
4503
|
| RuleWithNoPlaywrightElementHandleOptions;
|
|
@@ -6288,6 +6304,10 @@ interface RuleWithNoInlineStylesOptions {
|
|
|
6288
6304
|
level: RulePlainConfiguration;
|
|
6289
6305
|
options?: NoInlineStylesOptions;
|
|
6290
6306
|
}
|
|
6307
|
+
interface RuleWithNoJsRestrictedPropertiesOptions {
|
|
6308
|
+
level: RulePlainConfiguration;
|
|
6309
|
+
options?: NoJsRestrictedPropertiesOptions;
|
|
6310
|
+
}
|
|
6291
6311
|
interface RuleWithNoJsxLeakedDollarOptions {
|
|
6292
6312
|
fix?: FixKind;
|
|
6293
6313
|
level: RulePlainConfiguration;
|
|
@@ -6310,6 +6330,11 @@ interface RuleWithNoMisusedPromisesOptions {
|
|
|
6310
6330
|
level: RulePlainConfiguration;
|
|
6311
6331
|
options?: NoMisusedPromisesOptions;
|
|
6312
6332
|
}
|
|
6333
|
+
interface RuleWithNoNegationInEqualityCheckOptions {
|
|
6334
|
+
fix?: FixKind;
|
|
6335
|
+
level: RulePlainConfiguration;
|
|
6336
|
+
options?: NoNegationInEqualityCheckOptions;
|
|
6337
|
+
}
|
|
6313
6338
|
interface RuleWithNoPlaywrightElementHandleOptions {
|
|
6314
6339
|
fix?: FixKind;
|
|
6315
6340
|
level: RulePlainConfiguration;
|
|
@@ -8046,11 +8071,27 @@ type NoFloatingPromisesOptions = {};
|
|
|
8046
8071
|
type NoIdenticalTestTitleOptions = {};
|
|
8047
8072
|
type NoImpliedEvalOptions = {};
|
|
8048
8073
|
type NoInlineStylesOptions = {};
|
|
8074
|
+
interface NoJsRestrictedPropertiesOptions {
|
|
8075
|
+
/**
|
|
8076
|
+
* Restriction entries for object/property access.
|
|
8077
|
+
|
|
8078
|
+
Each entry can describe one of these cases:
|
|
8079
|
+
|
|
8080
|
+
- exact object/property match:
|
|
8081
|
+
`{ "object": "require", "property": "ensure" }`
|
|
8082
|
+
- property-wide restriction with allowed objects:
|
|
8083
|
+
`{ "property": "__defineGetter__", "allowObjects": ["Object"] }`
|
|
8084
|
+
- object-wide restriction with allowed properties:
|
|
8085
|
+
`{ "object": "arguments", "allowProperties": ["length"] }`
|
|
8086
|
+
*/
|
|
8087
|
+
entries?: RestrictedPropertyEntry[];
|
|
8088
|
+
}
|
|
8049
8089
|
type NoJsxLeakedDollarOptions = {};
|
|
8050
8090
|
type NoJsxNamespaceOptions = {};
|
|
8051
8091
|
type NoLoopFuncOptions = {};
|
|
8052
8092
|
type NoMisleadingReturnTypeOptions = {};
|
|
8053
8093
|
type NoMisusedPromisesOptions = {};
|
|
8094
|
+
type NoNegationInEqualityCheckOptions = {};
|
|
8054
8095
|
type NoPlaywrightElementHandleOptions = {};
|
|
8055
8096
|
type NoPlaywrightEvalOptions = {};
|
|
8056
8097
|
type NoPlaywrightForceOptionOptions = {};
|
|
@@ -8931,6 +8972,38 @@ interface Hook {
|
|
|
8931
8972
|
*/
|
|
8932
8973
|
stableResult?: StableHookResult;
|
|
8933
8974
|
}
|
|
8975
|
+
interface RestrictedPropertyEntry {
|
|
8976
|
+
/**
|
|
8977
|
+
* Objects that are allowed when `property` is restricted globally.
|
|
8978
|
+
|
|
8979
|
+
Example:
|
|
8980
|
+
`{ "property": "__defineGetter__", "allowObjects": ["Object"] }`
|
|
8981
|
+
*/
|
|
8982
|
+
allowObjects?: string[];
|
|
8983
|
+
/**
|
|
8984
|
+
* Properties that are allowed when `object` is restricted globally.
|
|
8985
|
+
|
|
8986
|
+
Example:
|
|
8987
|
+
`{ "object": "arguments", "allowProperties": ["length"] }`
|
|
8988
|
+
*/
|
|
8989
|
+
allowProperties?: string[];
|
|
8990
|
+
/**
|
|
8991
|
+
* Optional custom note appended to the diagnostic.
|
|
8992
|
+
*/
|
|
8993
|
+
message?: string;
|
|
8994
|
+
/**
|
|
8995
|
+
* Object name to restrict.
|
|
8996
|
+
|
|
8997
|
+
Example: `"require"` or `"Object"`.
|
|
8998
|
+
*/
|
|
8999
|
+
object?: string;
|
|
9000
|
+
/**
|
|
9001
|
+
* Property name to restrict.
|
|
9002
|
+
|
|
9003
|
+
Example: `"ensure"` or `"__defineGetter__"`.
|
|
9004
|
+
*/
|
|
9005
|
+
property?: string;
|
|
9006
|
+
}
|
|
8934
9007
|
type AvailabilityTarget = AvailabilityNamed | number;
|
|
8935
9008
|
type TestFunctionKind = "it" | "test";
|
|
8936
9009
|
type IgnorePrimitives =
|
|
@@ -9346,7 +9419,6 @@ type Category =
|
|
|
9346
9419
|
| "lint/correctness/useVueValidVPre"
|
|
9347
9420
|
| "lint/correctness/useVueValidVText"
|
|
9348
9421
|
| "lint/correctness/useYield"
|
|
9349
|
-
| "lint/nursery/noRestrictedDependencies"
|
|
9350
9422
|
| "lint/nursery/noBaseToString"
|
|
9351
9423
|
| "lint/nursery/noColorInvalidHex"
|
|
9352
9424
|
| "lint/nursery/noComponentHookFactories"
|
|
@@ -9363,12 +9435,14 @@ type Category =
|
|
|
9363
9435
|
| "lint/nursery/noImplicitCoercion"
|
|
9364
9436
|
| "lint/nursery/noImpliedEval"
|
|
9365
9437
|
| "lint/nursery/noInlineStyles"
|
|
9438
|
+
| "lint/nursery/noJsRestrictedProperties"
|
|
9366
9439
|
| "lint/nursery/noJsxLeakedDollar"
|
|
9367
9440
|
| "lint/nursery/noJsxNamespace"
|
|
9368
9441
|
| "lint/nursery/noLoopFunc"
|
|
9369
9442
|
| "lint/nursery/noMisleadingReturnType"
|
|
9370
9443
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
9371
9444
|
| "lint/nursery/noMisusedPromises"
|
|
9445
|
+
| "lint/nursery/noNegationInEqualityCheck"
|
|
9372
9446
|
| "lint/nursery/noPlaywrightElementHandle"
|
|
9373
9447
|
| "lint/nursery/noPlaywrightEval"
|
|
9374
9448
|
| "lint/nursery/noPlaywrightForceOption"
|
|
@@ -9383,6 +9457,7 @@ type Category =
|
|
|
9383
9457
|
| "lint/nursery/noReactNativeLiteralColors"
|
|
9384
9458
|
| "lint/nursery/noReactNativeRawText"
|
|
9385
9459
|
| "lint/nursery/noReactStringRefs"
|
|
9460
|
+
| "lint/nursery/noRestrictedDependencies"
|
|
9386
9461
|
| "lint/nursery/noSvelteUnnecessaryStateWrap"
|
|
9387
9462
|
| "lint/nursery/noTopLevelLiterals"
|
|
9388
9463
|
| "lint/nursery/noUndeclaredClasses"
|
|
@@ -9411,7 +9486,6 @@ type Category =
|
|
|
9411
9486
|
| "lint/nursery/useExplicitReturnType"
|
|
9412
9487
|
| "lint/nursery/useExplicitType"
|
|
9413
9488
|
| "lint/nursery/useFind"
|
|
9414
|
-
| "lint/nursery/useReactFunctionComponentDefinition"
|
|
9415
9489
|
| "lint/nursery/useGlobalThis"
|
|
9416
9490
|
| "lint/nursery/useIframeSandbox"
|
|
9417
9491
|
| "lint/nursery/useImportRestrictions"
|
|
@@ -9427,6 +9501,7 @@ type Category =
|
|
|
9427
9501
|
| "lint/nursery/useQwikMethodUsage"
|
|
9428
9502
|
| "lint/nursery/useQwikValidLexicalScope"
|
|
9429
9503
|
| "lint/nursery/useReactAsyncServerFunction"
|
|
9504
|
+
| "lint/nursery/useReactFunctionComponentDefinition"
|
|
9430
9505
|
| "lint/nursery/useReactNativePlatformComponents"
|
|
9431
9506
|
| "lint/nursery/useReduceTypeParameter"
|
|
9432
9507
|
| "lint/nursery/useRegexpExec"
|
|
@@ -9987,25 +10062,14 @@ type JsEmbeddingKind =
|
|
|
9987
10062
|
}
|
|
9988
10063
|
| {
|
|
9989
10064
|
Svelte: {
|
|
10065
|
+
embedding_kind: SvelteEmbeddingKind;
|
|
9990
10066
|
/**
|
|
9991
|
-
*
|
|
9992
|
-
*/
|
|
9993
|
-
is_const_block: boolean;
|
|
9994
|
-
/**
|
|
9995
|
-
* Whether this is the declaration of a function, usually declared in `#snippet`
|
|
9996
|
-
*/
|
|
9997
|
-
is_function_signature: boolean;
|
|
9998
|
-
/**
|
|
9999
|
-
* Where the bindings are defined
|
|
10000
|
-
*/
|
|
10001
|
-
is_source: boolean;
|
|
10002
|
-
/**
|
|
10003
|
-
* `kind` models whether the Svelte file is a component document or a
|
|
10067
|
+
* `file_kind` models whether the Svelte file is a component document or a
|
|
10004
10068
|
source module. That distinction controls whether downstream code
|
|
10005
10069
|
extracts `<script>` content or treats the file as a standalone JS/TS
|
|
10006
|
-
module
|
|
10070
|
+
module.
|
|
10007
10071
|
*/
|
|
10008
|
-
|
|
10072
|
+
file_kind: SvelteFileKind;
|
|
10009
10073
|
};
|
|
10010
10074
|
};
|
|
10011
10075
|
type Language = "javaScript" | { typeScript: { definition_file: boolean } };
|
|
@@ -10021,8 +10085,15 @@ type HtmlVariant =
|
|
|
10021
10085
|
| { Standard: HtmlTextExpressions }
|
|
10022
10086
|
| "Astro"
|
|
10023
10087
|
| "Vue"
|
|
10024
|
-
| "Svelte"
|
|
10088
|
+
| "Svelte"
|
|
10089
|
+
| "Angular";
|
|
10025
10090
|
type GritVariant = "Standard";
|
|
10091
|
+
type SvelteEmbeddingKind =
|
|
10092
|
+
| "Source"
|
|
10093
|
+
| "Expression"
|
|
10094
|
+
| "SnippetSignature"
|
|
10095
|
+
| "LegacyConst"
|
|
10096
|
+
| "Declaration";
|
|
10026
10097
|
type SvelteFileKind = "Component" | "SourceModule";
|
|
10027
10098
|
type EmbeddingHtmlKind =
|
|
10028
10099
|
| "None"
|
|
@@ -10047,6 +10118,10 @@ interface ChangeFileParams {
|
|
|
10047
10118
|
version: number;
|
|
10048
10119
|
}
|
|
10049
10120
|
interface ChangeFileResult {
|
|
10121
|
+
/**
|
|
10122
|
+
* Problems found while updating dependency and module data.
|
|
10123
|
+
This does not include lint or parse results for the changed file.
|
|
10124
|
+
*/
|
|
10050
10125
|
diagnostics: Diagnostic[];
|
|
10051
10126
|
}
|
|
10052
10127
|
interface CloseFileParams {
|
|
@@ -10243,6 +10318,37 @@ interface PullDiagnosticsResult {
|
|
|
10243
10318
|
skippedDiagnostics: number;
|
|
10244
10319
|
warnings: number;
|
|
10245
10320
|
}
|
|
10321
|
+
interface ProcessFileParams {
|
|
10322
|
+
categories: RuleCategories;
|
|
10323
|
+
content: FileContent;
|
|
10324
|
+
diagnosticLevel: Severity;
|
|
10325
|
+
enabledRules?: AnalyzerSelector[];
|
|
10326
|
+
enforceAssist: boolean;
|
|
10327
|
+
fixFileMode?: FixFileMode;
|
|
10328
|
+
format: boolean;
|
|
10329
|
+
includeCodeFix: boolean;
|
|
10330
|
+
maxDiagnostics?: number;
|
|
10331
|
+
only?: AnalyzerSelector[];
|
|
10332
|
+
path: BiomePath;
|
|
10333
|
+
projectKey: ProjectKey;
|
|
10334
|
+
skip?: AnalyzerSelector[];
|
|
10335
|
+
skipParseErrors: boolean;
|
|
10336
|
+
suppressionReason?: string;
|
|
10337
|
+
write: boolean;
|
|
10338
|
+
}
|
|
10339
|
+
type FixFileMode = "safeFixes" | "safeAndUnsafeFixes" | "applySuppressions";
|
|
10340
|
+
interface ProcessFileResult {
|
|
10341
|
+
appliedFixes: number;
|
|
10342
|
+
diagnostics: Diagnostic[];
|
|
10343
|
+
errors: number;
|
|
10344
|
+
formatWithErrorsDisabled: boolean;
|
|
10345
|
+
infos: number;
|
|
10346
|
+
output?: string;
|
|
10347
|
+
parseErrors: number;
|
|
10348
|
+
skippedDiagnostics: number;
|
|
10349
|
+
skippedSuggestedFixes: number;
|
|
10350
|
+
warnings: number;
|
|
10351
|
+
}
|
|
10246
10352
|
interface PullActionsParams {
|
|
10247
10353
|
categories?: RuleCategories;
|
|
10248
10354
|
/**
|
|
@@ -10361,7 +10467,6 @@ interface FixFileParams {
|
|
|
10361
10467
|
skip?: AnalyzerSelector[];
|
|
10362
10468
|
suppressionReason?: string;
|
|
10363
10469
|
}
|
|
10364
|
-
type FixFileMode = "safeFixes" | "safeAndUnsafeFixes" | "applySuppressions";
|
|
10365
10470
|
interface FixFileResult {
|
|
10366
10471
|
/**
|
|
10367
10472
|
* List of all the code actions applied to the file
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|