@biomejs/wasm-nodejs 1.9.5-nightly.4713c52 → 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 +31 -1
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1020,7 +1020,7 @@ interface Correctness {
|
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
1022
1022
|
*/
|
|
1023
|
-
noUndeclaredDependencies?:
|
|
1023
|
+
noUndeclaredDependencies?: RuleConfiguration_for_NoUndeclaredDependenciesOptions;
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Prevents the usage of variables that haven't been declared inside the document.
|
|
1026
1026
|
*/
|
|
@@ -1955,6 +1955,9 @@ type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
|
1955
1955
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1956
1956
|
| RulePlainConfiguration
|
|
1957
1957
|
| RuleWithOptions_for_ComplexityOptions;
|
|
1958
|
+
type RuleConfiguration_for_NoUndeclaredDependenciesOptions =
|
|
1959
|
+
| RulePlainConfiguration
|
|
1960
|
+
| RuleWithOptions_for_NoUndeclaredDependenciesOptions;
|
|
1958
1961
|
type RuleConfiguration_for_UseExhaustiveDependenciesOptions =
|
|
1959
1962
|
| RulePlainConfiguration
|
|
1960
1963
|
| RuleWithOptions_for_UseExhaustiveDependenciesOptions;
|
|
@@ -2100,6 +2103,16 @@ interface RuleWithOptions_for_ComplexityOptions {
|
|
|
2100
2103
|
*/
|
|
2101
2104
|
options: ComplexityOptions;
|
|
2102
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
|
+
}
|
|
2103
2116
|
interface RuleWithOptions_for_UseExhaustiveDependenciesOptions {
|
|
2104
2117
|
/**
|
|
2105
2118
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2337,6 +2350,20 @@ interface ComplexityOptions {
|
|
|
2337
2350
|
*/
|
|
2338
2351
|
maxAllowedComplexity?: number;
|
|
2339
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
|
+
}
|
|
2340
2367
|
interface UseExhaustiveDependenciesOptions {
|
|
2341
2368
|
/**
|
|
2342
2369
|
* List of hooks of which the dependencies should be validated.
|
|
@@ -2465,6 +2492,7 @@ If `false`, no such exception will be made.
|
|
|
2465
2492
|
ignoreNull: boolean;
|
|
2466
2493
|
}
|
|
2467
2494
|
type ImportGroup = PredefinedImportGroup | Regex;
|
|
2495
|
+
type DependencyAvailability = boolean | string[];
|
|
2468
2496
|
interface Hook {
|
|
2469
2497
|
/**
|
|
2470
2498
|
* The "position" of the closure function, starting from zero.
|
|
@@ -3128,6 +3156,7 @@ interface PullActionsParams {
|
|
|
3128
3156
|
path: BiomePath;
|
|
3129
3157
|
range?: TextRange;
|
|
3130
3158
|
skip: RuleCode[];
|
|
3159
|
+
suppression_reason?: string;
|
|
3131
3160
|
}
|
|
3132
3161
|
interface PullActionsResult {
|
|
3133
3162
|
actions: CodeAction[];
|
|
@@ -3195,6 +3224,7 @@ interface FixFileParams {
|
|
|
3195
3224
|
rule_categories: RuleCategories;
|
|
3196
3225
|
should_format: boolean;
|
|
3197
3226
|
skip: RuleCode[];
|
|
3227
|
+
suppression_reason?: string;
|
|
3198
3228
|
}
|
|
3199
3229
|
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
|
|
3200
3230
|
interface FixFileResult {
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED