@biomejs/wasm-nodejs 1.2.2-nightly.ee2e2ab → 1.3.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 +147 -51
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -55,6 +55,10 @@ interface Configuration {
|
|
|
55
55
|
* The configuration of the import sorting
|
|
56
56
|
*/
|
|
57
57
|
organizeImports?: OrganizeImports;
|
|
58
|
+
/**
|
|
59
|
+
* A list of granular patterns that should be applied only to a sub set of files
|
|
60
|
+
*/
|
|
61
|
+
overrides?: Overrides;
|
|
58
62
|
/**
|
|
59
63
|
* The configuration of the VCS integration
|
|
60
64
|
*/
|
|
@@ -169,6 +173,9 @@ interface OrganizeImports {
|
|
|
169
173
|
*/
|
|
170
174
|
include?: StringSet;
|
|
171
175
|
}
|
|
176
|
+
interface Overrides {
|
|
177
|
+
list: OverridePattern[];
|
|
178
|
+
}
|
|
172
179
|
interface VcsConfiguration {
|
|
173
180
|
/**
|
|
174
181
|
* The kind of client.
|
|
@@ -296,6 +303,36 @@ interface Rules {
|
|
|
296
303
|
style?: Style;
|
|
297
304
|
suspicious?: Suspicious;
|
|
298
305
|
}
|
|
306
|
+
interface OverridePattern {
|
|
307
|
+
/**
|
|
308
|
+
* Specific configuration for the Json language
|
|
309
|
+
*/
|
|
310
|
+
formatter?: OverrideFormatterConfiguration;
|
|
311
|
+
/**
|
|
312
|
+
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
|
|
313
|
+
*/
|
|
314
|
+
ignore?: StringSet;
|
|
315
|
+
/**
|
|
316
|
+
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
|
|
317
|
+
*/
|
|
318
|
+
include?: StringSet;
|
|
319
|
+
/**
|
|
320
|
+
* Specific configuration for the JavaScript language
|
|
321
|
+
*/
|
|
322
|
+
javascript?: JavascriptConfiguration;
|
|
323
|
+
/**
|
|
324
|
+
* Specific configuration for the Json language
|
|
325
|
+
*/
|
|
326
|
+
json?: JsonConfiguration;
|
|
327
|
+
/**
|
|
328
|
+
* Specific configuration for the Json language
|
|
329
|
+
*/
|
|
330
|
+
linter?: OverrideLinterConfiguration;
|
|
331
|
+
/**
|
|
332
|
+
* Specific configuration for the Json language
|
|
333
|
+
*/
|
|
334
|
+
organizeImports?: OverrideOrganizeImportsConfiguration;
|
|
335
|
+
}
|
|
299
336
|
type VcsClientKind = "git";
|
|
300
337
|
type ArrowParentheses = "always" | "asNeeded";
|
|
301
338
|
type QuoteStyle = "double" | "single";
|
|
@@ -425,6 +462,10 @@ interface Complexity {
|
|
|
425
462
|
* Disallow primitive type aliases and misleading types.
|
|
426
463
|
*/
|
|
427
464
|
noBannedTypes?: RuleConfiguration;
|
|
465
|
+
/**
|
|
466
|
+
* Disallow functions that exceed a given Cognitive Complexity score.
|
|
467
|
+
*/
|
|
468
|
+
noExcessiveCognitiveComplexity?: RuleConfiguration;
|
|
428
469
|
/**
|
|
429
470
|
* Disallow unnecessary boolean casts
|
|
430
471
|
*/
|
|
@@ -477,6 +518,10 @@ interface Complexity {
|
|
|
477
518
|
* Disallow using any or unknown as type constraint.
|
|
478
519
|
*/
|
|
479
520
|
noUselessTypeConstraint?: RuleConfiguration;
|
|
521
|
+
/**
|
|
522
|
+
* Disallow the use of void operators, which is not a familiar operator.
|
|
523
|
+
*/
|
|
524
|
+
noVoid?: RuleConfiguration;
|
|
480
525
|
/**
|
|
481
526
|
* Disallow with statements in non-strict contexts.
|
|
482
527
|
*/
|
|
@@ -619,6 +664,14 @@ interface Correctness {
|
|
|
619
664
|
* It enables the recommended rules for this group
|
|
620
665
|
*/
|
|
621
666
|
recommended?: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* Enforce all dependencies are correctly specified in a React hook.
|
|
669
|
+
*/
|
|
670
|
+
useExhaustiveDependencies?: RuleConfiguration;
|
|
671
|
+
/**
|
|
672
|
+
* Enforce that all React hooks are being called from the Top Level component functions.
|
|
673
|
+
*/
|
|
674
|
+
useHookAtTopLevel?: RuleConfiguration;
|
|
622
675
|
/**
|
|
623
676
|
* Require calls to isNaN() when checking for NaN.
|
|
624
677
|
*/
|
|
@@ -637,42 +690,26 @@ interface Nursery {
|
|
|
637
690
|
* It enables ALL rules for this group.
|
|
638
691
|
*/
|
|
639
692
|
all?: boolean;
|
|
640
|
-
/**
|
|
641
|
-
* Disallow the use of spread (...) syntax on accumulators.
|
|
642
|
-
*/
|
|
643
|
-
noAccumulatingSpread?: RuleConfiguration;
|
|
644
693
|
/**
|
|
645
694
|
* 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.
|
|
646
695
|
*/
|
|
647
696
|
noApproximativeNumericConstant?: RuleConfiguration;
|
|
648
|
-
/**
|
|
649
|
-
* Disallow void type outside of generic or return types.
|
|
650
|
-
*/
|
|
651
|
-
noConfusingVoidType?: RuleConfiguration;
|
|
652
697
|
/**
|
|
653
698
|
* Disallow two keys with the same name inside a JSON object.
|
|
654
699
|
*/
|
|
655
700
|
noDuplicateJsonKeys?: RuleConfiguration;
|
|
656
701
|
/**
|
|
657
|
-
* Disallow empty
|
|
658
|
-
*/
|
|
659
|
-
noEmptyCharacterClassInRegex?: RuleConfiguration;
|
|
660
|
-
/**
|
|
661
|
-
* Disallow functions that exceed a given Cognitive Complexity score.
|
|
662
|
-
*/
|
|
663
|
-
noExcessiveComplexity?: RuleConfiguration;
|
|
664
|
-
/**
|
|
665
|
-
* Disallow fallthrough of switch clauses.
|
|
702
|
+
* Disallow empty block statements and static blocks.
|
|
666
703
|
*/
|
|
667
|
-
|
|
704
|
+
noEmptyBlockStatements?: RuleConfiguration;
|
|
668
705
|
/**
|
|
669
|
-
*
|
|
706
|
+
* Disallow empty character classes in regular expression literals.
|
|
670
707
|
*/
|
|
671
|
-
|
|
708
|
+
noEmptyCharacterClassInRegex?: RuleConfiguration;
|
|
672
709
|
/**
|
|
673
|
-
*
|
|
710
|
+
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
674
711
|
*/
|
|
675
|
-
|
|
712
|
+
noInteractiveElementToNoninteractiveRole?: RuleConfiguration;
|
|
676
713
|
/**
|
|
677
714
|
* Disallow new operators with global non-constructor functions.
|
|
678
715
|
*/
|
|
@@ -694,13 +731,17 @@ interface Nursery {
|
|
|
694
731
|
*/
|
|
695
732
|
noUselessElse?: RuleConfiguration;
|
|
696
733
|
/**
|
|
697
|
-
* Disallow
|
|
734
|
+
* Disallow unnecessary nested block statements.
|
|
698
735
|
*/
|
|
699
|
-
|
|
736
|
+
noUselessLoneBlockStatements?: RuleConfiguration;
|
|
700
737
|
/**
|
|
701
738
|
* It enables the recommended rules for this group
|
|
702
739
|
*/
|
|
703
740
|
recommended?: boolean;
|
|
741
|
+
/**
|
|
742
|
+
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
743
|
+
*/
|
|
744
|
+
useAriaActivedescendantWithTabindex?: RuleConfiguration;
|
|
704
745
|
/**
|
|
705
746
|
* Use arrow functions over function expressions.
|
|
706
747
|
*/
|
|
@@ -709,30 +750,14 @@ interface Nursery {
|
|
|
709
750
|
* Enforce the use of as const over literal type and type annotation.
|
|
710
751
|
*/
|
|
711
752
|
useAsConstAssertion?: RuleConfiguration;
|
|
712
|
-
/**
|
|
713
|
-
* Enforce using else if instead of nested if in else clauses.
|
|
714
|
-
*/
|
|
715
|
-
useCollapsedElseIf?: RuleConfiguration;
|
|
716
|
-
/**
|
|
717
|
-
* Enforce all dependencies are correctly specified in a React hook.
|
|
718
|
-
*/
|
|
719
|
-
useExhaustiveDependencies?: RuleConfiguration;
|
|
720
753
|
/**
|
|
721
754
|
* Enforce the use of import type when an import only has specifiers with type qualifier.
|
|
722
755
|
*/
|
|
723
756
|
useGroupedTypeImport?: RuleConfiguration;
|
|
724
|
-
/**
|
|
725
|
-
* Enforce that all React hooks are being called from the Top Level component functions.
|
|
726
|
-
*/
|
|
727
|
-
useHookAtTopLevel?: RuleConfiguration;
|
|
728
757
|
/**
|
|
729
758
|
* Disallows package private imports.
|
|
730
759
|
*/
|
|
731
760
|
useImportRestrictions?: RuleConfiguration;
|
|
732
|
-
/**
|
|
733
|
-
* Use Array.isArray() instead of instanceof Array.
|
|
734
|
-
*/
|
|
735
|
-
useIsArray?: RuleConfiguration;
|
|
736
761
|
/**
|
|
737
762
|
* Require assignment operator shorthand where possible.
|
|
738
763
|
*/
|
|
@@ -743,6 +768,10 @@ interface Performance {
|
|
|
743
768
|
* It enables ALL rules for this group.
|
|
744
769
|
*/
|
|
745
770
|
all?: boolean;
|
|
771
|
+
/**
|
|
772
|
+
* Disallow the use of spread (...) syntax on accumulators.
|
|
773
|
+
*/
|
|
774
|
+
noAccumulatingSpread?: RuleConfiguration;
|
|
746
775
|
/**
|
|
747
776
|
* Disallow the use of the delete operator.
|
|
748
777
|
*/
|
|
@@ -835,6 +864,10 @@ interface Style {
|
|
|
835
864
|
* Requires following curly brace conventions.
|
|
836
865
|
*/
|
|
837
866
|
useBlockStatements?: RuleConfiguration;
|
|
867
|
+
/**
|
|
868
|
+
* Enforce using else if instead of nested if in else clauses.
|
|
869
|
+
*/
|
|
870
|
+
useCollapsedElseIf?: RuleConfiguration;
|
|
838
871
|
/**
|
|
839
872
|
* Require const declarations for variables that are never reassigned after declared.
|
|
840
873
|
*/
|
|
@@ -929,6 +962,10 @@ interface Suspicious {
|
|
|
929
962
|
* Disallow labeled statements that are not loops.
|
|
930
963
|
*/
|
|
931
964
|
noConfusingLabels?: RuleConfiguration;
|
|
965
|
+
/**
|
|
966
|
+
* Disallow void type outside of generic or return types.
|
|
967
|
+
*/
|
|
968
|
+
noConfusingVoidType?: RuleConfiguration;
|
|
932
969
|
/**
|
|
933
970
|
* Disallow the use of console.log
|
|
934
971
|
*/
|
|
@@ -981,10 +1018,22 @@ interface Suspicious {
|
|
|
981
1018
|
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
982
1019
|
*/
|
|
983
1020
|
noExtraNonNullAssertion?: RuleConfiguration;
|
|
1021
|
+
/**
|
|
1022
|
+
* Disallow fallthrough of switch clauses.
|
|
1023
|
+
*/
|
|
1024
|
+
noFallthroughSwitchClause?: RuleConfiguration;
|
|
984
1025
|
/**
|
|
985
1026
|
* Disallow reassigning function declarations.
|
|
986
1027
|
*/
|
|
987
1028
|
noFunctionAssign?: RuleConfiguration;
|
|
1029
|
+
/**
|
|
1030
|
+
* Use Number.isFinite instead of global isFinite.
|
|
1031
|
+
*/
|
|
1032
|
+
noGlobalIsFinite?: RuleConfiguration;
|
|
1033
|
+
/**
|
|
1034
|
+
* Use Number.isNaN instead of global isNaN.
|
|
1035
|
+
*/
|
|
1036
|
+
noGlobalIsNan?: RuleConfiguration;
|
|
988
1037
|
/**
|
|
989
1038
|
* Disallow assigning to imported bindings
|
|
990
1039
|
*/
|
|
@@ -1037,6 +1086,10 @@ interface Suspicious {
|
|
|
1037
1086
|
* Enforce get methods to always return a value.
|
|
1038
1087
|
*/
|
|
1039
1088
|
useGetterReturn?: RuleConfiguration;
|
|
1089
|
+
/**
|
|
1090
|
+
* Use Array.isArray() instead of instanceof Array.
|
|
1091
|
+
*/
|
|
1092
|
+
useIsArray?: RuleConfiguration;
|
|
1040
1093
|
/**
|
|
1041
1094
|
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
1042
1095
|
*/
|
|
@@ -1046,6 +1099,45 @@ interface Suspicious {
|
|
|
1046
1099
|
*/
|
|
1047
1100
|
useValidTypeof?: RuleConfiguration;
|
|
1048
1101
|
}
|
|
1102
|
+
interface OverrideFormatterConfiguration {
|
|
1103
|
+
enabled?: boolean;
|
|
1104
|
+
/**
|
|
1105
|
+
* Stores whether formatting should be allowed to proceed if a given file has syntax errors
|
|
1106
|
+
*/
|
|
1107
|
+
formatWithErrors?: boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
|
|
1110
|
+
*/
|
|
1111
|
+
indentSize?: number;
|
|
1112
|
+
/**
|
|
1113
|
+
* The indent style.
|
|
1114
|
+
*/
|
|
1115
|
+
indentStyle?: PlainIndentStyle;
|
|
1116
|
+
/**
|
|
1117
|
+
* The size of the indentation, 2 by default
|
|
1118
|
+
*/
|
|
1119
|
+
indentWidth?: number;
|
|
1120
|
+
/**
|
|
1121
|
+
* What's the max width of a line. Defaults to 80.
|
|
1122
|
+
*/
|
|
1123
|
+
lineWidth?: LineWidth;
|
|
1124
|
+
}
|
|
1125
|
+
interface OverrideLinterConfiguration {
|
|
1126
|
+
/**
|
|
1127
|
+
* if `false`, it disables the feature and the linter won't be executed. `true` by default
|
|
1128
|
+
*/
|
|
1129
|
+
enabled?: boolean;
|
|
1130
|
+
/**
|
|
1131
|
+
* List of rules
|
|
1132
|
+
*/
|
|
1133
|
+
rules?: Rules;
|
|
1134
|
+
}
|
|
1135
|
+
interface OverrideOrganizeImportsConfiguration {
|
|
1136
|
+
/**
|
|
1137
|
+
* if `false`, it disables the feature and the linter won't be executed. `true` by default
|
|
1138
|
+
*/
|
|
1139
|
+
enabled?: boolean;
|
|
1140
|
+
}
|
|
1049
1141
|
type RuleConfiguration = RulePlainConfiguration | RuleWithOptions;
|
|
1050
1142
|
type RulePlainConfiguration = "warn" | "error" | "off";
|
|
1051
1143
|
interface RuleWithOptions {
|
|
@@ -1203,6 +1295,7 @@ type Category =
|
|
|
1203
1295
|
| "lint/a11y/useValidAriaValues"
|
|
1204
1296
|
| "lint/a11y/useValidLang"
|
|
1205
1297
|
| "lint/complexity/noBannedTypes"
|
|
1298
|
+
| "lint/complexity/noExcessiveCognitiveComplexity"
|
|
1206
1299
|
| "lint/complexity/noExtraBooleanCast"
|
|
1207
1300
|
| "lint/complexity/noForEach"
|
|
1208
1301
|
| "lint/complexity/noMultipleSpacesInRegularExpressionLiterals"
|
|
@@ -1216,6 +1309,7 @@ type Category =
|
|
|
1216
1309
|
| "lint/complexity/noUselessSwitchCase"
|
|
1217
1310
|
| "lint/complexity/noUselessThisAlias"
|
|
1218
1311
|
| "lint/complexity/noUselessTypeConstraint"
|
|
1312
|
+
| "lint/complexity/noVoid"
|
|
1219
1313
|
| "lint/complexity/noWith"
|
|
1220
1314
|
| "lint/complexity/useFlatMap"
|
|
1221
1315
|
| "lint/complexity/useLiteralKeys"
|
|
@@ -1248,34 +1342,30 @@ type Category =
|
|
|
1248
1342
|
| "lint/correctness/noUnusedVariables"
|
|
1249
1343
|
| "lint/correctness/noVoidElementsWithChildren"
|
|
1250
1344
|
| "lint/correctness/noVoidTypeReturn"
|
|
1345
|
+
| "lint/correctness/useExhaustiveDependencies"
|
|
1346
|
+
| "lint/correctness/useHookAtTopLevel"
|
|
1251
1347
|
| "lint/correctness/useIsNan"
|
|
1252
1348
|
| "lint/correctness/useValidForDirection"
|
|
1253
1349
|
| "lint/correctness/useYield"
|
|
1254
|
-
| "lint/nursery/noAccumulatingSpread"
|
|
1255
1350
|
| "lint/nursery/noApproximativeNumericConstant"
|
|
1256
|
-
| "lint/nursery/noConfusingVoidType"
|
|
1257
1351
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1352
|
+
| "lint/nursery/noEmptyBlockStatements"
|
|
1258
1353
|
| "lint/nursery/noEmptyCharacterClassInRegex"
|
|
1259
|
-
| "lint/nursery/
|
|
1260
|
-
| "lint/nursery/noFallthroughSwitchClause"
|
|
1261
|
-
| "lint/nursery/noGlobalIsFinite"
|
|
1262
|
-
| "lint/nursery/noGlobalIsNan"
|
|
1354
|
+
| "lint/nursery/noInteractiveElementToNoninteractiveRole"
|
|
1263
1355
|
| "lint/nursery/noInvalidNewBuiltin"
|
|
1264
1356
|
| "lint/nursery/noMisleadingInstantiator"
|
|
1265
1357
|
| "lint/nursery/noMisrefactoredShorthandAssign"
|
|
1266
1358
|
| "lint/nursery/noUnusedImports"
|
|
1267
1359
|
| "lint/nursery/noUselessElse"
|
|
1268
|
-
| "lint/nursery/
|
|
1360
|
+
| "lint/nursery/noUselessLoneBlockStatements"
|
|
1361
|
+
| "lint/nursery/useAriaActivedescendantWithTabindex"
|
|
1269
1362
|
| "lint/nursery/useArrowFunction"
|
|
1270
1363
|
| "lint/nursery/useAsConstAssertion"
|
|
1271
1364
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1272
|
-
| "lint/nursery/useCollapsedElseIf"
|
|
1273
|
-
| "lint/nursery/useExhaustiveDependencies"
|
|
1274
1365
|
| "lint/nursery/useGroupedTypeImport"
|
|
1275
|
-
| "lint/nursery/useHookAtTopLevel"
|
|
1276
1366
|
| "lint/nursery/useImportRestrictions"
|
|
1277
|
-
| "lint/nursery/useIsArray"
|
|
1278
1367
|
| "lint/nursery/useShorthandAssign"
|
|
1368
|
+
| "lint/performance/noAccumulatingSpread"
|
|
1279
1369
|
| "lint/performance/noDelete"
|
|
1280
1370
|
| "lint/security/noDangerouslySetInnerHtml"
|
|
1281
1371
|
| "lint/security/noDangerouslySetInnerHtmlWithChildren"
|
|
@@ -1293,6 +1383,7 @@ type Category =
|
|
|
1293
1383
|
| "lint/style/noUnusedTemplateLiteral"
|
|
1294
1384
|
| "lint/style/noVar"
|
|
1295
1385
|
| "lint/style/useBlockStatements"
|
|
1386
|
+
| "lint/style/useCollapsedElseIf"
|
|
1296
1387
|
| "lint/style/useConst"
|
|
1297
1388
|
| "lint/style/useDefaultParameterLast"
|
|
1298
1389
|
| "lint/style/useEnumInitializers"
|
|
@@ -1315,6 +1406,7 @@ type Category =
|
|
|
1315
1406
|
| "lint/suspicious/noCommentText"
|
|
1316
1407
|
| "lint/suspicious/noCompareNegZero"
|
|
1317
1408
|
| "lint/suspicious/noConfusingLabels"
|
|
1409
|
+
| "lint/suspicious/noConfusingVoidType"
|
|
1318
1410
|
| "lint/suspicious/noConsoleLog"
|
|
1319
1411
|
| "lint/suspicious/noConstEnum"
|
|
1320
1412
|
| "lint/suspicious/noControlCharactersInRegex"
|
|
@@ -1328,7 +1420,10 @@ type Category =
|
|
|
1328
1420
|
| "lint/suspicious/noEmptyInterface"
|
|
1329
1421
|
| "lint/suspicious/noExplicitAny"
|
|
1330
1422
|
| "lint/suspicious/noExtraNonNullAssertion"
|
|
1423
|
+
| "lint/suspicious/noFallthroughSwitchClause"
|
|
1331
1424
|
| "lint/suspicious/noFunctionAssign"
|
|
1425
|
+
| "lint/suspicious/noGlobalIsFinite"
|
|
1426
|
+
| "lint/suspicious/noGlobalIsNan"
|
|
1332
1427
|
| "lint/suspicious/noImportAssign"
|
|
1333
1428
|
| "lint/suspicious/noLabelVar"
|
|
1334
1429
|
| "lint/suspicious/noPrototypeBuiltins"
|
|
@@ -1341,6 +1436,7 @@ type Category =
|
|
|
1341
1436
|
| "lint/suspicious/noUnsafeNegation"
|
|
1342
1437
|
| "lint/suspicious/useDefaultSwitchClauseLast"
|
|
1343
1438
|
| "lint/suspicious/useGetterReturn"
|
|
1439
|
+
| "lint/suspicious/useIsArray"
|
|
1344
1440
|
| "lint/suspicious/useNamespaceKeyword"
|
|
1345
1441
|
| "lint/suspicious/useValidTypeof"
|
|
1346
1442
|
| "files/missingHandler"
|
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.3.0","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"]}
|