@biomejs/wasm-nodejs 1.9.5-nightly.4713c52 → 1.9.5-nightly.c0cccb2
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 +58 -4
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1020,11 +1020,11 @@ 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
|
*/
|
|
1027
|
-
noUndeclaredVariables?:
|
|
1027
|
+
noUndeclaredVariables?: RuleConfiguration_for_UndeclaredVariablesOptions;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Disallow unknown CSS value functions.
|
|
1030
1030
|
*/
|
|
@@ -1179,6 +1179,10 @@ interface Nursery {
|
|
|
1179
1179
|
* Disallow exporting an imported variable.
|
|
1180
1180
|
*/
|
|
1181
1181
|
noExportedImports?: RuleConfiguration_for_Null;
|
|
1182
|
+
/**
|
|
1183
|
+
* Disallow the use of __dirname and __filename in the global scope.
|
|
1184
|
+
*/
|
|
1185
|
+
noGlobalDirnameFilename?: RuleFixConfiguration_for_Null;
|
|
1182
1186
|
/**
|
|
1183
1187
|
* Prevent usage of \<head> element in a Next.js project.
|
|
1184
1188
|
*/
|
|
@@ -1876,7 +1880,7 @@ interface Suspicious {
|
|
|
1876
1880
|
*/
|
|
1877
1881
|
useNumberToFixedDigitsArgument?: RuleFixConfiguration_for_Null;
|
|
1878
1882
|
/**
|
|
1879
|
-
* This rule
|
|
1883
|
+
* This rule checks that the result of a `typeof' expression is compared to a valid value.
|
|
1880
1884
|
*/
|
|
1881
1885
|
useValidTypeof?: RuleFixConfiguration_for_Null;
|
|
1882
1886
|
}
|
|
@@ -1955,6 +1959,12 @@ type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
|
1955
1959
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1956
1960
|
| RulePlainConfiguration
|
|
1957
1961
|
| RuleWithOptions_for_ComplexityOptions;
|
|
1962
|
+
type RuleConfiguration_for_NoUndeclaredDependenciesOptions =
|
|
1963
|
+
| RulePlainConfiguration
|
|
1964
|
+
| RuleWithOptions_for_NoUndeclaredDependenciesOptions;
|
|
1965
|
+
type RuleConfiguration_for_UndeclaredVariablesOptions =
|
|
1966
|
+
| RulePlainConfiguration
|
|
1967
|
+
| RuleWithOptions_for_UndeclaredVariablesOptions;
|
|
1958
1968
|
type RuleConfiguration_for_UseExhaustiveDependenciesOptions =
|
|
1959
1969
|
| RulePlainConfiguration
|
|
1960
1970
|
| RuleWithOptions_for_UseExhaustiveDependenciesOptions;
|
|
@@ -2100,6 +2110,26 @@ interface RuleWithOptions_for_ComplexityOptions {
|
|
|
2100
2110
|
*/
|
|
2101
2111
|
options: ComplexityOptions;
|
|
2102
2112
|
}
|
|
2113
|
+
interface RuleWithOptions_for_NoUndeclaredDependenciesOptions {
|
|
2114
|
+
/**
|
|
2115
|
+
* The severity of the emitted diagnostics by the rule
|
|
2116
|
+
*/
|
|
2117
|
+
level: RulePlainConfiguration;
|
|
2118
|
+
/**
|
|
2119
|
+
* Rule's options
|
|
2120
|
+
*/
|
|
2121
|
+
options: NoUndeclaredDependenciesOptions;
|
|
2122
|
+
}
|
|
2123
|
+
interface RuleWithOptions_for_UndeclaredVariablesOptions {
|
|
2124
|
+
/**
|
|
2125
|
+
* The severity of the emitted diagnostics by the rule
|
|
2126
|
+
*/
|
|
2127
|
+
level: RulePlainConfiguration;
|
|
2128
|
+
/**
|
|
2129
|
+
* Rule's options
|
|
2130
|
+
*/
|
|
2131
|
+
options: UndeclaredVariablesOptions;
|
|
2132
|
+
}
|
|
2103
2133
|
interface RuleWithOptions_for_UseExhaustiveDependenciesOptions {
|
|
2104
2134
|
/**
|
|
2105
2135
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2337,6 +2367,26 @@ interface ComplexityOptions {
|
|
|
2337
2367
|
*/
|
|
2338
2368
|
maxAllowedComplexity?: number;
|
|
2339
2369
|
}
|
|
2370
|
+
interface NoUndeclaredDependenciesOptions {
|
|
2371
|
+
/**
|
|
2372
|
+
* If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.
|
|
2373
|
+
*/
|
|
2374
|
+
devDependencies?: DependencyAvailability;
|
|
2375
|
+
/**
|
|
2376
|
+
* If set to `false`, then the rule will show an error when `optionalDependencies` are imported. Defaults to `true`.
|
|
2377
|
+
*/
|
|
2378
|
+
optionalDependencies?: DependencyAvailability;
|
|
2379
|
+
/**
|
|
2380
|
+
* If set to `false`, then the rule will show an error when `peerDependencies` are imported. Defaults to `true`.
|
|
2381
|
+
*/
|
|
2382
|
+
peerDependencies?: DependencyAvailability;
|
|
2383
|
+
}
|
|
2384
|
+
interface UndeclaredVariablesOptions {
|
|
2385
|
+
/**
|
|
2386
|
+
* Check undeclared types.
|
|
2387
|
+
*/
|
|
2388
|
+
checkTypes?: boolean;
|
|
2389
|
+
}
|
|
2340
2390
|
interface UseExhaustiveDependenciesOptions {
|
|
2341
2391
|
/**
|
|
2342
2392
|
* List of hooks of which the dependencies should be validated.
|
|
@@ -2465,6 +2515,7 @@ If `false`, no such exception will be made.
|
|
|
2465
2515
|
ignoreNull: boolean;
|
|
2466
2516
|
}
|
|
2467
2517
|
type ImportGroup = PredefinedImportGroup | Regex;
|
|
2518
|
+
type DependencyAvailability = boolean | string[];
|
|
2468
2519
|
interface Hook {
|
|
2469
2520
|
/**
|
|
2470
2521
|
* The "position" of the closure function, starting from zero.
|
|
@@ -2836,6 +2887,7 @@ type Category =
|
|
|
2836
2887
|
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2837
2888
|
| "lint/nursery/noEnum"
|
|
2838
2889
|
| "lint/nursery/noExportedImports"
|
|
2890
|
+
| "lint/nursery/noGlobalDirnameFilename"
|
|
2839
2891
|
| "lint/nursery/noHeadElement"
|
|
2840
2892
|
| "lint/nursery/noHeadImportInDocument"
|
|
2841
2893
|
| "lint/nursery/noImgElement"
|
|
@@ -3128,6 +3180,7 @@ interface PullActionsParams {
|
|
|
3128
3180
|
path: BiomePath;
|
|
3129
3181
|
range?: TextRange;
|
|
3130
3182
|
skip: RuleCode[];
|
|
3183
|
+
suppression_reason?: string;
|
|
3131
3184
|
}
|
|
3132
3185
|
interface PullActionsResult {
|
|
3133
3186
|
actions: CodeAction[];
|
|
@@ -3138,7 +3191,7 @@ interface CodeAction {
|
|
|
3138
3191
|
suggestion: CodeSuggestion;
|
|
3139
3192
|
}
|
|
3140
3193
|
type ActionCategory =
|
|
3141
|
-
|
|
|
3194
|
+
| { QuickFix: string }
|
|
3142
3195
|
| { Refactor: RefactorKind }
|
|
3143
3196
|
| { Source: SourceActionKind }
|
|
3144
3197
|
| { Other: string };
|
|
@@ -3195,6 +3248,7 @@ interface FixFileParams {
|
|
|
3195
3248
|
rule_categories: RuleCategories;
|
|
3196
3249
|
should_format: boolean;
|
|
3197
3250
|
skip: RuleCode[];
|
|
3251
|
+
suppression_reason?: string;
|
|
3198
3252
|
}
|
|
3199
3253
|
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
|
|
3200
3254
|
interface FixFileResult {
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED