@biomejs/wasm-nodejs 1.4.1-nightly.e087146 → 1.4.1-nightly.efc084c

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
@@ -29,6 +29,10 @@ interface Configuration {
29
29
  * A field for the [JSON schema](https://json-schema.org/) specification
30
30
  */
31
31
  $schema?: string;
32
+ /**
33
+ * Specific configuration for the Css language
34
+ */
35
+ css?: CssConfiguration;
32
36
  /**
33
37
  * A list of paths to other JSON files, used to extends the current configuration.
34
38
  */
@@ -66,6 +70,16 @@ interface Configuration {
66
70
  */
67
71
  vcs?: VcsConfiguration;
68
72
  }
73
+ interface CssConfiguration {
74
+ /**
75
+ * Formatting options
76
+ */
77
+ formatter?: CssFormatter;
78
+ /**
79
+ * Parsing options
80
+ */
81
+ parser?: CssParser;
82
+ }
69
83
  type StringSet = string[];
70
84
  interface FilesConfiguration {
71
85
  /**
@@ -185,6 +199,10 @@ interface VcsConfiguration {
185
199
  * The kind of client.
186
200
  */
187
201
  clientKind?: VcsClientKind;
202
+ /**
203
+ * The main branch of the project
204
+ */
205
+ defaultBranch?: string;
188
206
  /**
189
207
  * Whether Biome should integrate itself with the VCS client
190
208
  */
@@ -200,6 +218,38 @@ If Biome can't find the configuration, it will attempt to use the current workin
200
218
  */
201
219
  useIgnoreFile?: boolean;
202
220
  }
221
+ interface CssFormatter {
222
+ /**
223
+ * Control the formatter for CSS (and its super languages) files.
224
+ */
225
+ enabled?: boolean;
226
+ /**
227
+ * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
228
+ */
229
+ indentSize?: number;
230
+ /**
231
+ * The indent style applied to CSS (and its super languages) files.
232
+ */
233
+ indentStyle?: PlainIndentStyle;
234
+ /**
235
+ * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
236
+ */
237
+ indentWidth?: number;
238
+ /**
239
+ * The type of line ending applied to CSS (and its super languages) files.
240
+ */
241
+ lineEnding?: LineEnding;
242
+ /**
243
+ * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
244
+ */
245
+ lineWidth?: LineWidth;
246
+ }
247
+ interface CssParser {
248
+ /**
249
+ * Allow comments to appear on incorrect lines in `.css` files
250
+ */
251
+ allowWrongLineComments?: boolean;
252
+ }
203
253
  type PlainIndentStyle = "tab" | "space";
204
254
  type LineEnding = "lf" | "crlf" | "cr";
205
255
  type LineWidth = number;
@@ -325,6 +375,10 @@ interface Rules {
325
375
  suspicious?: Suspicious;
326
376
  }
327
377
  interface OverridePattern {
378
+ /**
379
+ * Specific configuration for the Css language
380
+ */
381
+ css?: CssConfiguration;
328
382
  /**
329
383
  * Specific configuration for the Json language
330
384
  */
@@ -755,10 +809,18 @@ interface Nursery {
755
809
  * Disallow use of implicit any type on variable declarations.
756
810
  */
757
811
  noImplicitAnyLet?: RuleConfiguration;
812
+ /**
813
+ * Disallow the use of variables and function parameters before their declaration
814
+ */
815
+ noInvalidUseBeforeDeclaration?: RuleConfiguration;
758
816
  /**
759
817
  * Disallow characters made with multiple code points in character class syntax.
760
818
  */
761
819
  noMisleadingCharacterClass?: RuleConfiguration;
820
+ /**
821
+ * Forbid the use of Node.js builtin modules. Can be useful for client-side web projects that do not have access to those modules.
822
+ */
823
+ noNodejsModules?: RuleConfiguration;
762
824
  /**
763
825
  * Disallow unused imports.
764
826
  */
@@ -799,6 +861,10 @@ interface Nursery {
799
861
  * Disallows package private imports.
800
862
  */
801
863
  useImportRestrictions?: RuleConfiguration;
864
+ /**
865
+ * Enforces using the node: protocol for Node.js builtin modules.
866
+ */
867
+ useNodeImportProtocol?: RuleConfiguration;
802
868
  /**
803
869
  * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
804
870
  */
@@ -1293,6 +1359,7 @@ type Language =
1293
1359
  | "TypeScriptReact"
1294
1360
  | "Json"
1295
1361
  | "Jsonc"
1362
+ | "Css"
1296
1363
  | "Unknown";
1297
1364
  interface ChangeFileParams {
1298
1365
  content: string;
@@ -1444,7 +1511,10 @@ type Category =
1444
1511
  | "lint/nursery/noDuplicateJsonKeys"
1445
1512
  | "lint/nursery/noEmptyBlockStatements"
1446
1513
  | "lint/nursery/noImplicitAnyLet"
1514
+ | "lint/nursery/noInvalidUseBeforeDeclaration"
1447
1515
  | "lint/nursery/noMisleadingCharacterClass"
1516
+ | "lint/nursery/noNodejsModules"
1517
+ | "lint/nursery/noTypeOnlyImportAttributes"
1448
1518
  | "lint/nursery/noUnusedImports"
1449
1519
  | "lint/nursery/noUnusedPrivateClassMembers"
1450
1520
  | "lint/nursery/noUselessLoneBlockStatements"
@@ -1455,6 +1525,7 @@ type Category =
1455
1525
  | "lint/nursery/useForOf"
1456
1526
  | "lint/nursery/useGroupedTypeImport"
1457
1527
  | "lint/nursery/useImportRestrictions"
1528
+ | "lint/nursery/useNodeImportProtocol"
1458
1529
  | "lint/nursery/useRegexLiterals"
1459
1530
  | "lint/nursery/useShorthandFunctionType"
1460
1531
  | "lint/nursery/useValidAriaRole"
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.e087146","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.efc084c","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"]}