@biomejs/wasm-web 1.6.1 → 1.6.3

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
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export function main(): void;
6
6
  interface SupportsFeatureParams {
7
- feature: FeatureName[];
7
+ features: FeatureName[];
8
8
  path: BiomePath;
9
9
  }
10
10
  type FeatureName = "Format" | "Lint" | "OrganizeImports";
@@ -103,7 +103,7 @@ interface PartialFilesConfiguration {
103
103
  }
104
104
  interface PartialFormatterConfiguration {
105
105
  /**
106
- * The attribute position style. By default auto.
106
+ * The attribute position style in HTMLish languages. By default auto.
107
107
  */
108
108
  attributePosition?: AttributePosition;
109
109
  enabled?: boolean;
@@ -267,7 +267,7 @@ interface PartialJavascriptFormatter {
267
267
  */
268
268
  arrowParentheses?: ArrowParentheses;
269
269
  /**
270
- * The attribute position style in JavaScript code. Defaults to auto.
270
+ * The attribute position style in jsx elements. Defaults to auto.
271
271
  */
272
272
  attributePosition?: AttributePosition;
273
273
  /**
@@ -842,6 +842,10 @@ interface Nursery {
842
842
  * Disallow the use of barrel file.
843
843
  */
844
844
  noBarrelFile?: RuleConfiguration_for_Null;
845
+ /**
846
+ * Succinct description of the rule.
847
+ */
848
+ noColorInvalidHex?: RuleConfiguration_for_Null;
845
849
  /**
846
850
  * Disallow the use of console.
847
851
  */
@@ -850,6 +854,10 @@ interface Nursery {
850
854
  * Disallow using a callback in asynchronous tests and hooks.
851
855
  */
852
856
  noDoneCallback?: RuleConfiguration_for_Null;
857
+ /**
858
+ * Disallow duplicate conditions in if-else-if chains
859
+ */
860
+ noDuplicateElseIf?: RuleConfiguration_for_Null;
853
861
  /**
854
862
  * Disallow two keys with the same name inside a JSON object.
855
863
  */
@@ -858,6 +866,10 @@ interface Nursery {
858
866
  * A describe block should not contain duplicate hooks.
859
867
  */
860
868
  noDuplicateTestHooks?: RuleConfiguration_for_Null;
869
+ /**
870
+ * Disallow variables from evolving into any type through reassignments.
871
+ */
872
+ noEvolvingAny?: RuleConfiguration_for_Null;
861
873
  /**
862
874
  * This rule enforces a maximum depth to nested describe() in test files.
863
875
  */
@@ -1516,7 +1528,7 @@ interface ConsistentArrayTypeOptions {
1516
1528
  }
1517
1529
  interface FilenamingConventionOptions {
1518
1530
  /**
1519
- * Allowed cases for _TypeScript_ `enum` member names.
1531
+ * Allowed cases for file names.
1520
1532
  */
1521
1533
  filenameCases: FilenameCases;
1522
1534
  /**
@@ -1608,8 +1620,8 @@ interface JsFileSource {
1608
1620
  version: LanguageVersion;
1609
1621
  }
1610
1622
  interface JsonFileSource {
1611
- allow_trailing_comma: boolean;
1612
- variant: JsonVariant;
1623
+ allow_comments: boolean;
1624
+ allow_trailing_commas: boolean;
1613
1625
  }
1614
1626
  interface CssFileSource {
1615
1627
  variant: CssVariant;
@@ -1619,7 +1631,6 @@ type Language = "JavaScript" | { TypeScript: { definition_file: boolean } };
1619
1631
  type ModuleKind = "Script" | "Module";
1620
1632
  type LanguageVariant = "Standard" | "StandardRestricted" | "Jsx";
1621
1633
  type LanguageVersion = "ES2022" | "ESNext";
1622
- type JsonVariant = "Standard" | "Jsonc";
1623
1634
  type CssVariant = "Standard";
1624
1635
  interface ChangeFileParams {
1625
1636
  content: string;
@@ -1773,12 +1784,16 @@ type Category =
1773
1784
  | "lint/correctness/useIsNan"
1774
1785
  | "lint/correctness/useValidForDirection"
1775
1786
  | "lint/correctness/useYield"
1787
+ | "lint/nursery/colorNoInvalidHex"
1776
1788
  | "lint/nursery/noApproximativeNumericConstant"
1777
1789
  | "lint/nursery/noBarrelFile"
1790
+ | "lint/nursery/noColorInvalidHex"
1778
1791
  | "lint/nursery/noConsole"
1779
1792
  | "lint/nursery/noDoneCallback"
1793
+ | "lint/nursery/noDuplicateElseIf"
1780
1794
  | "lint/nursery/noDuplicateJsonKeys"
1781
1795
  | "lint/nursery/noDuplicateTestHooks"
1796
+ | "lint/nursery/noEvolvingAny"
1782
1797
  | "lint/nursery/noExcessiveNestedTestSuites"
1783
1798
  | "lint/nursery/noExportsInTest"
1784
1799
  | "lint/nursery/noFocusedTests"
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.6.1","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.6.3","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"]}