@biomejs/wasm-nodejs 1.3.2 → 1.3.3-nightly.ced82da
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 +64 -3
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
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
|
*/
|
|
@@ -195,12 +199,21 @@ If Biome can't find the configuration, it will attempt to use the current workin
|
|
|
195
199
|
useIgnoreFile?: boolean;
|
|
196
200
|
}
|
|
197
201
|
type PlainIndentStyle = "tab" | "space";
|
|
202
|
+
type LineEnding = "lf" | "crlf" | "cr";
|
|
198
203
|
type LineWidth = number;
|
|
199
204
|
interface JavascriptFormatter {
|
|
200
205
|
/**
|
|
201
206
|
* Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
|
|
202
207
|
*/
|
|
203
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;
|
|
204
217
|
/**
|
|
205
218
|
* Control the formatter for JavaScript (and its super languages) files.
|
|
206
219
|
*/
|
|
@@ -222,7 +235,11 @@ interface JavascriptFormatter {
|
|
|
222
235
|
*/
|
|
223
236
|
jsxQuoteStyle?: QuoteStyle;
|
|
224
237
|
/**
|
|
225
|
-
*
|
|
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.
|
|
226
243
|
*/
|
|
227
244
|
lineWidth?: LineWidth;
|
|
228
245
|
/**
|
|
@@ -269,7 +286,11 @@ interface JsonFormatter {
|
|
|
269
286
|
*/
|
|
270
287
|
indentWidth?: number;
|
|
271
288
|
/**
|
|
272
|
-
*
|
|
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.
|
|
273
294
|
*/
|
|
274
295
|
lineWidth?: LineWidth;
|
|
275
296
|
}
|
|
@@ -692,6 +713,10 @@ interface Nursery {
|
|
|
692
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.
|
|
693
714
|
*/
|
|
694
715
|
noApproximativeNumericConstant?: RuleConfiguration;
|
|
716
|
+
/**
|
|
717
|
+
* Disallow default exports.
|
|
718
|
+
*/
|
|
719
|
+
noDefaultExport?: RuleConfiguration;
|
|
695
720
|
/**
|
|
696
721
|
* Disallow two keys with the same name inside a JSON object.
|
|
697
722
|
*/
|
|
@@ -704,6 +729,10 @@ interface Nursery {
|
|
|
704
729
|
* Disallow empty character classes in regular expression literals.
|
|
705
730
|
*/
|
|
706
731
|
noEmptyCharacterClassInRegex?: RuleConfiguration;
|
|
732
|
+
/**
|
|
733
|
+
* Disallow use of implicit any type on variable declarations.
|
|
734
|
+
*/
|
|
735
|
+
noImplicitAnyLet?: RuleConfiguration;
|
|
707
736
|
/**
|
|
708
737
|
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
709
738
|
*/
|
|
@@ -728,6 +757,10 @@ interface Nursery {
|
|
|
728
757
|
* Disallow unused imports.
|
|
729
758
|
*/
|
|
730
759
|
noUnusedImports?: RuleConfiguration;
|
|
760
|
+
/**
|
|
761
|
+
* Disallow unused private class members
|
|
762
|
+
*/
|
|
763
|
+
noUnusedPrivateClassMembers?: RuleConfiguration;
|
|
731
764
|
/**
|
|
732
765
|
* Disallow else block when the if block breaks early.
|
|
733
766
|
*/
|
|
@@ -752,6 +785,10 @@ interface Nursery {
|
|
|
752
785
|
* Enforce the use of as const over literal type and type annotation.
|
|
753
786
|
*/
|
|
754
787
|
useAsConstAssertion?: RuleConfiguration;
|
|
788
|
+
/**
|
|
789
|
+
* Ensure async functions utilize await.
|
|
790
|
+
*/
|
|
791
|
+
useAwait?: RuleConfiguration;
|
|
755
792
|
/**
|
|
756
793
|
* Enforce the use of import type when an import only has specifiers with type qualifier.
|
|
757
794
|
*/
|
|
@@ -764,6 +801,10 @@ interface Nursery {
|
|
|
764
801
|
* Require assignment operator shorthand where possible.
|
|
765
802
|
*/
|
|
766
803
|
useShorthandAssign?: RuleConfiguration;
|
|
804
|
+
/**
|
|
805
|
+
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
806
|
+
*/
|
|
807
|
+
useValidAriaRole?: RuleConfiguration;
|
|
767
808
|
}
|
|
768
809
|
interface Performance {
|
|
769
810
|
/**
|
|
@@ -1119,6 +1160,10 @@ interface OverrideFormatterConfiguration {
|
|
|
1119
1160
|
* The size of the indentation, 2 by default
|
|
1120
1161
|
*/
|
|
1121
1162
|
indentWidth?: number;
|
|
1163
|
+
/**
|
|
1164
|
+
* The type of line ending.
|
|
1165
|
+
*/
|
|
1166
|
+
lineEnding?: LineEnding;
|
|
1122
1167
|
/**
|
|
1123
1168
|
* What's the max width of a line. Defaults to 80.
|
|
1124
1169
|
*/
|
|
@@ -1150,7 +1195,8 @@ type PossibleOptions =
|
|
|
1150
1195
|
| ComplexityOptions
|
|
1151
1196
|
| HooksOptions
|
|
1152
1197
|
| NamingConventionOptions
|
|
1153
|
-
| RestrictedGlobalsOptions
|
|
1198
|
+
| RestrictedGlobalsOptions
|
|
1199
|
+
| ValidAriaRoleOptions;
|
|
1154
1200
|
interface ComplexityOptions {
|
|
1155
1201
|
/**
|
|
1156
1202
|
* The maximum complexity score that we allow. Anything higher is considered excessive.
|
|
@@ -1179,6 +1225,10 @@ interface RestrictedGlobalsOptions {
|
|
|
1179
1225
|
*/
|
|
1180
1226
|
deniedGlobals?: string[];
|
|
1181
1227
|
}
|
|
1228
|
+
interface ValidAriaRoleOptions {
|
|
1229
|
+
allowedInvalidRoles: string[];
|
|
1230
|
+
ignoreNonDom: boolean;
|
|
1231
|
+
}
|
|
1182
1232
|
interface Hooks {
|
|
1183
1233
|
/**
|
|
1184
1234
|
* The "position" of the closure function, starting from zero.
|
|
@@ -1196,6 +1246,10 @@ interface Hooks {
|
|
|
1196
1246
|
name: string;
|
|
1197
1247
|
}
|
|
1198
1248
|
type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
|
|
1249
|
+
interface ProjectFeaturesParams {
|
|
1250
|
+
manifest_path: RomePath;
|
|
1251
|
+
}
|
|
1252
|
+
interface ProjectFeaturesResult {}
|
|
1199
1253
|
interface OpenFileParams {
|
|
1200
1254
|
content: string;
|
|
1201
1255
|
language_hint?: Language;
|
|
@@ -1349,24 +1403,29 @@ type Category =
|
|
|
1349
1403
|
| "lint/correctness/useValidForDirection"
|
|
1350
1404
|
| "lint/correctness/useYield"
|
|
1351
1405
|
| "lint/nursery/noApproximativeNumericConstant"
|
|
1406
|
+
| "lint/nursery/noDefaultExport"
|
|
1352
1407
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1353
1408
|
| "lint/nursery/noEmptyBlockStatements"
|
|
1354
1409
|
| "lint/nursery/noEmptyCharacterClassInRegex"
|
|
1410
|
+
| "lint/nursery/noImplicitAnyLet"
|
|
1355
1411
|
| "lint/nursery/noInteractiveElementToNoninteractiveRole"
|
|
1356
1412
|
| "lint/nursery/noInvalidNewBuiltin"
|
|
1357
1413
|
| "lint/nursery/noMisleadingInstantiator"
|
|
1358
1414
|
| "lint/nursery/noMisrefactoredShorthandAssign"
|
|
1359
1415
|
| "lint/nursery/noThisInStatic"
|
|
1360
1416
|
| "lint/nursery/noUnusedImports"
|
|
1417
|
+
| "lint/nursery/noUnusedPrivateClassMembers"
|
|
1361
1418
|
| "lint/nursery/noUselessElse"
|
|
1362
1419
|
| "lint/nursery/noUselessLoneBlockStatements"
|
|
1363
1420
|
| "lint/nursery/useAriaActivedescendantWithTabindex"
|
|
1364
1421
|
| "lint/nursery/useArrowFunction"
|
|
1365
1422
|
| "lint/nursery/useAsConstAssertion"
|
|
1423
|
+
| "lint/nursery/useAwait"
|
|
1366
1424
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1367
1425
|
| "lint/nursery/useGroupedTypeImport"
|
|
1368
1426
|
| "lint/nursery/useImportRestrictions"
|
|
1369
1427
|
| "lint/nursery/useShorthandAssign"
|
|
1428
|
+
| "lint/nursery/useValidAriaRole"
|
|
1370
1429
|
| "lint/performance/noAccumulatingSpread"
|
|
1371
1430
|
| "lint/performance/noDelete"
|
|
1372
1431
|
| "lint/security/noDangerouslySetInnerHtml"
|
|
@@ -1449,11 +1508,13 @@ type Category =
|
|
|
1449
1508
|
| "organizeImports"
|
|
1450
1509
|
| "migrate"
|
|
1451
1510
|
| "deserialize"
|
|
1511
|
+
| "project"
|
|
1452
1512
|
| "internalError/io"
|
|
1453
1513
|
| "internalError/fs"
|
|
1454
1514
|
| "internalError/panic"
|
|
1455
1515
|
| "parse"
|
|
1456
1516
|
| "parse/noSuperWithoutExtends"
|
|
1517
|
+
| "parse/noInitializerWithDefinite"
|
|
1457
1518
|
| "parse/noDuplicatePrivateClassMembers"
|
|
1458
1519
|
| "lint"
|
|
1459
1520
|
| "lint/a11y"
|
package/biome_wasm_bg.wasm
CHANGED
|
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
|
+
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.3.3-nightly.ced82da","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"]}
|