@biomejs/wasm-nodejs 1.3.3-nightly.ced82da → 1.4.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 +66 -55
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -387,6 +387,10 @@ interface A11y {
|
|
|
387
387
|
* The scope prop should be used only on <th> elements.
|
|
388
388
|
*/
|
|
389
389
|
noHeaderScope?: RuleConfiguration;
|
|
390
|
+
/**
|
|
391
|
+
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
392
|
+
*/
|
|
393
|
+
noInteractiveElementToNoninteractiveRole?: RuleConfiguration;
|
|
390
394
|
/**
|
|
391
395
|
* Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
|
|
392
396
|
*/
|
|
@@ -423,6 +427,10 @@ interface A11y {
|
|
|
423
427
|
* Enforce that anchors have content and that the content is accessible to screen readers.
|
|
424
428
|
*/
|
|
425
429
|
useAnchorContent?: RuleConfiguration;
|
|
430
|
+
/**
|
|
431
|
+
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
432
|
+
*/
|
|
433
|
+
useAriaActivedescendantWithTabindex?: RuleConfiguration;
|
|
426
434
|
/**
|
|
427
435
|
* Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
|
|
428
436
|
*/
|
|
@@ -501,6 +509,10 @@ interface Complexity {
|
|
|
501
509
|
* This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
|
|
502
510
|
*/
|
|
503
511
|
noStaticOnlyClass?: RuleConfiguration;
|
|
512
|
+
/**
|
|
513
|
+
* Disallow this and super in static contexts.
|
|
514
|
+
*/
|
|
515
|
+
noThisInStatic?: RuleConfiguration;
|
|
504
516
|
/**
|
|
505
517
|
* Disallow unnecessary catch clauses.
|
|
506
518
|
*/
|
|
@@ -549,6 +561,10 @@ interface Complexity {
|
|
|
549
561
|
* It enables the recommended rules for this group
|
|
550
562
|
*/
|
|
551
563
|
recommended?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* Use arrow functions over function expressions.
|
|
566
|
+
*/
|
|
567
|
+
useArrowFunction?: RuleConfiguration;
|
|
552
568
|
/**
|
|
553
569
|
* Promotes the use of .flatMap() when map().flat() are used together.
|
|
554
570
|
*/
|
|
@@ -591,6 +607,10 @@ interface Correctness {
|
|
|
591
607
|
* Disallow returning a value from a constructor.
|
|
592
608
|
*/
|
|
593
609
|
noConstructorReturn?: RuleConfiguration;
|
|
610
|
+
/**
|
|
611
|
+
* Disallow empty character classes in regular expression literals.
|
|
612
|
+
*/
|
|
613
|
+
noEmptyCharacterClassInRegex?: RuleConfiguration;
|
|
594
614
|
/**
|
|
595
615
|
* Disallows empty destructuring patterns.
|
|
596
616
|
*/
|
|
@@ -607,6 +627,10 @@ interface Correctness {
|
|
|
607
627
|
* Prevents the incorrect use of super() inside classes. It also checks whether a call super() is missing from classes that extends other constructors.
|
|
608
628
|
*/
|
|
609
629
|
noInvalidConstructorSuper?: RuleConfiguration;
|
|
630
|
+
/**
|
|
631
|
+
* Disallow new operators with global non-constructor functions.
|
|
632
|
+
*/
|
|
633
|
+
noInvalidNewBuiltin?: RuleConfiguration;
|
|
610
634
|
/**
|
|
611
635
|
* Disallow new operators with the Symbol object.
|
|
612
636
|
*/
|
|
@@ -710,9 +734,9 @@ interface Nursery {
|
|
|
710
734
|
*/
|
|
711
735
|
all?: boolean;
|
|
712
736
|
/**
|
|
713
|
-
*
|
|
737
|
+
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
714
738
|
*/
|
|
715
|
-
|
|
739
|
+
noAriaHiddenOnFocusable?: RuleConfiguration;
|
|
716
740
|
/**
|
|
717
741
|
* Disallow default exports.
|
|
718
742
|
*/
|
|
@@ -725,34 +749,10 @@ interface Nursery {
|
|
|
725
749
|
* Disallow empty block statements and static blocks.
|
|
726
750
|
*/
|
|
727
751
|
noEmptyBlockStatements?: RuleConfiguration;
|
|
728
|
-
/**
|
|
729
|
-
* Disallow empty character classes in regular expression literals.
|
|
730
|
-
*/
|
|
731
|
-
noEmptyCharacterClassInRegex?: RuleConfiguration;
|
|
732
752
|
/**
|
|
733
753
|
* Disallow use of implicit any type on variable declarations.
|
|
734
754
|
*/
|
|
735
755
|
noImplicitAnyLet?: RuleConfiguration;
|
|
736
|
-
/**
|
|
737
|
-
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
738
|
-
*/
|
|
739
|
-
noInteractiveElementToNoninteractiveRole?: RuleConfiguration;
|
|
740
|
-
/**
|
|
741
|
-
* Disallow new operators with global non-constructor functions.
|
|
742
|
-
*/
|
|
743
|
-
noInvalidNewBuiltin?: RuleConfiguration;
|
|
744
|
-
/**
|
|
745
|
-
* Enforce proper usage of new and constructor.
|
|
746
|
-
*/
|
|
747
|
-
noMisleadingInstantiator?: RuleConfiguration;
|
|
748
|
-
/**
|
|
749
|
-
* Disallow shorthand assign when variable appears on both sides.
|
|
750
|
-
*/
|
|
751
|
-
noMisrefactoredShorthandAssign?: RuleConfiguration;
|
|
752
|
-
/**
|
|
753
|
-
* Disallow this and super in static contexts.
|
|
754
|
-
*/
|
|
755
|
-
noThisInStatic?: RuleConfiguration;
|
|
756
756
|
/**
|
|
757
757
|
* Disallow unused imports.
|
|
758
758
|
*/
|
|
@@ -761,10 +761,6 @@ interface Nursery {
|
|
|
761
761
|
* Disallow unused private class members
|
|
762
762
|
*/
|
|
763
763
|
noUnusedPrivateClassMembers?: RuleConfiguration;
|
|
764
|
-
/**
|
|
765
|
-
* Disallow else block when the if block breaks early.
|
|
766
|
-
*/
|
|
767
|
-
noUselessElse?: RuleConfiguration;
|
|
768
764
|
/**
|
|
769
765
|
* Disallow unnecessary nested block statements.
|
|
770
766
|
*/
|
|
@@ -773,18 +769,6 @@ interface Nursery {
|
|
|
773
769
|
* It enables the recommended rules for this group
|
|
774
770
|
*/
|
|
775
771
|
recommended?: boolean;
|
|
776
|
-
/**
|
|
777
|
-
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
778
|
-
*/
|
|
779
|
-
useAriaActivedescendantWithTabindex?: RuleConfiguration;
|
|
780
|
-
/**
|
|
781
|
-
* Use arrow functions over function expressions.
|
|
782
|
-
*/
|
|
783
|
-
useArrowFunction?: RuleConfiguration;
|
|
784
|
-
/**
|
|
785
|
-
* Enforce the use of as const over literal type and type annotation.
|
|
786
|
-
*/
|
|
787
|
-
useAsConstAssertion?: RuleConfiguration;
|
|
788
772
|
/**
|
|
789
773
|
* Ensure async functions utilize await.
|
|
790
774
|
*/
|
|
@@ -798,9 +782,9 @@ interface Nursery {
|
|
|
798
782
|
*/
|
|
799
783
|
useImportRestrictions?: RuleConfiguration;
|
|
800
784
|
/**
|
|
801
|
-
*
|
|
785
|
+
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
|
|
802
786
|
*/
|
|
803
|
-
|
|
787
|
+
useRegexLiterals?: RuleConfiguration;
|
|
804
788
|
/**
|
|
805
789
|
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
806
790
|
*/
|
|
@@ -895,6 +879,10 @@ interface Style {
|
|
|
895
879
|
* Disallow template literals if interpolation and special-character handling are not needed
|
|
896
880
|
*/
|
|
897
881
|
noUnusedTemplateLiteral?: RuleConfiguration;
|
|
882
|
+
/**
|
|
883
|
+
* Disallow else block when the if block breaks early.
|
|
884
|
+
*/
|
|
885
|
+
noUselessElse?: RuleConfiguration;
|
|
898
886
|
/**
|
|
899
887
|
* Disallow the use of var
|
|
900
888
|
*/
|
|
@@ -903,6 +891,10 @@ interface Style {
|
|
|
903
891
|
* It enables the recommended rules for this group
|
|
904
892
|
*/
|
|
905
893
|
recommended?: boolean;
|
|
894
|
+
/**
|
|
895
|
+
* Enforce the use of as const over literal type and type annotation.
|
|
896
|
+
*/
|
|
897
|
+
useAsConstAssertion?: RuleConfiguration;
|
|
906
898
|
/**
|
|
907
899
|
* Requires following curly brace conventions.
|
|
908
900
|
*/
|
|
@@ -951,6 +943,10 @@ interface Style {
|
|
|
951
943
|
* When expressing array types, this rule promotes the usage of T[] shorthand instead of Array<T>.
|
|
952
944
|
*/
|
|
953
945
|
useShorthandArrayType?: RuleConfiguration;
|
|
946
|
+
/**
|
|
947
|
+
* Require assignment operator shorthand where possible.
|
|
948
|
+
*/
|
|
949
|
+
useShorthandAssign?: RuleConfiguration;
|
|
954
950
|
/**
|
|
955
951
|
* Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.
|
|
956
952
|
*/
|
|
@@ -973,6 +969,10 @@ interface Suspicious {
|
|
|
973
969
|
* It enables ALL rules for this group.
|
|
974
970
|
*/
|
|
975
971
|
all?: boolean;
|
|
972
|
+
/**
|
|
973
|
+
* 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.
|
|
974
|
+
*/
|
|
975
|
+
noApproximativeNumericConstant?: RuleConfiguration;
|
|
976
976
|
/**
|
|
977
977
|
* Discourage the usage of Array index in keys.
|
|
978
978
|
*/
|
|
@@ -1085,6 +1085,14 @@ interface Suspicious {
|
|
|
1085
1085
|
* Disallow labels that share a name with a variable
|
|
1086
1086
|
*/
|
|
1087
1087
|
noLabelVar?: RuleConfiguration;
|
|
1088
|
+
/**
|
|
1089
|
+
* Enforce proper usage of new and constructor.
|
|
1090
|
+
*/
|
|
1091
|
+
noMisleadingInstantiator?: RuleConfiguration;
|
|
1092
|
+
/**
|
|
1093
|
+
* Disallow shorthand assign when variable appears on both sides.
|
|
1094
|
+
*/
|
|
1095
|
+
noMisrefactoredShorthandAssign?: RuleConfiguration;
|
|
1088
1096
|
/**
|
|
1089
1097
|
* Disallow direct use of Object.prototype builtins.
|
|
1090
1098
|
*/
|
|
@@ -1329,6 +1337,7 @@ type Category =
|
|
|
1329
1337
|
| "lint/a11y/noBlankTarget"
|
|
1330
1338
|
| "lint/a11y/noDistractingElements"
|
|
1331
1339
|
| "lint/a11y/noHeaderScope"
|
|
1340
|
+
| "lint/a11y/noInteractiveElementToNoninteractiveRole"
|
|
1332
1341
|
| "lint/a11y/noNoninteractiveElementToInteractiveRole"
|
|
1333
1342
|
| "lint/a11y/noNoninteractiveTabindex"
|
|
1334
1343
|
| "lint/a11y/noPositiveTabindex"
|
|
@@ -1337,6 +1346,7 @@ type Category =
|
|
|
1337
1346
|
| "lint/a11y/noSvgWithoutTitle"
|
|
1338
1347
|
| "lint/a11y/useAltText"
|
|
1339
1348
|
| "lint/a11y/useAnchorContent"
|
|
1349
|
+
| "lint/a11y/useAriaActivedescendantWithTabindex"
|
|
1340
1350
|
| "lint/a11y/useAriaPropsForRole"
|
|
1341
1351
|
| "lint/a11y/useButtonType"
|
|
1342
1352
|
| "lint/a11y/useHeadingContent"
|
|
@@ -1355,6 +1365,7 @@ type Category =
|
|
|
1355
1365
|
| "lint/complexity/noForEach"
|
|
1356
1366
|
| "lint/complexity/noMultipleSpacesInRegularExpressionLiterals"
|
|
1357
1367
|
| "lint/complexity/noStaticOnlyClass"
|
|
1368
|
+
| "lint/complexity/noThisInStatic"
|
|
1358
1369
|
| "lint/complexity/noUselessCatch"
|
|
1359
1370
|
| "lint/complexity/noUselessConstructor"
|
|
1360
1371
|
| "lint/complexity/noUselessEmptyExport"
|
|
@@ -1366,6 +1377,7 @@ type Category =
|
|
|
1366
1377
|
| "lint/complexity/noUselessTypeConstraint"
|
|
1367
1378
|
| "lint/complexity/noVoid"
|
|
1368
1379
|
| "lint/complexity/noWith"
|
|
1380
|
+
| "lint/complexity/useArrowFunction"
|
|
1369
1381
|
| "lint/complexity/useFlatMap"
|
|
1370
1382
|
| "lint/complexity/useLiteralKeys"
|
|
1371
1383
|
| "lint/complexity/useOptionalChain"
|
|
@@ -1375,10 +1387,12 @@ type Category =
|
|
|
1375
1387
|
| "lint/correctness/noConstAssign"
|
|
1376
1388
|
| "lint/correctness/noConstantCondition"
|
|
1377
1389
|
| "lint/correctness/noConstructorReturn"
|
|
1390
|
+
| "lint/correctness/noEmptyCharacterClassInRegex"
|
|
1378
1391
|
| "lint/correctness/noEmptyPattern"
|
|
1379
1392
|
| "lint/correctness/noGlobalObjectCalls"
|
|
1380
1393
|
| "lint/correctness/noInnerDeclarations"
|
|
1381
1394
|
| "lint/correctness/noInvalidConstructorSuper"
|
|
1395
|
+
| "lint/correctness/noInvalidNewBuiltin"
|
|
1382
1396
|
| "lint/correctness/noNewSymbol"
|
|
1383
1397
|
| "lint/correctness/noNonoctalDecimalEscape"
|
|
1384
1398
|
| "lint/correctness/noPrecisionLoss"
|
|
@@ -1403,28 +1417,19 @@ type Category =
|
|
|
1403
1417
|
| "lint/correctness/useValidForDirection"
|
|
1404
1418
|
| "lint/correctness/useYield"
|
|
1405
1419
|
| "lint/nursery/noApproximativeNumericConstant"
|
|
1420
|
+
| "lint/nursery/noAriaHiddenOnFocusable"
|
|
1406
1421
|
| "lint/nursery/noDefaultExport"
|
|
1407
1422
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1408
1423
|
| "lint/nursery/noEmptyBlockStatements"
|
|
1409
|
-
| "lint/nursery/noEmptyCharacterClassInRegex"
|
|
1410
1424
|
| "lint/nursery/noImplicitAnyLet"
|
|
1411
|
-
| "lint/nursery/noInteractiveElementToNoninteractiveRole"
|
|
1412
|
-
| "lint/nursery/noInvalidNewBuiltin"
|
|
1413
|
-
| "lint/nursery/noMisleadingInstantiator"
|
|
1414
|
-
| "lint/nursery/noMisrefactoredShorthandAssign"
|
|
1415
|
-
| "lint/nursery/noThisInStatic"
|
|
1416
1425
|
| "lint/nursery/noUnusedImports"
|
|
1417
1426
|
| "lint/nursery/noUnusedPrivateClassMembers"
|
|
1418
|
-
| "lint/nursery/noUselessElse"
|
|
1419
1427
|
| "lint/nursery/noUselessLoneBlockStatements"
|
|
1420
|
-
| "lint/nursery/useAriaActivedescendantWithTabindex"
|
|
1421
|
-
| "lint/nursery/useArrowFunction"
|
|
1422
|
-
| "lint/nursery/useAsConstAssertion"
|
|
1423
1428
|
| "lint/nursery/useAwait"
|
|
1424
1429
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1425
1430
|
| "lint/nursery/useGroupedTypeImport"
|
|
1426
1431
|
| "lint/nursery/useImportRestrictions"
|
|
1427
|
-
| "lint/nursery/
|
|
1432
|
+
| "lint/nursery/useRegexLiterals"
|
|
1428
1433
|
| "lint/nursery/useValidAriaRole"
|
|
1429
1434
|
| "lint/performance/noAccumulatingSpread"
|
|
1430
1435
|
| "lint/performance/noDelete"
|
|
@@ -1442,7 +1447,9 @@ type Category =
|
|
|
1442
1447
|
| "lint/style/noRestrictedGlobals"
|
|
1443
1448
|
| "lint/style/noShoutyConstants"
|
|
1444
1449
|
| "lint/style/noUnusedTemplateLiteral"
|
|
1450
|
+
| "lint/style/noUselessElse"
|
|
1445
1451
|
| "lint/style/noVar"
|
|
1452
|
+
| "lint/style/useAsConstAssertion"
|
|
1446
1453
|
| "lint/style/useBlockStatements"
|
|
1447
1454
|
| "lint/style/useCollapsedElseIf"
|
|
1448
1455
|
| "lint/style/useConst"
|
|
@@ -1455,10 +1462,12 @@ type Category =
|
|
|
1455
1462
|
| "lint/style/useNumericLiterals"
|
|
1456
1463
|
| "lint/style/useSelfClosingElements"
|
|
1457
1464
|
| "lint/style/useShorthandArrayType"
|
|
1465
|
+
| "lint/style/useShorthandAssign"
|
|
1458
1466
|
| "lint/style/useSingleCaseStatement"
|
|
1459
1467
|
| "lint/style/useSingleVarDeclarator"
|
|
1460
1468
|
| "lint/style/useTemplate"
|
|
1461
1469
|
| "lint/style/useWhile"
|
|
1470
|
+
| "lint/suspicious/noApproximativeNumericConstant"
|
|
1462
1471
|
| "lint/suspicious/noArrayIndexKey"
|
|
1463
1472
|
| "lint/suspicious/noAssignInExpressions"
|
|
1464
1473
|
| "lint/suspicious/noAsyncPromiseExecutor"
|
|
@@ -1487,6 +1496,8 @@ type Category =
|
|
|
1487
1496
|
| "lint/suspicious/noGlobalIsNan"
|
|
1488
1497
|
| "lint/suspicious/noImportAssign"
|
|
1489
1498
|
| "lint/suspicious/noLabelVar"
|
|
1499
|
+
| "lint/suspicious/noMisleadingInstantiator"
|
|
1500
|
+
| "lint/suspicious/noMisrefactoredShorthandAssign"
|
|
1490
1501
|
| "lint/suspicious/noPrototypeBuiltins"
|
|
1491
1502
|
| "lint/suspicious/noRedeclare"
|
|
1492
1503
|
| "lint/suspicious/noRedundantUseStrict"
|
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.
|
|
1
|
+
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.4.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"]}
|