@biomejs/wasm-nodejs 1.9.5-nightly.92879ae → 1.9.5-nightly.ff02a0b
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 +166 -94
- package/biome_wasm.js +255 -428
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
*/
|
|
5
3
|
export function main(): void;
|
|
6
4
|
interface SupportsFeatureParams {
|
|
7
5
|
features: FeatureName;
|
|
@@ -486,6 +484,10 @@ interface PartialJavascriptLinter {
|
|
|
486
484
|
}
|
|
487
485
|
interface PartialJavascriptOrganizeImports {}
|
|
488
486
|
interface PartialJavascriptParser {
|
|
487
|
+
/**
|
|
488
|
+
* Enables parsing of Grit metavariables. Defaults to `false`.
|
|
489
|
+
*/
|
|
490
|
+
gritMetavariables?: boolean;
|
|
489
491
|
/**
|
|
490
492
|
* It enables the experimental and unsafe parsing of parameter decorators
|
|
491
493
|
|
|
@@ -604,13 +606,17 @@ interface OverridePattern {
|
|
|
604
606
|
type VcsClientKind = "git";
|
|
605
607
|
interface Source {
|
|
606
608
|
/**
|
|
607
|
-
*
|
|
609
|
+
* Provides a whole-source code action to sort the imports in the file using import groups and natural ordering.
|
|
608
610
|
*/
|
|
609
|
-
|
|
611
|
+
organizeImports?: RuleAssistConfiguration_for_Options;
|
|
612
|
+
/**
|
|
613
|
+
* Enforce attribute sorting in JSX elements.
|
|
614
|
+
*/
|
|
615
|
+
useSortedAttributes?: RuleAssistConfiguration_for_Null;
|
|
610
616
|
/**
|
|
611
617
|
* Sorts the keys of a JSON object in natural order
|
|
612
618
|
*/
|
|
613
|
-
useSortedKeys?:
|
|
619
|
+
useSortedKeys?: RuleAssistConfiguration_for_Null;
|
|
614
620
|
}
|
|
615
621
|
type QuoteStyle = "double" | "single";
|
|
616
622
|
type ArrowParentheses = "always" | "asNeeded";
|
|
@@ -1014,7 +1020,7 @@ interface Correctness {
|
|
|
1014
1020
|
/**
|
|
1015
1021
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
1016
1022
|
*/
|
|
1017
|
-
noUndeclaredDependencies?:
|
|
1023
|
+
noUndeclaredDependencies?: RuleConfiguration_for_NoUndeclaredDependenciesOptions;
|
|
1018
1024
|
/**
|
|
1019
1025
|
* Prevents the usage of variables that haven't been declared inside the document.
|
|
1020
1026
|
*/
|
|
@@ -1301,6 +1307,10 @@ interface Nursery {
|
|
|
1301
1307
|
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
1302
1308
|
*/
|
|
1303
1309
|
useGoogleFontDisplay?: RuleConfiguration_for_Null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
1312
|
+
*/
|
|
1313
|
+
useGoogleFontPreconnect?: RuleFixConfiguration_for_Null;
|
|
1304
1314
|
/**
|
|
1305
1315
|
* Require for-in loops to include an if statement.
|
|
1306
1316
|
*/
|
|
@@ -1309,6 +1319,10 @@ interface Nursery {
|
|
|
1309
1319
|
* Disallows package private imports.
|
|
1310
1320
|
*/
|
|
1311
1321
|
useImportRestrictions?: RuleConfiguration_for_Null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Enforce specifying the name of GraphQL operations.
|
|
1324
|
+
*/
|
|
1325
|
+
useNamedOperation?: RuleFixConfiguration_for_Null;
|
|
1312
1326
|
/**
|
|
1313
1327
|
* Enforce the sorting of CSS utility classes.
|
|
1314
1328
|
*/
|
|
@@ -1917,7 +1931,12 @@ interface OverrideOrganizeImportsConfiguration {
|
|
|
1917
1931
|
*/
|
|
1918
1932
|
enabled?: boolean;
|
|
1919
1933
|
}
|
|
1920
|
-
type
|
|
1934
|
+
type RuleAssistConfiguration_for_Options =
|
|
1935
|
+
| RuleAssistPlainConfiguration
|
|
1936
|
+
| RuleAssistWithOptions_for_Options;
|
|
1937
|
+
type RuleAssistConfiguration_for_Null =
|
|
1938
|
+
| RuleAssistPlainConfiguration
|
|
1939
|
+
| RuleAssistWithOptions_for_Null;
|
|
1921
1940
|
type RuleFixConfiguration_for_Null =
|
|
1922
1941
|
| RulePlainConfiguration
|
|
1923
1942
|
| RuleWithFixOptions_for_Null;
|
|
@@ -1936,6 +1955,9 @@ type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
|
1936
1955
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1937
1956
|
| RulePlainConfiguration
|
|
1938
1957
|
| RuleWithOptions_for_ComplexityOptions;
|
|
1958
|
+
type RuleConfiguration_for_NoUndeclaredDependenciesOptions =
|
|
1959
|
+
| RulePlainConfiguration
|
|
1960
|
+
| RuleWithOptions_for_NoUndeclaredDependenciesOptions;
|
|
1939
1961
|
type RuleConfiguration_for_UseExhaustiveDependenciesOptions =
|
|
1940
1962
|
| RulePlainConfiguration
|
|
1941
1963
|
| RuleWithOptions_for_UseExhaustiveDependenciesOptions;
|
|
@@ -1987,6 +2009,27 @@ type RuleFixConfiguration_for_NoConsoleOptions =
|
|
|
1987
2009
|
type RuleFixConfiguration_for_NoDoubleEqualsOptions =
|
|
1988
2010
|
| RulePlainConfiguration
|
|
1989
2011
|
| RuleWithFixOptions_for_NoDoubleEqualsOptions;
|
|
2012
|
+
type RuleAssistPlainConfiguration = "on" | "off";
|
|
2013
|
+
interface RuleAssistWithOptions_for_Options {
|
|
2014
|
+
/**
|
|
2015
|
+
* The severity of the emitted diagnostics by the rule
|
|
2016
|
+
*/
|
|
2017
|
+
level: RuleAssistPlainConfiguration;
|
|
2018
|
+
/**
|
|
2019
|
+
* Rule's options
|
|
2020
|
+
*/
|
|
2021
|
+
options: Options;
|
|
2022
|
+
}
|
|
2023
|
+
interface RuleAssistWithOptions_for_Null {
|
|
2024
|
+
/**
|
|
2025
|
+
* The severity of the emitted diagnostics by the rule
|
|
2026
|
+
*/
|
|
2027
|
+
level: RuleAssistPlainConfiguration;
|
|
2028
|
+
/**
|
|
2029
|
+
* Rule's options
|
|
2030
|
+
*/
|
|
2031
|
+
options: null;
|
|
2032
|
+
}
|
|
1990
2033
|
type RulePlainConfiguration = "warn" | "error" | "info" | "off";
|
|
1991
2034
|
interface RuleWithFixOptions_for_Null {
|
|
1992
2035
|
/**
|
|
@@ -2060,6 +2103,16 @@ interface RuleWithOptions_for_ComplexityOptions {
|
|
|
2060
2103
|
*/
|
|
2061
2104
|
options: ComplexityOptions;
|
|
2062
2105
|
}
|
|
2106
|
+
interface RuleWithOptions_for_NoUndeclaredDependenciesOptions {
|
|
2107
|
+
/**
|
|
2108
|
+
* The severity of the emitted diagnostics by the rule
|
|
2109
|
+
*/
|
|
2110
|
+
level: RulePlainConfiguration;
|
|
2111
|
+
/**
|
|
2112
|
+
* Rule's options
|
|
2113
|
+
*/
|
|
2114
|
+
options: NoUndeclaredDependenciesOptions;
|
|
2115
|
+
}
|
|
2063
2116
|
interface RuleWithOptions_for_UseExhaustiveDependenciesOptions {
|
|
2064
2117
|
/**
|
|
2065
2118
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2262,6 +2315,10 @@ interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
|
|
|
2262
2315
|
*/
|
|
2263
2316
|
options: NoDoubleEqualsOptions;
|
|
2264
2317
|
}
|
|
2318
|
+
interface Options {
|
|
2319
|
+
importGroups?: ImportGroup[];
|
|
2320
|
+
legacy?: boolean;
|
|
2321
|
+
}
|
|
2265
2322
|
type FixKind = "none" | "safe" | "unsafe";
|
|
2266
2323
|
interface AllowDomainOptions {
|
|
2267
2324
|
/**
|
|
@@ -2293,6 +2350,20 @@ interface ComplexityOptions {
|
|
|
2293
2350
|
*/
|
|
2294
2351
|
maxAllowedComplexity?: number;
|
|
2295
2352
|
}
|
|
2353
|
+
interface NoUndeclaredDependenciesOptions {
|
|
2354
|
+
/**
|
|
2355
|
+
* If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.
|
|
2356
|
+
*/
|
|
2357
|
+
devDependencies?: DependencyAvailability;
|
|
2358
|
+
/**
|
|
2359
|
+
* If set to `false`, then the rule will show an error when `optionalDependencies` are imported. Defaults to `true`.
|
|
2360
|
+
*/
|
|
2361
|
+
optionalDependencies?: DependencyAvailability;
|
|
2362
|
+
/**
|
|
2363
|
+
* If set to `false`, then the rule will show an error when `peerDependencies` are imported. Defaults to `true`.
|
|
2364
|
+
*/
|
|
2365
|
+
peerDependencies?: DependencyAvailability;
|
|
2366
|
+
}
|
|
2296
2367
|
interface UseExhaustiveDependenciesOptions {
|
|
2297
2368
|
/**
|
|
2298
2369
|
* List of hooks of which the dependencies should be validated.
|
|
@@ -2420,6 +2491,8 @@ If `false`, no such exception will be made.
|
|
|
2420
2491
|
*/
|
|
2421
2492
|
ignoreNull: boolean;
|
|
2422
2493
|
}
|
|
2494
|
+
type ImportGroup = PredefinedImportGroup | Regex;
|
|
2495
|
+
type DependencyAvailability = boolean | string[];
|
|
2423
2496
|
interface Hook {
|
|
2424
2497
|
/**
|
|
2425
2498
|
* The "position" of the closure function, starting from zero.
|
|
@@ -2465,6 +2538,7 @@ interface Convention {
|
|
|
2465
2538
|
selector: Selector;
|
|
2466
2539
|
}
|
|
2467
2540
|
type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
|
|
2541
|
+
type PredefinedImportGroup = ":blank-line:" | ":bun:" | ":node:" | ":types:";
|
|
2468
2542
|
type StableHookResult = boolean | number[];
|
|
2469
2543
|
type FilenameCase =
|
|
2470
2544
|
| "camelCase"
|
|
@@ -2839,9 +2913,11 @@ type Category =
|
|
|
2839
2913
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
2840
2914
|
| "lint/nursery/useExplicitType"
|
|
2841
2915
|
| "lint/nursery/useGoogleFontDisplay"
|
|
2916
|
+
| "lint/nursery/useGoogleFontPreconnect"
|
|
2842
2917
|
| "lint/nursery/useGuardForIn"
|
|
2843
2918
|
| "lint/nursery/useImportRestrictions"
|
|
2844
2919
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2920
|
+
| "lint/nursery/useNamedOperation"
|
|
2845
2921
|
| "lint/nursery/useSortedClasses"
|
|
2846
2922
|
| "lint/nursery/useStrictMode"
|
|
2847
2923
|
| "lint/nursery/useTrimStartEnd"
|
|
@@ -3080,6 +3156,7 @@ interface PullActionsParams {
|
|
|
3080
3156
|
path: BiomePath;
|
|
3081
3157
|
range?: TextRange;
|
|
3082
3158
|
skip: RuleCode[];
|
|
3159
|
+
suppression_reason?: string;
|
|
3083
3160
|
}
|
|
3084
3161
|
interface PullActionsResult {
|
|
3085
3162
|
actions: CodeAction[];
|
|
@@ -3147,6 +3224,7 @@ interface FixFileParams {
|
|
|
3147
3224
|
rule_categories: RuleCategories;
|
|
3148
3225
|
should_format: boolean;
|
|
3149
3226
|
skip: RuleCode[];
|
|
3227
|
+
suppression_reason?: string;
|
|
3150
3228
|
}
|
|
3151
3229
|
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
|
|
3152
3230
|
interface FixFileResult {
|
|
@@ -3194,119 +3272,113 @@ interface RenameResult {
|
|
|
3194
3272
|
}
|
|
3195
3273
|
|
|
3196
3274
|
|
|
3197
|
-
/**
|
|
3198
|
-
*/
|
|
3199
3275
|
export class DiagnosticPrinter {
|
|
3200
3276
|
free(): void;
|
|
3201
|
-
/**
|
|
3202
|
-
* @param {string} file_name
|
|
3203
|
-
* @param {string} file_source
|
|
3204
|
-
*/
|
|
3277
|
+
/**
|
|
3278
|
+
* @param {string} file_name
|
|
3279
|
+
* @param {string} file_source
|
|
3280
|
+
*/
|
|
3205
3281
|
constructor(file_name: string, file_source: string);
|
|
3206
|
-
/**
|
|
3207
|
-
* @param {Diagnostic} diagnostic
|
|
3208
|
-
*/
|
|
3282
|
+
/**
|
|
3283
|
+
* @param {Diagnostic} diagnostic
|
|
3284
|
+
*/
|
|
3209
3285
|
print_simple(diagnostic: Diagnostic): void;
|
|
3210
|
-
/**
|
|
3211
|
-
* @param {Diagnostic} diagnostic
|
|
3212
|
-
*/
|
|
3286
|
+
/**
|
|
3287
|
+
* @param {Diagnostic} diagnostic
|
|
3288
|
+
*/
|
|
3213
3289
|
print_verbose(diagnostic: Diagnostic): void;
|
|
3214
|
-
/**
|
|
3215
|
-
* @returns {string}
|
|
3216
|
-
*/
|
|
3290
|
+
/**
|
|
3291
|
+
* @returns {string}
|
|
3292
|
+
*/
|
|
3217
3293
|
finish(): string;
|
|
3218
3294
|
}
|
|
3219
|
-
/**
|
|
3220
|
-
*/
|
|
3221
3295
|
export class Workspace {
|
|
3222
3296
|
free(): void;
|
|
3223
|
-
/**
|
|
3224
|
-
*/
|
|
3225
3297
|
constructor();
|
|
3226
|
-
/**
|
|
3227
|
-
* @param {SupportsFeatureParams} params
|
|
3228
|
-
* @returns {FileFeaturesResult}
|
|
3229
|
-
*/
|
|
3298
|
+
/**
|
|
3299
|
+
* @param {SupportsFeatureParams} params
|
|
3300
|
+
* @returns {FileFeaturesResult}
|
|
3301
|
+
*/
|
|
3230
3302
|
fileFeatures(params: SupportsFeatureParams): FileFeaturesResult;
|
|
3231
|
-
/**
|
|
3232
|
-
* @param {UpdateSettingsParams} params
|
|
3233
|
-
*/
|
|
3303
|
+
/**
|
|
3304
|
+
* @param {UpdateSettingsParams} params
|
|
3305
|
+
*/
|
|
3234
3306
|
updateSettings(params: UpdateSettingsParams): void;
|
|
3235
|
-
/**
|
|
3236
|
-
* @param {RegisterProjectFolderParams} params
|
|
3237
|
-
* @returns {ProjectKey}
|
|
3238
|
-
*/
|
|
3307
|
+
/**
|
|
3308
|
+
* @param {RegisterProjectFolderParams} params
|
|
3309
|
+
* @returns {ProjectKey}
|
|
3310
|
+
*/
|
|
3239
3311
|
registerProjectFolder(params: RegisterProjectFolderParams): ProjectKey;
|
|
3240
|
-
/**
|
|
3241
|
-
* @param {OpenFileParams} params
|
|
3242
|
-
*/
|
|
3312
|
+
/**
|
|
3313
|
+
* @param {OpenFileParams} params
|
|
3314
|
+
*/
|
|
3243
3315
|
openFile(params: OpenFileParams): void;
|
|
3244
|
-
/**
|
|
3245
|
-
* @param {GetFileContentParams} params
|
|
3246
|
-
* @returns {string}
|
|
3247
|
-
*/
|
|
3316
|
+
/**
|
|
3317
|
+
* @param {GetFileContentParams} params
|
|
3318
|
+
* @returns {string}
|
|
3319
|
+
*/
|
|
3248
3320
|
getFileContent(params: GetFileContentParams): string;
|
|
3249
|
-
/**
|
|
3250
|
-
* @param {GetSyntaxTreeParams} params
|
|
3251
|
-
* @returns {GetSyntaxTreeResult}
|
|
3252
|
-
*/
|
|
3321
|
+
/**
|
|
3322
|
+
* @param {GetSyntaxTreeParams} params
|
|
3323
|
+
* @returns {GetSyntaxTreeResult}
|
|
3324
|
+
*/
|
|
3253
3325
|
getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
|
|
3254
|
-
/**
|
|
3255
|
-
* @param {GetControlFlowGraphParams} params
|
|
3256
|
-
* @returns {string}
|
|
3257
|
-
*/
|
|
3326
|
+
/**
|
|
3327
|
+
* @param {GetControlFlowGraphParams} params
|
|
3328
|
+
* @returns {string}
|
|
3329
|
+
*/
|
|
3258
3330
|
getControlFlowGraph(params: GetControlFlowGraphParams): string;
|
|
3259
|
-
/**
|
|
3260
|
-
* @param {GetFormatterIRParams} params
|
|
3261
|
-
* @returns {string}
|
|
3262
|
-
*/
|
|
3331
|
+
/**
|
|
3332
|
+
* @param {GetFormatterIRParams} params
|
|
3333
|
+
* @returns {string}
|
|
3334
|
+
*/
|
|
3263
3335
|
getFormatterIr(params: GetFormatterIRParams): string;
|
|
3264
|
-
/**
|
|
3265
|
-
* @param {ChangeFileParams} params
|
|
3266
|
-
*/
|
|
3336
|
+
/**
|
|
3337
|
+
* @param {ChangeFileParams} params
|
|
3338
|
+
*/
|
|
3267
3339
|
changeFile(params: ChangeFileParams): void;
|
|
3268
|
-
/**
|
|
3269
|
-
* @param {CloseFileParams} params
|
|
3270
|
-
*/
|
|
3340
|
+
/**
|
|
3341
|
+
* @param {CloseFileParams} params
|
|
3342
|
+
*/
|
|
3271
3343
|
closeFile(params: CloseFileParams): void;
|
|
3272
|
-
/**
|
|
3273
|
-
* @param {PullDiagnosticsParams} params
|
|
3274
|
-
* @returns {PullDiagnosticsResult}
|
|
3275
|
-
*/
|
|
3344
|
+
/**
|
|
3345
|
+
* @param {PullDiagnosticsParams} params
|
|
3346
|
+
* @returns {PullDiagnosticsResult}
|
|
3347
|
+
*/
|
|
3276
3348
|
pullDiagnostics(params: PullDiagnosticsParams): PullDiagnosticsResult;
|
|
3277
|
-
/**
|
|
3278
|
-
* @param {PullActionsParams} params
|
|
3279
|
-
* @returns {PullActionsResult}
|
|
3280
|
-
*/
|
|
3349
|
+
/**
|
|
3350
|
+
* @param {PullActionsParams} params
|
|
3351
|
+
* @returns {PullActionsResult}
|
|
3352
|
+
*/
|
|
3281
3353
|
pullActions(params: PullActionsParams): PullActionsResult;
|
|
3282
|
-
/**
|
|
3283
|
-
* @param {FormatFileParams} params
|
|
3284
|
-
* @returns {any}
|
|
3285
|
-
*/
|
|
3354
|
+
/**
|
|
3355
|
+
* @param {FormatFileParams} params
|
|
3356
|
+
* @returns {any}
|
|
3357
|
+
*/
|
|
3286
3358
|
formatFile(params: FormatFileParams): any;
|
|
3287
|
-
/**
|
|
3288
|
-
* @param {FormatRangeParams} params
|
|
3289
|
-
* @returns {any}
|
|
3290
|
-
*/
|
|
3359
|
+
/**
|
|
3360
|
+
* @param {FormatRangeParams} params
|
|
3361
|
+
* @returns {any}
|
|
3362
|
+
*/
|
|
3291
3363
|
formatRange(params: FormatRangeParams): any;
|
|
3292
|
-
/**
|
|
3293
|
-
* @param {FormatOnTypeParams} params
|
|
3294
|
-
* @returns {any}
|
|
3295
|
-
*/
|
|
3364
|
+
/**
|
|
3365
|
+
* @param {FormatOnTypeParams} params
|
|
3366
|
+
* @returns {any}
|
|
3367
|
+
*/
|
|
3296
3368
|
formatOnType(params: FormatOnTypeParams): any;
|
|
3297
|
-
/**
|
|
3298
|
-
* @param {FixFileParams} params
|
|
3299
|
-
* @returns {FixFileResult}
|
|
3300
|
-
*/
|
|
3369
|
+
/**
|
|
3370
|
+
* @param {FixFileParams} params
|
|
3371
|
+
* @returns {FixFileResult}
|
|
3372
|
+
*/
|
|
3301
3373
|
fixFile(params: FixFileParams): FixFileResult;
|
|
3302
|
-
/**
|
|
3303
|
-
* @param {OrganizeImportsParams} params
|
|
3304
|
-
* @returns {OrganizeImportsResult}
|
|
3305
|
-
*/
|
|
3374
|
+
/**
|
|
3375
|
+
* @param {OrganizeImportsParams} params
|
|
3376
|
+
* @returns {OrganizeImportsResult}
|
|
3377
|
+
*/
|
|
3306
3378
|
organizeImports(params: OrganizeImportsParams): OrganizeImportsResult;
|
|
3307
|
-
/**
|
|
3308
|
-
* @param {RenameParams} params
|
|
3309
|
-
* @returns {RenameResult}
|
|
3310
|
-
*/
|
|
3379
|
+
/**
|
|
3380
|
+
* @param {RenameParams} params
|
|
3381
|
+
* @returns {RenameResult}
|
|
3382
|
+
*/
|
|
3311
3383
|
rename(params: RenameParams): RenameResult;
|
|
3312
3384
|
}
|