@biomejs/wasm-nodejs 1.9.3 → 1.9.5-nightly.4713c52
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 +267 -108
- 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.
|
|
610
|
+
*/
|
|
611
|
+
organizeImports?: RuleAssistConfiguration_for_Options;
|
|
612
|
+
/**
|
|
613
|
+
* Enforce attribute sorting in JSX elements.
|
|
608
614
|
*/
|
|
609
|
-
|
|
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";
|
|
@@ -1137,6 +1143,14 @@ interface Nursery {
|
|
|
1137
1143
|
* Disallow a lower specificity selector from coming after a higher specificity selector.
|
|
1138
1144
|
*/
|
|
1139
1145
|
noDescendingSpecificity?: RuleConfiguration_for_Null;
|
|
1146
|
+
/**
|
|
1147
|
+
* Disallow direct assignments to document.cookie.
|
|
1148
|
+
*/
|
|
1149
|
+
noDocumentCookie?: RuleConfiguration_for_Null;
|
|
1150
|
+
/**
|
|
1151
|
+
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
1152
|
+
*/
|
|
1153
|
+
noDocumentImportInPage?: RuleConfiguration_for_Null;
|
|
1140
1154
|
/**
|
|
1141
1155
|
* Disallow duplicate custom properties within declaration blocks.
|
|
1142
1156
|
*/
|
|
@@ -1145,6 +1159,10 @@ interface Nursery {
|
|
|
1145
1159
|
* Disallow duplicate conditions in if-else-if chains
|
|
1146
1160
|
*/
|
|
1147
1161
|
noDuplicateElseIf?: RuleConfiguration_for_Null;
|
|
1162
|
+
/**
|
|
1163
|
+
* Disallow duplicate properties within declaration blocks.
|
|
1164
|
+
*/
|
|
1165
|
+
noDuplicateProperties?: RuleConfiguration_for_Null;
|
|
1148
1166
|
/**
|
|
1149
1167
|
* No duplicated fields in GraphQL operations.
|
|
1150
1168
|
*/
|
|
@@ -1161,6 +1179,18 @@ interface Nursery {
|
|
|
1161
1179
|
* Disallow exporting an imported variable.
|
|
1162
1180
|
*/
|
|
1163
1181
|
noExportedImports?: RuleConfiguration_for_Null;
|
|
1182
|
+
/**
|
|
1183
|
+
* Prevent usage of \<head> element in a Next.js project.
|
|
1184
|
+
*/
|
|
1185
|
+
noHeadElement?: RuleConfiguration_for_Null;
|
|
1186
|
+
/**
|
|
1187
|
+
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
1188
|
+
*/
|
|
1189
|
+
noHeadImportInDocument?: RuleConfiguration_for_Null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Prevent usage of \<img> element in a Next.js project.
|
|
1192
|
+
*/
|
|
1193
|
+
noImgElement?: RuleConfiguration_for_Null;
|
|
1164
1194
|
/**
|
|
1165
1195
|
* Disallows the use of irregular whitespace characters.
|
|
1166
1196
|
*/
|
|
@@ -1192,7 +1222,7 @@ interface Nursery {
|
|
|
1192
1222
|
/**
|
|
1193
1223
|
* Disallow usage of sensitive data such as API keys and tokens.
|
|
1194
1224
|
*/
|
|
1195
|
-
noSecrets?:
|
|
1225
|
+
noSecrets?: RuleConfiguration_for_NoSecretsOptions;
|
|
1196
1226
|
/**
|
|
1197
1227
|
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
1198
1228
|
*/
|
|
@@ -1213,10 +1243,22 @@ interface Nursery {
|
|
|
1213
1243
|
* Disallow unknown pseudo-element selectors.
|
|
1214
1244
|
*/
|
|
1215
1245
|
noUnknownPseudoElement?: RuleConfiguration_for_Null;
|
|
1246
|
+
/**
|
|
1247
|
+
* Disallow unknown type selectors.
|
|
1248
|
+
*/
|
|
1249
|
+
noUnknownTypeSelector?: RuleConfiguration_for_Null;
|
|
1216
1250
|
/**
|
|
1217
1251
|
* Disallow unnecessary escape sequence in regular expression literals.
|
|
1218
1252
|
*/
|
|
1219
1253
|
noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
|
|
1254
|
+
/**
|
|
1255
|
+
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
1256
|
+
*/
|
|
1257
|
+
noUselessStringRaw?: RuleConfiguration_for_Null;
|
|
1258
|
+
/**
|
|
1259
|
+
* Disallow the use of useless undefined.
|
|
1260
|
+
*/
|
|
1261
|
+
noUselessUndefined?: RuleFixConfiguration_for_Null;
|
|
1220
1262
|
/**
|
|
1221
1263
|
* Disallow use of @value rule in css modules.
|
|
1222
1264
|
*/
|
|
@@ -1233,6 +1275,14 @@ interface Nursery {
|
|
|
1233
1275
|
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1234
1276
|
*/
|
|
1235
1277
|
useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
|
|
1278
|
+
/**
|
|
1279
|
+
* Use at() instead of integer index access.
|
|
1280
|
+
*/
|
|
1281
|
+
useAtIndex?: RuleFixConfiguration_for_Null;
|
|
1282
|
+
/**
|
|
1283
|
+
* Enforce using single if instead of nested if clauses.
|
|
1284
|
+
*/
|
|
1285
|
+
useCollapsedIf?: RuleFixConfiguration_for_Null;
|
|
1236
1286
|
/**
|
|
1237
1287
|
* Enforce declaring components only within modules that export React Components exclusively.
|
|
1238
1288
|
*/
|
|
@@ -1252,11 +1302,27 @@ interface Nursery {
|
|
|
1252
1302
|
/**
|
|
1253
1303
|
* Require explicit return types on functions and class methods.
|
|
1254
1304
|
*/
|
|
1255
|
-
|
|
1305
|
+
useExplicitType?: RuleConfiguration_for_Null;
|
|
1306
|
+
/**
|
|
1307
|
+
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
1308
|
+
*/
|
|
1309
|
+
useGoogleFontDisplay?: RuleConfiguration_for_Null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
1312
|
+
*/
|
|
1313
|
+
useGoogleFontPreconnect?: RuleFixConfiguration_for_Null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Require for-in loops to include an if statement.
|
|
1316
|
+
*/
|
|
1317
|
+
useGuardForIn?: RuleConfiguration_for_Null;
|
|
1256
1318
|
/**
|
|
1257
1319
|
* Disallows package private imports.
|
|
1258
1320
|
*/
|
|
1259
1321
|
useImportRestrictions?: RuleConfiguration_for_Null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Enforce specifying the name of GraphQL operations.
|
|
1324
|
+
*/
|
|
1325
|
+
useNamedOperation?: RuleFixConfiguration_for_Null;
|
|
1260
1326
|
/**
|
|
1261
1327
|
* Enforce the sorting of CSS utility classes.
|
|
1262
1328
|
*/
|
|
@@ -1498,7 +1564,7 @@ interface Style {
|
|
|
1498
1564
|
/**
|
|
1499
1565
|
* Prevent extra closing tags for components without children
|
|
1500
1566
|
*/
|
|
1501
|
-
useSelfClosingElements?:
|
|
1567
|
+
useSelfClosingElements?: RuleFixConfiguration_for_UseSelfClosingElementsOptions;
|
|
1502
1568
|
/**
|
|
1503
1569
|
* When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
|
|
1504
1570
|
*/
|
|
@@ -1728,7 +1794,7 @@ interface Suspicious {
|
|
|
1728
1794
|
/**
|
|
1729
1795
|
* Disallow direct use of Object.prototype builtins.
|
|
1730
1796
|
*/
|
|
1731
|
-
noPrototypeBuiltins?:
|
|
1797
|
+
noPrototypeBuiltins?: RuleFixConfiguration_for_Null;
|
|
1732
1798
|
/**
|
|
1733
1799
|
* Prevents React-specific JSX properties from being used.
|
|
1734
1800
|
*/
|
|
@@ -1865,7 +1931,12 @@ interface OverrideOrganizeImportsConfiguration {
|
|
|
1865
1931
|
*/
|
|
1866
1932
|
enabled?: boolean;
|
|
1867
1933
|
}
|
|
1868
|
-
type
|
|
1934
|
+
type RuleAssistConfiguration_for_Options =
|
|
1935
|
+
| RuleAssistPlainConfiguration
|
|
1936
|
+
| RuleAssistWithOptions_for_Options;
|
|
1937
|
+
type RuleAssistConfiguration_for_Null =
|
|
1938
|
+
| RuleAssistPlainConfiguration
|
|
1939
|
+
| RuleAssistWithOptions_for_Null;
|
|
1869
1940
|
type RuleFixConfiguration_for_Null =
|
|
1870
1941
|
| RulePlainConfiguration
|
|
1871
1942
|
| RuleWithFixOptions_for_Null;
|
|
@@ -1899,6 +1970,9 @@ type RuleConfiguration_for_RestrictedImportsOptions =
|
|
|
1899
1970
|
type RuleFixConfiguration_for_NoRestrictedTypesOptions =
|
|
1900
1971
|
| RulePlainConfiguration
|
|
1901
1972
|
| RuleWithFixOptions_for_NoRestrictedTypesOptions;
|
|
1973
|
+
type RuleConfiguration_for_NoSecretsOptions =
|
|
1974
|
+
| RulePlainConfiguration
|
|
1975
|
+
| RuleWithOptions_for_NoSecretsOptions;
|
|
1902
1976
|
type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
|
|
1903
1977
|
| RulePlainConfiguration
|
|
1904
1978
|
| RuleWithOptions_for_UseComponentExportOnlyModulesOptions;
|
|
@@ -1923,12 +1997,36 @@ type RuleConfiguration_for_FilenamingConventionOptions =
|
|
|
1923
1997
|
type RuleFixConfiguration_for_NamingConventionOptions =
|
|
1924
1998
|
| RulePlainConfiguration
|
|
1925
1999
|
| RuleWithFixOptions_for_NamingConventionOptions;
|
|
2000
|
+
type RuleFixConfiguration_for_UseSelfClosingElementsOptions =
|
|
2001
|
+
| RulePlainConfiguration
|
|
2002
|
+
| RuleWithFixOptions_for_UseSelfClosingElementsOptions;
|
|
1926
2003
|
type RuleFixConfiguration_for_NoConsoleOptions =
|
|
1927
2004
|
| RulePlainConfiguration
|
|
1928
2005
|
| RuleWithFixOptions_for_NoConsoleOptions;
|
|
1929
2006
|
type RuleFixConfiguration_for_NoDoubleEqualsOptions =
|
|
1930
2007
|
| RulePlainConfiguration
|
|
1931
2008
|
| RuleWithFixOptions_for_NoDoubleEqualsOptions;
|
|
2009
|
+
type RuleAssistPlainConfiguration = "on" | "off";
|
|
2010
|
+
interface RuleAssistWithOptions_for_Options {
|
|
2011
|
+
/**
|
|
2012
|
+
* The severity of the emitted diagnostics by the rule
|
|
2013
|
+
*/
|
|
2014
|
+
level: RuleAssistPlainConfiguration;
|
|
2015
|
+
/**
|
|
2016
|
+
* Rule's options
|
|
2017
|
+
*/
|
|
2018
|
+
options: Options;
|
|
2019
|
+
}
|
|
2020
|
+
interface RuleAssistWithOptions_for_Null {
|
|
2021
|
+
/**
|
|
2022
|
+
* The severity of the emitted diagnostics by the rule
|
|
2023
|
+
*/
|
|
2024
|
+
level: RuleAssistPlainConfiguration;
|
|
2025
|
+
/**
|
|
2026
|
+
* Rule's options
|
|
2027
|
+
*/
|
|
2028
|
+
options: null;
|
|
2029
|
+
}
|
|
1932
2030
|
type RulePlainConfiguration = "warn" | "error" | "info" | "off";
|
|
1933
2031
|
interface RuleWithFixOptions_for_Null {
|
|
1934
2032
|
/**
|
|
@@ -2060,6 +2158,16 @@ interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
|
|
|
2060
2158
|
*/
|
|
2061
2159
|
options: NoRestrictedTypesOptions;
|
|
2062
2160
|
}
|
|
2161
|
+
interface RuleWithOptions_for_NoSecretsOptions {
|
|
2162
|
+
/**
|
|
2163
|
+
* The severity of the emitted diagnostics by the rule
|
|
2164
|
+
*/
|
|
2165
|
+
level: RulePlainConfiguration;
|
|
2166
|
+
/**
|
|
2167
|
+
* Rule's options
|
|
2168
|
+
*/
|
|
2169
|
+
options: NoSecretsOptions;
|
|
2170
|
+
}
|
|
2063
2171
|
interface RuleWithOptions_for_UseComponentExportOnlyModulesOptions {
|
|
2064
2172
|
/**
|
|
2065
2173
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -2152,6 +2260,20 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
|
|
|
2152
2260
|
*/
|
|
2153
2261
|
options: NamingConventionOptions;
|
|
2154
2262
|
}
|
|
2263
|
+
interface RuleWithFixOptions_for_UseSelfClosingElementsOptions {
|
|
2264
|
+
/**
|
|
2265
|
+
* The kind of the code actions emitted by the rule
|
|
2266
|
+
*/
|
|
2267
|
+
fix?: FixKind;
|
|
2268
|
+
/**
|
|
2269
|
+
* The severity of the emitted diagnostics by the rule
|
|
2270
|
+
*/
|
|
2271
|
+
level: RulePlainConfiguration;
|
|
2272
|
+
/**
|
|
2273
|
+
* Rule's options
|
|
2274
|
+
*/
|
|
2275
|
+
options: UseSelfClosingElementsOptions;
|
|
2276
|
+
}
|
|
2155
2277
|
interface RuleWithFixOptions_for_NoConsoleOptions {
|
|
2156
2278
|
/**
|
|
2157
2279
|
* The kind of the code actions emitted by the rule
|
|
@@ -2180,6 +2302,10 @@ interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
|
|
|
2180
2302
|
*/
|
|
2181
2303
|
options: NoDoubleEqualsOptions;
|
|
2182
2304
|
}
|
|
2305
|
+
interface Options {
|
|
2306
|
+
importGroups?: ImportGroup[];
|
|
2307
|
+
legacy?: boolean;
|
|
2308
|
+
}
|
|
2183
2309
|
type FixKind = "none" | "safe" | "unsafe";
|
|
2184
2310
|
interface AllowDomainOptions {
|
|
2185
2311
|
/**
|
|
@@ -2202,20 +2328,24 @@ interface NoLabelWithoutControlOptions {
|
|
|
2202
2328
|
labelComponents?: string[];
|
|
2203
2329
|
}
|
|
2204
2330
|
interface ValidAriaRoleOptions {
|
|
2205
|
-
allowInvalidRoles
|
|
2206
|
-
ignoreNonDom
|
|
2331
|
+
allowInvalidRoles?: string[];
|
|
2332
|
+
ignoreNonDom?: boolean;
|
|
2207
2333
|
}
|
|
2208
2334
|
interface ComplexityOptions {
|
|
2209
2335
|
/**
|
|
2210
2336
|
* The maximum complexity score that we allow. Anything higher is considered excessive.
|
|
2211
2337
|
*/
|
|
2212
|
-
maxAllowedComplexity
|
|
2338
|
+
maxAllowedComplexity?: number;
|
|
2213
2339
|
}
|
|
2214
2340
|
interface UseExhaustiveDependenciesOptions {
|
|
2215
2341
|
/**
|
|
2216
2342
|
* List of hooks of which the dependencies should be validated.
|
|
2217
2343
|
*/
|
|
2218
2344
|
hooks?: Hook[];
|
|
2345
|
+
/**
|
|
2346
|
+
* Whether to report an error when a hook has no dependencies array.
|
|
2347
|
+
*/
|
|
2348
|
+
reportMissingDependenciesArray?: boolean;
|
|
2219
2349
|
/**
|
|
2220
2350
|
* Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.
|
|
2221
2351
|
*/
|
|
@@ -2226,7 +2356,7 @@ interface UseImportExtensionsOptions {
|
|
|
2226
2356
|
/**
|
|
2227
2357
|
* 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
|
|
2228
2358
|
*/
|
|
2229
|
-
suggestedExtensions
|
|
2359
|
+
suggestedExtensions?: {};
|
|
2230
2360
|
}
|
|
2231
2361
|
interface RestrictedImportsOptions {
|
|
2232
2362
|
/**
|
|
@@ -2235,7 +2365,13 @@ interface RestrictedImportsOptions {
|
|
|
2235
2365
|
paths: {};
|
|
2236
2366
|
}
|
|
2237
2367
|
interface NoRestrictedTypesOptions {
|
|
2238
|
-
types
|
|
2368
|
+
types?: {};
|
|
2369
|
+
}
|
|
2370
|
+
interface NoSecretsOptions {
|
|
2371
|
+
/**
|
|
2372
|
+
* Set entropy threshold (default is 41).
|
|
2373
|
+
*/
|
|
2374
|
+
entropyThreshold?: number;
|
|
2239
2375
|
}
|
|
2240
2376
|
interface UseComponentExportOnlyModulesOptions {
|
|
2241
2377
|
/**
|
|
@@ -2248,7 +2384,7 @@ interface UseComponentExportOnlyModulesOptions {
|
|
|
2248
2384
|
allowExportNames: string[];
|
|
2249
2385
|
}
|
|
2250
2386
|
interface ConsistentMemberAccessibilityOptions {
|
|
2251
|
-
accessibility
|
|
2387
|
+
accessibility?: Accessibility;
|
|
2252
2388
|
}
|
|
2253
2389
|
interface UtilityClassSortingOptions {
|
|
2254
2390
|
/**
|
|
@@ -2264,7 +2400,7 @@ interface UseValidAutocompleteOptions {
|
|
|
2264
2400
|
/**
|
|
2265
2401
|
* `input` like custom components that should be checked.
|
|
2266
2402
|
*/
|
|
2267
|
-
inputComponents
|
|
2403
|
+
inputComponents?: string[];
|
|
2268
2404
|
}
|
|
2269
2405
|
interface RestrictedGlobalsOptions {
|
|
2270
2406
|
/**
|
|
@@ -2273,13 +2409,17 @@ interface RestrictedGlobalsOptions {
|
|
|
2273
2409
|
deniedGlobals: string[];
|
|
2274
2410
|
}
|
|
2275
2411
|
interface ConsistentArrayTypeOptions {
|
|
2276
|
-
syntax
|
|
2412
|
+
syntax?: ConsistentArrayType;
|
|
2277
2413
|
}
|
|
2278
2414
|
interface FilenamingConventionOptions {
|
|
2279
2415
|
/**
|
|
2280
2416
|
* Allowed cases for file names.
|
|
2281
2417
|
*/
|
|
2282
2418
|
filenameCases: FilenameCases;
|
|
2419
|
+
/**
|
|
2420
|
+
* Regular expression to enforce
|
|
2421
|
+
*/
|
|
2422
|
+
match?: Regex;
|
|
2283
2423
|
/**
|
|
2284
2424
|
* If `false`, then non-ASCII characters are allowed.
|
|
2285
2425
|
*/
|
|
@@ -2307,6 +2447,9 @@ interface NamingConventionOptions {
|
|
|
2307
2447
|
*/
|
|
2308
2448
|
strictCase: boolean;
|
|
2309
2449
|
}
|
|
2450
|
+
interface UseSelfClosingElementsOptions {
|
|
2451
|
+
ignoreHtmlElements?: boolean;
|
|
2452
|
+
}
|
|
2310
2453
|
interface NoConsoleOptions {
|
|
2311
2454
|
/**
|
|
2312
2455
|
* Allowed calls on the console object.
|
|
@@ -2321,6 +2464,7 @@ If `false`, no such exception will be made.
|
|
|
2321
2464
|
*/
|
|
2322
2465
|
ignoreNull: boolean;
|
|
2323
2466
|
}
|
|
2467
|
+
type ImportGroup = PredefinedImportGroup | Regex;
|
|
2324
2468
|
interface Hook {
|
|
2325
2469
|
/**
|
|
2326
2470
|
* The "position" of the closure function, starting from zero.
|
|
@@ -2337,7 +2481,7 @@ For example, for React's `useEffect()` hook, the dependencies index is 1.
|
|
|
2337
2481
|
/**
|
|
2338
2482
|
* The name of the hook.
|
|
2339
2483
|
*/
|
|
2340
|
-
name
|
|
2484
|
+
name?: string;
|
|
2341
2485
|
/**
|
|
2342
2486
|
* Whether the result of the hook is stable.
|
|
2343
2487
|
|
|
@@ -2350,6 +2494,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
|
|
|
2350
2494
|
type Accessibility = "noPublic" | "explicit" | "none";
|
|
2351
2495
|
type ConsistentArrayType = "shorthand" | "generic";
|
|
2352
2496
|
type FilenameCases = FilenameCase[];
|
|
2497
|
+
type Regex = string;
|
|
2353
2498
|
interface Convention {
|
|
2354
2499
|
/**
|
|
2355
2500
|
* String cases to enforce
|
|
@@ -2365,6 +2510,7 @@ interface Convention {
|
|
|
2365
2510
|
selector: Selector;
|
|
2366
2511
|
}
|
|
2367
2512
|
type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
|
|
2513
|
+
type PredefinedImportGroup = ":blank-line:" | ":bun:" | ":node:" | ":types:";
|
|
2368
2514
|
type StableHookResult = boolean | number[];
|
|
2369
2515
|
type FilenameCase =
|
|
2370
2516
|
| "camelCase"
|
|
@@ -2373,7 +2519,6 @@ type FilenameCase =
|
|
|
2373
2519
|
| "PascalCase"
|
|
2374
2520
|
| "snake_case";
|
|
2375
2521
|
type Formats = Format[];
|
|
2376
|
-
type Regex = string;
|
|
2377
2522
|
interface Selector {
|
|
2378
2523
|
/**
|
|
2379
2524
|
* Declaration kind
|
|
@@ -2680,14 +2825,20 @@ type Category =
|
|
|
2680
2825
|
| "lint/nursery/noCommonJs"
|
|
2681
2826
|
| "lint/nursery/noConsole"
|
|
2682
2827
|
| "lint/nursery/noDescendingSpecificity"
|
|
2828
|
+
| "lint/nursery/noDocumentCookie"
|
|
2829
|
+
| "lint/nursery/noDocumentImportInPage"
|
|
2683
2830
|
| "lint/nursery/noDoneCallback"
|
|
2684
2831
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
2685
2832
|
| "lint/nursery/noDuplicateCustomProperties"
|
|
2686
2833
|
| "lint/nursery/noDuplicateElseIf"
|
|
2834
|
+
| "lint/nursery/noDuplicateProperties"
|
|
2687
2835
|
| "lint/nursery/noDuplicatedFields"
|
|
2688
2836
|
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2689
2837
|
| "lint/nursery/noEnum"
|
|
2690
2838
|
| "lint/nursery/noExportedImports"
|
|
2839
|
+
| "lint/nursery/noHeadElement"
|
|
2840
|
+
| "lint/nursery/noHeadImportInDocument"
|
|
2841
|
+
| "lint/nursery/noImgElement"
|
|
2691
2842
|
| "lint/nursery/noImportantInKeyframe"
|
|
2692
2843
|
| "lint/nursery/noInvalidDirectionInLinearGradient"
|
|
2693
2844
|
| "lint/nursery/noInvalidGridAreas"
|
|
@@ -2714,21 +2865,31 @@ type Category =
|
|
|
2714
2865
|
| "lint/nursery/noUnknownPseudoClassSelector"
|
|
2715
2866
|
| "lint/nursery/noUnknownPseudoElement"
|
|
2716
2867
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
2868
|
+
| "lint/nursery/noUnknownTypeSelector"
|
|
2717
2869
|
| "lint/nursery/noUnknownUnit"
|
|
2718
2870
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2719
2871
|
| "lint/nursery/noUnusedFunctionParameters"
|
|
2720
2872
|
| "lint/nursery/noUselessEscapeInRegex"
|
|
2873
|
+
| "lint/nursery/noUselessStringRaw"
|
|
2874
|
+
| "lint/nursery/noUselessUndefined"
|
|
2721
2875
|
| "lint/nursery/noValueAtRule"
|
|
2722
2876
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2723
2877
|
| "lint/nursery/useAriaPropsSupportedByRole"
|
|
2878
|
+
| "lint/nursery/useAtIndex"
|
|
2724
2879
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2880
|
+
| "lint/nursery/useCollapsedIf"
|
|
2725
2881
|
| "lint/nursery/useComponentExportOnlyModules"
|
|
2726
2882
|
| "lint/nursery/useConsistentCurlyBraces"
|
|
2727
2883
|
| "lint/nursery/useConsistentMemberAccessibility"
|
|
2728
2884
|
| "lint/nursery/useDeprecatedReason"
|
|
2729
2885
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
2886
|
+
| "lint/nursery/useExplicitType"
|
|
2887
|
+
| "lint/nursery/useGoogleFontDisplay"
|
|
2888
|
+
| "lint/nursery/useGoogleFontPreconnect"
|
|
2889
|
+
| "lint/nursery/useGuardForIn"
|
|
2730
2890
|
| "lint/nursery/useImportRestrictions"
|
|
2731
2891
|
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2892
|
+
| "lint/nursery/useNamedOperation"
|
|
2732
2893
|
| "lint/nursery/useSortedClasses"
|
|
2733
2894
|
| "lint/nursery/useStrictMode"
|
|
2734
2895
|
| "lint/nursery/useTrimStartEnd"
|
|
@@ -2878,6 +3039,10 @@ type Category =
|
|
|
2878
3039
|
| "internalError/io"
|
|
2879
3040
|
| "internalError/fs"
|
|
2880
3041
|
| "internalError/panic"
|
|
3042
|
+
| "reporter/parse"
|
|
3043
|
+
| "reporter/format"
|
|
3044
|
+
| "reporter/analyzer"
|
|
3045
|
+
| "reporter/organizeImports"
|
|
2881
3046
|
| "parse"
|
|
2882
3047
|
| "lint"
|
|
2883
3048
|
| "lint/a11y"
|
|
@@ -3031,7 +3196,7 @@ interface FixFileParams {
|
|
|
3031
3196
|
should_format: boolean;
|
|
3032
3197
|
skip: RuleCode[];
|
|
3033
3198
|
}
|
|
3034
|
-
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
|
|
3199
|
+
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes" | "ApplySuppressions";
|
|
3035
3200
|
interface FixFileResult {
|
|
3036
3201
|
/**
|
|
3037
3202
|
* List of all the code actions applied to the file
|
|
@@ -3077,119 +3242,113 @@ interface RenameResult {
|
|
|
3077
3242
|
}
|
|
3078
3243
|
|
|
3079
3244
|
|
|
3080
|
-
/**
|
|
3081
|
-
*/
|
|
3082
3245
|
export class DiagnosticPrinter {
|
|
3083
3246
|
free(): void;
|
|
3084
|
-
/**
|
|
3085
|
-
* @param {string} file_name
|
|
3086
|
-
* @param {string} file_source
|
|
3087
|
-
*/
|
|
3247
|
+
/**
|
|
3248
|
+
* @param {string} file_name
|
|
3249
|
+
* @param {string} file_source
|
|
3250
|
+
*/
|
|
3088
3251
|
constructor(file_name: string, file_source: string);
|
|
3089
|
-
/**
|
|
3090
|
-
* @param {Diagnostic} diagnostic
|
|
3091
|
-
*/
|
|
3252
|
+
/**
|
|
3253
|
+
* @param {Diagnostic} diagnostic
|
|
3254
|
+
*/
|
|
3092
3255
|
print_simple(diagnostic: Diagnostic): void;
|
|
3093
|
-
/**
|
|
3094
|
-
* @param {Diagnostic} diagnostic
|
|
3095
|
-
*/
|
|
3256
|
+
/**
|
|
3257
|
+
* @param {Diagnostic} diagnostic
|
|
3258
|
+
*/
|
|
3096
3259
|
print_verbose(diagnostic: Diagnostic): void;
|
|
3097
|
-
/**
|
|
3098
|
-
* @returns {string}
|
|
3099
|
-
*/
|
|
3260
|
+
/**
|
|
3261
|
+
* @returns {string}
|
|
3262
|
+
*/
|
|
3100
3263
|
finish(): string;
|
|
3101
3264
|
}
|
|
3102
|
-
/**
|
|
3103
|
-
*/
|
|
3104
3265
|
export class Workspace {
|
|
3105
3266
|
free(): void;
|
|
3106
|
-
/**
|
|
3107
|
-
*/
|
|
3108
3267
|
constructor();
|
|
3109
|
-
/**
|
|
3110
|
-
* @param {SupportsFeatureParams} params
|
|
3111
|
-
* @returns {FileFeaturesResult}
|
|
3112
|
-
*/
|
|
3268
|
+
/**
|
|
3269
|
+
* @param {SupportsFeatureParams} params
|
|
3270
|
+
* @returns {FileFeaturesResult}
|
|
3271
|
+
*/
|
|
3113
3272
|
fileFeatures(params: SupportsFeatureParams): FileFeaturesResult;
|
|
3114
|
-
/**
|
|
3115
|
-
* @param {UpdateSettingsParams} params
|
|
3116
|
-
*/
|
|
3273
|
+
/**
|
|
3274
|
+
* @param {UpdateSettingsParams} params
|
|
3275
|
+
*/
|
|
3117
3276
|
updateSettings(params: UpdateSettingsParams): void;
|
|
3118
|
-
/**
|
|
3119
|
-
* @param {RegisterProjectFolderParams} params
|
|
3120
|
-
* @returns {ProjectKey}
|
|
3121
|
-
*/
|
|
3277
|
+
/**
|
|
3278
|
+
* @param {RegisterProjectFolderParams} params
|
|
3279
|
+
* @returns {ProjectKey}
|
|
3280
|
+
*/
|
|
3122
3281
|
registerProjectFolder(params: RegisterProjectFolderParams): ProjectKey;
|
|
3123
|
-
/**
|
|
3124
|
-
* @param {OpenFileParams} params
|
|
3125
|
-
*/
|
|
3282
|
+
/**
|
|
3283
|
+
* @param {OpenFileParams} params
|
|
3284
|
+
*/
|
|
3126
3285
|
openFile(params: OpenFileParams): void;
|
|
3127
|
-
/**
|
|
3128
|
-
* @param {GetFileContentParams} params
|
|
3129
|
-
* @returns {string}
|
|
3130
|
-
*/
|
|
3286
|
+
/**
|
|
3287
|
+
* @param {GetFileContentParams} params
|
|
3288
|
+
* @returns {string}
|
|
3289
|
+
*/
|
|
3131
3290
|
getFileContent(params: GetFileContentParams): string;
|
|
3132
|
-
/**
|
|
3133
|
-
* @param {GetSyntaxTreeParams} params
|
|
3134
|
-
* @returns {GetSyntaxTreeResult}
|
|
3135
|
-
*/
|
|
3291
|
+
/**
|
|
3292
|
+
* @param {GetSyntaxTreeParams} params
|
|
3293
|
+
* @returns {GetSyntaxTreeResult}
|
|
3294
|
+
*/
|
|
3136
3295
|
getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
|
|
3137
|
-
/**
|
|
3138
|
-
* @param {GetControlFlowGraphParams} params
|
|
3139
|
-
* @returns {string}
|
|
3140
|
-
*/
|
|
3296
|
+
/**
|
|
3297
|
+
* @param {GetControlFlowGraphParams} params
|
|
3298
|
+
* @returns {string}
|
|
3299
|
+
*/
|
|
3141
3300
|
getControlFlowGraph(params: GetControlFlowGraphParams): string;
|
|
3142
|
-
/**
|
|
3143
|
-
* @param {GetFormatterIRParams} params
|
|
3144
|
-
* @returns {string}
|
|
3145
|
-
*/
|
|
3301
|
+
/**
|
|
3302
|
+
* @param {GetFormatterIRParams} params
|
|
3303
|
+
* @returns {string}
|
|
3304
|
+
*/
|
|
3146
3305
|
getFormatterIr(params: GetFormatterIRParams): string;
|
|
3147
|
-
/**
|
|
3148
|
-
* @param {ChangeFileParams} params
|
|
3149
|
-
*/
|
|
3306
|
+
/**
|
|
3307
|
+
* @param {ChangeFileParams} params
|
|
3308
|
+
*/
|
|
3150
3309
|
changeFile(params: ChangeFileParams): void;
|
|
3151
|
-
/**
|
|
3152
|
-
* @param {CloseFileParams} params
|
|
3153
|
-
*/
|
|
3310
|
+
/**
|
|
3311
|
+
* @param {CloseFileParams} params
|
|
3312
|
+
*/
|
|
3154
3313
|
closeFile(params: CloseFileParams): void;
|
|
3155
|
-
/**
|
|
3156
|
-
* @param {PullDiagnosticsParams} params
|
|
3157
|
-
* @returns {PullDiagnosticsResult}
|
|
3158
|
-
*/
|
|
3314
|
+
/**
|
|
3315
|
+
* @param {PullDiagnosticsParams} params
|
|
3316
|
+
* @returns {PullDiagnosticsResult}
|
|
3317
|
+
*/
|
|
3159
3318
|
pullDiagnostics(params: PullDiagnosticsParams): PullDiagnosticsResult;
|
|
3160
|
-
/**
|
|
3161
|
-
* @param {PullActionsParams} params
|
|
3162
|
-
* @returns {PullActionsResult}
|
|
3163
|
-
*/
|
|
3319
|
+
/**
|
|
3320
|
+
* @param {PullActionsParams} params
|
|
3321
|
+
* @returns {PullActionsResult}
|
|
3322
|
+
*/
|
|
3164
3323
|
pullActions(params: PullActionsParams): PullActionsResult;
|
|
3165
|
-
/**
|
|
3166
|
-
* @param {FormatFileParams} params
|
|
3167
|
-
* @returns {any}
|
|
3168
|
-
*/
|
|
3324
|
+
/**
|
|
3325
|
+
* @param {FormatFileParams} params
|
|
3326
|
+
* @returns {any}
|
|
3327
|
+
*/
|
|
3169
3328
|
formatFile(params: FormatFileParams): any;
|
|
3170
|
-
/**
|
|
3171
|
-
* @param {FormatRangeParams} params
|
|
3172
|
-
* @returns {any}
|
|
3173
|
-
*/
|
|
3329
|
+
/**
|
|
3330
|
+
* @param {FormatRangeParams} params
|
|
3331
|
+
* @returns {any}
|
|
3332
|
+
*/
|
|
3174
3333
|
formatRange(params: FormatRangeParams): any;
|
|
3175
|
-
/**
|
|
3176
|
-
* @param {FormatOnTypeParams} params
|
|
3177
|
-
* @returns {any}
|
|
3178
|
-
*/
|
|
3334
|
+
/**
|
|
3335
|
+
* @param {FormatOnTypeParams} params
|
|
3336
|
+
* @returns {any}
|
|
3337
|
+
*/
|
|
3179
3338
|
formatOnType(params: FormatOnTypeParams): any;
|
|
3180
|
-
/**
|
|
3181
|
-
* @param {FixFileParams} params
|
|
3182
|
-
* @returns {FixFileResult}
|
|
3183
|
-
*/
|
|
3339
|
+
/**
|
|
3340
|
+
* @param {FixFileParams} params
|
|
3341
|
+
* @returns {FixFileResult}
|
|
3342
|
+
*/
|
|
3184
3343
|
fixFile(params: FixFileParams): FixFileResult;
|
|
3185
|
-
/**
|
|
3186
|
-
* @param {OrganizeImportsParams} params
|
|
3187
|
-
* @returns {OrganizeImportsResult}
|
|
3188
|
-
*/
|
|
3344
|
+
/**
|
|
3345
|
+
* @param {OrganizeImportsParams} params
|
|
3346
|
+
* @returns {OrganizeImportsResult}
|
|
3347
|
+
*/
|
|
3189
3348
|
organizeImports(params: OrganizeImportsParams): OrganizeImportsResult;
|
|
3190
|
-
/**
|
|
3191
|
-
* @param {RenameParams} params
|
|
3192
|
-
* @returns {RenameResult}
|
|
3193
|
-
*/
|
|
3349
|
+
/**
|
|
3350
|
+
* @param {RenameParams} params
|
|
3351
|
+
* @returns {RenameResult}
|
|
3352
|
+
*/
|
|
3194
3353
|
rename(params: RenameParams): RenameResult;
|
|
3195
3354
|
}
|