@biomejs/wasm-web 1.4.1 → 1.5.0
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 +180 -20
- package/biome_wasm.js +21 -21
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -17,16 +17,23 @@ interface SupportsFeatureResult {
|
|
|
17
17
|
type SupportKind =
|
|
18
18
|
| "Supported"
|
|
19
19
|
| "Ignored"
|
|
20
|
+
| "Protected"
|
|
20
21
|
| "FeatureNotEnabled"
|
|
21
22
|
| "FileNotSupported";
|
|
22
23
|
interface UpdateSettingsParams {
|
|
23
24
|
configuration: Configuration;
|
|
25
|
+
gitignore_matches: string[];
|
|
26
|
+
vcs_base_path?: string;
|
|
24
27
|
}
|
|
25
28
|
interface Configuration {
|
|
26
29
|
/**
|
|
27
30
|
* A field for the [JSON schema](https://json-schema.org/) specification
|
|
28
31
|
*/
|
|
29
32
|
$schema?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specific configuration for the Css language
|
|
35
|
+
*/
|
|
36
|
+
css?: CssConfiguration;
|
|
30
37
|
/**
|
|
31
38
|
* A list of paths to other JSON files, used to extends the current configuration.
|
|
32
39
|
*/
|
|
@@ -64,6 +71,16 @@ interface Configuration {
|
|
|
64
71
|
*/
|
|
65
72
|
vcs?: VcsConfiguration;
|
|
66
73
|
}
|
|
74
|
+
interface CssConfiguration {
|
|
75
|
+
/**
|
|
76
|
+
* Formatting options
|
|
77
|
+
*/
|
|
78
|
+
formatter?: CssFormatter;
|
|
79
|
+
/**
|
|
80
|
+
* Parsing options
|
|
81
|
+
*/
|
|
82
|
+
parser?: CssParser;
|
|
83
|
+
}
|
|
67
84
|
type StringSet = string[];
|
|
68
85
|
interface FilesConfiguration {
|
|
69
86
|
/**
|
|
@@ -183,6 +200,10 @@ interface VcsConfiguration {
|
|
|
183
200
|
* The kind of client.
|
|
184
201
|
*/
|
|
185
202
|
clientKind?: VcsClientKind;
|
|
203
|
+
/**
|
|
204
|
+
* The main branch of the project
|
|
205
|
+
*/
|
|
206
|
+
defaultBranch?: string;
|
|
186
207
|
/**
|
|
187
208
|
* Whether Biome should integrate itself with the VCS client
|
|
188
209
|
*/
|
|
@@ -198,6 +219,39 @@ If Biome can't find the configuration, it will attempt to use the current workin
|
|
|
198
219
|
*/
|
|
199
220
|
useIgnoreFile?: boolean;
|
|
200
221
|
}
|
|
222
|
+
interface CssFormatter {
|
|
223
|
+
/**
|
|
224
|
+
* Control the formatter for CSS (and its super languages) files.
|
|
225
|
+
*/
|
|
226
|
+
enabled?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* The size of the indentation applied to CSS (and its super languages) files. Default to 2.
|
|
229
|
+
*/
|
|
230
|
+
indentSize?: number;
|
|
231
|
+
/**
|
|
232
|
+
* The indent style applied to CSS (and its super languages) files.
|
|
233
|
+
*/
|
|
234
|
+
indentStyle?: PlainIndentStyle;
|
|
235
|
+
/**
|
|
236
|
+
* The size of the indentation applied to CSS (and its super languages) files. Default to 2.
|
|
237
|
+
*/
|
|
238
|
+
indentWidth?: number;
|
|
239
|
+
/**
|
|
240
|
+
* The type of line ending applied to CSS (and its super languages) files.
|
|
241
|
+
*/
|
|
242
|
+
lineEnding?: LineEnding;
|
|
243
|
+
/**
|
|
244
|
+
* What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
|
|
245
|
+
*/
|
|
246
|
+
lineWidth?: LineWidth;
|
|
247
|
+
quoteStyle?: QuoteStyle;
|
|
248
|
+
}
|
|
249
|
+
interface CssParser {
|
|
250
|
+
/**
|
|
251
|
+
* Allow comments to appear on incorrect lines in `.css` files
|
|
252
|
+
*/
|
|
253
|
+
allowWrongLineComments?: boolean;
|
|
254
|
+
}
|
|
201
255
|
type PlainIndentStyle = "tab" | "space";
|
|
202
256
|
type LineEnding = "lf" | "crlf" | "cr";
|
|
203
257
|
type LineWidth = number;
|
|
@@ -323,6 +377,10 @@ interface Rules {
|
|
|
323
377
|
suspicious?: Suspicious;
|
|
324
378
|
}
|
|
325
379
|
interface OverridePattern {
|
|
380
|
+
/**
|
|
381
|
+
* Specific configuration for the Css language
|
|
382
|
+
*/
|
|
383
|
+
css?: CssConfiguration;
|
|
326
384
|
/**
|
|
327
385
|
* Specific configuration for the Json language
|
|
328
386
|
*/
|
|
@@ -353,8 +411,8 @@ interface OverridePattern {
|
|
|
353
411
|
organizeImports?: OverrideOrganizeImportsConfiguration;
|
|
354
412
|
}
|
|
355
413
|
type VcsClientKind = "git";
|
|
356
|
-
type ArrowParentheses = "always" | "asNeeded";
|
|
357
414
|
type QuoteStyle = "double" | "single";
|
|
415
|
+
type ArrowParentheses = "always" | "asNeeded";
|
|
358
416
|
type QuoteProperties = "asNeeded" | "preserve";
|
|
359
417
|
type Semicolons = "always" | "asNeeded";
|
|
360
418
|
type TrailingComma = "all" | "es5" | "none";
|
|
@@ -367,6 +425,10 @@ interface A11y {
|
|
|
367
425
|
* Enforce that the accessKey attribute is not used on any HTML element.
|
|
368
426
|
*/
|
|
369
427
|
noAccessKey?: RuleConfiguration;
|
|
428
|
+
/**
|
|
429
|
+
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
430
|
+
*/
|
|
431
|
+
noAriaHiddenOnFocusable?: RuleConfiguration;
|
|
370
432
|
/**
|
|
371
433
|
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
372
434
|
*/
|
|
@@ -471,6 +533,10 @@ interface A11y {
|
|
|
471
533
|
* Ensures that ARIA properties aria-* are all valid.
|
|
472
534
|
*/
|
|
473
535
|
useValidAriaProps?: RuleConfiguration;
|
|
536
|
+
/**
|
|
537
|
+
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
538
|
+
*/
|
|
539
|
+
useValidAriaRole?: RuleConfiguration;
|
|
474
540
|
/**
|
|
475
541
|
* Enforce that ARIA state and property values are valid.
|
|
476
542
|
*/
|
|
@@ -577,6 +643,10 @@ interface Complexity {
|
|
|
577
643
|
* Enforce using concise optional chain instead of chained logical expressions.
|
|
578
644
|
*/
|
|
579
645
|
useOptionalChain?: RuleConfiguration;
|
|
646
|
+
/**
|
|
647
|
+
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
|
|
648
|
+
*/
|
|
649
|
+
useRegexLiterals?: RuleConfiguration;
|
|
580
650
|
/**
|
|
581
651
|
* Disallow number literal object member names which are not base10 or uses underscore as separator
|
|
582
652
|
*/
|
|
@@ -733,14 +803,6 @@ interface Nursery {
|
|
|
733
803
|
* It enables ALL rules for this group.
|
|
734
804
|
*/
|
|
735
805
|
all?: boolean;
|
|
736
|
-
/**
|
|
737
|
-
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
738
|
-
*/
|
|
739
|
-
noAriaHiddenOnFocusable?: RuleConfiguration;
|
|
740
|
-
/**
|
|
741
|
-
* Disallow default exports.
|
|
742
|
-
*/
|
|
743
|
-
noDefaultExport?: RuleConfiguration;
|
|
744
806
|
/**
|
|
745
807
|
* Disallow two keys with the same name inside a JSON object.
|
|
746
808
|
*/
|
|
@@ -750,9 +812,33 @@ interface Nursery {
|
|
|
750
812
|
*/
|
|
751
813
|
noEmptyBlockStatements?: RuleConfiguration;
|
|
752
814
|
/**
|
|
753
|
-
* Disallow
|
|
815
|
+
* Disallow empty type parameters in type aliases and interfaces.
|
|
754
816
|
*/
|
|
755
|
-
|
|
817
|
+
noEmptyTypeParameters?: RuleConfiguration;
|
|
818
|
+
/**
|
|
819
|
+
* Disallow assignments to native objects and read-only global variables.
|
|
820
|
+
*/
|
|
821
|
+
noGlobalAssign?: RuleConfiguration;
|
|
822
|
+
/**
|
|
823
|
+
* Disallow the use of global eval().
|
|
824
|
+
*/
|
|
825
|
+
noGlobalEval?: RuleConfiguration;
|
|
826
|
+
/**
|
|
827
|
+
* Disallow the use of variables and function parameters before their declaration
|
|
828
|
+
*/
|
|
829
|
+
noInvalidUseBeforeDeclaration?: RuleConfiguration;
|
|
830
|
+
/**
|
|
831
|
+
* Disallow characters made with multiple code points in character class syntax.
|
|
832
|
+
*/
|
|
833
|
+
noMisleadingCharacterClass?: RuleConfiguration;
|
|
834
|
+
/**
|
|
835
|
+
* Forbid the use of Node.js builtin modules.
|
|
836
|
+
*/
|
|
837
|
+
noNodejsModules?: RuleConfiguration;
|
|
838
|
+
/**
|
|
839
|
+
* Disallow then property.
|
|
840
|
+
*/
|
|
841
|
+
noThenProperty?: RuleConfiguration;
|
|
756
842
|
/**
|
|
757
843
|
* Disallow unused imports.
|
|
758
844
|
*/
|
|
@@ -765,6 +851,10 @@ interface Nursery {
|
|
|
765
851
|
* Disallow unnecessary nested block statements.
|
|
766
852
|
*/
|
|
767
853
|
noUselessLoneBlockStatements?: RuleConfiguration;
|
|
854
|
+
/**
|
|
855
|
+
* Disallow ternary operators when simpler alternatives exist.
|
|
856
|
+
*/
|
|
857
|
+
noUselessTernary?: RuleConfiguration;
|
|
768
858
|
/**
|
|
769
859
|
* It enables the recommended rules for this group
|
|
770
860
|
*/
|
|
@@ -773,6 +863,18 @@ interface Nursery {
|
|
|
773
863
|
* Ensure async functions utilize await.
|
|
774
864
|
*/
|
|
775
865
|
useAwait?: RuleConfiguration;
|
|
866
|
+
/**
|
|
867
|
+
* Promotes the use of export type for types.
|
|
868
|
+
*/
|
|
869
|
+
useExportType?: RuleConfiguration;
|
|
870
|
+
/**
|
|
871
|
+
* Enforce naming conventions for JavaScript and TypeScript filenames.
|
|
872
|
+
*/
|
|
873
|
+
useFilenamingConvention?: RuleConfiguration;
|
|
874
|
+
/**
|
|
875
|
+
* This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
|
|
876
|
+
*/
|
|
877
|
+
useForOf?: RuleConfiguration;
|
|
776
878
|
/**
|
|
777
879
|
* Enforce the use of import type when an import only has specifiers with type qualifier.
|
|
778
880
|
*/
|
|
@@ -782,13 +884,21 @@ interface Nursery {
|
|
|
782
884
|
*/
|
|
783
885
|
useImportRestrictions?: RuleConfiguration;
|
|
784
886
|
/**
|
|
785
|
-
*
|
|
887
|
+
* Promotes the use of import type for types.
|
|
786
888
|
*/
|
|
787
|
-
|
|
889
|
+
useImportType?: RuleConfiguration;
|
|
788
890
|
/**
|
|
789
|
-
*
|
|
891
|
+
* Enforces using the node: protocol for Node.js builtin modules.
|
|
790
892
|
*/
|
|
791
|
-
|
|
893
|
+
useNodejsImportProtocol?: RuleConfiguration;
|
|
894
|
+
/**
|
|
895
|
+
* Use the Number properties instead of global ones.
|
|
896
|
+
*/
|
|
897
|
+
useNumberNamespace?: RuleConfiguration;
|
|
898
|
+
/**
|
|
899
|
+
* Enforce using function types instead of object type with call signatures.
|
|
900
|
+
*/
|
|
901
|
+
useShorthandFunctionType?: RuleConfiguration;
|
|
792
902
|
}
|
|
793
903
|
interface Performance {
|
|
794
904
|
/**
|
|
@@ -839,6 +949,10 @@ interface Style {
|
|
|
839
949
|
* Disallow comma operator.
|
|
840
950
|
*/
|
|
841
951
|
noCommaOperator?: RuleConfiguration;
|
|
952
|
+
/**
|
|
953
|
+
* Disallow default exports.
|
|
954
|
+
*/
|
|
955
|
+
noDefaultExport?: RuleConfiguration;
|
|
842
956
|
/**
|
|
843
957
|
* Disallow implicit true values on JSX boolean attributes
|
|
844
958
|
*/
|
|
@@ -903,6 +1017,10 @@ interface Style {
|
|
|
903
1017
|
* Enforce using else if instead of nested if in else clauses.
|
|
904
1018
|
*/
|
|
905
1019
|
useCollapsedElseIf?: RuleConfiguration;
|
|
1020
|
+
/**
|
|
1021
|
+
* Require consistently using either T[] or Array<T>
|
|
1022
|
+
*/
|
|
1023
|
+
useConsistentArrayType?: RuleConfiguration;
|
|
906
1024
|
/**
|
|
907
1025
|
* Require const declarations for variables that are never reassigned after declared.
|
|
908
1026
|
*/
|
|
@@ -1077,6 +1195,10 @@ interface Suspicious {
|
|
|
1077
1195
|
* Use Number.isNaN instead of global isNaN.
|
|
1078
1196
|
*/
|
|
1079
1197
|
noGlobalIsNan?: RuleConfiguration;
|
|
1198
|
+
/**
|
|
1199
|
+
* Disallow use of implicit any type on variable declarations.
|
|
1200
|
+
*/
|
|
1201
|
+
noImplicitAnyLet?: RuleConfiguration;
|
|
1080
1202
|
/**
|
|
1081
1203
|
* Disallow assigning to imported bindings
|
|
1082
1204
|
*/
|
|
@@ -1201,7 +1323,9 @@ interface RuleWithOptions {
|
|
|
1201
1323
|
}
|
|
1202
1324
|
type PossibleOptions =
|
|
1203
1325
|
| ComplexityOptions
|
|
1326
|
+
| FilenamingConventionOptions
|
|
1204
1327
|
| HooksOptions
|
|
1328
|
+
| DeprecatedHooksOptions
|
|
1205
1329
|
| NamingConventionOptions
|
|
1206
1330
|
| RestrictedGlobalsOptions
|
|
1207
1331
|
| ValidAriaRoleOptions;
|
|
@@ -1211,12 +1335,23 @@ interface ComplexityOptions {
|
|
|
1211
1335
|
*/
|
|
1212
1336
|
maxAllowedComplexity: number;
|
|
1213
1337
|
}
|
|
1338
|
+
interface FilenamingConventionOptions {
|
|
1339
|
+
/**
|
|
1340
|
+
* Allowed cases for _TypeScript_ `enum` member names.
|
|
1341
|
+
*/
|
|
1342
|
+
filenameCases: FilenameCases;
|
|
1343
|
+
/**
|
|
1344
|
+
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
|
|
1345
|
+
*/
|
|
1346
|
+
strictCase: boolean;
|
|
1347
|
+
}
|
|
1214
1348
|
interface HooksOptions {
|
|
1215
1349
|
/**
|
|
1216
1350
|
* List of safe hooks
|
|
1217
1351
|
*/
|
|
1218
1352
|
hooks: Hooks[];
|
|
1219
1353
|
}
|
|
1354
|
+
interface DeprecatedHooksOptions {}
|
|
1220
1355
|
interface NamingConventionOptions {
|
|
1221
1356
|
/**
|
|
1222
1357
|
* Allowed cases for _TypeScript_ `enum` member names.
|
|
@@ -1237,6 +1372,7 @@ interface ValidAriaRoleOptions {
|
|
|
1237
1372
|
allowedInvalidRoles: string[];
|
|
1238
1373
|
ignoreNonDom: boolean;
|
|
1239
1374
|
}
|
|
1375
|
+
type FilenameCases = FilenameCase[];
|
|
1240
1376
|
interface Hooks {
|
|
1241
1377
|
/**
|
|
1242
1378
|
* The "position" of the closure function, starting from zero.
|
|
@@ -1254,6 +1390,12 @@ interface Hooks {
|
|
|
1254
1390
|
name: string;
|
|
1255
1391
|
}
|
|
1256
1392
|
type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
|
|
1393
|
+
type FilenameCase =
|
|
1394
|
+
| "camelCase"
|
|
1395
|
+
| "export"
|
|
1396
|
+
| "kebab-case"
|
|
1397
|
+
| "PascalCase"
|
|
1398
|
+
| "snake_case";
|
|
1257
1399
|
interface ProjectFeaturesParams {
|
|
1258
1400
|
manifest_path: RomePath;
|
|
1259
1401
|
}
|
|
@@ -1271,6 +1413,7 @@ type Language =
|
|
|
1271
1413
|
| "TypeScriptReact"
|
|
1272
1414
|
| "Json"
|
|
1273
1415
|
| "Jsonc"
|
|
1416
|
+
| "Css"
|
|
1274
1417
|
| "Unknown";
|
|
1275
1418
|
interface ChangeFileParams {
|
|
1276
1419
|
content: string;
|
|
@@ -1332,6 +1475,7 @@ interface Advices {
|
|
|
1332
1475
|
}
|
|
1333
1476
|
type Category =
|
|
1334
1477
|
| "lint/a11y/noAccessKey"
|
|
1478
|
+
| "lint/a11y/noAriaHiddenOnFocusable"
|
|
1335
1479
|
| "lint/a11y/noAriaUnsupportedElements"
|
|
1336
1480
|
| "lint/a11y/noAutofocus"
|
|
1337
1481
|
| "lint/a11y/noBlankTarget"
|
|
@@ -1357,6 +1501,7 @@ type Category =
|
|
|
1357
1501
|
| "lint/a11y/useMediaCaption"
|
|
1358
1502
|
| "lint/a11y/useValidAnchor"
|
|
1359
1503
|
| "lint/a11y/useValidAriaProps"
|
|
1504
|
+
| "lint/a11y/useValidAriaRole"
|
|
1360
1505
|
| "lint/a11y/useValidAriaValues"
|
|
1361
1506
|
| "lint/a11y/useValidLang"
|
|
1362
1507
|
| "lint/complexity/noBannedTypes"
|
|
@@ -1381,6 +1526,7 @@ type Category =
|
|
|
1381
1526
|
| "lint/complexity/useFlatMap"
|
|
1382
1527
|
| "lint/complexity/useLiteralKeys"
|
|
1383
1528
|
| "lint/complexity/useOptionalChain"
|
|
1529
|
+
| "lint/complexity/useRegexLiterals"
|
|
1384
1530
|
| "lint/complexity/useSimpleNumberKeys"
|
|
1385
1531
|
| "lint/complexity/useSimplifiedLogicExpression"
|
|
1386
1532
|
| "lint/correctness/noChildrenProp"
|
|
@@ -1417,26 +1563,38 @@ type Category =
|
|
|
1417
1563
|
| "lint/correctness/useValidForDirection"
|
|
1418
1564
|
| "lint/correctness/useYield"
|
|
1419
1565
|
| "lint/nursery/noApproximativeNumericConstant"
|
|
1420
|
-
| "lint/nursery/noAriaHiddenOnFocusable"
|
|
1421
|
-
| "lint/nursery/noDefaultExport"
|
|
1422
1566
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1423
1567
|
| "lint/nursery/noEmptyBlockStatements"
|
|
1424
|
-
| "lint/nursery/
|
|
1568
|
+
| "lint/nursery/noEmptyTypeParameters"
|
|
1569
|
+
| "lint/nursery/noGlobalAssign"
|
|
1570
|
+
| "lint/nursery/noGlobalEval"
|
|
1571
|
+
| "lint/nursery/noInvalidUseBeforeDeclaration"
|
|
1572
|
+
| "lint/nursery/noMisleadingCharacterClass"
|
|
1573
|
+
| "lint/nursery/noNodejsModules"
|
|
1574
|
+
| "lint/nursery/noThenProperty"
|
|
1575
|
+
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
1425
1576
|
| "lint/nursery/noUnusedImports"
|
|
1426
1577
|
| "lint/nursery/noUnusedPrivateClassMembers"
|
|
1427
1578
|
| "lint/nursery/noUselessLoneBlockStatements"
|
|
1579
|
+
| "lint/nursery/noUselessTernary"
|
|
1428
1580
|
| "lint/nursery/useAwait"
|
|
1429
1581
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1582
|
+
| "lint/nursery/useExportType"
|
|
1583
|
+
| "lint/nursery/useFilenamingConvention"
|
|
1584
|
+
| "lint/nursery/useForOf"
|
|
1430
1585
|
| "lint/nursery/useGroupedTypeImport"
|
|
1431
1586
|
| "lint/nursery/useImportRestrictions"
|
|
1432
|
-
| "lint/nursery/
|
|
1433
|
-
| "lint/nursery/
|
|
1587
|
+
| "lint/nursery/useImportType"
|
|
1588
|
+
| "lint/nursery/useNodejsImportProtocol"
|
|
1589
|
+
| "lint/nursery/useNumberNamespace"
|
|
1590
|
+
| "lint/nursery/useShorthandFunctionType"
|
|
1434
1591
|
| "lint/performance/noAccumulatingSpread"
|
|
1435
1592
|
| "lint/performance/noDelete"
|
|
1436
1593
|
| "lint/security/noDangerouslySetInnerHtml"
|
|
1437
1594
|
| "lint/security/noDangerouslySetInnerHtmlWithChildren"
|
|
1438
1595
|
| "lint/style/noArguments"
|
|
1439
1596
|
| "lint/style/noCommaOperator"
|
|
1597
|
+
| "lint/style/noDefaultExport"
|
|
1440
1598
|
| "lint/style/noImplicitBoolean"
|
|
1441
1599
|
| "lint/style/noInferrableTypes"
|
|
1442
1600
|
| "lint/style/noNamespace"
|
|
@@ -1452,6 +1610,7 @@ type Category =
|
|
|
1452
1610
|
| "lint/style/useAsConstAssertion"
|
|
1453
1611
|
| "lint/style/useBlockStatements"
|
|
1454
1612
|
| "lint/style/useCollapsedElseIf"
|
|
1613
|
+
| "lint/style/useConsistentArrayType"
|
|
1455
1614
|
| "lint/style/useConst"
|
|
1456
1615
|
| "lint/style/useDefaultParameterLast"
|
|
1457
1616
|
| "lint/style/useEnumInitializers"
|
|
@@ -1494,6 +1653,7 @@ type Category =
|
|
|
1494
1653
|
| "lint/suspicious/noFunctionAssign"
|
|
1495
1654
|
| "lint/suspicious/noGlobalIsFinite"
|
|
1496
1655
|
| "lint/suspicious/noGlobalIsNan"
|
|
1656
|
+
| "lint/suspicious/noImplicitAnyLet"
|
|
1497
1657
|
| "lint/suspicious/noImportAssign"
|
|
1498
1658
|
| "lint/suspicious/noLabelVar"
|
|
1499
1659
|
| "lint/suspicious/noMisleadingInstantiator"
|
package/biome_wasm.js
CHANGED
|
@@ -29,6 +29,23 @@ function addHeapObject(obj) {
|
|
|
29
29
|
return idx;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
33
|
+
|
|
34
|
+
cachedTextDecoder.decode();
|
|
35
|
+
|
|
36
|
+
let cachedUint8Memory0 = null;
|
|
37
|
+
|
|
38
|
+
function getUint8Memory0() {
|
|
39
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
40
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
41
|
+
}
|
|
42
|
+
return cachedUint8Memory0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function getStringFromWasm0(ptr, len) {
|
|
46
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
47
|
+
}
|
|
48
|
+
|
|
32
49
|
function isLikeNone(x) {
|
|
33
50
|
return x === undefined || x === null;
|
|
34
51
|
}
|
|
@@ -53,15 +70,6 @@ function getInt32Memory0() {
|
|
|
53
70
|
|
|
54
71
|
let WASM_VECTOR_LEN = 0;
|
|
55
72
|
|
|
56
|
-
let cachedUint8Memory0 = null;
|
|
57
|
-
|
|
58
|
-
function getUint8Memory0() {
|
|
59
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
60
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
61
|
-
}
|
|
62
|
-
return cachedUint8Memory0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
73
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
66
74
|
|
|
67
75
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -115,14 +123,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
115
123
|
return ptr;
|
|
116
124
|
}
|
|
117
125
|
|
|
118
|
-
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
119
|
-
|
|
120
|
-
cachedTextDecoder.decode();
|
|
121
|
-
|
|
122
|
-
function getStringFromWasm0(ptr, len) {
|
|
123
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
126
|
let cachedBigInt64Memory0 = null;
|
|
127
127
|
|
|
128
128
|
function getBigInt64Memory0() {
|
|
@@ -722,6 +722,10 @@ function getImports() {
|
|
|
722
722
|
const ret = BigInt.asUintN(64, arg0);
|
|
723
723
|
return addHeapObject(ret);
|
|
724
724
|
};
|
|
725
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
726
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
727
|
+
return addHeapObject(ret);
|
|
728
|
+
};
|
|
725
729
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
726
730
|
const obj = getObject(arg1);
|
|
727
731
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -745,10 +749,6 @@ function getImports() {
|
|
|
745
749
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
746
750
|
return ret;
|
|
747
751
|
};
|
|
748
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
749
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
750
|
-
return addHeapObject(ret);
|
|
751
|
-
};
|
|
752
752
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
753
753
|
const ret = getObject(arg0);
|
|
754
754
|
return addHeapObject(ret);
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.
|
|
1
|
+
{"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.0","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}
|