@biomejs/wasm-nodejs 1.4.1-nightly.bc772a3 → 1.4.1-nightly.d869a33

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
@@ -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";
@@ -753,10 +811,22 @@ interface Nursery {
753
811
  * Disallow use of implicit any type on variable declarations.
754
812
  */
755
813
  noImplicitAnyLet?: RuleConfiguration;
814
+ /**
815
+ * Disallow the use of variables and function parameters before their declaration
816
+ */
817
+ noInvalidUseBeforeDeclaration?: RuleConfiguration;
756
818
  /**
757
819
  * Disallow characters made with multiple code points in character class syntax.
758
820
  */
759
821
  noMisleadingCharacterClass?: RuleConfiguration;
822
+ /**
823
+ * Forbid the use of Node.js builtin modules.
824
+ */
825
+ noNodejsModules?: RuleConfiguration;
826
+ /**
827
+ * Disallow then property.
828
+ */
829
+ noThenProperty?: RuleConfiguration;
760
830
  /**
761
831
  * Disallow unused imports.
762
832
  */
@@ -769,6 +839,10 @@ interface Nursery {
769
839
  * Disallow unnecessary nested block statements.
770
840
  */
771
841
  noUselessLoneBlockStatements?: RuleConfiguration;
842
+ /**
843
+ * Disallow ternary operators when simpler alternatives exist.
844
+ */
845
+ noUselessTernary?: RuleConfiguration;
772
846
  /**
773
847
  * It enables the recommended rules for this group
774
848
  */
@@ -777,6 +851,14 @@ interface Nursery {
777
851
  * Ensure async functions utilize await.
778
852
  */
779
853
  useAwait?: RuleConfiguration;
854
+ /**
855
+ * Promotes the use of export type for types.
856
+ */
857
+ useExportType?: RuleConfiguration;
858
+ /**
859
+ * Enforce naming conventions for JavaScript and TypeScript filenames.
860
+ */
861
+ useFilenamingConvention?: RuleConfiguration;
780
862
  /**
781
863
  * This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
782
864
  */
@@ -789,6 +871,14 @@ interface Nursery {
789
871
  * Disallows package private imports.
790
872
  */
791
873
  useImportRestrictions?: RuleConfiguration;
874
+ /**
875
+ * Enforces using the node: protocol for Node.js builtin modules.
876
+ */
877
+ useNodejsImportProtocol?: RuleConfiguration;
878
+ /**
879
+ * Use the Number properties instead of global ones.
880
+ */
881
+ useNumberNamespace?: RuleConfiguration;
792
882
  /**
793
883
  * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
794
884
  */
@@ -915,6 +1005,10 @@ interface Style {
915
1005
  * Enforce using else if instead of nested if in else clauses.
916
1006
  */
917
1007
  useCollapsedElseIf?: RuleConfiguration;
1008
+ /**
1009
+ * Require consistently using either T[] or Array<T>
1010
+ */
1011
+ useConsistentArrayType?: RuleConfiguration;
918
1012
  /**
919
1013
  * Require const declarations for variables that are never reassigned after declared.
920
1014
  */
@@ -1213,6 +1307,7 @@ interface RuleWithOptions {
1213
1307
  }
1214
1308
  type PossibleOptions =
1215
1309
  | ComplexityOptions
1310
+ | FilenamingConventionOptions
1216
1311
  | HooksOptions
1217
1312
  | NamingConventionOptions
1218
1313
  | RestrictedGlobalsOptions
@@ -1223,6 +1318,16 @@ interface ComplexityOptions {
1223
1318
  */
1224
1319
  maxAllowedComplexity: number;
1225
1320
  }
1321
+ interface FilenamingConventionOptions {
1322
+ /**
1323
+ * Allowed cases for _TypeScript_ `enum` member names.
1324
+ */
1325
+ filenameCases: FilenameCases;
1326
+ /**
1327
+ * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1328
+ */
1329
+ strictCase: boolean;
1330
+ }
1226
1331
  interface HooksOptions {
1227
1332
  /**
1228
1333
  * List of safe hooks
@@ -1249,6 +1354,7 @@ interface ValidAriaRoleOptions {
1249
1354
  allowedInvalidRoles: string[];
1250
1355
  ignoreNonDom: boolean;
1251
1356
  }
1357
+ type FilenameCases = FilenameCase[];
1252
1358
  interface Hooks {
1253
1359
  /**
1254
1360
  * The "position" of the closure function, starting from zero.
@@ -1266,6 +1372,7 @@ interface Hooks {
1266
1372
  name: string;
1267
1373
  }
1268
1374
  type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1375
+ type FilenameCase = "camelCase" | "export" | "kebab-case" | "snake_case";
1269
1376
  interface ProjectFeaturesParams {
1270
1377
  manifest_path: RomePath;
1271
1378
  }
@@ -1283,6 +1390,7 @@ type Language =
1283
1390
  | "TypeScriptReact"
1284
1391
  | "Json"
1285
1392
  | "Jsonc"
1393
+ | "Css"
1286
1394
  | "Unknown";
1287
1395
  interface ChangeFileParams {
1288
1396
  content: string;
@@ -1434,18 +1542,27 @@ type Category =
1434
1542
  | "lint/nursery/noDuplicateJsonKeys"
1435
1543
  | "lint/nursery/noEmptyBlockStatements"
1436
1544
  | "lint/nursery/noImplicitAnyLet"
1545
+ | "lint/nursery/noInvalidUseBeforeDeclaration"
1437
1546
  | "lint/nursery/noMisleadingCharacterClass"
1547
+ | "lint/nursery/noNodejsModules"
1548
+ | "lint/nursery/noThenProperty"
1549
+ | "lint/nursery/noTypeOnlyImportAttributes"
1438
1550
  | "lint/nursery/noUnusedImports"
1439
1551
  | "lint/nursery/noUnusedPrivateClassMembers"
1440
1552
  | "lint/nursery/noUselessLoneBlockStatements"
1553
+ | "lint/nursery/noUselessTernary"
1441
1554
  | "lint/nursery/useAwait"
1442
1555
  | "lint/nursery/useBiomeSuppressionComment"
1556
+ | "lint/nursery/useExportType"
1557
+ | "lint/nursery/useFilenamingConvention"
1443
1558
  | "lint/nursery/useForOf"
1444
1559
  | "lint/nursery/useGroupedTypeImport"
1445
1560
  | "lint/nursery/useImportRestrictions"
1561
+ | "lint/nursery/useNodejsImportProtocol"
1562
+ | "lint/nursery/useNumberNamespace"
1446
1563
  | "lint/nursery/useRegexLiterals"
1447
- | "lint/nursery/useValidAriaRole"
1448
1564
  | "lint/nursery/useShorthandFunctionType"
1565
+ | "lint/nursery/useValidAriaRole"
1449
1566
  | "lint/performance/noAccumulatingSpread"
1450
1567
  | "lint/performance/noDelete"
1451
1568
  | "lint/security/noDangerouslySetInnerHtml"
@@ -1468,6 +1585,7 @@ type Category =
1468
1585
  | "lint/style/useBlockStatements"
1469
1586
  | "lint/style/useCollapsedElseIf"
1470
1587
  | "lint/style/useConst"
1588
+ | "lint/style/useConsistentArrayType"
1471
1589
  | "lint/style/useDefaultParameterLast"
1472
1590
  | "lint/style/useEnumInitializers"
1473
1591
  | "lint/style/useExponentiationOperator"
package/biome_wasm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -32,6 +32,23 @@ function addHeapObject(obj) {
32
32
  return idx;
33
33
  }
34
34
 
35
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
+
37
+ cachedTextDecoder.decode();
38
+
39
+ let cachedUint8Memory0 = null;
40
+
41
+ function getUint8Memory0() {
42
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
43
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
44
+ }
45
+ return cachedUint8Memory0;
46
+ }
47
+
48
+ function getStringFromWasm0(ptr, len) {
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
35
52
  function isLikeNone(x) {
36
53
  return x === undefined || x === null;
37
54
  }
@@ -56,15 +73,6 @@ function getInt32Memory0() {
56
73
 
57
74
  let WASM_VECTOR_LEN = 0;
58
75
 
59
- let cachedUint8Memory0 = null;
60
-
61
- function getUint8Memory0() {
62
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
63
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
64
- }
65
- return cachedUint8Memory0;
66
- }
67
-
68
76
  let cachedTextEncoder = new TextEncoder('utf-8');
69
77
 
70
78
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,14 +126,6 @@ function passStringToWasm0(arg, malloc, realloc) {
118
126
  return ptr;
119
127
  }
120
128
 
121
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
122
-
123
- cachedTextDecoder.decode();
124
-
125
- function getStringFromWasm0(ptr, len) {
126
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
127
- }
128
-
129
129
  let cachedBigInt64Memory0 = null;
130
130
 
131
131
  function getBigInt64Memory0() {
@@ -701,6 +701,11 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
701
701
  return addHeapObject(ret);
702
702
  };
703
703
 
704
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
705
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
706
+ return addHeapObject(ret);
707
+ };
708
+
704
709
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
705
710
  const obj = getObject(arg1);
706
711
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -728,11 +733,6 @@ module.exports.__wbindgen_is_string = function(arg0) {
728
733
  return ret;
729
734
  };
730
735
 
731
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
732
- const ret = new Error(getStringFromWasm0(arg0, arg1));
733
- return addHeapObject(ret);
734
- };
735
-
736
736
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
737
737
  const ret = getObject(arg0);
738
738
  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.4.1-nightly.bc772a3","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.4.1-nightly.d869a33","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"]}