@biomejs/wasm-nodejs 1.9.1 → 1.9.3-nightly.75b4387
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 +74 -16
- package/biome_wasm.js +9 -9
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -22,7 +22,13 @@ interface BiomePath {
|
|
|
22
22
|
*/
|
|
23
23
|
was_written: boolean;
|
|
24
24
|
}
|
|
25
|
-
type FeatureKind =
|
|
25
|
+
type FeatureKind =
|
|
26
|
+
| "Format"
|
|
27
|
+
| "Lint"
|
|
28
|
+
| "OrganizeImports"
|
|
29
|
+
| "Search"
|
|
30
|
+
| "Assists"
|
|
31
|
+
| "Debug";
|
|
26
32
|
type FileKind = FileKind2[];
|
|
27
33
|
type FileKind2 =
|
|
28
34
|
| "Config"
|
|
@@ -30,15 +36,9 @@ type FileKind2 =
|
|
|
30
36
|
| "Ignore"
|
|
31
37
|
| "Inspectable"
|
|
32
38
|
| "Handleable";
|
|
33
|
-
interface
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
type SupportKind =
|
|
37
|
-
| "Supported"
|
|
38
|
-
| "Ignored"
|
|
39
|
-
| "Protected"
|
|
40
|
-
| "FeatureNotEnabled"
|
|
41
|
-
| "FileNotSupported";
|
|
39
|
+
interface FileFeaturesResult {
|
|
40
|
+
features_supported: {};
|
|
41
|
+
}
|
|
42
42
|
interface UpdateSettingsParams {
|
|
43
43
|
configuration: PartialConfiguration;
|
|
44
44
|
gitignore_matches: string[];
|
|
@@ -1161,6 +1161,18 @@ interface Nursery {
|
|
|
1161
1161
|
* Disallows the use of irregular whitespace characters.
|
|
1162
1162
|
*/
|
|
1163
1163
|
noIrregularWhitespace?: RuleConfiguration_for_Null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Disallow missing var function for css variables.
|
|
1166
|
+
*/
|
|
1167
|
+
noMissingVarFunction?: RuleConfiguration_for_Null;
|
|
1168
|
+
/**
|
|
1169
|
+
* Disallow nested ternary expressions.
|
|
1170
|
+
*/
|
|
1171
|
+
noNestedTernary?: RuleConfiguration_for_Null;
|
|
1172
|
+
/**
|
|
1173
|
+
* Disallow octal escape sequences in string literals
|
|
1174
|
+
*/
|
|
1175
|
+
noOctalEscape?: RuleConfiguration_for_Null;
|
|
1164
1176
|
/**
|
|
1165
1177
|
* Disallow the use of process.env.
|
|
1166
1178
|
*/
|
|
@@ -1185,6 +1197,10 @@ interface Nursery {
|
|
|
1185
1197
|
* Enforce the use of String.slice() over String.substr() and String.substring().
|
|
1186
1198
|
*/
|
|
1187
1199
|
noSubstr?: RuleFixConfiguration_for_Null;
|
|
1200
|
+
/**
|
|
1201
|
+
* Disallow template literal placeholder syntax in regular strings.
|
|
1202
|
+
*/
|
|
1203
|
+
noTemplateCurlyInString?: RuleConfiguration_for_Null;
|
|
1188
1204
|
/**
|
|
1189
1205
|
* Disallow unknown pseudo-class selectors.
|
|
1190
1206
|
*/
|
|
@@ -1213,6 +1229,10 @@ interface Nursery {
|
|
|
1213
1229
|
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1214
1230
|
*/
|
|
1215
1231
|
useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Enforce declaring components only within modules that export React Components exclusively.
|
|
1234
|
+
*/
|
|
1235
|
+
useComponentExportOnlyModules?: RuleConfiguration_for_UseComponentExportOnlyModulesOptions;
|
|
1216
1236
|
/**
|
|
1217
1237
|
* This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
|
|
1218
1238
|
*/
|
|
@@ -1225,6 +1245,10 @@ interface Nursery {
|
|
|
1225
1245
|
* Require specifying the reason argument when using @deprecated directive
|
|
1226
1246
|
*/
|
|
1227
1247
|
useDeprecatedReason?: RuleConfiguration_for_Null;
|
|
1248
|
+
/**
|
|
1249
|
+
* Require explicit return types on functions and class methods.
|
|
1250
|
+
*/
|
|
1251
|
+
useExplicitFunctionReturnType?: RuleConfiguration_for_Null;
|
|
1228
1252
|
/**
|
|
1229
1253
|
* Disallows package private imports.
|
|
1230
1254
|
*/
|
|
@@ -1871,6 +1895,9 @@ type RuleConfiguration_for_RestrictedImportsOptions =
|
|
|
1871
1895
|
type RuleFixConfiguration_for_NoRestrictedTypesOptions =
|
|
1872
1896
|
| RulePlainConfiguration
|
|
1873
1897
|
| RuleWithFixOptions_for_NoRestrictedTypesOptions;
|
|
1898
|
+
type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
|
|
1899
|
+
| RulePlainConfiguration
|
|
1900
|
+
| RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
|
|
1874
1901
|
type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
|
|
1875
1902
|
| RulePlainConfiguration
|
|
1876
1903
|
| RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
|
|
@@ -2029,6 +2056,16 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
|
|
|
2029
2056
|
*/
|
|
2030
2057
|
options: NoRestrictedTypesOptions;
|
|
2031
2058
|
}
|
|
2059
|
+
interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
|
|
2060
|
+
/**
|
|
2061
|
+
* The severity of the emitted diagnostics by the rule
|
|
2062
|
+
*/
|
|
2063
|
+
level: RulePlainConfiguration;
|
|
2064
|
+
/**
|
|
2065
|
+
* Rule's options
|
|
2066
|
+
*/
|
|
2067
|
+
options: UseComponentExportOnlyModulesOptions;
|
|
2068
|
+
}
|
|
2032
2069
|
interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
|
|
2033
2070
|
/**
|
|
2034
2071
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2192,6 +2229,16 @@ interface RestrictedImportsOptions {
|
|
|
2192
2229
|
interface NoRestrictedTypesOptions {
|
|
2193
2230
|
types: {};
|
|
2194
2231
|
}
|
|
2232
|
+
interface UseComponentExportOnlyModulesOptions {
|
|
2233
|
+
/**
|
|
2234
|
+
* Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
|
|
2235
|
+
*/
|
|
2236
|
+
allowConstantExport?: boolean;
|
|
2237
|
+
/**
|
|
2238
|
+
* A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
|
|
2239
|
+
*/
|
|
2240
|
+
allowExportNames: string[];
|
|
2241
|
+
}
|
|
2195
2242
|
interface ConsistentMemberAccessibilityOptions {
|
|
2196
2243
|
accessibility: Accessibility;
|
|
2197
2244
|
}
|
|
@@ -2402,7 +2449,8 @@ type DocumentFileSource =
|
|
|
2402
2449
|
| { Json: JsonFileSource }
|
|
2403
2450
|
| { Css: CssFileSource }
|
|
2404
2451
|
| { Graphql: GraphqlFileSource }
|
|
2405
|
-
| { Html: HtmlFileSource }
|
|
2452
|
+
| { Html: HtmlFileSource }
|
|
2453
|
+
| { Grit: GritFileSource };
|
|
2406
2454
|
interface JsFileSource {
|
|
2407
2455
|
/**
|
|
2408
2456
|
* Used to mark if the source is being used for an Astro, Svelte or Vue file
|
|
@@ -2426,6 +2474,9 @@ interface GraphqlFileSource {
|
|
|
2426
2474
|
interface HtmlFileSource {
|
|
2427
2475
|
variant: HtmlVariant;
|
|
2428
2476
|
}
|
|
2477
|
+
interface GritFileSource {
|
|
2478
|
+
variant: GritVariant;
|
|
2479
|
+
}
|
|
2429
2480
|
type EmbeddingKind = "Astro" | "Vue" | "Svelte" | "None";
|
|
2430
2481
|
type Language = "JavaScript" | { TypeScript: { definition_file: boolean } };
|
|
2431
2482
|
type ModuleKind = "Script" | "Module";
|
|
@@ -2434,6 +2485,7 @@ type LanguageVersion = "ES2022" | "ESNext";
|
|
|
2434
2485
|
type CssVariant = "Standard";
|
|
2435
2486
|
type GraphqlVariant = "Standard";
|
|
2436
2487
|
type HtmlVariant = "Standard" | "Astro";
|
|
2488
|
+
type GritVariant = "Standard";
|
|
2437
2489
|
interface ChangeFileParams {
|
|
2438
2490
|
content: string;
|
|
2439
2491
|
path: BiomePath;
|
|
@@ -2563,9 +2615,9 @@ type Category =
|
|
|
2563
2615
|
| "lint/complexity/useSimpleNumberKeys"
|
|
2564
2616
|
| "lint/complexity/useSimplifiedLogicExpression"
|
|
2565
2617
|
| "lint/correctness/noChildrenProp"
|
|
2618
|
+
| "lint/correctness/noConstAssign"
|
|
2566
2619
|
| "lint/correctness/noConstantCondition"
|
|
2567
2620
|
| "lint/correctness/noConstantMathMinMaxClamp"
|
|
2568
|
-
| "lint/correctness/noConstAssign"
|
|
2569
2621
|
| "lint/correctness/noConstructorReturn"
|
|
2570
2622
|
| "lint/correctness/noEmptyCharacterClassInRegex"
|
|
2571
2623
|
| "lint/correctness/noEmptyPattern"
|
|
@@ -2622,8 +2674,8 @@ type Category =
|
|
|
2622
2674
|
| "lint/nursery/noDoneCallback"
|
|
2623
2675
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
2624
2676
|
| "lint/nursery/noDuplicateCustomProperties"
|
|
2625
|
-
| "lint/nursery/noDuplicatedFields"
|
|
2626
2677
|
| "lint/nursery/noDuplicateElseIf"
|
|
2678
|
+
| "lint/nursery/noDuplicatedFields"
|
|
2627
2679
|
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2628
2680
|
| "lint/nursery/noEnum"
|
|
2629
2681
|
| "lint/nursery/noExportedImports"
|
|
@@ -2633,6 +2685,9 @@ type Category =
|
|
|
2633
2685
|
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
2634
2686
|
| "lint/nursery/noIrregularWhitespace"
|
|
2635
2687
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
2688
|
+
| "lint/nursery/noMissingVarFunction"
|
|
2689
|
+
| "lint/nursery/noNestedTernary"
|
|
2690
|
+
| "lint/nursery/noOctalEscape"
|
|
2636
2691
|
| "lint/nursery/noProcessEnv"
|
|
2637
2692
|
| "lint/nursery/noReactSpecificProps"
|
|
2638
2693
|
| "lint/nursery/noRestrictedImports"
|
|
@@ -2641,6 +2696,7 @@ type Category =
|
|
|
2641
2696
|
| "lint/nursery/noShorthandPropertyOverrides"
|
|
2642
2697
|
| "lint/nursery/noStaticElementInteractions"
|
|
2643
2698
|
| "lint/nursery/noSubstr"
|
|
2699
|
+
| "lint/nursery/noTemplateCurlyInString"
|
|
2644
2700
|
| "lint/nursery/noUndeclaredDependencies"
|
|
2645
2701
|
| "lint/nursery/noUnknownFunction"
|
|
2646
2702
|
| "lint/nursery/noUnknownMediaFeatureName"
|
|
@@ -2657,9 +2713,11 @@ type Category =
|
|
|
2657
2713
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2658
2714
|
| "lint/nursery/useAriaPropsSupportedByRole"
|
|
2659
2715
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2716
|
+
| "lint/nursery/useComponentExportOnlyModules"
|
|
2660
2717
|
| "lint/nursery/useConsistentCurlyBraces"
|
|
2661
2718
|
| "lint/nursery/useConsistentMemberAccessibility"
|
|
2662
2719
|
| "lint/nursery/useDeprecatedReason"
|
|
2720
|
+
| "lint/nursery/useExplicitFunctionReturnType"
|
|
2663
2721
|
| "lint/nursery/useImportRestrictions"
|
|
2664
2722
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2665
2723
|
| "lint/nursery/useSortedClasses"
|
|
@@ -2763,8 +2821,8 @@ type Category =
|
|
|
2763
2821
|
| "lint/suspicious/noGlobalIsFinite"
|
|
2764
2822
|
| "lint/suspicious/noGlobalIsNan"
|
|
2765
2823
|
| "lint/suspicious/noImplicitAnyLet"
|
|
2766
|
-
| "lint/suspicious/noImportantInKeyframe"
|
|
2767
2824
|
| "lint/suspicious/noImportAssign"
|
|
2825
|
+
| "lint/suspicious/noImportantInKeyframe"
|
|
2768
2826
|
| "lint/suspicious/noLabelVar"
|
|
2769
2827
|
| "lint/suspicious/noMisleadingCharacterClass"
|
|
2770
2828
|
| "lint/suspicious/noMisleadingInstantiator"
|
|
@@ -3041,9 +3099,9 @@ export class Workspace {
|
|
|
3041
3099
|
constructor();
|
|
3042
3100
|
/**
|
|
3043
3101
|
* @param {SupportsFeatureParams} params
|
|
3044
|
-
* @returns {
|
|
3102
|
+
* @returns {FileFeaturesResult}
|
|
3045
3103
|
*/
|
|
3046
|
-
fileFeatures(params: SupportsFeatureParams):
|
|
3104
|
+
fileFeatures(params: SupportsFeatureParams): FileFeaturesResult;
|
|
3047
3105
|
/**
|
|
3048
3106
|
* @param {UpdateSettingsParams} params
|
|
3049
3107
|
*/
|
package/biome_wasm.js
CHANGED
|
@@ -321,7 +321,7 @@ class Workspace {
|
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
323
|
* @param {SupportsFeatureParams} params
|
|
324
|
-
* @returns {
|
|
324
|
+
* @returns {FileFeaturesResult}
|
|
325
325
|
*/
|
|
326
326
|
fileFeatures(params) {
|
|
327
327
|
try {
|
|
@@ -766,6 +766,14 @@ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
|
766
766
|
return ret;
|
|
767
767
|
};
|
|
768
768
|
|
|
769
|
+
module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
|
|
770
|
+
const ret = String(getObject(arg1));
|
|
771
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
772
|
+
const len1 = WASM_VECTOR_LEN;
|
|
773
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
774
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
775
|
+
};
|
|
776
|
+
|
|
769
777
|
module.exports.__wbindgen_number_new = function(arg0) {
|
|
770
778
|
const ret = arg0;
|
|
771
779
|
return addHeapObject(ret);
|
|
@@ -785,14 +793,6 @@ module.exports.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
|
785
793
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
786
794
|
};
|
|
787
795
|
|
|
788
|
-
module.exports.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
|
|
789
|
-
const ret = String(getObject(arg1));
|
|
790
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
|
-
const len1 = WASM_VECTOR_LEN;
|
|
792
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
793
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
794
|
-
};
|
|
795
|
-
|
|
796
796
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
797
797
|
const ret = new Error();
|
|
798
798
|
return addHeapObject(ret);
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED