@biomejs/wasm-nodejs 1.5.2 → 1.5.3-nightly.6cbf1c7

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
@@ -21,12 +21,12 @@ type SupportKind =
21
21
  | "FeatureNotEnabled"
22
22
  | "FileNotSupported";
23
23
  interface UpdateSettingsParams {
24
- configuration: Configuration;
24
+ configuration: PartialConfiguration;
25
25
  gitignore_matches: string[];
26
26
  vcs_base_path?: string;
27
27
  working_directory?: string;
28
28
  }
29
- interface Configuration {
29
+ interface PartialConfiguration {
30
30
  /**
31
31
  * A field for the [JSON schema](https://json-schema.org/) specification
32
32
  */
@@ -34,7 +34,7 @@ interface Configuration {
34
34
  /**
35
35
  * Specific configuration for the Css language
36
36
  */
37
- css?: CssConfiguration;
37
+ css?: PartialCssConfiguration;
38
38
  /**
39
39
  * A list of paths to other JSON files, used to extends the current configuration.
40
40
  */
@@ -42,27 +42,27 @@ interface Configuration {
42
42
  /**
43
43
  * The configuration of the filesystem
44
44
  */
45
- files?: FilesConfiguration;
45
+ files?: PartialFilesConfiguration;
46
46
  /**
47
47
  * The configuration of the formatter
48
48
  */
49
- formatter?: FormatterConfiguration;
49
+ formatter?: PartialFormatterConfiguration;
50
50
  /**
51
51
  * Specific configuration for the JavaScript language
52
52
  */
53
- javascript?: JavascriptConfiguration;
53
+ javascript?: PartialJavascriptConfiguration;
54
54
  /**
55
55
  * Specific configuration for the Json language
56
56
  */
57
- json?: JsonConfiguration;
57
+ json?: PartialJsonConfiguration;
58
58
  /**
59
59
  * The configuration for the linter
60
60
  */
61
- linter?: LinterConfiguration;
61
+ linter?: PartialLinterConfiguration;
62
62
  /**
63
63
  * The configuration of the import sorting
64
64
  */
65
- organizeImports?: OrganizeImports;
65
+ organizeImports?: PartialOrganizeImports;
66
66
  /**
67
67
  * A list of granular patterns that should be applied only to a sub set of files
68
68
  */
@@ -70,20 +70,20 @@ interface Configuration {
70
70
  /**
71
71
  * The configuration of the VCS integration
72
72
  */
73
- vcs?: VcsConfiguration;
73
+ vcs?: PartialVcsConfiguration;
74
74
  }
75
- interface CssConfiguration {
75
+ interface PartialCssConfiguration {
76
76
  /**
77
77
  * Formatting options
78
78
  */
79
- formatter?: CssFormatter;
79
+ formatter?: PartialCssFormatter;
80
80
  /**
81
81
  * Parsing options
82
82
  */
83
- parser?: CssParser;
83
+ parser?: PartialCssParser;
84
84
  }
85
85
  type StringSet = string[];
86
- interface FilesConfiguration {
86
+ interface PartialFilesConfiguration {
87
87
  /**
88
88
  * A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
89
89
  */
@@ -101,7 +101,7 @@ interface FilesConfiguration {
101
101
  */
102
102
  maxSize?: number;
103
103
  }
104
- interface FormatterConfiguration {
104
+ interface PartialFormatterConfiguration {
105
105
  enabled?: boolean;
106
106
  /**
107
107
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -136,34 +136,34 @@ interface FormatterConfiguration {
136
136
  */
137
137
  lineWidth?: LineWidth;
138
138
  }
139
- interface JavascriptConfiguration {
139
+ interface PartialJavascriptConfiguration {
140
140
  /**
141
141
  * Formatting options
142
142
  */
143
- formatter?: JavascriptFormatter;
143
+ formatter?: PartialJavascriptFormatter;
144
144
  /**
145
145
  * A list of global bindings that should be ignored by the analyzers
146
146
 
147
147
  If defined here, they should not emit diagnostics.
148
148
  */
149
149
  globals?: StringSet;
150
- organize_imports?: JavascriptOrganizeImports;
150
+ organize_imports?: PartialJavascriptOrganizeImports;
151
151
  /**
152
152
  * Parsing options
153
153
  */
154
- parser?: JavascriptParser;
154
+ parser?: PartialJavascriptParser;
155
155
  }
156
- interface JsonConfiguration {
156
+ interface PartialJsonConfiguration {
157
157
  /**
158
158
  * Formatting options
159
159
  */
160
- formatter?: JsonFormatter;
160
+ formatter?: PartialJsonFormatter;
161
161
  /**
162
162
  * Parsing options
163
163
  */
164
- parser?: JsonParser;
164
+ parser?: PartialJsonParser;
165
165
  }
166
- interface LinterConfiguration {
166
+ interface PartialLinterConfiguration {
167
167
  /**
168
168
  * if `false`, it disables the feature and the linter won't be executed. `true` by default
169
169
  */
@@ -181,7 +181,7 @@ interface LinterConfiguration {
181
181
  */
182
182
  rules?: Rules;
183
183
  }
184
- interface OrganizeImports {
184
+ interface PartialOrganizeImports {
185
185
  /**
186
186
  * Enables the organization of imports
187
187
  */
@@ -196,7 +196,7 @@ interface OrganizeImports {
196
196
  include?: StringSet;
197
197
  }
198
198
  type Overrides = OverridePattern[];
199
- interface VcsConfiguration {
199
+ interface PartialVcsConfiguration {
200
200
  /**
201
201
  * The kind of client.
202
202
  */
@@ -220,7 +220,7 @@ If Biome can't find the configuration, it will attempt to use the current workin
220
220
  */
221
221
  useIgnoreFile?: boolean;
222
222
  }
223
- interface CssFormatter {
223
+ interface PartialCssFormatter {
224
224
  /**
225
225
  * Control the formatter for CSS (and its super languages) files.
226
226
  */
@@ -247,7 +247,7 @@ interface CssFormatter {
247
247
  lineWidth?: LineWidth;
248
248
  quoteStyle?: QuoteStyle;
249
249
  }
250
- interface CssParser {
250
+ interface PartialCssParser {
251
251
  /**
252
252
  * Allow comments to appear on incorrect lines in `.css` files
253
253
  */
@@ -256,7 +256,7 @@ interface CssParser {
256
256
  type PlainIndentStyle = "tab" | "space";
257
257
  type LineEnding = "lf" | "crlf" | "cr";
258
258
  type LineWidth = number;
259
- interface JavascriptFormatter {
259
+ interface PartialJavascriptFormatter {
260
260
  /**
261
261
  * Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
262
262
  */
@@ -314,8 +314,8 @@ interface JavascriptFormatter {
314
314
  */
315
315
  trailingComma?: TrailingComma;
316
316
  }
317
- interface JavascriptOrganizeImports {}
318
- interface JavascriptParser {
317
+ interface PartialJavascriptOrganizeImports {}
318
+ interface PartialJavascriptParser {
319
319
  /**
320
320
  * It enables the experimental and unsafe parsing of parameter decorators
321
321
 
@@ -323,7 +323,7 @@ These decorators belong to an old proposal, and they are subject to change.
323
323
  */
324
324
  unsafeParameterDecoratorsEnabled?: boolean;
325
325
  }
326
- interface JsonFormatter {
326
+ interface PartialJsonFormatter {
327
327
  /**
328
328
  * Control the formatter for JSON (and its super languages) files.
329
329
  */
@@ -349,7 +349,7 @@ interface JsonFormatter {
349
349
  */
350
350
  lineWidth?: LineWidth;
351
351
  }
352
- interface JsonParser {
352
+ interface PartialJsonParser {
353
353
  /**
354
354
  * Allow parsing comments in `.json` files
355
355
  */
@@ -381,7 +381,7 @@ interface OverridePattern {
381
381
  /**
382
382
  * Specific configuration for the Css language
383
383
  */
384
- css?: CssConfiguration;
384
+ css?: PartialCssConfiguration;
385
385
  /**
386
386
  * Specific configuration for the Json language
387
387
  */
@@ -397,11 +397,11 @@ interface OverridePattern {
397
397
  /**
398
398
  * Specific configuration for the JavaScript language
399
399
  */
400
- javascript?: JavascriptConfiguration;
400
+ javascript?: PartialJavascriptConfiguration;
401
401
  /**
402
402
  * Specific configuration for the Json language
403
403
  */
404
- json?: JsonConfiguration;
404
+ json?: PartialJsonConfiguration;
405
405
  /**
406
406
  * Specific configuration for the Json language
407
407
  */
@@ -816,6 +816,10 @@ interface Nursery {
816
816
  * Disallow empty type parameters in type aliases and interfaces.
817
817
  */
818
818
  noEmptyTypeParameters?: RuleConfiguration;
819
+ /**
820
+ * Disallow focused tests.
821
+ */
822
+ noFocusedTests?: RuleConfiguration;
819
823
  /**
820
824
  * Disallow assignments to native objects and read-only global variables.
821
825
  */
@@ -836,6 +840,10 @@ interface Nursery {
836
840
  * Forbid the use of Node.js builtin modules.
837
841
  */
838
842
  noNodejsModules?: RuleConfiguration;
843
+ /**
844
+ * Disallow disabled tests.
845
+ */
846
+ noSkippedTests?: RuleConfiguration;
839
847
  /**
840
848
  * Disallow then property.
841
849
  */
@@ -904,6 +912,10 @@ interface Nursery {
904
912
  * Enforce using function types instead of object type with call signatures.
905
913
  */
906
914
  useShorthandFunctionType?: RuleConfiguration;
915
+ /**
916
+ * Enforce the sorting of CSS utility classes.
917
+ */
918
+ useSortedClasses?: RuleConfiguration;
907
919
  }
908
920
  interface Performance {
909
921
  /**
@@ -1089,7 +1101,7 @@ interface Suspicious {
1089
1101
  */
1090
1102
  all?: boolean;
1091
1103
  /**
1092
- * 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.
1104
+ * Use standard constants instead of approximated literals.
1093
1105
  */
1094
1106
  noApproximativeNumericConstant?: RuleConfiguration;
1095
1107
  /**
@@ -1330,7 +1342,8 @@ type PossibleOptions =
1330
1342
  | DeprecatedHooksOptions
1331
1343
  | NamingConventionOptions
1332
1344
  | RestrictedGlobalsOptions
1333
- | ValidAriaRoleOptions;
1345
+ | ValidAriaRoleOptions
1346
+ | UtilityClassSortingOptions;
1334
1347
  interface ComplexityOptions {
1335
1348
  /**
1336
1349
  * The maximum complexity score that we allow. Anything higher is considered excessive.
@@ -1371,12 +1384,22 @@ interface RestrictedGlobalsOptions {
1371
1384
  /**
1372
1385
  * A list of names that should trigger the rule
1373
1386
  */
1374
- deniedGlobals?: string[];
1387
+ deniedGlobals: string[];
1375
1388
  }
1376
1389
  interface ValidAriaRoleOptions {
1377
- allowedInvalidRoles: string[];
1390
+ allowInvalidRoles: string[];
1378
1391
  ignoreNonDom: boolean;
1379
1392
  }
1393
+ interface UtilityClassSortingOptions {
1394
+ /**
1395
+ * Additional attributes that will be sorted.
1396
+ */
1397
+ attributes?: string[];
1398
+ /**
1399
+ * Names of the functions or tagged templates that will be sorted.
1400
+ */
1401
+ functions?: string[];
1402
+ }
1380
1403
  type ConsistentArrayType = "shorthand" | "generic";
1381
1404
  type FilenameCases = FilenameCase[];
1382
1405
  interface Hooks {
@@ -1572,11 +1595,13 @@ type Category =
1572
1595
  | "lint/nursery/noDuplicateJsonKeys"
1573
1596
  | "lint/nursery/noEmptyBlockStatements"
1574
1597
  | "lint/nursery/noEmptyTypeParameters"
1598
+ | "lint/nursery/noFocusedTests"
1575
1599
  | "lint/nursery/noGlobalAssign"
1576
1600
  | "lint/nursery/noGlobalEval"
1577
1601
  | "lint/nursery/noInvalidUseBeforeDeclaration"
1578
1602
  | "lint/nursery/noMisleadingCharacterClass"
1579
1603
  | "lint/nursery/noNodejsModules"
1604
+ | "lint/nursery/noSkippedTests"
1580
1605
  | "lint/nursery/noThenProperty"
1581
1606
  | "lint/nursery/noTypeOnlyImportAttributes"
1582
1607
  | "lint/nursery/noUnusedImports"
@@ -1595,6 +1620,7 @@ type Category =
1595
1620
  | "lint/nursery/useNodejsImportProtocol"
1596
1621
  | "lint/nursery/useNumberNamespace"
1597
1622
  | "lint/nursery/useShorthandFunctionType"
1623
+ | "lint/nursery/useSortedClasses"
1598
1624
  | "lint/performance/noAccumulatingSpread"
1599
1625
  | "lint/performance/noDelete"
1600
1626
  | "lint/security/noDangerouslySetInnerHtml"
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.5.2","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.3-nightly.6cbf1c7","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"]}