@biomejs/wasm-nodejs 1.5.3-nightly.24fcf19 → 1.5.3-nightly.d2858ee

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
  */
@@ -840,6 +853,14 @@ interface Nursery {
840
853
  * Forbid the use of Node.js builtin modules.
841
854
  */
842
855
  noNodejsModules?: RuleConfiguration;
856
+ /**
857
+ * Avoid re-export all
858
+ */
859
+ noReExportAll?: RuleConfiguration;
860
+ /**
861
+ * Disallow specified modules when loaded by import or require.
862
+ */
863
+ noRestrictedImports?: RuleConfiguration;
843
864
  /**
844
865
  * Disallow disabled tests.
845
866
  */
@@ -1101,7 +1122,7 @@ interface Suspicious {
1101
1122
  */
1102
1123
  all?: boolean;
1103
1124
  /**
1104
- * 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.
1125
+ * Use standard constants instead of approximated literals.
1105
1126
  */
1106
1127
  noApproximativeNumericConstant?: RuleConfiguration;
1107
1128
  /**
@@ -1286,6 +1307,10 @@ interface Suspicious {
1286
1307
  useValidTypeof?: RuleConfiguration;
1287
1308
  }
1288
1309
  interface OverrideFormatterConfiguration {
1310
+ /**
1311
+ * The attribute position style.
1312
+ */
1313
+ attributePosition?: AttributePosition;
1289
1314
  enabled?: boolean;
1290
1315
  /**
1291
1316
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -1342,6 +1367,7 @@ type PossibleOptions =
1342
1367
  | DeprecatedHooksOptions
1343
1368
  | NamingConventionOptions
1344
1369
  | RestrictedGlobalsOptions
1370
+ | RestrictedImportsOptions
1345
1371
  | ValidAriaRoleOptions
1346
1372
  | UtilityClassSortingOptions;
1347
1373
  interface ComplexityOptions {
@@ -1386,6 +1412,12 @@ interface RestrictedGlobalsOptions {
1386
1412
  */
1387
1413
  deniedGlobals: string[];
1388
1414
  }
1415
+ interface RestrictedImportsOptions {
1416
+ /**
1417
+ * A list of names that should trigger the rule
1418
+ */
1419
+ paths: {};
1420
+ }
1389
1421
  interface ValidAriaRoleOptions {
1390
1422
  allowInvalidRoles: string[];
1391
1423
  ignoreNonDom: boolean;
@@ -1436,6 +1468,7 @@ interface OpenFileParams {
1436
1468
  version: number;
1437
1469
  }
1438
1470
  type Language =
1471
+ | "Astro"
1439
1472
  | "JavaScript"
1440
1473
  | "JavaScriptReact"
1441
1474
  | "TypeScript"
@@ -1592,6 +1625,7 @@ type Category =
1592
1625
  | "lint/correctness/useValidForDirection"
1593
1626
  | "lint/correctness/useYield"
1594
1627
  | "lint/nursery/noApproximativeNumericConstant"
1628
+ | "lint/nursery/noConsole"
1595
1629
  | "lint/nursery/noDuplicateJsonKeys"
1596
1630
  | "lint/nursery/noEmptyBlockStatements"
1597
1631
  | "lint/nursery/noEmptyTypeParameters"
@@ -1601,6 +1635,8 @@ type Category =
1601
1635
  | "lint/nursery/noInvalidUseBeforeDeclaration"
1602
1636
  | "lint/nursery/noMisleadingCharacterClass"
1603
1637
  | "lint/nursery/noNodejsModules"
1638
+ | "lint/nursery/noReExportAll"
1639
+ | "lint/nursery/noRestrictedImports"
1604
1640
  | "lint/nursery/noSkippedTests"
1605
1641
  | "lint/nursery/noThenProperty"
1606
1642
  | "lint/nursery/noTypeOnlyImportAttributes"
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.3-nightly.24fcf19","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.d2858ee","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"]}