@biomejs/wasm-nodejs 1.2.1 → 1.2.2-nightly.ee2e2ab

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
@@ -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 tools will ignore files/folders that will match these patterns.
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
- * The size of the indentation, 2 by default
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
  */
@@ -235,6 +259,10 @@ interface JsonFormatter {
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
  */
@@ -245,6 +273,10 @@ interface JsonParser {
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 multiple space characters in regular expression literals
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 path in a class constructor before this is accessed if the class has a superclass
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 functions that exceed a given complexity score.
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,26 @@ 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 shorthand assign when variable appears on both sides.
686
+ */
687
+ noMisrefactoredShorthandAssign?: RuleConfiguration;
688
+ /**
689
+ * Disallow unused imports.
690
+ */
691
+ noUnusedImports?: RuleConfiguration;
692
+ /**
693
+ * Disallow else block when the if block breaks early.
694
+ */
695
+ noUselessElse?: RuleConfiguration;
636
696
  /**
637
697
  * Disallow the use of void operators, which is not a familiar operator.
638
698
  */
@@ -645,12 +705,16 @@ interface Nursery {
645
705
  * Use arrow functions over function expressions.
646
706
  */
647
707
  useArrowFunction?: RuleConfiguration;
708
+ /**
709
+ * Enforce the use of as const over literal type and type annotation.
710
+ */
711
+ useAsConstAssertion?: RuleConfiguration;
648
712
  /**
649
713
  * Enforce using else if instead of nested if in else clauses.
650
714
  */
651
715
  useCollapsedElseIf?: RuleConfiguration;
652
716
  /**
653
- * Enforce all dependencies are correctly specified.
717
+ * Enforce all dependencies are correctly specified in a React hook.
654
718
  */
655
719
  useExhaustiveDependencies?: RuleConfiguration;
656
720
  /**
@@ -669,6 +733,10 @@ interface Nursery {
669
733
  * Use Array.isArray() instead of instanceof Array.
670
734
  */
671
735
  useIsArray?: RuleConfiguration;
736
+ /**
737
+ * Require assignment operator shorthand where possible.
738
+ */
739
+ useShorthandAssign?: RuleConfiguration;
672
740
  }
673
741
  interface Performance {
674
742
  /**
@@ -728,7 +796,7 @@ interface Style {
728
796
  */
729
797
  noNamespace?: RuleConfiguration;
730
798
  /**
731
- * Disallow negation in the condition of an if statement if it has an else clause
799
+ * Disallow negation in the condition of an if statement if it has an else clause.
732
800
  */
733
801
  noNegationElse?: RuleConfiguration;
734
802
  /**
@@ -764,7 +832,7 @@ interface Style {
764
832
  */
765
833
  recommended?: boolean;
766
834
  /**
767
- * Requires following curly brace conventions. JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity.
835
+ * Requires following curly brace conventions.
768
836
  */
769
837
  useBlockStatements?: RuleConfiguration;
770
838
  /**
@@ -820,7 +888,7 @@ interface Style {
820
888
  */
821
889
  useTemplate?: RuleConfiguration;
822
890
  /**
823
- * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed
891
+ * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
824
892
  */
825
893
  useWhile?: RuleConfiguration;
826
894
  }
@@ -882,7 +950,7 @@ interface Suspicious {
882
950
  */
883
951
  noDoubleEquals?: RuleConfiguration;
884
952
  /**
885
- * Disallow duplicate case labels. If a switch statement has duplicate test expressions in case clauses, it is likely that a programmer copied a case clause but forgot to change the test expression.
953
+ * Disallow duplicate case labels.
886
954
  */
887
955
  noDuplicateCase?: RuleConfiguration;
888
956
  /**
@@ -894,7 +962,7 @@ interface Suspicious {
894
962
  */
895
963
  noDuplicateJsxProps?: RuleConfiguration;
896
964
  /**
897
- * Prevents object literals having more than one property declaration for the same name. If an object property with the same name is defined multiple times (except when combining a getter with a setter), only the last definition makes it into the object and previous definitions are ignored, which is likely a mistake.
965
+ * Prevents object literals having more than one property declaration for the same name.
898
966
  */
899
967
  noDuplicateObjectKeys?: RuleConfiguration;
900
968
  /**
@@ -1122,7 +1190,6 @@ type Category =
1122
1190
  | "lint/a11y/noSvgWithoutTitle"
1123
1191
  | "lint/a11y/useAltText"
1124
1192
  | "lint/a11y/useAnchorContent"
1125
- | "lint/a11y/useValidAriaValues"
1126
1193
  | "lint/a11y/useAriaPropsForRole"
1127
1194
  | "lint/a11y/useButtonType"
1128
1195
  | "lint/a11y/useHeadingContent"
@@ -1133,6 +1200,7 @@ type Category =
1133
1200
  | "lint/a11y/useMediaCaption"
1134
1201
  | "lint/a11y/useValidAnchor"
1135
1202
  | "lint/a11y/useValidAriaProps"
1203
+ | "lint/a11y/useValidAriaValues"
1136
1204
  | "lint/a11y/useValidLang"
1137
1205
  | "lint/complexity/noBannedTypes"
1138
1206
  | "lint/complexity/noExtraBooleanCast"
@@ -1184,14 +1252,22 @@ type Category =
1184
1252
  | "lint/correctness/useValidForDirection"
1185
1253
  | "lint/correctness/useYield"
1186
1254
  | "lint/nursery/noAccumulatingSpread"
1255
+ | "lint/nursery/noApproximativeNumericConstant"
1187
1256
  | "lint/nursery/noConfusingVoidType"
1188
1257
  | "lint/nursery/noDuplicateJsonKeys"
1258
+ | "lint/nursery/noEmptyCharacterClassInRegex"
1189
1259
  | "lint/nursery/noExcessiveComplexity"
1190
1260
  | "lint/nursery/noFallthroughSwitchClause"
1191
1261
  | "lint/nursery/noGlobalIsFinite"
1192
1262
  | "lint/nursery/noGlobalIsNan"
1263
+ | "lint/nursery/noInvalidNewBuiltin"
1264
+ | "lint/nursery/noMisleadingInstantiator"
1265
+ | "lint/nursery/noMisrefactoredShorthandAssign"
1266
+ | "lint/nursery/noUnusedImports"
1267
+ | "lint/nursery/noUselessElse"
1193
1268
  | "lint/nursery/noVoid"
1194
1269
  | "lint/nursery/useArrowFunction"
1270
+ | "lint/nursery/useAsConstAssertion"
1195
1271
  | "lint/nursery/useBiomeSuppressionComment"
1196
1272
  | "lint/nursery/useCollapsedElseIf"
1197
1273
  | "lint/nursery/useExhaustiveDependencies"
@@ -1199,6 +1275,7 @@ type Category =
1199
1275
  | "lint/nursery/useHookAtTopLevel"
1200
1276
  | "lint/nursery/useImportRestrictions"
1201
1277
  | "lint/nursery/useIsArray"
1278
+ | "lint/nursery/useShorthandAssign"
1202
1279
  | "lint/performance/noDelete"
1203
1280
  | "lint/security/noDangerouslySetInnerHtml"
1204
1281
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
@@ -1339,6 +1416,8 @@ type MarkupElement =
1339
1416
  | "Success"
1340
1417
  | "Warn"
1341
1418
  | "Info"
1419
+ | "Debug"
1420
+ | "Trace"
1342
1421
  | "Inverse"
1343
1422
  | { Hyperlink: { href: string } };
1344
1423
  type CompressedOp = { DiffOp: DiffOp } | { EqualLines: { line_count: number } };
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/wasm-nodejs","collaborators":["Rome Tools Developers and Contributors"],"description":"WebAssembly bindings to the Rome Workspace API","version":"1.2.1","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","types":"biome_wasm.d.ts"}
1
+ {"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.2.2-nightly.ee2e2ab","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"]}