@biomejs/wasm-nodejs 1.2.0 → 1.2.2-nightly.1e3fc94
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 +88 -14
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -63,13 +63,17 @@ interface Configuration {
|
|
|
63
63
|
type StringSet = string[];
|
|
64
64
|
interface FilesConfiguration {
|
|
65
65
|
/**
|
|
66
|
-
* A list of Unix shell style patterns. Biome
|
|
66
|
+
* A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
|
|
67
67
|
*/
|
|
68
68
|
ignore?: StringSet;
|
|
69
69
|
/**
|
|
70
70
|
* Tells Biome to not emit diagnostics when handling files that doesn't know
|
|
71
71
|
*/
|
|
72
72
|
ignoreUnknown?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* A list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns.
|
|
75
|
+
*/
|
|
76
|
+
include?: StringSet;
|
|
73
77
|
/**
|
|
74
78
|
* The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
|
|
75
79
|
*/
|
|
@@ -86,13 +90,21 @@ interface FormatterConfiguration {
|
|
|
86
90
|
*/
|
|
87
91
|
ignore?: StringSet;
|
|
88
92
|
/**
|
|
89
|
-
*
|
|
93
|
+
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
|
|
94
|
+
*/
|
|
95
|
+
include?: StringSet;
|
|
96
|
+
/**
|
|
97
|
+
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
|
|
90
98
|
*/
|
|
91
99
|
indentSize?: number;
|
|
92
100
|
/**
|
|
93
101
|
* The indent style.
|
|
94
102
|
*/
|
|
95
103
|
indentStyle?: PlainIndentStyle;
|
|
104
|
+
/**
|
|
105
|
+
* The size of the indentation, 2 by default
|
|
106
|
+
*/
|
|
107
|
+
indentWidth?: number;
|
|
96
108
|
/**
|
|
97
109
|
* What's the max width of a line. Defaults to 80.
|
|
98
110
|
*/
|
|
@@ -134,6 +146,10 @@ interface LinterConfiguration {
|
|
|
134
146
|
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
|
|
135
147
|
*/
|
|
136
148
|
ignore?: StringSet;
|
|
149
|
+
/**
|
|
150
|
+
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
|
|
151
|
+
*/
|
|
152
|
+
include?: StringSet;
|
|
137
153
|
/**
|
|
138
154
|
* List of rules
|
|
139
155
|
*/
|
|
@@ -148,6 +164,10 @@ interface OrganizeImports {
|
|
|
148
164
|
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
|
|
149
165
|
*/
|
|
150
166
|
ignore?: StringSet;
|
|
167
|
+
/**
|
|
168
|
+
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
|
|
169
|
+
*/
|
|
170
|
+
include?: StringSet;
|
|
151
171
|
}
|
|
152
172
|
interface VcsConfiguration {
|
|
153
173
|
/**
|
|
@@ -188,6 +208,10 @@ interface JavascriptFormatter {
|
|
|
188
208
|
* The indent style applied to JavaScript (and its super languages) files.
|
|
189
209
|
*/
|
|
190
210
|
indentStyle?: PlainIndentStyle;
|
|
211
|
+
/**
|
|
212
|
+
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
|
|
213
|
+
*/
|
|
214
|
+
indentWidth?: number;
|
|
191
215
|
/**
|
|
192
216
|
* The type of quotes used in JSX. Defaults to double.
|
|
193
217
|
*/
|
|
@@ -230,21 +254,29 @@ interface JsonFormatter {
|
|
|
230
254
|
/**
|
|
231
255
|
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
232
256
|
*/
|
|
233
|
-
|
|
257
|
+
indentSize?: number;
|
|
234
258
|
/**
|
|
235
259
|
* The indent style applied to JSON (and its super languages) files.
|
|
236
260
|
*/
|
|
237
|
-
|
|
261
|
+
indentStyle?: PlainIndentStyle;
|
|
262
|
+
/**
|
|
263
|
+
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
264
|
+
*/
|
|
265
|
+
indentWidth?: number;
|
|
238
266
|
/**
|
|
239
267
|
* What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.
|
|
240
268
|
*/
|
|
241
|
-
|
|
269
|
+
lineWidth?: LineWidth;
|
|
242
270
|
}
|
|
243
271
|
interface JsonParser {
|
|
244
272
|
/**
|
|
245
273
|
* Allow parsing comments in `.json` files
|
|
246
274
|
*/
|
|
247
275
|
allowComments?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Allow parsing trailing commas in `.json` files
|
|
278
|
+
*/
|
|
279
|
+
allowTrailingCommas?: boolean;
|
|
248
280
|
}
|
|
249
281
|
interface Rules {
|
|
250
282
|
a11y?: A11y;
|
|
@@ -402,7 +434,7 @@ interface Complexity {
|
|
|
402
434
|
*/
|
|
403
435
|
noForEach?: RuleConfiguration;
|
|
404
436
|
/**
|
|
405
|
-
* Disallow unclear usage of
|
|
437
|
+
* Disallow unclear usage of consecutive space characters in regular expression literals
|
|
406
438
|
*/
|
|
407
439
|
noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration;
|
|
408
440
|
/**
|
|
@@ -556,7 +588,7 @@ interface Correctness {
|
|
|
556
588
|
*/
|
|
557
589
|
noUnreachable?: RuleConfiguration;
|
|
558
590
|
/**
|
|
559
|
-
* Ensures the super() constructor is called exactly once on every code
|
|
591
|
+
* Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass
|
|
560
592
|
*/
|
|
561
593
|
noUnreachableSuper?: RuleConfiguration;
|
|
562
594
|
/**
|
|
@@ -609,6 +641,10 @@ interface Nursery {
|
|
|
609
641
|
* Disallow the use of spread (...) syntax on accumulators.
|
|
610
642
|
*/
|
|
611
643
|
noAccumulatingSpread?: RuleConfiguration;
|
|
644
|
+
/**
|
|
645
|
+
* 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
|
+
*/
|
|
647
|
+
noApproximativeNumericConstant?: RuleConfiguration;
|
|
612
648
|
/**
|
|
613
649
|
* Disallow void type outside of generic or return types.
|
|
614
650
|
*/
|
|
@@ -618,7 +654,11 @@ interface Nursery {
|
|
|
618
654
|
*/
|
|
619
655
|
noDuplicateJsonKeys?: RuleConfiguration;
|
|
620
656
|
/**
|
|
621
|
-
* Disallow
|
|
657
|
+
* Disallow empty character classes in regular expression literals.
|
|
658
|
+
*/
|
|
659
|
+
noEmptyCharacterClassInRegex?: RuleConfiguration;
|
|
660
|
+
/**
|
|
661
|
+
* Disallow functions that exceed a given Cognitive Complexity score.
|
|
622
662
|
*/
|
|
623
663
|
noExcessiveComplexity?: RuleConfiguration;
|
|
624
664
|
/**
|
|
@@ -633,6 +673,22 @@ interface Nursery {
|
|
|
633
673
|
* Use Number.isNaN instead of global isNaN.
|
|
634
674
|
*/
|
|
635
675
|
noGlobalIsNan?: RuleConfiguration;
|
|
676
|
+
/**
|
|
677
|
+
* Disallow new operators with global non-constructor functions.
|
|
678
|
+
*/
|
|
679
|
+
noInvalidNewBuiltin?: RuleConfiguration;
|
|
680
|
+
/**
|
|
681
|
+
* Enforce proper usage of new and constructor.
|
|
682
|
+
*/
|
|
683
|
+
noMisleadingInstantiator?: RuleConfiguration;
|
|
684
|
+
/**
|
|
685
|
+
* Disallow unused imports.
|
|
686
|
+
*/
|
|
687
|
+
noUnusedImports?: RuleConfiguration;
|
|
688
|
+
/**
|
|
689
|
+
* Disallow else block when the if block breaks early.
|
|
690
|
+
*/
|
|
691
|
+
noUselessElse?: RuleConfiguration;
|
|
636
692
|
/**
|
|
637
693
|
* Disallow the use of void operators, which is not a familiar operator.
|
|
638
694
|
*/
|
|
@@ -645,6 +701,10 @@ interface Nursery {
|
|
|
645
701
|
* Use arrow functions over function expressions.
|
|
646
702
|
*/
|
|
647
703
|
useArrowFunction?: RuleConfiguration;
|
|
704
|
+
/**
|
|
705
|
+
* Enforce the use of as const over literal type and type annotation.
|
|
706
|
+
*/
|
|
707
|
+
useAsConstAssertion?: RuleConfiguration;
|
|
648
708
|
/**
|
|
649
709
|
* Enforce using else if instead of nested if in else clauses.
|
|
650
710
|
*/
|
|
@@ -669,6 +729,10 @@ interface Nursery {
|
|
|
669
729
|
* Use Array.isArray() instead of instanceof Array.
|
|
670
730
|
*/
|
|
671
731
|
useIsArray?: RuleConfiguration;
|
|
732
|
+
/**
|
|
733
|
+
* Require assignment operator shorthand where possible.
|
|
734
|
+
*/
|
|
735
|
+
useShorthandAssign?: RuleConfiguration;
|
|
672
736
|
}
|
|
673
737
|
interface Performance {
|
|
674
738
|
/**
|
|
@@ -728,7 +792,7 @@ interface Style {
|
|
|
728
792
|
*/
|
|
729
793
|
noNamespace?: RuleConfiguration;
|
|
730
794
|
/**
|
|
731
|
-
* Disallow negation in the condition of an if statement if it has an else clause
|
|
795
|
+
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
732
796
|
*/
|
|
733
797
|
noNegationElse?: RuleConfiguration;
|
|
734
798
|
/**
|
|
@@ -764,7 +828,7 @@ interface Style {
|
|
|
764
828
|
*/
|
|
765
829
|
recommended?: boolean;
|
|
766
830
|
/**
|
|
767
|
-
* Requires following curly brace conventions.
|
|
831
|
+
* Requires following curly brace conventions.
|
|
768
832
|
*/
|
|
769
833
|
useBlockStatements?: RuleConfiguration;
|
|
770
834
|
/**
|
|
@@ -820,7 +884,7 @@ interface Style {
|
|
|
820
884
|
*/
|
|
821
885
|
useTemplate?: RuleConfiguration;
|
|
822
886
|
/**
|
|
823
|
-
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed
|
|
887
|
+
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
|
|
824
888
|
*/
|
|
825
889
|
useWhile?: RuleConfiguration;
|
|
826
890
|
}
|
|
@@ -882,7 +946,7 @@ interface Suspicious {
|
|
|
882
946
|
*/
|
|
883
947
|
noDoubleEquals?: RuleConfiguration;
|
|
884
948
|
/**
|
|
885
|
-
* Disallow duplicate case labels.
|
|
949
|
+
* Disallow duplicate case labels.
|
|
886
950
|
*/
|
|
887
951
|
noDuplicateCase?: RuleConfiguration;
|
|
888
952
|
/**
|
|
@@ -894,7 +958,7 @@ interface Suspicious {
|
|
|
894
958
|
*/
|
|
895
959
|
noDuplicateJsxProps?: RuleConfiguration;
|
|
896
960
|
/**
|
|
897
|
-
* Prevents object literals having more than one property declaration for the same name.
|
|
961
|
+
* Prevents object literals having more than one property declaration for the same name.
|
|
898
962
|
*/
|
|
899
963
|
noDuplicateObjectKeys?: RuleConfiguration;
|
|
900
964
|
/**
|
|
@@ -1122,7 +1186,6 @@ type Category =
|
|
|
1122
1186
|
| "lint/a11y/noSvgWithoutTitle"
|
|
1123
1187
|
| "lint/a11y/useAltText"
|
|
1124
1188
|
| "lint/a11y/useAnchorContent"
|
|
1125
|
-
| "lint/a11y/useValidAriaValues"
|
|
1126
1189
|
| "lint/a11y/useAriaPropsForRole"
|
|
1127
1190
|
| "lint/a11y/useButtonType"
|
|
1128
1191
|
| "lint/a11y/useHeadingContent"
|
|
@@ -1133,6 +1196,7 @@ type Category =
|
|
|
1133
1196
|
| "lint/a11y/useMediaCaption"
|
|
1134
1197
|
| "lint/a11y/useValidAnchor"
|
|
1135
1198
|
| "lint/a11y/useValidAriaProps"
|
|
1199
|
+
| "lint/a11y/useValidAriaValues"
|
|
1136
1200
|
| "lint/a11y/useValidLang"
|
|
1137
1201
|
| "lint/complexity/noBannedTypes"
|
|
1138
1202
|
| "lint/complexity/noExtraBooleanCast"
|
|
@@ -1184,14 +1248,21 @@ type Category =
|
|
|
1184
1248
|
| "lint/correctness/useValidForDirection"
|
|
1185
1249
|
| "lint/correctness/useYield"
|
|
1186
1250
|
| "lint/nursery/noAccumulatingSpread"
|
|
1251
|
+
| "lint/nursery/noApproximativeNumericConstant"
|
|
1187
1252
|
| "lint/nursery/noConfusingVoidType"
|
|
1188
1253
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
1254
|
+
| "lint/nursery/noEmptyCharacterClassInRegex"
|
|
1189
1255
|
| "lint/nursery/noExcessiveComplexity"
|
|
1190
1256
|
| "lint/nursery/noFallthroughSwitchClause"
|
|
1191
1257
|
| "lint/nursery/noGlobalIsFinite"
|
|
1192
1258
|
| "lint/nursery/noGlobalIsNan"
|
|
1259
|
+
| "lint/nursery/noInvalidNewBuiltin"
|
|
1260
|
+
| "lint/nursery/noMisleadingInstantiator"
|
|
1261
|
+
| "lint/nursery/noUnusedImports"
|
|
1262
|
+
| "lint/nursery/noUselessElse"
|
|
1193
1263
|
| "lint/nursery/noVoid"
|
|
1194
1264
|
| "lint/nursery/useArrowFunction"
|
|
1265
|
+
| "lint/nursery/useAsConstAssertion"
|
|
1195
1266
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
1196
1267
|
| "lint/nursery/useCollapsedElseIf"
|
|
1197
1268
|
| "lint/nursery/useExhaustiveDependencies"
|
|
@@ -1199,6 +1270,7 @@ type Category =
|
|
|
1199
1270
|
| "lint/nursery/useHookAtTopLevel"
|
|
1200
1271
|
| "lint/nursery/useImportRestrictions"
|
|
1201
1272
|
| "lint/nursery/useIsArray"
|
|
1273
|
+
| "lint/nursery/useShorthandAssign"
|
|
1202
1274
|
| "lint/performance/noDelete"
|
|
1203
1275
|
| "lint/security/noDangerouslySetInnerHtml"
|
|
1204
1276
|
| "lint/security/noDangerouslySetInnerHtmlWithChildren"
|
|
@@ -1339,6 +1411,8 @@ type MarkupElement =
|
|
|
1339
1411
|
| "Success"
|
|
1340
1412
|
| "Warn"
|
|
1341
1413
|
| "Info"
|
|
1414
|
+
| "Debug"
|
|
1415
|
+
| "Trace"
|
|
1342
1416
|
| "Inverse"
|
|
1343
1417
|
| { Hyperlink: { href: string } };
|
|
1344
1418
|
type CompressedOp = { DiffOp: DiffOp } | { EqualLines: { line_count: number } };
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/wasm-nodejs","collaborators":["
|
|
1
|
+
{"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.2.2-nightly.1e3fc94","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"]}
|