@biomejs/wasm-web 1.5.0 → 1.5.2

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
@@ -24,6 +24,7 @@ interface UpdateSettingsParams {
24
24
  configuration: Configuration;
25
25
  gitignore_matches: string[];
26
26
  vcs_base_path?: string;
27
+ working_directory?: string;
27
28
  }
28
29
  interface Configuration {
29
30
  /**
@@ -863,6 +864,10 @@ interface Nursery {
863
864
  * Ensure async functions utilize await.
864
865
  */
865
866
  useAwait?: RuleConfiguration;
867
+ /**
868
+ * Require consistently using either T[] or Array<T>
869
+ */
870
+ useConsistentArrayType?: RuleConfiguration;
866
871
  /**
867
872
  * Promotes the use of export type for types.
868
873
  */
@@ -942,7 +947,7 @@ interface Style {
942
947
  */
943
948
  all?: boolean;
944
949
  /**
945
- * Disallow the use of arguments
950
+ * Disallow the use of arguments.
946
951
  */
947
952
  noArguments?: RuleConfiguration;
948
953
  /**
@@ -1017,10 +1022,6 @@ interface Style {
1017
1022
  * Enforce using else if instead of nested if in else clauses.
1018
1023
  */
1019
1024
  useCollapsedElseIf?: RuleConfiguration;
1020
- /**
1021
- * Require consistently using either T[] or Array<T>
1022
- */
1023
- useConsistentArrayType?: RuleConfiguration;
1024
1025
  /**
1025
1026
  * Require const declarations for variables that are never reassigned after declared.
1026
1027
  */
@@ -1323,6 +1324,7 @@ interface RuleWithOptions {
1323
1324
  }
1324
1325
  type PossibleOptions =
1325
1326
  | ComplexityOptions
1327
+ | ConsistentArrayTypeOptions
1326
1328
  | FilenamingConventionOptions
1327
1329
  | HooksOptions
1328
1330
  | DeprecatedHooksOptions
@@ -1335,6 +1337,9 @@ interface ComplexityOptions {
1335
1337
  */
1336
1338
  maxAllowedComplexity: number;
1337
1339
  }
1340
+ interface ConsistentArrayTypeOptions {
1341
+ syntax: ConsistentArrayType;
1342
+ }
1338
1343
  interface FilenamingConventionOptions {
1339
1344
  /**
1340
1345
  * Allowed cases for _TypeScript_ `enum` member names.
@@ -1372,6 +1377,7 @@ interface ValidAriaRoleOptions {
1372
1377
  allowedInvalidRoles: string[];
1373
1378
  ignoreNonDom: boolean;
1374
1379
  }
1380
+ type ConsistentArrayType = "shorthand" | "generic";
1375
1381
  type FilenameCases = FilenameCase[];
1376
1382
  interface Hooks {
1377
1383
  /**
@@ -1579,6 +1585,7 @@ type Category =
1579
1585
  | "lint/nursery/noUselessTernary"
1580
1586
  | "lint/nursery/useAwait"
1581
1587
  | "lint/nursery/useBiomeSuppressionComment"
1588
+ | "lint/nursery/useConsistentArrayType"
1582
1589
  | "lint/nursery/useExportType"
1583
1590
  | "lint/nursery/useFilenamingConvention"
1584
1591
  | "lint/nursery/useForOf"
@@ -1610,7 +1617,6 @@ type Category =
1610
1617
  | "lint/style/useAsConstAssertion"
1611
1618
  | "lint/style/useBlockStatements"
1612
1619
  | "lint/style/useCollapsedElseIf"
1613
- | "lint/style/useConsistentArrayType"
1614
1620
  | "lint/style/useConst"
1615
1621
  | "lint/style/useDefaultParameterLast"
1616
1622
  | "lint/style/useEnumInitializers"
@@ -1730,7 +1736,8 @@ type DiagnosticTag =
1730
1736
  | "fixable"
1731
1737
  | "internal"
1732
1738
  | "unnecessaryCode"
1733
- | "deprecatedCode";
1739
+ | "deprecatedCode"
1740
+ | "verbose";
1734
1741
  type LogCategory = "None" | "Info" | "Warn" | "Error";
1735
1742
  interface TextEdit {
1736
1743
  dictionary: string;
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.5.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"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}
1
+ {"name":"@biomejs/wasm-web","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"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}