@biomejs/wasm-nodejs 1.3.1 → 1.3.3-nightly.38797b7

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
@@ -109,6 +109,10 @@ interface FormatterConfiguration {
109
109
  * The size of the indentation, 2 by default
110
110
  */
111
111
  indentWidth?: number;
112
+ /**
113
+ * The type of line ending.
114
+ */
115
+ lineEnding?: LineEnding;
112
116
  /**
113
117
  * What's the max width of a line. Defaults to 80.
114
118
  */
@@ -173,9 +177,7 @@ interface OrganizeImports {
173
177
  */
174
178
  include?: StringSet;
175
179
  }
176
- interface Overrides {
177
- list: OverridePattern[];
178
- }
180
+ type Overrides = OverridePattern[];
179
181
  interface VcsConfiguration {
180
182
  /**
181
183
  * The kind of client.
@@ -197,12 +199,21 @@ If Biome can't find the configuration, it will attempt to use the current workin
197
199
  useIgnoreFile?: boolean;
198
200
  }
199
201
  type PlainIndentStyle = "tab" | "space";
202
+ type LineEnding = "lf" | "crlf" | "cr";
200
203
  type LineWidth = number;
201
204
  interface JavascriptFormatter {
202
205
  /**
203
206
  * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
204
207
  */
205
208
  arrowParentheses?: ArrowParentheses;
209
+ /**
210
+ * 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.
211
+ */
212
+ bracketSameLine?: boolean;
213
+ /**
214
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
215
+ */
216
+ bracketSpacing?: boolean;
206
217
  /**
207
218
  * Control the formatter for JavaScript (and its super languages) files.
208
219
  */
@@ -224,7 +235,11 @@ interface JavascriptFormatter {
224
235
  */
225
236
  jsxQuoteStyle?: QuoteStyle;
226
237
  /**
227
- * What's the max width of a line, applied to JavaScript (and its super languages) files. Defaults to 80.
238
+ * The type of line ending applied to JavaScript (and its super languages) files.
239
+ */
240
+ lineEnding?: LineEnding;
241
+ /**
242
+ * What's the max width of a line applied to JavaScript (and its super languages) files. Defaults to 80.
228
243
  */
229
244
  lineWidth?: LineWidth;
230
245
  /**
@@ -271,7 +286,11 @@ interface JsonFormatter {
271
286
  */
272
287
  indentWidth?: number;
273
288
  /**
274
- * What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.
289
+ * The type of line ending applied to JSON (and its super languages) files.
290
+ */
291
+ lineEnding?: LineEnding;
292
+ /**
293
+ * What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.
275
294
  */
276
295
  lineWidth?: LineWidth;
277
296
  }
@@ -694,6 +713,10 @@ interface Nursery {
694
713
  * 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.
695
714
  */
696
715
  noApproximativeNumericConstant?: RuleConfiguration;
716
+ /**
717
+ * Disallow default exports.
718
+ */
719
+ noDefaultExport?: RuleConfiguration;
697
720
  /**
698
721
  * Disallow two keys with the same name inside a JSON object.
699
722
  */
@@ -706,6 +729,10 @@ interface Nursery {
706
729
  * Disallow empty character classes in regular expression literals.
707
730
  */
708
731
  noEmptyCharacterClassInRegex?: RuleConfiguration;
732
+ /**
733
+ * Disallow use of implicit any type on variable declarations.
734
+ */
735
+ noImplicitAnyLet?: RuleConfiguration;
709
736
  /**
710
737
  * Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
711
738
  */
@@ -722,10 +749,18 @@ interface Nursery {
722
749
  * Disallow shorthand assign when variable appears on both sides.
723
750
  */
724
751
  noMisrefactoredShorthandAssign?: RuleConfiguration;
752
+ /**
753
+ * Disallow this and super in static contexts.
754
+ */
755
+ noThisInStatic?: RuleConfiguration;
725
756
  /**
726
757
  * Disallow unused imports.
727
758
  */
728
759
  noUnusedImports?: RuleConfiguration;
760
+ /**
761
+ * Disallow unused private class members
762
+ */
763
+ noUnusedPrivateClassMembers?: RuleConfiguration;
729
764
  /**
730
765
  * Disallow else block when the if block breaks early.
731
766
  */
@@ -750,6 +785,10 @@ interface Nursery {
750
785
  * Enforce the use of as const over literal type and type annotation.
751
786
  */
752
787
  useAsConstAssertion?: RuleConfiguration;
788
+ /**
789
+ * Ensure async functions utilize await.
790
+ */
791
+ useAwait?: RuleConfiguration;
753
792
  /**
754
793
  * Enforce the use of import type when an import only has specifiers with type qualifier.
755
794
  */
@@ -762,6 +801,10 @@ interface Nursery {
762
801
  * Require assignment operator shorthand where possible.
763
802
  */
764
803
  useShorthandAssign?: RuleConfiguration;
804
+ /**
805
+ * Elements with ARIA roles must use a valid, non-abstract ARIA role.
806
+ */
807
+ useValidAriaRole?: RuleConfiguration;
765
808
  }
766
809
  interface Performance {
767
810
  /**
@@ -1117,6 +1160,10 @@ interface OverrideFormatterConfiguration {
1117
1160
  * The size of the indentation, 2 by default
1118
1161
  */
1119
1162
  indentWidth?: number;
1163
+ /**
1164
+ * The type of line ending.
1165
+ */
1166
+ lineEnding?: LineEnding;
1120
1167
  /**
1121
1168
  * What's the max width of a line. Defaults to 80.
1122
1169
  */
@@ -1149,7 +1196,7 @@ type PossibleOptions =
1149
1196
  | HooksOptions
1150
1197
  | NamingConventionOptions
1151
1198
  | RestrictedGlobalsOptions
1152
- | null;
1199
+ | ValidAriaRoleOptions;
1153
1200
  interface ComplexityOptions {
1154
1201
  /**
1155
1202
  * The maximum complexity score that we allow. Anything higher is considered excessive.
@@ -1178,6 +1225,10 @@ interface RestrictedGlobalsOptions {
1178
1225
  */
1179
1226
  deniedGlobals?: string[];
1180
1227
  }
1228
+ interface ValidAriaRoleOptions {
1229
+ allowedInvalidRoles: string[];
1230
+ ignoreNonDom: boolean;
1231
+ }
1181
1232
  interface Hooks {
1182
1233
  /**
1183
1234
  * The "position" of the closure function, starting from zero.
@@ -1195,6 +1246,10 @@ interface Hooks {
1195
1246
  name: string;
1196
1247
  }
1197
1248
  type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1249
+ interface ProjectFeaturesParams {
1250
+ manifest_path: RomePath;
1251
+ }
1252
+ interface ProjectFeaturesResult {}
1198
1253
  interface OpenFileParams {
1199
1254
  content: string;
1200
1255
  language_hint?: Language;
@@ -1348,23 +1403,29 @@ type Category =
1348
1403
  | "lint/correctness/useValidForDirection"
1349
1404
  | "lint/correctness/useYield"
1350
1405
  | "lint/nursery/noApproximativeNumericConstant"
1406
+ | "lint/nursery/noDefaultExport"
1351
1407
  | "lint/nursery/noDuplicateJsonKeys"
1352
1408
  | "lint/nursery/noEmptyBlockStatements"
1353
1409
  | "lint/nursery/noEmptyCharacterClassInRegex"
1410
+ | "lint/nursery/noImplicitAnyLet"
1354
1411
  | "lint/nursery/noInteractiveElementToNoninteractiveRole"
1355
1412
  | "lint/nursery/noInvalidNewBuiltin"
1356
1413
  | "lint/nursery/noMisleadingInstantiator"
1357
1414
  | "lint/nursery/noMisrefactoredShorthandAssign"
1415
+ | "lint/nursery/noThisInStatic"
1358
1416
  | "lint/nursery/noUnusedImports"
1417
+ | "lint/nursery/noUnusedPrivateClassMembers"
1359
1418
  | "lint/nursery/noUselessElse"
1360
1419
  | "lint/nursery/noUselessLoneBlockStatements"
1361
1420
  | "lint/nursery/useAriaActivedescendantWithTabindex"
1362
1421
  | "lint/nursery/useArrowFunction"
1363
1422
  | "lint/nursery/useAsConstAssertion"
1423
+ | "lint/nursery/useAwait"
1364
1424
  | "lint/nursery/useBiomeSuppressionComment"
1365
1425
  | "lint/nursery/useGroupedTypeImport"
1366
1426
  | "lint/nursery/useImportRestrictions"
1367
1427
  | "lint/nursery/useShorthandAssign"
1428
+ | "lint/nursery/useValidAriaRole"
1368
1429
  | "lint/performance/noAccumulatingSpread"
1369
1430
  | "lint/performance/noDelete"
1370
1431
  | "lint/security/noDangerouslySetInnerHtml"
@@ -1447,11 +1508,13 @@ type Category =
1447
1508
  | "organizeImports"
1448
1509
  | "migrate"
1449
1510
  | "deserialize"
1511
+ | "project"
1450
1512
  | "internalError/io"
1451
1513
  | "internalError/fs"
1452
1514
  | "internalError/panic"
1453
1515
  | "parse"
1454
1516
  | "parse/noSuperWithoutExtends"
1517
+ | "parse/noInitializerWithDefinite"
1455
1518
  | "parse/noDuplicatePrivateClassMembers"
1456
1519
  | "lint"
1457
1520
  | "lint/a11y"
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.3.1","license":"MIT","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.3.3-nightly.38797b7","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"]}