@biomejs/wasm-nodejs 1.5.2 → 1.5.3-nightly.69f9031

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
@@ -21,12 +21,12 @@ type SupportKind =
21
21
  | "FeatureNotEnabled"
22
22
  | "FileNotSupported";
23
23
  interface UpdateSettingsParams {
24
- configuration: Configuration;
24
+ configuration: PartialConfiguration;
25
25
  gitignore_matches: string[];
26
26
  vcs_base_path?: string;
27
27
  working_directory?: string;
28
28
  }
29
- interface Configuration {
29
+ interface PartialConfiguration {
30
30
  /**
31
31
  * A field for the [JSON schema](https://json-schema.org/) specification
32
32
  */
@@ -34,7 +34,7 @@ interface Configuration {
34
34
  /**
35
35
  * Specific configuration for the Css language
36
36
  */
37
- css?: CssConfiguration;
37
+ css?: PartialCssConfiguration;
38
38
  /**
39
39
  * A list of paths to other JSON files, used to extends the current configuration.
40
40
  */
@@ -42,27 +42,27 @@ interface Configuration {
42
42
  /**
43
43
  * The configuration of the filesystem
44
44
  */
45
- files?: FilesConfiguration;
45
+ files?: PartialFilesConfiguration;
46
46
  /**
47
47
  * The configuration of the formatter
48
48
  */
49
- formatter?: FormatterConfiguration;
49
+ formatter?: PartialFormatterConfiguration;
50
50
  /**
51
51
  * Specific configuration for the JavaScript language
52
52
  */
53
- javascript?: JavascriptConfiguration;
53
+ javascript?: PartialJavascriptConfiguration;
54
54
  /**
55
55
  * Specific configuration for the Json language
56
56
  */
57
- json?: JsonConfiguration;
57
+ json?: PartialJsonConfiguration;
58
58
  /**
59
59
  * The configuration for the linter
60
60
  */
61
- linter?: LinterConfiguration;
61
+ linter?: PartialLinterConfiguration;
62
62
  /**
63
63
  * The configuration of the import sorting
64
64
  */
65
- organizeImports?: OrganizeImports;
65
+ organizeImports?: PartialOrganizeImports;
66
66
  /**
67
67
  * A list of granular patterns that should be applied only to a sub set of files
68
68
  */
@@ -70,20 +70,20 @@ interface Configuration {
70
70
  /**
71
71
  * The configuration of the VCS integration
72
72
  */
73
- vcs?: VcsConfiguration;
73
+ vcs?: PartialVcsConfiguration;
74
74
  }
75
- interface CssConfiguration {
75
+ interface PartialCssConfiguration {
76
76
  /**
77
77
  * Formatting options
78
78
  */
79
- formatter?: CssFormatter;
79
+ formatter?: PartialCssFormatter;
80
80
  /**
81
81
  * Parsing options
82
82
  */
83
- parser?: CssParser;
83
+ parser?: PartialCssParser;
84
84
  }
85
85
  type StringSet = string[];
86
- interface FilesConfiguration {
86
+ interface PartialFilesConfiguration {
87
87
  /**
88
88
  * A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
89
89
  */
@@ -101,7 +101,11 @@ interface FilesConfiguration {
101
101
  */
102
102
  maxSize?: number;
103
103
  }
104
- interface FormatterConfiguration {
104
+ interface PartialFormatterConfiguration {
105
+ /**
106
+ * The attribute position style. By default auto.
107
+ */
108
+ attributePosition?: AttributePosition;
105
109
  enabled?: boolean;
106
110
  /**
107
111
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -136,34 +140,34 @@ interface FormatterConfiguration {
136
140
  */
137
141
  lineWidth?: LineWidth;
138
142
  }
139
- interface JavascriptConfiguration {
143
+ interface PartialJavascriptConfiguration {
140
144
  /**
141
145
  * Formatting options
142
146
  */
143
- formatter?: JavascriptFormatter;
147
+ formatter?: PartialJavascriptFormatter;
144
148
  /**
145
149
  * A list of global bindings that should be ignored by the analyzers
146
150
 
147
151
  If defined here, they should not emit diagnostics.
148
152
  */
149
153
  globals?: StringSet;
150
- organize_imports?: JavascriptOrganizeImports;
154
+ organize_imports?: PartialJavascriptOrganizeImports;
151
155
  /**
152
156
  * Parsing options
153
157
  */
154
- parser?: JavascriptParser;
158
+ parser?: PartialJavascriptParser;
155
159
  }
156
- interface JsonConfiguration {
160
+ interface PartialJsonConfiguration {
157
161
  /**
158
162
  * Formatting options
159
163
  */
160
- formatter?: JsonFormatter;
164
+ formatter?: PartialJsonFormatter;
161
165
  /**
162
166
  * Parsing options
163
167
  */
164
- parser?: JsonParser;
168
+ parser?: PartialJsonParser;
165
169
  }
166
- interface LinterConfiguration {
170
+ interface PartialLinterConfiguration {
167
171
  /**
168
172
  * if `false`, it disables the feature and the linter won't be executed. `true` by default
169
173
  */
@@ -181,7 +185,7 @@ interface LinterConfiguration {
181
185
  */
182
186
  rules?: Rules;
183
187
  }
184
- interface OrganizeImports {
188
+ interface PartialOrganizeImports {
185
189
  /**
186
190
  * Enables the organization of imports
187
191
  */
@@ -196,7 +200,7 @@ interface OrganizeImports {
196
200
  include?: StringSet;
197
201
  }
198
202
  type Overrides = OverridePattern[];
199
- interface VcsConfiguration {
203
+ interface PartialVcsConfiguration {
200
204
  /**
201
205
  * The kind of client.
202
206
  */
@@ -220,7 +224,7 @@ If Biome can't find the configuration, it will attempt to use the current workin
220
224
  */
221
225
  useIgnoreFile?: boolean;
222
226
  }
223
- interface CssFormatter {
227
+ interface PartialCssFormatter {
224
228
  /**
225
229
  * Control the formatter for CSS (and its super languages) files.
226
230
  */
@@ -247,20 +251,25 @@ interface CssFormatter {
247
251
  lineWidth?: LineWidth;
248
252
  quoteStyle?: QuoteStyle;
249
253
  }
250
- interface CssParser {
254
+ interface PartialCssParser {
251
255
  /**
252
256
  * Allow comments to appear on incorrect lines in `.css` files
253
257
  */
254
258
  allowWrongLineComments?: boolean;
255
259
  }
260
+ type AttributePosition = "auto" | "multiline";
256
261
  type PlainIndentStyle = "tab" | "space";
257
262
  type LineEnding = "lf" | "crlf" | "cr";
258
263
  type LineWidth = number;
259
- interface JavascriptFormatter {
264
+ interface PartialJavascriptFormatter {
260
265
  /**
261
266
  * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
262
267
  */
263
268
  arrowParentheses?: ArrowParentheses;
269
+ /**
270
+ * The attribute position style in JavaScript code. Defaults to auto.
271
+ */
272
+ attributePosition?: AttributePosition;
264
273
  /**
265
274
  * Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. Defaults to false.
266
275
  */
@@ -314,8 +323,8 @@ interface JavascriptFormatter {
314
323
  */
315
324
  trailingComma?: TrailingComma;
316
325
  }
317
- interface JavascriptOrganizeImports {}
318
- interface JavascriptParser {
326
+ interface PartialJavascriptOrganizeImports {}
327
+ interface PartialJavascriptParser {
319
328
  /**
320
329
  * It enables the experimental and unsafe parsing of parameter decorators
321
330
 
@@ -323,7 +332,7 @@ These decorators belong to an old proposal, and they are subject to change.
323
332
  */
324
333
  unsafeParameterDecoratorsEnabled?: boolean;
325
334
  }
326
- interface JsonFormatter {
335
+ interface PartialJsonFormatter {
327
336
  /**
328
337
  * Control the formatter for JSON (and its super languages) files.
329
338
  */
@@ -349,7 +358,7 @@ interface JsonFormatter {
349
358
  */
350
359
  lineWidth?: LineWidth;
351
360
  }
352
- interface JsonParser {
361
+ interface PartialJsonParser {
353
362
  /**
354
363
  * Allow parsing comments in `.json` files
355
364
  */
@@ -381,7 +390,7 @@ interface OverridePattern {
381
390
  /**
382
391
  * Specific configuration for the Css language
383
392
  */
384
- css?: CssConfiguration;
393
+ css?: PartialCssConfiguration;
385
394
  /**
386
395
  * Specific configuration for the Json language
387
396
  */
@@ -397,11 +406,11 @@ interface OverridePattern {
397
406
  /**
398
407
  * Specific configuration for the JavaScript language
399
408
  */
400
- javascript?: JavascriptConfiguration;
409
+ javascript?: PartialJavascriptConfiguration;
401
410
  /**
402
411
  * Specific configuration for the Json language
403
412
  */
404
- json?: JsonConfiguration;
413
+ json?: PartialJsonConfiguration;
405
414
  /**
406
415
  * Specific configuration for the Json language
407
416
  */
@@ -804,6 +813,10 @@ interface Nursery {
804
813
  * It enables ALL rules for this group.
805
814
  */
806
815
  all?: boolean;
816
+ /**
817
+ * Disallow the use of console.
818
+ */
819
+ noConsole?: RuleConfiguration;
807
820
  /**
808
821
  * Disallow two keys with the same name inside a JSON object.
809
822
  */
@@ -816,6 +829,10 @@ interface Nursery {
816
829
  * Disallow empty type parameters in type aliases and interfaces.
817
830
  */
818
831
  noEmptyTypeParameters?: RuleConfiguration;
832
+ /**
833
+ * Disallow focused tests.
834
+ */
835
+ noFocusedTests?: RuleConfiguration;
819
836
  /**
820
837
  * Disallow assignments to native objects and read-only global variables.
821
838
  */
@@ -832,14 +849,34 @@ interface Nursery {
832
849
  * Disallow characters made with multiple code points in character class syntax.
833
850
  */
834
851
  noMisleadingCharacterClass?: RuleConfiguration;
852
+ /**
853
+ * Disallow the use of namespace imports.
854
+ */
855
+ noNamespaceImport?: RuleConfiguration;
835
856
  /**
836
857
  * Forbid the use of Node.js builtin modules.
837
858
  */
838
859
  noNodejsModules?: RuleConfiguration;
860
+ /**
861
+ * Avoid re-export all.
862
+ */
863
+ noReExportAll?: RuleConfiguration;
864
+ /**
865
+ * Disallow specified modules when loaded by import or require.
866
+ */
867
+ noRestrictedImports?: RuleConfiguration;
868
+ /**
869
+ * Disallow disabled tests.
870
+ */
871
+ noSkippedTests?: RuleConfiguration;
839
872
  /**
840
873
  * Disallow then property.
841
874
  */
842
875
  noThenProperty?: RuleConfiguration;
876
+ /**
877
+ * Disallow the use of dependencies that aren't specified in the package.json.
878
+ */
879
+ noUndeclaredDependencies?: RuleConfiguration;
843
880
  /**
844
881
  * Disallow unused imports.
845
882
  */
@@ -892,6 +929,10 @@ interface Nursery {
892
929
  * Promotes the use of import type for types.
893
930
  */
894
931
  useImportType?: RuleConfiguration;
932
+ /**
933
+ * Promotes the usage of node:assert/strict over node:assert.
934
+ */
935
+ useNodeAssertStrict?: RuleConfiguration;
895
936
  /**
896
937
  * Enforces using the node: protocol for Node.js builtin modules.
897
938
  */
@@ -904,6 +945,10 @@ interface Nursery {
904
945
  * Enforce using function types instead of object type with call signatures.
905
946
  */
906
947
  useShorthandFunctionType?: RuleConfiguration;
948
+ /**
949
+ * Enforce the sorting of CSS utility classes.
950
+ */
951
+ useSortedClasses?: RuleConfiguration;
907
952
  }
908
953
  interface Performance {
909
954
  /**
@@ -1089,7 +1134,7 @@ interface Suspicious {
1089
1134
  */
1090
1135
  all?: boolean;
1091
1136
  /**
1092
- * Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.
1137
+ * Use standard constants instead of approximated literals.
1093
1138
  */
1094
1139
  noApproximativeNumericConstant?: RuleConfiguration;
1095
1140
  /**
@@ -1274,6 +1319,10 @@ interface Suspicious {
1274
1319
  useValidTypeof?: RuleConfiguration;
1275
1320
  }
1276
1321
  interface OverrideFormatterConfiguration {
1322
+ /**
1323
+ * The attribute position style.
1324
+ */
1325
+ attributePosition?: AttributePosition;
1277
1326
  enabled?: boolean;
1278
1327
  /**
1279
1328
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -1330,7 +1379,9 @@ type PossibleOptions =
1330
1379
  | DeprecatedHooksOptions
1331
1380
  | NamingConventionOptions
1332
1381
  | RestrictedGlobalsOptions
1333
- | ValidAriaRoleOptions;
1382
+ | RestrictedImportsOptions
1383
+ | ValidAriaRoleOptions
1384
+ | UtilityClassSortingOptions;
1334
1385
  interface ComplexityOptions {
1335
1386
  /**
1336
1387
  * The maximum complexity score that we allow. Anything higher is considered excessive.
@@ -1345,6 +1396,10 @@ interface FilenamingConventionOptions {
1345
1396
  * Allowed cases for _TypeScript_ `enum` member names.
1346
1397
  */
1347
1398
  filenameCases: FilenameCases;
1399
+ /**
1400
+ * If `false`, then non-ASCII characters are allowed.
1401
+ */
1402
+ requireAscii: boolean;
1348
1403
  /**
1349
1404
  * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1350
1405
  */
@@ -1362,6 +1417,10 @@ interface NamingConventionOptions {
1362
1417
  * Allowed cases for _TypeScript_ `enum` member names.
1363
1418
  */
1364
1419
  enumMemberCase: EnumMemberCase;
1420
+ /**
1421
+ * If `false`, then non-ASCII characters are allowed.
1422
+ */
1423
+ requireAscii: boolean;
1365
1424
  /**
1366
1425
  * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1367
1426
  */
@@ -1371,12 +1430,28 @@ interface RestrictedGlobalsOptions {
1371
1430
  /**
1372
1431
  * A list of names that should trigger the rule
1373
1432
  */
1374
- deniedGlobals?: string[];
1433
+ deniedGlobals: string[];
1434
+ }
1435
+ interface RestrictedImportsOptions {
1436
+ /**
1437
+ * A list of names that should trigger the rule
1438
+ */
1439
+ paths: {};
1375
1440
  }
1376
1441
  interface ValidAriaRoleOptions {
1377
- allowedInvalidRoles: string[];
1442
+ allowInvalidRoles: string[];
1378
1443
  ignoreNonDom: boolean;
1379
1444
  }
1445
+ interface UtilityClassSortingOptions {
1446
+ /**
1447
+ * Additional attributes that will be sorted.
1448
+ */
1449
+ attributes?: string[];
1450
+ /**
1451
+ * Names of the functions or tagged templates that will be sorted.
1452
+ */
1453
+ functions?: string[];
1454
+ }
1380
1455
  type ConsistentArrayType = "shorthand" | "generic";
1381
1456
  type FilenameCases = FilenameCase[];
1382
1457
  interface Hooks {
@@ -1402,10 +1477,14 @@ type FilenameCase =
1402
1477
  | "kebab-case"
1403
1478
  | "PascalCase"
1404
1479
  | "snake_case";
1405
- interface ProjectFeaturesParams {
1406
- manifest_path: RomePath;
1480
+ interface UpdateProjectParams {
1481
+ path: RomePath;
1482
+ }
1483
+ interface OpenProjectParams {
1484
+ content: string;
1485
+ path: RomePath;
1486
+ version: number;
1407
1487
  }
1408
- interface ProjectFeaturesResult {}
1409
1488
  interface OpenFileParams {
1410
1489
  content: string;
1411
1490
  language_hint?: Language;
@@ -1413,6 +1492,9 @@ interface OpenFileParams {
1413
1492
  version: number;
1414
1493
  }
1415
1494
  type Language =
1495
+ | "Astro"
1496
+ | "Vue"
1497
+ | "Svelte"
1416
1498
  | "JavaScript"
1417
1499
  | "JavaScriptReact"
1418
1500
  | "TypeScript"
@@ -1569,16 +1651,23 @@ type Category =
1569
1651
  | "lint/correctness/useValidForDirection"
1570
1652
  | "lint/correctness/useYield"
1571
1653
  | "lint/nursery/noApproximativeNumericConstant"
1654
+ | "lint/nursery/noConsole"
1572
1655
  | "lint/nursery/noDuplicateJsonKeys"
1573
1656
  | "lint/nursery/noEmptyBlockStatements"
1574
1657
  | "lint/nursery/noEmptyTypeParameters"
1658
+ | "lint/nursery/noFocusedTests"
1575
1659
  | "lint/nursery/noGlobalAssign"
1576
1660
  | "lint/nursery/noGlobalEval"
1577
1661
  | "lint/nursery/noInvalidUseBeforeDeclaration"
1578
1662
  | "lint/nursery/noMisleadingCharacterClass"
1663
+ | "lint/nursery/noNamespaceImport"
1579
1664
  | "lint/nursery/noNodejsModules"
1665
+ | "lint/nursery/noReExportAll"
1666
+ | "lint/nursery/noRestrictedImports"
1667
+ | "lint/nursery/noSkippedTests"
1580
1668
  | "lint/nursery/noThenProperty"
1581
1669
  | "lint/nursery/noTypeOnlyImportAttributes"
1670
+ | "lint/nursery/noUndeclaredDependencies"
1582
1671
  | "lint/nursery/noUnusedImports"
1583
1672
  | "lint/nursery/noUnusedPrivateClassMembers"
1584
1673
  | "lint/nursery/noUselessLoneBlockStatements"
@@ -1592,9 +1681,11 @@ type Category =
1592
1681
  | "lint/nursery/useGroupedTypeImport"
1593
1682
  | "lint/nursery/useImportRestrictions"
1594
1683
  | "lint/nursery/useImportType"
1684
+ | "lint/nursery/useNodeAssertStrict"
1595
1685
  | "lint/nursery/useNodejsImportProtocol"
1596
1686
  | "lint/nursery/useNumberNamespace"
1597
1687
  | "lint/nursery/useShorthandFunctionType"
1688
+ | "lint/nursery/useSortedClasses"
1598
1689
  | "lint/performance/noAccumulatingSpread"
1599
1690
  | "lint/performance/noDelete"
1600
1691
  | "lint/security/noDangerouslySetInnerHtml"
package/biome_wasm.js CHANGED
@@ -733,29 +733,21 @@ module.exports.__wbindgen_is_string = function(arg0) {
733
733
  return ret;
734
734
  };
735
735
 
736
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
737
- const ret = getObject(arg0);
738
- return addHeapObject(ret);
739
- };
740
-
741
736
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
742
737
  const ret = getObject(arg0) == getObject(arg1);
743
738
  return ret;
744
739
  };
745
740
 
746
- module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
747
- const ret = String(getObject(arg1));
748
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
749
- const len0 = WASM_VECTOR_LEN;
750
- getInt32Memory0()[arg0 / 4 + 1] = len0;
751
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
752
- };
753
-
754
741
  module.exports.__wbindgen_number_new = function(arg0) {
755
742
  const ret = arg0;
756
743
  return addHeapObject(ret);
757
744
  };
758
745
 
746
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
747
+ const ret = getObject(arg0);
748
+ return addHeapObject(ret);
749
+ };
750
+
759
751
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
760
752
  const ret = getStringFromWasm0(arg0, arg1);
761
753
  return addHeapObject(ret);
@@ -770,6 +762,14 @@ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
770
762
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
771
763
  };
772
764
 
765
+ module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
766
+ const ret = String(getObject(arg1));
767
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
768
+ const len0 = WASM_VECTOR_LEN;
769
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
770
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
771
+ };
772
+
773
773
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
774
774
  const ret = new Error();
775
775
  return addHeapObject(ret);
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.2","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"],"main":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","keywords":["parser","linter","formatter"]}
1
+ {"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.3-nightly.69f9031","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"],"main":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","keywords":["parser","linter","formatter"]}