@biomejs/wasm-nodejs 1.4.1-nightly.bc772a3 → 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
@@ -21,12 +21,18 @@ type SupportKind =
21
21
  | "FileNotSupported";
22
22
  interface UpdateSettingsParams {
23
23
  configuration: Configuration;
24
+ gitignore_matches: string[];
25
+ vcs_base_path?: string;
24
26
  }
25
27
  interface Configuration {
26
28
  /**
27
29
  * A field for the [JSON schema](https://json-schema.org/) specification
28
30
  */
29
31
  $schema?: string;
32
+ /**
33
+ * Specific configuration for the Css language
34
+ */
35
+ css?: CssConfiguration;
30
36
  /**
31
37
  * A list of paths to other JSON files, used to extends the current configuration.
32
38
  */
@@ -64,6 +70,16 @@ interface Configuration {
64
70
  */
65
71
  vcs?: VcsConfiguration;
66
72
  }
73
+ interface CssConfiguration {
74
+ /**
75
+ * Formatting options
76
+ */
77
+ formatter?: CssFormatter;
78
+ /**
79
+ * Parsing options
80
+ */
81
+ parser?: CssParser;
82
+ }
67
83
  type StringSet = string[];
68
84
  interface FilesConfiguration {
69
85
  /**
@@ -183,6 +199,10 @@ interface VcsConfiguration {
183
199
  * The kind of client.
184
200
  */
185
201
  clientKind?: VcsClientKind;
202
+ /**
203
+ * The main branch of the project
204
+ */
205
+ defaultBranch?: string;
186
206
  /**
187
207
  * Whether Biome should integrate itself with the VCS client
188
208
  */
@@ -198,6 +218,38 @@ If Biome can't find the configuration, it will attempt to use the current workin
198
218
  */
199
219
  useIgnoreFile?: boolean;
200
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
+ }
201
253
  type PlainIndentStyle = "tab" | "space";
202
254
  type LineEnding = "lf" | "crlf" | "cr";
203
255
  type LineWidth = number;
@@ -323,6 +375,10 @@ interface Rules {
323
375
  suspicious?: Suspicious;
324
376
  }
325
377
  interface OverridePattern {
378
+ /**
379
+ * Specific configuration for the Css language
380
+ */
381
+ css?: CssConfiguration;
326
382
  /**
327
383
  * Specific configuration for the Json language
328
384
  */
@@ -753,10 +809,18 @@ interface Nursery {
753
809
  * Disallow use of implicit any type on variable declarations.
754
810
  */
755
811
  noImplicitAnyLet?: RuleConfiguration;
812
+ /**
813
+ * Disallow the use of variables and function parameters before their declaration
814
+ */
815
+ noInvalidUseBeforeDeclaration?: RuleConfiguration;
756
816
  /**
757
817
  * Disallow characters made with multiple code points in character class syntax.
758
818
  */
759
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;
760
824
  /**
761
825
  * Disallow unused imports.
762
826
  */
@@ -769,6 +833,10 @@ interface Nursery {
769
833
  * Disallow unnecessary nested block statements.
770
834
  */
771
835
  noUselessLoneBlockStatements?: RuleConfiguration;
836
+ /**
837
+ * Disallow ternary operators when simpler alternatives exist.
838
+ */
839
+ noUselessTernary?: RuleConfiguration;
772
840
  /**
773
841
  * It enables the recommended rules for this group
774
842
  */
@@ -777,6 +845,10 @@ interface Nursery {
777
845
  * Ensure async functions utilize await.
778
846
  */
779
847
  useAwait?: RuleConfiguration;
848
+ /**
849
+ * Promotes the use of export type for types.
850
+ */
851
+ useExportType?: RuleConfiguration;
780
852
  /**
781
853
  * This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
782
854
  */
@@ -789,6 +861,10 @@ interface Nursery {
789
861
  * Disallows package private imports.
790
862
  */
791
863
  useImportRestrictions?: RuleConfiguration;
864
+ /**
865
+ * Enforces using the node: protocol for Node.js builtin modules.
866
+ */
867
+ useNodeImportProtocol?: RuleConfiguration;
792
868
  /**
793
869
  * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
794
870
  */
@@ -1283,6 +1359,7 @@ type Language =
1283
1359
  | "TypeScriptReact"
1284
1360
  | "Json"
1285
1361
  | "Jsonc"
1362
+ | "Css"
1286
1363
  | "Unknown";
1287
1364
  interface ChangeFileParams {
1288
1365
  content: string;
@@ -1434,18 +1511,24 @@ type Category =
1434
1511
  | "lint/nursery/noDuplicateJsonKeys"
1435
1512
  | "lint/nursery/noEmptyBlockStatements"
1436
1513
  | "lint/nursery/noImplicitAnyLet"
1514
+ | "lint/nursery/noInvalidUseBeforeDeclaration"
1437
1515
  | "lint/nursery/noMisleadingCharacterClass"
1516
+ | "lint/nursery/noNodejsModules"
1517
+ | "lint/nursery/noTypeOnlyImportAttributes"
1438
1518
  | "lint/nursery/noUnusedImports"
1439
1519
  | "lint/nursery/noUnusedPrivateClassMembers"
1440
1520
  | "lint/nursery/noUselessLoneBlockStatements"
1521
+ | "lint/nursery/noUselessTernary"
1441
1522
  | "lint/nursery/useAwait"
1442
1523
  | "lint/nursery/useBiomeSuppressionComment"
1524
+ | "lint/nursery/useExportType"
1443
1525
  | "lint/nursery/useForOf"
1444
1526
  | "lint/nursery/useGroupedTypeImport"
1445
1527
  | "lint/nursery/useImportRestrictions"
1528
+ | "lint/nursery/useNodeImportProtocol"
1446
1529
  | "lint/nursery/useRegexLiterals"
1447
- | "lint/nursery/useValidAriaRole"
1448
1530
  | "lint/nursery/useShorthandFunctionType"
1531
+ | "lint/nursery/useValidAriaRole"
1449
1532
  | "lint/performance/noAccumulatingSpread"
1450
1533
  | "lint/performance/noDelete"
1451
1534
  | "lint/security/noDangerouslySetInnerHtml"
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.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"]}