@biomejs/wasm-nodejs 1.5.3-nightly.6cbf1c7 → 1.5.3-nightly.dca6a7a
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 +49 -3
- package/biome_wasm.js +13 -13
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -102,6 +102,10 @@ interface PartialFilesConfiguration {
|
|
|
102
102
|
maxSize?: number;
|
|
103
103
|
}
|
|
104
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
|
|
@@ -253,6 +257,7 @@ interface PartialCssParser {
|
|
|
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;
|
|
@@ -261,6 +266,10 @@ interface PartialJavascriptFormatter {
|
|
|
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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -848,6 +869,10 @@ interface Nursery {
|
|
|
848
869
|
* Disallow then property.
|
|
849
870
|
*/
|
|
850
871
|
noThenProperty?: RuleConfiguration;
|
|
872
|
+
/**
|
|
873
|
+
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
874
|
+
*/
|
|
875
|
+
noUndeclaredDependencies?: RuleConfiguration;
|
|
851
876
|
/**
|
|
852
877
|
* Disallow unused imports.
|
|
853
878
|
*/
|
|
@@ -1286,6 +1311,10 @@ interface Suspicious {
|
|
|
1286
1311
|
useValidTypeof?: RuleConfiguration;
|
|
1287
1312
|
}
|
|
1288
1313
|
interface OverrideFormatterConfiguration {
|
|
1314
|
+
/**
|
|
1315
|
+
* The attribute position style.
|
|
1316
|
+
*/
|
|
1317
|
+
attributePosition?: AttributePosition;
|
|
1289
1318
|
enabled?: boolean;
|
|
1290
1319
|
/**
|
|
1291
1320
|
* Stores whether formatting should be allowed to proceed if a given file has syntax errors
|
|
@@ -1342,6 +1371,7 @@ type PossibleOptions =
|
|
|
1342
1371
|
| DeprecatedHooksOptions
|
|
1343
1372
|
| NamingConventionOptions
|
|
1344
1373
|
| RestrictedGlobalsOptions
|
|
1374
|
+
| RestrictedImportsOptions
|
|
1345
1375
|
| ValidAriaRoleOptions
|
|
1346
1376
|
| UtilityClassSortingOptions;
|
|
1347
1377
|
interface ComplexityOptions {
|
|
@@ -1386,6 +1416,12 @@ interface RestrictedGlobalsOptions {
|
|
|
1386
1416
|
*/
|
|
1387
1417
|
deniedGlobals: string[];
|
|
1388
1418
|
}
|
|
1419
|
+
interface RestrictedImportsOptions {
|
|
1420
|
+
/**
|
|
1421
|
+
* A list of names that should trigger the rule
|
|
1422
|
+
*/
|
|
1423
|
+
paths: {};
|
|
1424
|
+
}
|
|
1389
1425
|
interface ValidAriaRoleOptions {
|
|
1390
1426
|
allowInvalidRoles: string[];
|
|
1391
1427
|
ignoreNonDom: boolean;
|
|
@@ -1425,10 +1461,14 @@ type FilenameCase =
|
|
|
1425
1461
|
| "kebab-case"
|
|
1426
1462
|
| "PascalCase"
|
|
1427
1463
|
| "snake_case";
|
|
1428
|
-
interface
|
|
1429
|
-
|
|
1464
|
+
interface UpdateProjectParams {
|
|
1465
|
+
path: RomePath;
|
|
1466
|
+
}
|
|
1467
|
+
interface OpenProjectParams {
|
|
1468
|
+
content: string;
|
|
1469
|
+
path: RomePath;
|
|
1470
|
+
version: number;
|
|
1430
1471
|
}
|
|
1431
|
-
interface ProjectFeaturesResult {}
|
|
1432
1472
|
interface OpenFileParams {
|
|
1433
1473
|
content: string;
|
|
1434
1474
|
language_hint?: Language;
|
|
@@ -1436,6 +1476,8 @@ interface OpenFileParams {
|
|
|
1436
1476
|
version: number;
|
|
1437
1477
|
}
|
|
1438
1478
|
type Language =
|
|
1479
|
+
| "Astro"
|
|
1480
|
+
| "Vue"
|
|
1439
1481
|
| "JavaScript"
|
|
1440
1482
|
| "JavaScriptReact"
|
|
1441
1483
|
| "TypeScript"
|
|
@@ -1592,6 +1634,7 @@ type Category =
|
|
|
1592
1634
|
| "lint/correctness/useValidForDirection"
|
|
1593
1635
|
| "lint/correctness/useYield"
|
|
1594
1636
|
| "lint/nursery/noApproximativeNumericConstant"
|
|
1637
|
+
| "lint/nursery/noConsole"
|
|
1595
1638
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1596
1639
|
| "lint/nursery/noEmptyBlockStatements"
|
|
1597
1640
|
| "lint/nursery/noEmptyTypeParameters"
|
|
@@ -1601,9 +1644,12 @@ type Category =
|
|
|
1601
1644
|
| "lint/nursery/noInvalidUseBeforeDeclaration"
|
|
1602
1645
|
| "lint/nursery/noMisleadingCharacterClass"
|
|
1603
1646
|
| "lint/nursery/noNodejsModules"
|
|
1647
|
+
| "lint/nursery/noReExportAll"
|
|
1648
|
+
| "lint/nursery/noRestrictedImports"
|
|
1604
1649
|
| "lint/nursery/noSkippedTests"
|
|
1605
1650
|
| "lint/nursery/noThenProperty"
|
|
1606
1651
|
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
1652
|
+
| "lint/nursery/noUndeclaredDependencies"
|
|
1607
1653
|
| "lint/nursery/noUnusedImports"
|
|
1608
1654
|
| "lint/nursery/noUnusedPrivateClassMembers"
|
|
1609
1655
|
| "lint/nursery/noUselessLoneBlockStatements"
|
package/biome_wasm.js
CHANGED
|
@@ -733,29 +733,21 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
733
733
|
return ret;
|
|
734
734
|
};
|
|
735
735
|
|
|
736
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
737
|
-
const ret = getObject(arg0);
|
|
738
|
-
return addHeapObject(ret);
|
|
739
|
-
};
|
|
740
|
-
|
|
741
736
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
742
737
|
const ret = getObject(arg0) == getObject(arg1);
|
|
743
738
|
return ret;
|
|
744
739
|
};
|
|
745
740
|
|
|
746
|
-
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
747
|
-
const ret = String(getObject(arg1));
|
|
748
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
749
|
-
const len0 = WASM_VECTOR_LEN;
|
|
750
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
751
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
752
|
-
};
|
|
753
|
-
|
|
754
741
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
755
742
|
const ret = arg0;
|
|
756
743
|
return addHeapObject(ret);
|
|
757
744
|
};
|
|
758
745
|
|
|
746
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
747
|
+
const ret = getObject(arg0);
|
|
748
|
+
return addHeapObject(ret);
|
|
749
|
+
};
|
|
750
|
+
|
|
759
751
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
760
752
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
761
753
|
return addHeapObject(ret);
|
|
@@ -770,6 +762,14 @@ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
|
770
762
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
771
763
|
};
|
|
772
764
|
|
|
765
|
+
module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
766
|
+
const ret = String(getObject(arg1));
|
|
767
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
768
|
+
const len0 = WASM_VECTOR_LEN;
|
|
769
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
770
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
773
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
774
774
|
const ret = new Error();
|
|
775
775
|
return addHeapObject(ret);
|
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.5.3-nightly.
|
|
1
|
+
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.3-nightly.dca6a7a","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"]}
|