@biomejs/wasm-nodejs 1.4.1-nightly.efc084c → 1.5.0

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
@@ -17,6 +17,7 @@ interface SupportsFeatureResult {
17
17
  type SupportKind =
18
18
  | "Supported"
19
19
  | "Ignored"
20
+ | "Protected"
20
21
  | "FeatureNotEnabled"
21
22
  | "FileNotSupported";
22
23
  interface UpdateSettingsParams {
@@ -243,6 +244,7 @@ interface CssFormatter {
243
244
  * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
244
245
  */
245
246
  lineWidth?: LineWidth;
247
+ quoteStyle?: QuoteStyle;
246
248
  }
247
249
  interface CssParser {
248
250
  /**
@@ -409,8 +411,8 @@ interface OverridePattern {
409
411
  organizeImports?: OverrideOrganizeImportsConfiguration;
410
412
  }
411
413
  type VcsClientKind = "git";
412
- type ArrowParentheses = "always" | "asNeeded";
413
414
  type QuoteStyle = "double" | "single";
415
+ type ArrowParentheses = "always" | "asNeeded";
414
416
  type QuoteProperties = "asNeeded" | "preserve";
415
417
  type Semicolons = "always" | "asNeeded";
416
418
  type TrailingComma = "all" | "es5" | "none";
@@ -423,6 +425,10 @@ interface A11y {
423
425
  * Enforce that the accessKey attribute is not used on any HTML element.
424
426
  */
425
427
  noAccessKey?: RuleConfiguration;
428
+ /**
429
+ * Enforce that aria-hidden="true" is not set on focusable elements.
430
+ */
431
+ noAriaHiddenOnFocusable?: RuleConfiguration;
426
432
  /**
427
433
  * Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
428
434
  */
@@ -527,6 +533,10 @@ interface A11y {
527
533
  * Ensures that ARIA properties aria-* are all valid.
528
534
  */
529
535
  useValidAriaProps?: RuleConfiguration;
536
+ /**
537
+ * Elements with ARIA roles must use a valid, non-abstract ARIA role.
538
+ */
539
+ useValidAriaRole?: RuleConfiguration;
530
540
  /**
531
541
  * Enforce that ARIA state and property values are valid.
532
542
  */
@@ -633,6 +643,10 @@ interface Complexity {
633
643
  * Enforce using concise optional chain instead of chained logical expressions.
634
644
  */
635
645
  useOptionalChain?: RuleConfiguration;
646
+ /**
647
+ * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
648
+ */
649
+ useRegexLiterals?: RuleConfiguration;
636
650
  /**
637
651
  * Disallow number literal object member names which are not base10 or uses underscore as separator
638
652
  */
@@ -789,14 +803,6 @@ interface Nursery {
789
803
  * It enables ALL rules for this group.
790
804
  */
791
805
  all?: boolean;
792
- /**
793
- * Enforce that aria-hidden="true" is not set on focusable elements.
794
- */
795
- noAriaHiddenOnFocusable?: RuleConfiguration;
796
- /**
797
- * Disallow default exports.
798
- */
799
- noDefaultExport?: RuleConfiguration;
800
806
  /**
801
807
  * Disallow two keys with the same name inside a JSON object.
802
808
  */
@@ -806,9 +812,17 @@ interface Nursery {
806
812
  */
807
813
  noEmptyBlockStatements?: RuleConfiguration;
808
814
  /**
809
- * Disallow use of implicit any type on variable declarations.
815
+ * Disallow empty type parameters in type aliases and interfaces.
810
816
  */
811
- noImplicitAnyLet?: RuleConfiguration;
817
+ noEmptyTypeParameters?: RuleConfiguration;
818
+ /**
819
+ * Disallow assignments to native objects and read-only global variables.
820
+ */
821
+ noGlobalAssign?: RuleConfiguration;
822
+ /**
823
+ * Disallow the use of global eval().
824
+ */
825
+ noGlobalEval?: RuleConfiguration;
812
826
  /**
813
827
  * Disallow the use of variables and function parameters before their declaration
814
828
  */
@@ -818,9 +832,13 @@ interface Nursery {
818
832
  */
819
833
  noMisleadingCharacterClass?: RuleConfiguration;
820
834
  /**
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.
835
+ * Forbid the use of Node.js builtin modules.
822
836
  */
823
837
  noNodejsModules?: RuleConfiguration;
838
+ /**
839
+ * Disallow then property.
840
+ */
841
+ noThenProperty?: RuleConfiguration;
824
842
  /**
825
843
  * Disallow unused imports.
826
844
  */
@@ -849,6 +867,10 @@ interface Nursery {
849
867
  * Promotes the use of export type for types.
850
868
  */
851
869
  useExportType?: RuleConfiguration;
870
+ /**
871
+ * Enforce naming conventions for JavaScript and TypeScript filenames.
872
+ */
873
+ useFilenamingConvention?: RuleConfiguration;
852
874
  /**
853
875
  * This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
854
876
  */
@@ -861,22 +883,22 @@ interface Nursery {
861
883
  * Disallows package private imports.
862
884
  */
863
885
  useImportRestrictions?: RuleConfiguration;
886
+ /**
887
+ * Promotes the use of import type for types.
888
+ */
889
+ useImportType?: RuleConfiguration;
864
890
  /**
865
891
  * Enforces using the node: protocol for Node.js builtin modules.
866
892
  */
867
- useNodeImportProtocol?: RuleConfiguration;
893
+ useNodejsImportProtocol?: RuleConfiguration;
868
894
  /**
869
- * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
895
+ * Use the Number properties instead of global ones.
870
896
  */
871
- useRegexLiterals?: RuleConfiguration;
897
+ useNumberNamespace?: RuleConfiguration;
872
898
  /**
873
899
  * Enforce using function types instead of object type with call signatures.
874
900
  */
875
901
  useShorthandFunctionType?: RuleConfiguration;
876
- /**
877
- * Elements with ARIA roles must use a valid, non-abstract ARIA role.
878
- */
879
- useValidAriaRole?: RuleConfiguration;
880
902
  }
881
903
  interface Performance {
882
904
  /**
@@ -927,6 +949,10 @@ interface Style {
927
949
  * Disallow comma operator.
928
950
  */
929
951
  noCommaOperator?: RuleConfiguration;
952
+ /**
953
+ * Disallow default exports.
954
+ */
955
+ noDefaultExport?: RuleConfiguration;
930
956
  /**
931
957
  * Disallow implicit true values on JSX boolean attributes
932
958
  */
@@ -991,6 +1017,10 @@ interface Style {
991
1017
  * Enforce using else if instead of nested if in else clauses.
992
1018
  */
993
1019
  useCollapsedElseIf?: RuleConfiguration;
1020
+ /**
1021
+ * Require consistently using either T[] or Array<T>
1022
+ */
1023
+ useConsistentArrayType?: RuleConfiguration;
994
1024
  /**
995
1025
  * Require const declarations for variables that are never reassigned after declared.
996
1026
  */
@@ -1165,6 +1195,10 @@ interface Suspicious {
1165
1195
  * Use Number.isNaN instead of global isNaN.
1166
1196
  */
1167
1197
  noGlobalIsNan?: RuleConfiguration;
1198
+ /**
1199
+ * Disallow use of implicit any type on variable declarations.
1200
+ */
1201
+ noImplicitAnyLet?: RuleConfiguration;
1168
1202
  /**
1169
1203
  * Disallow assigning to imported bindings
1170
1204
  */
@@ -1289,7 +1323,9 @@ interface RuleWithOptions {
1289
1323
  }
1290
1324
  type PossibleOptions =
1291
1325
  | ComplexityOptions
1326
+ | FilenamingConventionOptions
1292
1327
  | HooksOptions
1328
+ | DeprecatedHooksOptions
1293
1329
  | NamingConventionOptions
1294
1330
  | RestrictedGlobalsOptions
1295
1331
  | ValidAriaRoleOptions;
@@ -1299,12 +1335,23 @@ interface ComplexityOptions {
1299
1335
  */
1300
1336
  maxAllowedComplexity: number;
1301
1337
  }
1338
+ interface FilenamingConventionOptions {
1339
+ /**
1340
+ * Allowed cases for _TypeScript_ `enum` member names.
1341
+ */
1342
+ filenameCases: FilenameCases;
1343
+ /**
1344
+ * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1345
+ */
1346
+ strictCase: boolean;
1347
+ }
1302
1348
  interface HooksOptions {
1303
1349
  /**
1304
1350
  * List of safe hooks
1305
1351
  */
1306
1352
  hooks: Hooks[];
1307
1353
  }
1354
+ interface DeprecatedHooksOptions {}
1308
1355
  interface NamingConventionOptions {
1309
1356
  /**
1310
1357
  * Allowed cases for _TypeScript_ `enum` member names.
@@ -1325,6 +1372,7 @@ interface ValidAriaRoleOptions {
1325
1372
  allowedInvalidRoles: string[];
1326
1373
  ignoreNonDom: boolean;
1327
1374
  }
1375
+ type FilenameCases = FilenameCase[];
1328
1376
  interface Hooks {
1329
1377
  /**
1330
1378
  * The "position" of the closure function, starting from zero.
@@ -1342,6 +1390,12 @@ interface Hooks {
1342
1390
  name: string;
1343
1391
  }
1344
1392
  type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1393
+ type FilenameCase =
1394
+ | "camelCase"
1395
+ | "export"
1396
+ | "kebab-case"
1397
+ | "PascalCase"
1398
+ | "snake_case";
1345
1399
  interface ProjectFeaturesParams {
1346
1400
  manifest_path: RomePath;
1347
1401
  }
@@ -1421,6 +1475,7 @@ interface Advices {
1421
1475
  }
1422
1476
  type Category =
1423
1477
  | "lint/a11y/noAccessKey"
1478
+ | "lint/a11y/noAriaHiddenOnFocusable"
1424
1479
  | "lint/a11y/noAriaUnsupportedElements"
1425
1480
  | "lint/a11y/noAutofocus"
1426
1481
  | "lint/a11y/noBlankTarget"
@@ -1446,6 +1501,7 @@ type Category =
1446
1501
  | "lint/a11y/useMediaCaption"
1447
1502
  | "lint/a11y/useValidAnchor"
1448
1503
  | "lint/a11y/useValidAriaProps"
1504
+ | "lint/a11y/useValidAriaRole"
1449
1505
  | "lint/a11y/useValidAriaValues"
1450
1506
  | "lint/a11y/useValidLang"
1451
1507
  | "lint/complexity/noBannedTypes"
@@ -1470,6 +1526,7 @@ type Category =
1470
1526
  | "lint/complexity/useFlatMap"
1471
1527
  | "lint/complexity/useLiteralKeys"
1472
1528
  | "lint/complexity/useOptionalChain"
1529
+ | "lint/complexity/useRegexLiterals"
1473
1530
  | "lint/complexity/useSimpleNumberKeys"
1474
1531
  | "lint/complexity/useSimplifiedLogicExpression"
1475
1532
  | "lint/correctness/noChildrenProp"
@@ -1506,14 +1563,15 @@ type Category =
1506
1563
  | "lint/correctness/useValidForDirection"
1507
1564
  | "lint/correctness/useYield"
1508
1565
  | "lint/nursery/noApproximativeNumericConstant"
1509
- | "lint/nursery/noAriaHiddenOnFocusable"
1510
- | "lint/nursery/noDefaultExport"
1511
1566
  | "lint/nursery/noDuplicateJsonKeys"
1512
1567
  | "lint/nursery/noEmptyBlockStatements"
1513
- | "lint/nursery/noImplicitAnyLet"
1568
+ | "lint/nursery/noEmptyTypeParameters"
1569
+ | "lint/nursery/noGlobalAssign"
1570
+ | "lint/nursery/noGlobalEval"
1514
1571
  | "lint/nursery/noInvalidUseBeforeDeclaration"
1515
1572
  | "lint/nursery/noMisleadingCharacterClass"
1516
1573
  | "lint/nursery/noNodejsModules"
1574
+ | "lint/nursery/noThenProperty"
1517
1575
  | "lint/nursery/noTypeOnlyImportAttributes"
1518
1576
  | "lint/nursery/noUnusedImports"
1519
1577
  | "lint/nursery/noUnusedPrivateClassMembers"
@@ -1522,19 +1580,21 @@ type Category =
1522
1580
  | "lint/nursery/useAwait"
1523
1581
  | "lint/nursery/useBiomeSuppressionComment"
1524
1582
  | "lint/nursery/useExportType"
1583
+ | "lint/nursery/useFilenamingConvention"
1525
1584
  | "lint/nursery/useForOf"
1526
1585
  | "lint/nursery/useGroupedTypeImport"
1527
1586
  | "lint/nursery/useImportRestrictions"
1528
- | "lint/nursery/useNodeImportProtocol"
1529
- | "lint/nursery/useRegexLiterals"
1587
+ | "lint/nursery/useImportType"
1588
+ | "lint/nursery/useNodejsImportProtocol"
1589
+ | "lint/nursery/useNumberNamespace"
1530
1590
  | "lint/nursery/useShorthandFunctionType"
1531
- | "lint/nursery/useValidAriaRole"
1532
1591
  | "lint/performance/noAccumulatingSpread"
1533
1592
  | "lint/performance/noDelete"
1534
1593
  | "lint/security/noDangerouslySetInnerHtml"
1535
1594
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
1536
1595
  | "lint/style/noArguments"
1537
1596
  | "lint/style/noCommaOperator"
1597
+ | "lint/style/noDefaultExport"
1538
1598
  | "lint/style/noImplicitBoolean"
1539
1599
  | "lint/style/noInferrableTypes"
1540
1600
  | "lint/style/noNamespace"
@@ -1550,6 +1610,7 @@ type Category =
1550
1610
  | "lint/style/useAsConstAssertion"
1551
1611
  | "lint/style/useBlockStatements"
1552
1612
  | "lint/style/useCollapsedElseIf"
1613
+ | "lint/style/useConsistentArrayType"
1553
1614
  | "lint/style/useConst"
1554
1615
  | "lint/style/useDefaultParameterLast"
1555
1616
  | "lint/style/useEnumInitializers"
@@ -1592,6 +1653,7 @@ type Category =
1592
1653
  | "lint/suspicious/noFunctionAssign"
1593
1654
  | "lint/suspicious/noGlobalIsFinite"
1594
1655
  | "lint/suspicious/noGlobalIsNan"
1656
+ | "lint/suspicious/noImplicitAnyLet"
1595
1657
  | "lint/suspicious/noImportAssign"
1596
1658
  | "lint/suspicious/noLabelVar"
1597
1659
  | "lint/suspicious/noMisleadingInstantiator"
package/biome_wasm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -32,6 +32,23 @@ function addHeapObject(obj) {
32
32
  return idx;
33
33
  }
34
34
 
35
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
+
37
+ cachedTextDecoder.decode();
38
+
39
+ let cachedUint8Memory0 = null;
40
+
41
+ function getUint8Memory0() {
42
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
43
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
44
+ }
45
+ return cachedUint8Memory0;
46
+ }
47
+
48
+ function getStringFromWasm0(ptr, len) {
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
35
52
  function isLikeNone(x) {
36
53
  return x === undefined || x === null;
37
54
  }
@@ -56,15 +73,6 @@ function getInt32Memory0() {
56
73
 
57
74
  let WASM_VECTOR_LEN = 0;
58
75
 
59
- let cachedUint8Memory0 = null;
60
-
61
- function getUint8Memory0() {
62
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
63
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
64
- }
65
- return cachedUint8Memory0;
66
- }
67
-
68
76
  let cachedTextEncoder = new TextEncoder('utf-8');
69
77
 
70
78
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,14 +126,6 @@ function passStringToWasm0(arg, malloc, realloc) {
118
126
  return ptr;
119
127
  }
120
128
 
121
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
122
-
123
- cachedTextDecoder.decode();
124
-
125
- function getStringFromWasm0(ptr, len) {
126
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
127
- }
128
-
129
129
  let cachedBigInt64Memory0 = null;
130
130
 
131
131
  function getBigInt64Memory0() {
@@ -701,6 +701,11 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
701
701
  return addHeapObject(ret);
702
702
  };
703
703
 
704
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
705
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
706
+ return addHeapObject(ret);
707
+ };
708
+
704
709
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
705
710
  const obj = getObject(arg1);
706
711
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -728,11 +733,6 @@ module.exports.__wbindgen_is_string = function(arg0) {
728
733
  return ret;
729
734
  };
730
735
 
731
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
732
- const ret = new Error(getStringFromWasm0(arg0, arg1));
733
- return addHeapObject(ret);
734
- };
735
-
736
736
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
737
737
  const ret = getObject(arg0);
738
738
  return addHeapObject(ret);
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.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"]}
1
+ {"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.0","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"]}