@biomejs/wasm-nodejs 1.9.3-nightly.75b4387 → 1.9.4
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 +118 -21
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -1098,7 +1098,7 @@ interface Correctness {
|
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Enforce all dependencies are correctly specified in a React hook.
|
|
1100
1100
|
*/
|
|
1101
|
-
useExhaustiveDependencies?:
|
|
1101
|
+
useExhaustiveDependencies?: RuleConfiguration_for_UseExhaustiveDependenciesOptions;
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Enforce that all React hooks are being called from the Top Level component functions.
|
|
1104
1104
|
*/
|
|
@@ -1133,6 +1133,18 @@ interface Nursery {
|
|
|
1133
1133
|
* Disallow use of CommonJs module system in favor of ESM style imports.
|
|
1134
1134
|
*/
|
|
1135
1135
|
noCommonJs?: RuleConfiguration_for_Null;
|
|
1136
|
+
/**
|
|
1137
|
+
* Disallow a lower specificity selector from coming after a higher specificity selector.
|
|
1138
|
+
*/
|
|
1139
|
+
noDescendingSpecificity?: RuleConfiguration_for_Null;
|
|
1140
|
+
/**
|
|
1141
|
+
* Disallow direct assignments to document.cookie.
|
|
1142
|
+
*/
|
|
1143
|
+
noDocumentCookie?: RuleConfiguration_for_Null;
|
|
1144
|
+
/**
|
|
1145
|
+
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
1146
|
+
*/
|
|
1147
|
+
noDocumentImportInPage?: RuleConfiguration_for_Null;
|
|
1136
1148
|
/**
|
|
1137
1149
|
* Disallow duplicate custom properties within declaration blocks.
|
|
1138
1150
|
*/
|
|
@@ -1141,6 +1153,10 @@ interface Nursery {
|
|
|
1141
1153
|
* Disallow duplicate conditions in if-else-if chains
|
|
1142
1154
|
*/
|
|
1143
1155
|
noDuplicateElseIf?: RuleConfiguration_for_Null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Disallow duplicate properties within declaration blocks.
|
|
1158
|
+
*/
|
|
1159
|
+
noDuplicateProperties?: RuleConfiguration_for_Null;
|
|
1144
1160
|
/**
|
|
1145
1161
|
* No duplicated fields in GraphQL operations.
|
|
1146
1162
|
*/
|
|
@@ -1157,6 +1173,18 @@ interface Nursery {
|
|
|
1157
1173
|
* Disallow exporting an imported variable.
|
|
1158
1174
|
*/
|
|
1159
1175
|
noExportedImports?: RuleConfiguration_for_Null;
|
|
1176
|
+
/**
|
|
1177
|
+
* Prevent usage of \<head> element in a Next.js project.
|
|
1178
|
+
*/
|
|
1179
|
+
noHeadElement?: RuleConfiguration_for_Null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
1182
|
+
*/
|
|
1183
|
+
noHeadImportInDocument?: RuleConfiguration_for_Null;
|
|
1184
|
+
/**
|
|
1185
|
+
* Prevent usage of \<img> element in a Next.js project.
|
|
1186
|
+
*/
|
|
1187
|
+
noImgElement?: RuleConfiguration_for_Null;
|
|
1160
1188
|
/**
|
|
1161
1189
|
* Disallows the use of irregular whitespace characters.
|
|
1162
1190
|
*/
|
|
@@ -1188,7 +1216,7 @@ interface Nursery {
|
|
|
1188
1216
|
/**
|
|
1189
1217
|
* Disallow usage of sensitive data such as API keys and tokens.
|
|
1190
1218
|
*/
|
|
1191
|
-
noSecrets?:
|
|
1219
|
+
noSecrets?: RuleConfiguration_for_NoSecretsOptions;
|
|
1192
1220
|
/**
|
|
1193
1221
|
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
1194
1222
|
*/
|
|
@@ -1209,10 +1237,18 @@ interface Nursery {
|
|
|
1209
1237
|
* Disallow unknown pseudo-element selectors.
|
|
1210
1238
|
*/
|
|
1211
1239
|
noUnknownPseudoElement?: RuleConfiguration_for_Null;
|
|
1240
|
+
/**
|
|
1241
|
+
* Disallow unknown type selectors.
|
|
1242
|
+
*/
|
|
1243
|
+
noUnknownTypeSelector?: RuleConfiguration_for_Null;
|
|
1212
1244
|
/**
|
|
1213
1245
|
* Disallow unnecessary escape sequence in regular expression literals.
|
|
1214
1246
|
*/
|
|
1215
1247
|
noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
|
|
1248
|
+
/**
|
|
1249
|
+
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
1250
|
+
*/
|
|
1251
|
+
noUselessStringRaw?: RuleConfiguration_for_Null;
|
|
1216
1252
|
/**
|
|
1217
1253
|
* Disallow use of @value rule in css modules.
|
|
1218
1254
|
*/
|
|
@@ -1229,6 +1265,14 @@ interface Nursery {
|
|
|
1229
1265
|
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1230
1266
|
*/
|
|
1231
1267
|
useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
|
|
1268
|
+
/**
|
|
1269
|
+
* Use at() instead of integer index access.
|
|
1270
|
+
*/
|
|
1271
|
+
useAtIndex?: RuleFixConfiguration_for_Null;
|
|
1272
|
+
/**
|
|
1273
|
+
* Enforce using single if instead of nested if clauses.
|
|
1274
|
+
*/
|
|
1275
|
+
useCollapsedIf?: RuleFixConfiguration_for_Null;
|
|
1232
1276
|
/**
|
|
1233
1277
|
* Enforce declaring components only within modules that export React Components exclusively.
|
|
1234
1278
|
*/
|
|
@@ -1248,7 +1292,15 @@ interface Nursery {
|
|
|
1248
1292
|
/**
|
|
1249
1293
|
* Require explicit return types on functions and class methods.
|
|
1250
1294
|
*/
|
|
1251
|
-
|
|
1295
|
+
useExplicitType?: RuleConfiguration_for_Null;
|
|
1296
|
+
/**
|
|
1297
|
+
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
1298
|
+
*/
|
|
1299
|
+
useGoogleFontDisplay?: RuleConfiguration_for_Null;
|
|
1300
|
+
/**
|
|
1301
|
+
* Require for-in loops to include an if statement.
|
|
1302
|
+
*/
|
|
1303
|
+
useGuardForIn?: RuleConfiguration_for_Null;
|
|
1252
1304
|
/**
|
|
1253
1305
|
* Disallows package private imports.
|
|
1254
1306
|
*/
|
|
@@ -1880,9 +1932,9 @@ type RuleFixConfiguration_for_ValidAriaRoleOptions =
|
|
|
1880
1932
|
type RuleConfiguration_for_ComplexityOptions =
|
|
1881
1933
|
| RulePlainConfiguration
|
|
1882
1934
|
| RuleWithOptions_for_ComplexityOptions;
|
|
1883
|
-
type
|
|
1935
|
+
type RuleConfiguration_for_UseExhaustiveDependenciesOptions =
|
|
1884
1936
|
| RulePlainConfiguration
|
|
1885
|
-
|
|
|
1937
|
+
| RuleWithOptions_for_UseExhaustiveDependenciesOptions;
|
|
1886
1938
|
type RuleConfiguration_for_DeprecatedHooksOptions =
|
|
1887
1939
|
| RulePlainConfiguration
|
|
1888
1940
|
| RuleWithOptions_for_DeprecatedHooksOptions;
|
|
@@ -1895,6 +1947,9 @@ type RuleConfiguration_for_RestrictedImportsOptions =
|
|
|
1895
1947
|
type RuleFixConfiguration_for_NoRestrictedTypesOptions =
|
|
1896
1948
|
| RulePlainConfiguration
|
|
1897
1949
|
| RuleWithFixOptions_for_NoRestrictedTypesOptions;
|
|
1950
|
+
type RuleConfiguration_for_NoSecretsOptions =
|
|
1951
|
+
| RulePlainConfiguration
|
|
1952
|
+
| RuleWithOptions_for_NoSecretsOptions;
|
|
1898
1953
|
type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
|
|
1899
1954
|
| RulePlainConfiguration
|
|
1900
1955
|
| RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
|
|
@@ -1998,7 +2053,7 @@ interface RuleWithOptions_for_ComplexityOptions {
|
|
|
1998
2053
|
*/
|
|
1999
2054
|
options: ComplexityOptions;
|
|
2000
2055
|
}
|
|
2001
|
-
interface
|
|
2056
|
+
interface RuleWithOptions_for_UseExhaustiveDependenciesOptions {
|
|
2002
2057
|
/**
|
|
2003
2058
|
* The severity of the emitted diagnostics by the rule
|
|
2004
2059
|
*/
|
|
@@ -2006,7 +2061,7 @@ interface RuleWithOptions_for_HooksOptions {
|
|
|
2006
2061
|
/**
|
|
2007
2062
|
* Rule's options
|
|
2008
2063
|
*/
|
|
2009
|
-
options:
|
|
2064
|
+
options: UseExhaustiveDependenciesOptions;
|
|
2010
2065
|
}
|
|
2011
2066
|
interface RuleWithOptions_for_DeprecatedHooksOptions {
|
|
2012
2067
|
/**
|
|
@@ -2056,6 +2111,16 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
|
|
|
2056
2111
|
*/
|
|
2057
2112
|
options: NoRestrictedTypesOptions;
|
|
2058
2113
|
}
|
|
2114
|
+
interface RuleWithOptions_for_NoSecretsOptions {
|
|
2115
|
+
/**
|
|
2116
|
+
* The severity of the emitted diagnostics by the rule
|
|
2117
|
+
*/
|
|
2118
|
+
level: RulePlainConfiguration;
|
|
2119
|
+
/**
|
|
2120
|
+
* Rule's options
|
|
2121
|
+
*/
|
|
2122
|
+
options: NoSecretsOptions;
|
|
2123
|
+
}
|
|
2059
2124
|
interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
|
|
2060
2125
|
/**
|
|
2061
2126
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2187,38 +2252,46 @@ interface NoLabelWithoutControlOptions {
|
|
|
2187
2252
|
/**
|
|
2188
2253
|
* Array of component names that should be considered the same as an `input` element.
|
|
2189
2254
|
*/
|
|
2190
|
-
inputComponents
|
|
2255
|
+
inputComponents?: string[];
|
|
2191
2256
|
/**
|
|
2192
2257
|
* Array of attributes that should be treated as the `label` accessible text content.
|
|
2193
2258
|
*/
|
|
2194
|
-
labelAttributes
|
|
2259
|
+
labelAttributes?: string[];
|
|
2195
2260
|
/**
|
|
2196
2261
|
* Array of component names that should be considered the same as a `label` element.
|
|
2197
2262
|
*/
|
|
2198
|
-
labelComponents
|
|
2263
|
+
labelComponents?: string[];
|
|
2199
2264
|
}
|
|
2200
2265
|
interface ValidAriaRoleOptions {
|
|
2201
|
-
allowInvalidRoles
|
|
2202
|
-
ignoreNonDom
|
|
2266
|
+
allowInvalidRoles?: string[];
|
|
2267
|
+
ignoreNonDom?: boolean;
|
|
2203
2268
|
}
|
|
2204
2269
|
interface ComplexityOptions {
|
|
2205
2270
|
/**
|
|
2206
2271
|
* The maximum complexity score that we allow. Anything higher is considered excessive.
|
|
2207
2272
|
*/
|
|
2208
|
-
maxAllowedComplexity
|
|
2273
|
+
maxAllowedComplexity?: number;
|
|
2209
2274
|
}
|
|
2210
|
-
interface
|
|
2275
|
+
interface UseExhaustiveDependenciesOptions {
|
|
2211
2276
|
/**
|
|
2212
2277
|
* List of hooks of which the dependencies should be validated.
|
|
2213
2278
|
*/
|
|
2214
|
-
hooks
|
|
2279
|
+
hooks?: Hook[];
|
|
2280
|
+
/**
|
|
2281
|
+
* Whether to report an error when a hook has no dependencies array.
|
|
2282
|
+
*/
|
|
2283
|
+
reportMissingDependenciesArray?: boolean;
|
|
2284
|
+
/**
|
|
2285
|
+
* Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.
|
|
2286
|
+
*/
|
|
2287
|
+
reportUnnecessaryDependencies?: boolean;
|
|
2215
2288
|
}
|
|
2216
2289
|
interface DeprecatedHooksOptions {}
|
|
2217
2290
|
interface UseImportExtensionsOptions {
|
|
2218
2291
|
/**
|
|
2219
2292
|
* A map of custom import extension mappings, where the key is the inspected file extension, and the value is a pair of `module` extension and `component` import extension
|
|
2220
2293
|
*/
|
|
2221
|
-
suggestedExtensions
|
|
2294
|
+
suggestedExtensions?: {};
|
|
2222
2295
|
}
|
|
2223
2296
|
interface RestrictedImportsOptions {
|
|
2224
2297
|
/**
|
|
@@ -2227,7 +2300,13 @@ interface RestrictedImportsOptions {
|
|
|
2227
2300
|
paths: {};
|
|
2228
2301
|
}
|
|
2229
2302
|
interface NoRestrictedTypesOptions {
|
|
2230
|
-
types
|
|
2303
|
+
types?: {};
|
|
2304
|
+
}
|
|
2305
|
+
interface NoSecretsOptions {
|
|
2306
|
+
/**
|
|
2307
|
+
* Set entropy threshold (default is 41).
|
|
2308
|
+
*/
|
|
2309
|
+
entropyThreshold?: number;
|
|
2231
2310
|
}
|
|
2232
2311
|
interface UseComponentExportOnlyModulesOptions {
|
|
2233
2312
|
/**
|
|
@@ -2240,7 +2319,7 @@ interface UseComponentExportOnlyModulesOptions {
|
|
|
2240
2319
|
allowExportNames: string[];
|
|
2241
2320
|
}
|
|
2242
2321
|
interface ConsistentMemberAccessibilityOptions {
|
|
2243
|
-
accessibility
|
|
2322
|
+
accessibility?: Accessibility;
|
|
2244
2323
|
}
|
|
2245
2324
|
interface UtilityClassSortingOptions {
|
|
2246
2325
|
/**
|
|
@@ -2256,7 +2335,7 @@ interface UseValidAutocompleteOptions {
|
|
|
2256
2335
|
/**
|
|
2257
2336
|
* `input` like custom components that should be checked.
|
|
2258
2337
|
*/
|
|
2259
|
-
inputComponents
|
|
2338
|
+
inputComponents?: string[];
|
|
2260
2339
|
}
|
|
2261
2340
|
interface RestrictedGlobalsOptions {
|
|
2262
2341
|
/**
|
|
@@ -2265,7 +2344,7 @@ interface RestrictedGlobalsOptions {
|
|
|
2265
2344
|
deniedGlobals: string[];
|
|
2266
2345
|
}
|
|
2267
2346
|
interface ConsistentArrayTypeOptions {
|
|
2268
|
-
syntax
|
|
2347
|
+
syntax?: ConsistentArrayType;
|
|
2269
2348
|
}
|
|
2270
2349
|
interface FilenamingConventionOptions {
|
|
2271
2350
|
/**
|
|
@@ -2329,7 +2408,7 @@ For example, for React's `useEffect()` hook, the dependencies index is 1.
|
|
|
2329
2408
|
/**
|
|
2330
2409
|
* The name of the hook.
|
|
2331
2410
|
*/
|
|
2332
|
-
name
|
|
2411
|
+
name?: string;
|
|
2333
2412
|
/**
|
|
2334
2413
|
* Whether the result of the hook is stable.
|
|
2335
2414
|
|
|
@@ -2671,14 +2750,21 @@ type Category =
|
|
|
2671
2750
|
| "lint/nursery/noColorInvalidHex"
|
|
2672
2751
|
| "lint/nursery/noCommonJs"
|
|
2673
2752
|
| "lint/nursery/noConsole"
|
|
2753
|
+
| "lint/nursery/noDescendingSpecificity"
|
|
2754
|
+
| "lint/nursery/noDocumentCookie"
|
|
2755
|
+
| "lint/nursery/noDocumentImportInPage"
|
|
2674
2756
|
| "lint/nursery/noDoneCallback"
|
|
2675
2757
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
2676
2758
|
| "lint/nursery/noDuplicateCustomProperties"
|
|
2677
2759
|
| "lint/nursery/noDuplicateElseIf"
|
|
2760
|
+
| "lint/nursery/noDuplicateProperties"
|
|
2678
2761
|
| "lint/nursery/noDuplicatedFields"
|
|
2679
2762
|
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2680
2763
|
| "lint/nursery/noEnum"
|
|
2681
2764
|
| "lint/nursery/noExportedImports"
|
|
2765
|
+
| "lint/nursery/noHeadElement"
|
|
2766
|
+
| "lint/nursery/noHeadImportInDocument"
|
|
2767
|
+
| "lint/nursery/noImgElement"
|
|
2682
2768
|
| "lint/nursery/noImportantInKeyframe"
|
|
2683
2769
|
| "lint/nursery/noInvalidDirectionInLinearGradient"
|
|
2684
2770
|
| "lint/nursery/noInvalidGridAreas"
|
|
@@ -2705,19 +2791,26 @@ type Category =
|
|
|
2705
2791
|
| "lint/nursery/noUnknownPseudoClassSelector"
|
|
2706
2792
|
| "lint/nursery/noUnknownPseudoElement"
|
|
2707
2793
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
2794
|
+
| "lint/nursery/noUnknownTypeSelector"
|
|
2708
2795
|
| "lint/nursery/noUnknownUnit"
|
|
2709
2796
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2710
2797
|
| "lint/nursery/noUnusedFunctionParameters"
|
|
2711
2798
|
| "lint/nursery/noUselessEscapeInRegex"
|
|
2799
|
+
| "lint/nursery/noUselessStringRaw"
|
|
2712
2800
|
| "lint/nursery/noValueAtRule"
|
|
2713
2801
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2714
2802
|
| "lint/nursery/useAriaPropsSupportedByRole"
|
|
2803
|
+
| "lint/nursery/useAtIndex"
|
|
2715
2804
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2805
|
+
| "lint/nursery/useCollapsedIf"
|
|
2716
2806
|
| "lint/nursery/useComponentExportOnlyModules"
|
|
2717
2807
|
| "lint/nursery/useConsistentCurlyBraces"
|
|
2718
2808
|
| "lint/nursery/useConsistentMemberAccessibility"
|
|
2719
2809
|
| "lint/nursery/useDeprecatedReason"
|
|
2720
2810
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
2811
|
+
| "lint/nursery/useExplicitType"
|
|
2812
|
+
| "lint/nursery/useGoogleFontDisplay"
|
|
2813
|
+
| "lint/nursery/useGuardForIn"
|
|
2721
2814
|
| "lint/nursery/useImportRestrictions"
|
|
2722
2815
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2723
2816
|
| "lint/nursery/useSortedClasses"
|
|
@@ -2869,6 +2962,10 @@ type Category =
|
|
|
2869
2962
|
| "internalError/io"
|
|
2870
2963
|
| "internalError/fs"
|
|
2871
2964
|
| "internalError/panic"
|
|
2965
|
+
| "reporter/parse"
|
|
2966
|
+
| "reporter/format"
|
|
2967
|
+
| "reporter/analyzer"
|
|
2968
|
+
| "reporter/organizeImports"
|
|
2872
2969
|
| "parse"
|
|
2873
2970
|
| "lint"
|
|
2874
2971
|
| "lint/a11y"
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED