@biomejs/wasm-nodejs 1.4.0 → 1.4.1-nightly.22dd4e1

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,18 @@ type SupportKind =
21
21
  | "FileNotSupported";
22
22
  interface UpdateSettingsParams {
23
23
  configuration: Configuration;
24
+ gitignore_matches: string[];
25
+ vcs_base_path?: string;
24
26
  }
25
27
  interface Configuration {
26
28
  /**
27
29
  * A field for the [JSON schema](https://json-schema.org/) specification
28
30
  */
29
31
  $schema?: string;
32
+ /**
33
+ * Specific configuration for the Css language
34
+ */
35
+ css?: CssConfiguration;
30
36
  /**
31
37
  * A list of paths to other JSON files, used to extends the current configuration.
32
38
  */
@@ -64,6 +70,16 @@ interface Configuration {
64
70
  */
65
71
  vcs?: VcsConfiguration;
66
72
  }
73
+ interface CssConfiguration {
74
+ /**
75
+ * Formatting options
76
+ */
77
+ formatter?: CssFormatter;
78
+ /**
79
+ * Parsing options
80
+ */
81
+ parser?: CssParser;
82
+ }
67
83
  type StringSet = string[];
68
84
  interface FilesConfiguration {
69
85
  /**
@@ -183,6 +199,10 @@ interface VcsConfiguration {
183
199
  * The kind of client.
184
200
  */
185
201
  clientKind?: VcsClientKind;
202
+ /**
203
+ * The main branch of the project
204
+ */
205
+ defaultBranch?: string;
186
206
  /**
187
207
  * Whether Biome should integrate itself with the VCS client
188
208
  */
@@ -198,6 +218,38 @@ If Biome can't find the configuration, it will attempt to use the current workin
198
218
  */
199
219
  useIgnoreFile?: boolean;
200
220
  }
221
+ interface CssFormatter {
222
+ /**
223
+ * Control the formatter for CSS (and its super languages) files.
224
+ */
225
+ enabled?: boolean;
226
+ /**
227
+ * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
228
+ */
229
+ indentSize?: number;
230
+ /**
231
+ * The indent style applied to CSS (and its super languages) files.
232
+ */
233
+ indentStyle?: PlainIndentStyle;
234
+ /**
235
+ * The size of the indentation applied to CSS (and its super languages) files. Default to 2.
236
+ */
237
+ indentWidth?: number;
238
+ /**
239
+ * The type of line ending applied to CSS (and its super languages) files.
240
+ */
241
+ lineEnding?: LineEnding;
242
+ /**
243
+ * What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.
244
+ */
245
+ lineWidth?: LineWidth;
246
+ }
247
+ interface CssParser {
248
+ /**
249
+ * Allow comments to appear on incorrect lines in `.css` files
250
+ */
251
+ allowWrongLineComments?: boolean;
252
+ }
201
253
  type PlainIndentStyle = "tab" | "space";
202
254
  type LineEnding = "lf" | "crlf" | "cr";
203
255
  type LineWidth = number;
@@ -323,6 +375,10 @@ interface Rules {
323
375
  suspicious?: Suspicious;
324
376
  }
325
377
  interface OverridePattern {
378
+ /**
379
+ * Specific configuration for the Css language
380
+ */
381
+ css?: CssConfiguration;
326
382
  /**
327
383
  * Specific configuration for the Json language
328
384
  */
@@ -753,6 +809,18 @@ interface Nursery {
753
809
  * Disallow use of implicit any type on variable declarations.
754
810
  */
755
811
  noImplicitAnyLet?: RuleConfiguration;
812
+ /**
813
+ * Disallow the use of variables and function parameters before their declaration
814
+ */
815
+ noInvalidUseBeforeDeclaration?: RuleConfiguration;
816
+ /**
817
+ * Disallow characters made with multiple code points in character class syntax.
818
+ */
819
+ noMisleadingCharacterClass?: RuleConfiguration;
820
+ /**
821
+ * Forbid the use of Node.js builtin modules. Can be useful for client-side web projects that do not have access to those modules.
822
+ */
823
+ noNodejsModules?: RuleConfiguration;
756
824
  /**
757
825
  * Disallow unused imports.
758
826
  */
@@ -765,6 +833,10 @@ interface Nursery {
765
833
  * Disallow unnecessary nested block statements.
766
834
  */
767
835
  noUselessLoneBlockStatements?: RuleConfiguration;
836
+ /**
837
+ * Disallow ternary operators when simpler alternatives exist.
838
+ */
839
+ noUselessTernary?: RuleConfiguration;
768
840
  /**
769
841
  * It enables the recommended rules for this group
770
842
  */
@@ -773,6 +845,18 @@ interface Nursery {
773
845
  * Ensure async functions utilize await.
774
846
  */
775
847
  useAwait?: RuleConfiguration;
848
+ /**
849
+ * Promotes the use of export type for types.
850
+ */
851
+ useExportType?: RuleConfiguration;
852
+ /**
853
+ * Enforce naming conventions for JavaScript and TypeScript filenames.
854
+ */
855
+ useFilenamingConvention?: RuleConfiguration;
856
+ /**
857
+ * This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.
858
+ */
859
+ useForOf?: RuleConfiguration;
776
860
  /**
777
861
  * Enforce the use of import type when an import only has specifiers with type qualifier.
778
862
  */
@@ -781,10 +865,18 @@ interface Nursery {
781
865
  * Disallows package private imports.
782
866
  */
783
867
  useImportRestrictions?: RuleConfiguration;
868
+ /**
869
+ * Enforces using the node: protocol for Node.js builtin modules.
870
+ */
871
+ useNodeImportProtocol?: RuleConfiguration;
784
872
  /**
785
873
  * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
786
874
  */
787
875
  useRegexLiterals?: RuleConfiguration;
876
+ /**
877
+ * Enforce using function types instead of object type with call signatures.
878
+ */
879
+ useShorthandFunctionType?: RuleConfiguration;
788
880
  /**
789
881
  * Elements with ARIA roles must use a valid, non-abstract ARIA role.
790
882
  */
@@ -1201,6 +1293,7 @@ interface RuleWithOptions {
1201
1293
  }
1202
1294
  type PossibleOptions =
1203
1295
  | ComplexityOptions
1296
+ | FilenamingConventionOptions
1204
1297
  | HooksOptions
1205
1298
  | NamingConventionOptions
1206
1299
  | RestrictedGlobalsOptions
@@ -1211,6 +1304,16 @@ interface ComplexityOptions {
1211
1304
  */
1212
1305
  maxAllowedComplexity: number;
1213
1306
  }
1307
+ interface FilenamingConventionOptions {
1308
+ /**
1309
+ * Allowed cases for _TypeScript_ `enum` member names.
1310
+ */
1311
+ filenameCases: FilenameCases;
1312
+ /**
1313
+ * If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
1314
+ */
1315
+ strictCase: boolean;
1316
+ }
1214
1317
  interface HooksOptions {
1215
1318
  /**
1216
1319
  * List of safe hooks
@@ -1237,6 +1340,7 @@ interface ValidAriaRoleOptions {
1237
1340
  allowedInvalidRoles: string[];
1238
1341
  ignoreNonDom: boolean;
1239
1342
  }
1343
+ type FilenameCases = FilenameCase[];
1240
1344
  interface Hooks {
1241
1345
  /**
1242
1346
  * The "position" of the closure function, starting from zero.
@@ -1254,6 +1358,7 @@ interface Hooks {
1254
1358
  name: string;
1255
1359
  }
1256
1360
  type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1361
+ type FilenameCase = "camelCase" | "export" | "kebab-case" | "snake_case";
1257
1362
  interface ProjectFeaturesParams {
1258
1363
  manifest_path: RomePath;
1259
1364
  }
@@ -1271,6 +1376,7 @@ type Language =
1271
1376
  | "TypeScriptReact"
1272
1377
  | "Json"
1273
1378
  | "Jsonc"
1379
+ | "Css"
1274
1380
  | "Unknown";
1275
1381
  interface ChangeFileParams {
1276
1382
  content: string;
@@ -1422,14 +1528,24 @@ type Category =
1422
1528
  | "lint/nursery/noDuplicateJsonKeys"
1423
1529
  | "lint/nursery/noEmptyBlockStatements"
1424
1530
  | "lint/nursery/noImplicitAnyLet"
1531
+ | "lint/nursery/noInvalidUseBeforeDeclaration"
1532
+ | "lint/nursery/noMisleadingCharacterClass"
1533
+ | "lint/nursery/noNodejsModules"
1534
+ | "lint/nursery/noTypeOnlyImportAttributes"
1425
1535
  | "lint/nursery/noUnusedImports"
1426
1536
  | "lint/nursery/noUnusedPrivateClassMembers"
1427
1537
  | "lint/nursery/noUselessLoneBlockStatements"
1538
+ | "lint/nursery/noUselessTernary"
1428
1539
  | "lint/nursery/useAwait"
1429
1540
  | "lint/nursery/useBiomeSuppressionComment"
1541
+ | "lint/nursery/useExportType"
1542
+ | "lint/nursery/useFilenamingConvention"
1543
+ | "lint/nursery/useForOf"
1430
1544
  | "lint/nursery/useGroupedTypeImport"
1431
1545
  | "lint/nursery/useImportRestrictions"
1546
+ | "lint/nursery/useNodeImportProtocol"
1432
1547
  | "lint/nursery/useRegexLiterals"
1548
+ | "lint/nursery/useShorthandFunctionType"
1433
1549
  | "lint/nursery/useValidAriaRole"
1434
1550
  | "lint/performance/noAccumulatingSpread"
1435
1551
  | "lint/performance/noDelete"
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.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"]}
1
+ {"name":"@biomejs/wasm-nodejs","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.4.1-nightly.22dd4e1","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"]}