@biomejs/wasm-nodejs 1.8.3 → 1.8.4-nightly.7aaf0ce
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 +383 -35
- package/biome_wasm.js +146 -161
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -4,13 +4,32 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export function main(): void;
|
|
6
6
|
interface SupportsFeatureParams {
|
|
7
|
-
features: FeatureName
|
|
7
|
+
features: FeatureName;
|
|
8
8
|
path: BiomePath;
|
|
9
9
|
}
|
|
10
|
-
type FeatureName =
|
|
10
|
+
type FeatureName = FeatureKind[];
|
|
11
11
|
interface BiomePath {
|
|
12
|
+
/**
|
|
13
|
+
* Determines the kind of the file inside Biome. Some files are considered as configuration files, others as manifest files, and others as files to handle
|
|
14
|
+
*/
|
|
15
|
+
kind: FileKind;
|
|
16
|
+
/**
|
|
17
|
+
* The path to the file
|
|
18
|
+
*/
|
|
12
19
|
path: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether this path (usually a file) was fixed as a result of a format/lint/check command with the `--write` filag.
|
|
22
|
+
*/
|
|
23
|
+
was_written: boolean;
|
|
13
24
|
}
|
|
25
|
+
type FeatureKind = "Format" | "Lint" | "OrganizeImports" | "Search" | "Assists";
|
|
26
|
+
type FileKind = FileKind2[];
|
|
27
|
+
type FileKind2 =
|
|
28
|
+
| "Config"
|
|
29
|
+
| "Manifest"
|
|
30
|
+
| "Ignore"
|
|
31
|
+
| "Inspectable"
|
|
32
|
+
| "Handleable";
|
|
14
33
|
interface SupportsFeatureResult {
|
|
15
34
|
reason?: SupportKind;
|
|
16
35
|
}
|
|
@@ -31,6 +50,10 @@ interface PartialConfiguration {
|
|
|
31
50
|
* A field for the [JSON schema](https://json-schema.org/) specification
|
|
32
51
|
*/
|
|
33
52
|
$schema?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Specific configuration for assists
|
|
55
|
+
*/
|
|
56
|
+
assists?: PartialAssistsConfiguration;
|
|
34
57
|
/**
|
|
35
58
|
* Specific configuration for the Css language
|
|
36
59
|
*/
|
|
@@ -47,6 +70,10 @@ interface PartialConfiguration {
|
|
|
47
70
|
* The configuration of the formatter
|
|
48
71
|
*/
|
|
49
72
|
formatter?: PartialFormatterConfiguration;
|
|
73
|
+
/**
|
|
74
|
+
* Specific configuration for the GraphQL language
|
|
75
|
+
*/
|
|
76
|
+
graphql?: PartialGraphqlConfiguration;
|
|
50
77
|
/**
|
|
51
78
|
* Specific configuration for the JavaScript language
|
|
52
79
|
*/
|
|
@@ -72,7 +99,29 @@ interface PartialConfiguration {
|
|
|
72
99
|
*/
|
|
73
100
|
vcs?: PartialVcsConfiguration;
|
|
74
101
|
}
|
|
102
|
+
interface PartialAssistsConfiguration {
|
|
103
|
+
/**
|
|
104
|
+
* Whether Biome should fail in CLI if the assists were not applied to the code.
|
|
105
|
+
*/
|
|
106
|
+
actions?: Actions;
|
|
107
|
+
/**
|
|
108
|
+
* Whether Biome should enable assists via LSP.
|
|
109
|
+
*/
|
|
110
|
+
enabled?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
|
|
113
|
+
*/
|
|
114
|
+
ignore?: StringSet;
|
|
115
|
+
/**
|
|
116
|
+
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
|
|
117
|
+
*/
|
|
118
|
+
include?: StringSet;
|
|
119
|
+
}
|
|
75
120
|
interface PartialCssConfiguration {
|
|
121
|
+
/**
|
|
122
|
+
* CSS assists options
|
|
123
|
+
*/
|
|
124
|
+
assists?: PartialCssAssists;
|
|
76
125
|
/**
|
|
77
126
|
* CSS formatter options
|
|
78
127
|
*/
|
|
@@ -110,6 +159,10 @@ interface PartialFormatterConfiguration {
|
|
|
110
159
|
* The attribute position style in HTMLish languages. By default auto.
|
|
111
160
|
*/
|
|
112
161
|
attributePosition?: AttributePosition;
|
|
162
|
+
/**
|
|
163
|
+
* Whether to insert spaces around brackets in object literals. Defaults to true.
|
|
164
|
+
*/
|
|
165
|
+
bracketSpacing?: BracketSpacing;
|
|
113
166
|
enabled?: boolean;
|
|
114
167
|
/**
|
|
115
168
|
* Stores whether formatting should be allowed to proceed if a given file has syntax errors
|
|
@@ -130,7 +183,7 @@ interface PartialFormatterConfiguration {
|
|
|
130
183
|
/**
|
|
131
184
|
* The indent style.
|
|
132
185
|
*/
|
|
133
|
-
indentStyle?:
|
|
186
|
+
indentStyle?: IndentStyle;
|
|
134
187
|
/**
|
|
135
188
|
* The size of the indentation, 2 by default
|
|
136
189
|
*/
|
|
@@ -143,8 +196,23 @@ interface PartialFormatterConfiguration {
|
|
|
143
196
|
* What's the max width of a line. Defaults to 80.
|
|
144
197
|
*/
|
|
145
198
|
lineWidth?: LineWidth;
|
|
199
|
+
/**
|
|
200
|
+
* Use any `.editorconfig` files to configure the formatter. Configuration in `biome.json` will override `.editorconfig` configuration. Default: false.
|
|
201
|
+
*/
|
|
202
|
+
useEditorconfig?: boolean;
|
|
203
|
+
}
|
|
204
|
+
interface PartialGraphqlConfiguration {
|
|
205
|
+
/**
|
|
206
|
+
* GraphQL formatter options
|
|
207
|
+
*/
|
|
208
|
+
formatter?: PartialGraphqlFormatter;
|
|
209
|
+
linter?: PartialGraphqlLinter;
|
|
146
210
|
}
|
|
147
211
|
interface PartialJavascriptConfiguration {
|
|
212
|
+
/**
|
|
213
|
+
* Assists options
|
|
214
|
+
*/
|
|
215
|
+
assists?: PartialJavascriptAssists;
|
|
148
216
|
/**
|
|
149
217
|
* Formatting options
|
|
150
218
|
*/
|
|
@@ -170,6 +238,10 @@ If defined here, they should not emit diagnostics.
|
|
|
170
238
|
parser?: PartialJavascriptParser;
|
|
171
239
|
}
|
|
172
240
|
interface PartialJsonConfiguration {
|
|
241
|
+
/**
|
|
242
|
+
* Assists options
|
|
243
|
+
*/
|
|
244
|
+
assists?: PartialJsonAssists;
|
|
173
245
|
/**
|
|
174
246
|
* Formatting options
|
|
175
247
|
*/
|
|
@@ -240,6 +312,15 @@ If Biome can't find the configuration, it will attempt to use the current workin
|
|
|
240
312
|
*/
|
|
241
313
|
useIgnoreFile?: boolean;
|
|
242
314
|
}
|
|
315
|
+
interface Actions {
|
|
316
|
+
source?: Source;
|
|
317
|
+
}
|
|
318
|
+
interface PartialCssAssists {
|
|
319
|
+
/**
|
|
320
|
+
* Control the assists for CSS files.
|
|
321
|
+
*/
|
|
322
|
+
enabled?: boolean;
|
|
323
|
+
}
|
|
243
324
|
interface PartialCssFormatter {
|
|
244
325
|
/**
|
|
245
326
|
* Control the formatter for CSS (and its super languages) files.
|
|
@@ -248,7 +329,7 @@ interface PartialCssFormatter {
|
|
|
248
329
|
/**
|
|
249
330
|
* The indent style applied to CSS (and its super languages) files.
|
|
250
331
|
*/
|
|
251
|
-
indentStyle?:
|
|
332
|
+
indentStyle?: IndentStyle;
|
|
252
333
|
/**
|
|
253
334
|
* The size of the indentation applied to CSS (and its super languages) files. Default to 2.
|
|
254
335
|
*/
|
|
@@ -268,7 +349,7 @@ interface PartialCssFormatter {
|
|
|
268
349
|
}
|
|
269
350
|
interface PartialCssLinter {
|
|
270
351
|
/**
|
|
271
|
-
* Control the linter for CSS
|
|
352
|
+
* Control the linter for CSS files.
|
|
272
353
|
*/
|
|
273
354
|
enabled?: boolean;
|
|
274
355
|
}
|
|
@@ -283,10 +364,53 @@ interface PartialCssParser {
|
|
|
283
364
|
cssModules?: boolean;
|
|
284
365
|
}
|
|
285
366
|
type AttributePosition = "auto" | "multiline";
|
|
367
|
+
type BracketSpacing = boolean;
|
|
286
368
|
type IndentWidth = number;
|
|
287
|
-
type
|
|
369
|
+
type IndentStyle = "tab" | "space";
|
|
288
370
|
type LineEnding = "lf" | "crlf" | "cr";
|
|
289
371
|
type LineWidth = number;
|
|
372
|
+
interface PartialGraphqlFormatter {
|
|
373
|
+
/**
|
|
374
|
+
* Whether to insert spaces around brackets in object literals. Defaults to true.
|
|
375
|
+
*/
|
|
376
|
+
bracketSpacing?: BracketSpacing;
|
|
377
|
+
/**
|
|
378
|
+
* Control the formatter for GraphQL files.
|
|
379
|
+
*/
|
|
380
|
+
enabled?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* The indent style applied to GraphQL files.
|
|
383
|
+
*/
|
|
384
|
+
indentStyle?: IndentStyle;
|
|
385
|
+
/**
|
|
386
|
+
* The size of the indentation applied to GraphQL files. Default to 2.
|
|
387
|
+
*/
|
|
388
|
+
indentWidth?: IndentWidth;
|
|
389
|
+
/**
|
|
390
|
+
* The type of line ending applied to GraphQL files.
|
|
391
|
+
*/
|
|
392
|
+
lineEnding?: LineEnding;
|
|
393
|
+
/**
|
|
394
|
+
* What's the max width of a line applied to GraphQL files. Defaults to 80.
|
|
395
|
+
*/
|
|
396
|
+
lineWidth?: LineWidth;
|
|
397
|
+
/**
|
|
398
|
+
* The type of quotes used in GraphQL code. Defaults to double.
|
|
399
|
+
*/
|
|
400
|
+
quoteStyle?: QuoteStyle;
|
|
401
|
+
}
|
|
402
|
+
interface PartialGraphqlLinter {
|
|
403
|
+
/**
|
|
404
|
+
* Control the formatter for GraphQL files.
|
|
405
|
+
*/
|
|
406
|
+
enabled?: boolean;
|
|
407
|
+
}
|
|
408
|
+
interface PartialJavascriptAssists {
|
|
409
|
+
/**
|
|
410
|
+
* Control the linter for JavaScript (and its super languages) files.
|
|
411
|
+
*/
|
|
412
|
+
enabled?: boolean;
|
|
413
|
+
}
|
|
290
414
|
interface PartialJavascriptFormatter {
|
|
291
415
|
/**
|
|
292
416
|
* Whether to add non-necessary parentheses to arrow functions. Defaults to "always".
|
|
@@ -303,7 +427,7 @@ interface PartialJavascriptFormatter {
|
|
|
303
427
|
/**
|
|
304
428
|
* Whether to insert spaces around brackets in object literals. Defaults to true.
|
|
305
429
|
*/
|
|
306
|
-
bracketSpacing?:
|
|
430
|
+
bracketSpacing?: BracketSpacing;
|
|
307
431
|
/**
|
|
308
432
|
* Control the formatter for JavaScript (and its super languages) files.
|
|
309
433
|
*/
|
|
@@ -315,7 +439,7 @@ interface PartialJavascriptFormatter {
|
|
|
315
439
|
/**
|
|
316
440
|
* The indent style applied to JavaScript (and its super languages) files.
|
|
317
441
|
*/
|
|
318
|
-
indentStyle?:
|
|
442
|
+
indentStyle?: IndentStyle;
|
|
319
443
|
/**
|
|
320
444
|
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
|
|
321
445
|
*/
|
|
@@ -369,6 +493,12 @@ These decorators belong to an old proposal, and they are subject to change.
|
|
|
369
493
|
*/
|
|
370
494
|
unsafeParameterDecoratorsEnabled?: boolean;
|
|
371
495
|
}
|
|
496
|
+
interface PartialJsonAssists {
|
|
497
|
+
/**
|
|
498
|
+
* Control the linter for JSON (and its super languages) files.
|
|
499
|
+
*/
|
|
500
|
+
enabled?: boolean;
|
|
501
|
+
}
|
|
372
502
|
interface PartialJsonFormatter {
|
|
373
503
|
/**
|
|
374
504
|
* Control the formatter for JSON (and its super languages) files.
|
|
@@ -381,7 +511,7 @@ interface PartialJsonFormatter {
|
|
|
381
511
|
/**
|
|
382
512
|
* The indent style applied to JSON (and its super languages) files.
|
|
383
513
|
*/
|
|
384
|
-
indentStyle?:
|
|
514
|
+
indentStyle?: IndentStyle;
|
|
385
515
|
/**
|
|
386
516
|
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
387
517
|
*/
|
|
@@ -442,6 +572,10 @@ interface OverridePattern {
|
|
|
442
572
|
* Specific configuration for the Json language
|
|
443
573
|
*/
|
|
444
574
|
formatter?: OverrideFormatterConfiguration;
|
|
575
|
+
/**
|
|
576
|
+
* Specific configuration for the Graphql language
|
|
577
|
+
*/
|
|
578
|
+
graphql?: PartialGraphqlConfiguration;
|
|
445
579
|
/**
|
|
446
580
|
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
|
|
447
581
|
*/
|
|
@@ -468,6 +602,16 @@ interface OverridePattern {
|
|
|
468
602
|
organizeImports?: OverrideOrganizeImportsConfiguration;
|
|
469
603
|
}
|
|
470
604
|
type VcsClientKind = "git";
|
|
605
|
+
interface Source {
|
|
606
|
+
/**
|
|
607
|
+
* Enforce props sorting in JSX elements.
|
|
608
|
+
*/
|
|
609
|
+
sortJsxProps?: RuleAssistConfiguration;
|
|
610
|
+
/**
|
|
611
|
+
* Sorts the keys of a JSON object in natural order
|
|
612
|
+
*/
|
|
613
|
+
useSortedKeys?: RuleAssistConfiguration;
|
|
614
|
+
}
|
|
471
615
|
type QuoteStyle = "double" | "single";
|
|
472
616
|
type ArrowParentheses = "always" | "asNeeded";
|
|
473
617
|
type QuoteProperties = "asNeeded" | "preserve";
|
|
@@ -498,7 +642,7 @@ interface A11y {
|
|
|
498
642
|
/**
|
|
499
643
|
* Disallow target="_blank" attribute without rel="noreferrer"
|
|
500
644
|
*/
|
|
501
|
-
noBlankTarget?:
|
|
645
|
+
noBlankTarget?: RuleFixConfiguration_for_AllowDomainOptions;
|
|
502
646
|
/**
|
|
503
647
|
* Enforces that no distracting elements are used.
|
|
504
648
|
*/
|
|
@@ -648,7 +792,7 @@ interface Complexity {
|
|
|
648
792
|
/**
|
|
649
793
|
* Disallow unnecessary catch clauses.
|
|
650
794
|
*/
|
|
651
|
-
noUselessCatch?:
|
|
795
|
+
noUselessCatch?: RuleFixConfiguration_for_Null;
|
|
652
796
|
/**
|
|
653
797
|
* Disallow unnecessary constructors.
|
|
654
798
|
*/
|
|
@@ -912,7 +1056,7 @@ interface Nursery {
|
|
|
912
1056
|
/**
|
|
913
1057
|
* Disallow the use of console.
|
|
914
1058
|
*/
|
|
915
|
-
noConsole?:
|
|
1059
|
+
noConsole?: RuleFixConfiguration_for_NoConsoleOptions;
|
|
916
1060
|
/**
|
|
917
1061
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
918
1062
|
*/
|
|
@@ -929,18 +1073,26 @@ interface Nursery {
|
|
|
929
1073
|
* Disallow duplicate names within font families.
|
|
930
1074
|
*/
|
|
931
1075
|
noDuplicateFontNames?: RuleConfiguration_for_Null;
|
|
932
|
-
/**
|
|
933
|
-
* Disallow two keys with the same name inside a JSON object.
|
|
934
|
-
*/
|
|
935
|
-
noDuplicateJsonKeys?: RuleConfiguration_for_Null;
|
|
936
1076
|
/**
|
|
937
1077
|
* Disallow duplicate selectors within keyframe blocks.
|
|
938
1078
|
*/
|
|
939
1079
|
noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
|
|
1080
|
+
/**
|
|
1081
|
+
* No duplicated fields in GraphQL operations.
|
|
1082
|
+
*/
|
|
1083
|
+
noDuplicatedFields?: RuleConfiguration_for_Null;
|
|
1084
|
+
/**
|
|
1085
|
+
* Disallow accessing namespace imports dynamically.
|
|
1086
|
+
*/
|
|
1087
|
+
noDynamicNamespaceImportAccess?: RuleConfiguration_for_Null;
|
|
940
1088
|
/**
|
|
941
1089
|
* Disallow CSS empty blocks.
|
|
942
1090
|
*/
|
|
943
1091
|
noEmptyBlock?: RuleConfiguration_for_Null;
|
|
1092
|
+
/**
|
|
1093
|
+
* Disallow TypeScript enum.
|
|
1094
|
+
*/
|
|
1095
|
+
noEnum?: RuleConfiguration_for_Null;
|
|
944
1096
|
/**
|
|
945
1097
|
* Disallow variables from evolving into any type through reassignments.
|
|
946
1098
|
*/
|
|
@@ -961,6 +1113,10 @@ interface Nursery {
|
|
|
961
1113
|
* Disallow the use of @import at-rules in invalid positions.
|
|
962
1114
|
*/
|
|
963
1115
|
noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
|
|
1116
|
+
/**
|
|
1117
|
+
* Disallows the use of irregular whitespace characters.
|
|
1118
|
+
*/
|
|
1119
|
+
noIrregularWhitespace?: RuleConfiguration_for_Null;
|
|
964
1120
|
/**
|
|
965
1121
|
* Enforce that a label element or component has a text label and an associated input.
|
|
966
1122
|
*/
|
|
@@ -977,10 +1133,18 @@ interface Nursery {
|
|
|
977
1133
|
* Disallow specified modules when loaded by import or require.
|
|
978
1134
|
*/
|
|
979
1135
|
noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
|
|
1136
|
+
/**
|
|
1137
|
+
* Disallow user defined types.
|
|
1138
|
+
*/
|
|
1139
|
+
noRestrictedTypes?: RuleFixConfiguration_for_NoRestrictedTypesOptions;
|
|
980
1140
|
/**
|
|
981
1141
|
* Disallow shorthand properties that override related longhand properties.
|
|
982
1142
|
*/
|
|
983
1143
|
noShorthandPropertyOverrides?: RuleConfiguration_for_Null;
|
|
1144
|
+
/**
|
|
1145
|
+
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
1146
|
+
*/
|
|
1147
|
+
noStaticElementInteractions?: RuleConfiguration_for_Null;
|
|
984
1148
|
/**
|
|
985
1149
|
* Enforce the use of String.slice() over String.substr() and String.substring().
|
|
986
1150
|
*/
|
|
@@ -1021,6 +1185,10 @@ interface Nursery {
|
|
|
1021
1185
|
* Disallow unused function parameters.
|
|
1022
1186
|
*/
|
|
1023
1187
|
noUnusedFunctionParameters?: RuleFixConfiguration_for_Null;
|
|
1188
|
+
/**
|
|
1189
|
+
* Disallow unnecessary escape sequence in regular expression literals.
|
|
1190
|
+
*/
|
|
1191
|
+
noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
|
|
1024
1192
|
/**
|
|
1025
1193
|
* Disallow unnecessary concatenation of string or template literals.
|
|
1026
1194
|
*/
|
|
@@ -1029,6 +1197,10 @@ interface Nursery {
|
|
|
1029
1197
|
* Disallow initializing variables to undefined.
|
|
1030
1198
|
*/
|
|
1031
1199
|
noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
|
|
1200
|
+
/**
|
|
1201
|
+
* Disallow use of @value rule in css modules.
|
|
1202
|
+
*/
|
|
1203
|
+
noValueAtRule?: RuleConfiguration_for_Null;
|
|
1032
1204
|
/**
|
|
1033
1205
|
* Disallow the use of yoda expressions.
|
|
1034
1206
|
*/
|
|
@@ -1041,14 +1213,26 @@ interface Nursery {
|
|
|
1041
1213
|
* Disallow the use of overload signatures that are not next to each other.
|
|
1042
1214
|
*/
|
|
1043
1215
|
useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
|
|
1216
|
+
/**
|
|
1217
|
+
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
1218
|
+
*/
|
|
1219
|
+
useAriaPropsSupportedByRole?: RuleConfiguration_for_Null;
|
|
1044
1220
|
/**
|
|
1045
1221
|
* Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
|
|
1046
1222
|
*/
|
|
1047
1223
|
useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
|
|
1224
|
+
/**
|
|
1225
|
+
* This rule enforces consistent use of curly braces inside JSX attributes and JSX children.
|
|
1226
|
+
*/
|
|
1227
|
+
useConsistentCurlyBraces?: RuleFixConfiguration_for_Null;
|
|
1048
1228
|
/**
|
|
1049
1229
|
* Disallows invalid named grid areas in CSS Grid Layouts.
|
|
1050
1230
|
*/
|
|
1051
1231
|
useConsistentGridAreas?: RuleConfiguration_for_Null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Require consistent accessibility modifiers on class properties and methods.
|
|
1234
|
+
*/
|
|
1235
|
+
useConsistentMemberAccessibility?: RuleConfiguration_for_ConsistentMemberAccessibilityOptions;
|
|
1052
1236
|
/**
|
|
1053
1237
|
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
1054
1238
|
*/
|
|
@@ -1080,7 +1264,7 @@ interface Nursery {
|
|
|
1080
1264
|
/**
|
|
1081
1265
|
* Enforce file extensions for relative imports.
|
|
1082
1266
|
*/
|
|
1083
|
-
useImportExtensions?:
|
|
1267
|
+
useImportExtensions?: RuleFixConfiguration_for_UseImportExtensionsOptions;
|
|
1084
1268
|
/**
|
|
1085
1269
|
* Disallows package private imports.
|
|
1086
1270
|
*/
|
|
@@ -1097,6 +1281,10 @@ interface Nursery {
|
|
|
1097
1281
|
* Enforce the sorting of CSS utility classes.
|
|
1098
1282
|
*/
|
|
1099
1283
|
useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
|
|
1284
|
+
/**
|
|
1285
|
+
* Enforce the use of the directive "use strict" in script files.
|
|
1286
|
+
*/
|
|
1287
|
+
useStrictMode?: RuleFixConfiguration_for_Null;
|
|
1100
1288
|
/**
|
|
1101
1289
|
* Require new when throwing an error.
|
|
1102
1290
|
*/
|
|
@@ -1109,6 +1297,10 @@ interface Nursery {
|
|
|
1109
1297
|
* Require regex literals to be declared at the top level.
|
|
1110
1298
|
*/
|
|
1111
1299
|
useTopLevelRegex?: RuleConfiguration_for_Null;
|
|
1300
|
+
/**
|
|
1301
|
+
* Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().
|
|
1302
|
+
*/
|
|
1303
|
+
useTrimStartEnd?: RuleFixConfiguration_for_Null;
|
|
1112
1304
|
/**
|
|
1113
1305
|
* Use valid values for the autocomplete attribute on input elements.
|
|
1114
1306
|
*/
|
|
@@ -1408,7 +1600,7 @@ interface Suspicious {
|
|
|
1408
1600
|
/**
|
|
1409
1601
|
* Require the use of === and !==
|
|
1410
1602
|
*/
|
|
1411
|
-
noDoubleEquals?:
|
|
1603
|
+
noDoubleEquals?: RuleFixConfiguration_for_NoDoubleEqualsOptions;
|
|
1412
1604
|
/**
|
|
1413
1605
|
* Disallow duplicate case labels.
|
|
1414
1606
|
*/
|
|
@@ -1422,9 +1614,9 @@ interface Suspicious {
|
|
|
1422
1614
|
*/
|
|
1423
1615
|
noDuplicateJsxProps?: RuleConfiguration_for_Null;
|
|
1424
1616
|
/**
|
|
1425
|
-
*
|
|
1617
|
+
* Disallow two keys with the same name inside objects.
|
|
1426
1618
|
*/
|
|
1427
|
-
noDuplicateObjectKeys?:
|
|
1619
|
+
noDuplicateObjectKeys?: RuleConfiguration_for_Null;
|
|
1428
1620
|
/**
|
|
1429
1621
|
* Disallow duplicate function parameter name.
|
|
1430
1622
|
*/
|
|
@@ -1579,6 +1771,10 @@ interface OverrideFormatterConfiguration {
|
|
|
1579
1771
|
* The attribute position style.
|
|
1580
1772
|
*/
|
|
1581
1773
|
attributePosition?: AttributePosition;
|
|
1774
|
+
/**
|
|
1775
|
+
* Whether to insert spaces around brackets in object literals. Defaults to true.
|
|
1776
|
+
*/
|
|
1777
|
+
bracketSpacing?: BracketSpacing;
|
|
1582
1778
|
enabled?: boolean;
|
|
1583
1779
|
/**
|
|
1584
1780
|
* Stores whether formatting should be allowed to proceed if a given file has syntax errors
|
|
@@ -1591,7 +1787,7 @@ interface OverrideFormatterConfiguration {
|
|
|
1591
1787
|
/**
|
|
1592
1788
|
* The indent style.
|
|
1593
1789
|
*/
|
|
1594
|
-
indentStyle?:
|
|
1790
|
+
indentStyle?: IndentStyle;
|
|
1595
1791
|
/**
|
|
1596
1792
|
* The size of the indentation, 2 by default
|
|
1597
1793
|
*/
|
|
@@ -1621,9 +1817,13 @@ interface OverrideOrganizeImportsConfiguration {
|
|
|
1621
1817
|
*/
|
|
1622
1818
|
enabled?: boolean;
|
|
1623
1819
|
}
|
|
1820
|
+
type RuleAssistConfiguration = "on" | "off";
|
|
1624
1821
|
type RuleFixConfiguration_for_Null =
|
|
1625
1822
|
| RulePlainConfiguration
|
|
1626
1823
|
| RuleWithFixOptions_for_Null;
|
|
1824
|
+
type RuleFixConfiguration_for_AllowDomainOptions =
|
|
1825
|
+
| RulePlainConfiguration
|
|
1826
|
+
| RuleWithFixOptions_for_AllowDomainOptions;
|
|
1627
1827
|
type RuleConfiguration_for_Null =
|
|
1628
1828
|
| RulePlainConfiguration
|
|
1629
1829
|
| RuleWithOptions_for_Null;
|
|
@@ -1639,12 +1839,24 @@ type RuleConfiguration_for_HooksOptions =
|
|
|
1639
1839
|
type RuleConfiguration_for_DeprecatedHooksOptions =
|
|
1640
1840
|
| RulePlainConfiguration
|
|
1641
1841
|
| RuleWithOptions_for_DeprecatedHooksOptions;
|
|
1842
|
+
type RuleFixConfiguration_for_NoConsoleOptions =
|
|
1843
|
+
| RulePlainConfiguration
|
|
1844
|
+
| RuleWithFixOptions_for_NoConsoleOptions;
|
|
1642
1845
|
type RuleConfiguration_for_NoLabelWithoutControlOptions =
|
|
1643
1846
|
| RulePlainConfiguration
|
|
1644
1847
|
| RuleWithOptions_for_NoLabelWithoutControlOptions;
|
|
1645
1848
|
type RuleConfiguration_for_RestrictedImportsOptions =
|
|
1646
1849
|
| RulePlainConfiguration
|
|
1647
1850
|
| RuleWithOptions_for_RestrictedImportsOptions;
|
|
1851
|
+
type RuleFixConfiguration_for_NoRestrictedTypesOptions =
|
|
1852
|
+
| RulePlainConfiguration
|
|
1853
|
+
| RuleWithFixOptions_for_NoRestrictedTypesOptions;
|
|
1854
|
+
type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
|
|
1855
|
+
| RulePlainConfiguration
|
|
1856
|
+
| RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
|
|
1857
|
+
type RuleFixConfiguration_for_UseImportExtensionsOptions =
|
|
1858
|
+
| RulePlainConfiguration
|
|
1859
|
+
| RuleWithFixOptions_for_UseImportExtensionsOptions;
|
|
1648
1860
|
type RuleFixConfiguration_for_UtilityClassSortingOptions =
|
|
1649
1861
|
| RulePlainConfiguration
|
|
1650
1862
|
| RuleWithFixOptions_for_UtilityClassSortingOptions;
|
|
@@ -1663,6 +1875,9 @@ type RuleConfiguration_for_FilenamingConventionOptions =
|
|
|
1663
1875
|
type RuleFixConfiguration_for_NamingConventionOptions =
|
|
1664
1876
|
| RulePlainConfiguration
|
|
1665
1877
|
| RuleWithFixOptions_for_NamingConventionOptions;
|
|
1878
|
+
type RuleFixConfiguration_for_NoDoubleEqualsOptions =
|
|
1879
|
+
| RulePlainConfiguration
|
|
1880
|
+
| RuleWithFixOptions_for_NoDoubleEqualsOptions;
|
|
1666
1881
|
type RulePlainConfiguration = "warn" | "error" | "info" | "off";
|
|
1667
1882
|
interface RuleWithFixOptions_for_Null {
|
|
1668
1883
|
/**
|
|
@@ -1678,6 +1893,20 @@ interface RuleWithFixOptions_for_Null {
|
|
|
1678
1893
|
*/
|
|
1679
1894
|
options: null;
|
|
1680
1895
|
}
|
|
1896
|
+
interface RuleWithFixOptions_for_AllowDomainOptions {
|
|
1897
|
+
/**
|
|
1898
|
+
* The kind of the code actions emitted by the rule
|
|
1899
|
+
*/
|
|
1900
|
+
fix?: FixKind;
|
|
1901
|
+
/**
|
|
1902
|
+
* The severity of the emitted diagnostics by the rule
|
|
1903
|
+
*/
|
|
1904
|
+
level: RulePlainConfiguration;
|
|
1905
|
+
/**
|
|
1906
|
+
* Rule's options
|
|
1907
|
+
*/
|
|
1908
|
+
options: AllowDomainOptions;
|
|
1909
|
+
}
|
|
1681
1910
|
interface RuleWithOptions_for_Null {
|
|
1682
1911
|
/**
|
|
1683
1912
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -1732,6 +1961,20 @@ interface RuleWithOptions_for_DeprecatedHooksOptions {
|
|
|
1732
1961
|
*/
|
|
1733
1962
|
options: DeprecatedHooksOptions;
|
|
1734
1963
|
}
|
|
1964
|
+
interface RuleWithFixOptions_for_NoConsoleOptions {
|
|
1965
|
+
/**
|
|
1966
|
+
* The kind of the code actions emitted by the rule
|
|
1967
|
+
*/
|
|
1968
|
+
fix?: FixKind;
|
|
1969
|
+
/**
|
|
1970
|
+
* The severity of the emitted diagnostics by the rule
|
|
1971
|
+
*/
|
|
1972
|
+
level: RulePlainConfiguration;
|
|
1973
|
+
/**
|
|
1974
|
+
* Rule's options
|
|
1975
|
+
*/
|
|
1976
|
+
options: NoConsoleOptions;
|
|
1977
|
+
}
|
|
1735
1978
|
interface RuleWithOptions_for_NoLabelWithoutControlOptions {
|
|
1736
1979
|
/**
|
|
1737
1980
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -1752,6 +1995,44 @@ interface RuleWithOptions_for_RestrictedImportsOptions {
|
|
|
1752
1995
|
*/
|
|
1753
1996
|
options: RestrictedImportsOptions;
|
|
1754
1997
|
}
|
|
1998
|
+
interface RuleWithFixOptions_for_NoRestrictedTypesOptions {
|
|
1999
|
+
/**
|
|
2000
|
+
* The kind of the code actions emitted by the rule
|
|
2001
|
+
*/
|
|
2002
|
+
fix?: FixKind;
|
|
2003
|
+
/**
|
|
2004
|
+
* The severity of the emitted diagnostics by the rule
|
|
2005
|
+
*/
|
|
2006
|
+
level: RulePlainConfiguration;
|
|
2007
|
+
/**
|
|
2008
|
+
* Rule's options
|
|
2009
|
+
*/
|
|
2010
|
+
options: NoRestrictedTypesOptions;
|
|
2011
|
+
}
|
|
2012
|
+
interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
|
|
2013
|
+
/**
|
|
2014
|
+
* The severity of the emitted diagnostics by the rule
|
|
2015
|
+
*/
|
|
2016
|
+
level: RulePlainConfiguration;
|
|
2017
|
+
/**
|
|
2018
|
+
* Rule's options
|
|
2019
|
+
*/
|
|
2020
|
+
options: ConsistentMemberAccessibilityOptions;
|
|
2021
|
+
}
|
|
2022
|
+
interface RuleWithFixOptions_for_UseImportExtensionsOptions {
|
|
2023
|
+
/**
|
|
2024
|
+
* The kind of the code actions emitted by the rule
|
|
2025
|
+
*/
|
|
2026
|
+
fix?: FixKind;
|
|
2027
|
+
/**
|
|
2028
|
+
* The severity of the emitted diagnostics by the rule
|
|
2029
|
+
*/
|
|
2030
|
+
level: RulePlainConfiguration;
|
|
2031
|
+
/**
|
|
2032
|
+
* Rule's options
|
|
2033
|
+
*/
|
|
2034
|
+
options: UseImportExtensionsOptions;
|
|
2035
|
+
}
|
|
1755
2036
|
interface RuleWithFixOptions_for_UtilityClassSortingOptions {
|
|
1756
2037
|
/**
|
|
1757
2038
|
* The kind of the code actions emitted by the rule
|
|
@@ -1824,7 +2105,27 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
|
|
|
1824
2105
|
*/
|
|
1825
2106
|
options: NamingConventionOptions;
|
|
1826
2107
|
}
|
|
2108
|
+
interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
|
|
2109
|
+
/**
|
|
2110
|
+
* The kind of the code actions emitted by the rule
|
|
2111
|
+
*/
|
|
2112
|
+
fix?: FixKind;
|
|
2113
|
+
/**
|
|
2114
|
+
* The severity of the emitted diagnostics by the rule
|
|
2115
|
+
*/
|
|
2116
|
+
level: RulePlainConfiguration;
|
|
2117
|
+
/**
|
|
2118
|
+
* Rule's options
|
|
2119
|
+
*/
|
|
2120
|
+
options: NoDoubleEqualsOptions;
|
|
2121
|
+
}
|
|
1827
2122
|
type FixKind = "none" | "safe" | "unsafe";
|
|
2123
|
+
interface AllowDomainOptions {
|
|
2124
|
+
/**
|
|
2125
|
+
* List of domains to allow `target="_blank"` without `rel="noreferrer"`
|
|
2126
|
+
*/
|
|
2127
|
+
allowDomains: string[];
|
|
2128
|
+
}
|
|
1828
2129
|
interface ValidAriaRoleOptions {
|
|
1829
2130
|
allowInvalidRoles: string[];
|
|
1830
2131
|
ignoreNonDom: boolean;
|
|
@@ -1842,6 +2143,12 @@ interface HooksOptions {
|
|
|
1842
2143
|
hooks: Hook[];
|
|
1843
2144
|
}
|
|
1844
2145
|
interface DeprecatedHooksOptions {}
|
|
2146
|
+
interface NoConsoleOptions {
|
|
2147
|
+
/**
|
|
2148
|
+
* Allowed calls on the console object.
|
|
2149
|
+
*/
|
|
2150
|
+
allow: string[];
|
|
2151
|
+
}
|
|
1845
2152
|
interface NoLabelWithoutControlOptions {
|
|
1846
2153
|
/**
|
|
1847
2154
|
* Array of component names that should be considered the same as an `input` element.
|
|
@@ -1862,6 +2169,18 @@ interface RestrictedImportsOptions {
|
|
|
1862
2169
|
*/
|
|
1863
2170
|
paths: {};
|
|
1864
2171
|
}
|
|
2172
|
+
interface NoRestrictedTypesOptions {
|
|
2173
|
+
types: {};
|
|
2174
|
+
}
|
|
2175
|
+
interface ConsistentMemberAccessibilityOptions {
|
|
2176
|
+
accessibility: Accessibility;
|
|
2177
|
+
}
|
|
2178
|
+
interface UseImportExtensionsOptions {
|
|
2179
|
+
/**
|
|
2180
|
+
* 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
|
|
2181
|
+
*/
|
|
2182
|
+
suggestedExtensions: {};
|
|
2183
|
+
}
|
|
1865
2184
|
interface UtilityClassSortingOptions {
|
|
1866
2185
|
/**
|
|
1867
2186
|
* Additional attributes that will be sorted.
|
|
@@ -1919,6 +2238,14 @@ interface NamingConventionOptions {
|
|
|
1919
2238
|
*/
|
|
1920
2239
|
strictCase: boolean;
|
|
1921
2240
|
}
|
|
2241
|
+
interface NoDoubleEqualsOptions {
|
|
2242
|
+
/**
|
|
2243
|
+
* If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.
|
|
2244
|
+
|
|
2245
|
+
If `false`, no such exception will be made.
|
|
2246
|
+
*/
|
|
2247
|
+
ignoreNull: boolean;
|
|
2248
|
+
}
|
|
1922
2249
|
interface Hook {
|
|
1923
2250
|
/**
|
|
1924
2251
|
* The "position" of the closure function, starting from zero.
|
|
@@ -1943,8 +2270,9 @@ Set to `true` to mark the identity of the hook's return value as stable, or use
|
|
|
1943
2270
|
|
|
1944
2271
|
For example, for React's `useRef()` hook the value would be `true`, while for `useState()` it would be `[1]`.
|
|
1945
2272
|
*/
|
|
1946
|
-
stableResult
|
|
2273
|
+
stableResult?: StableHookResult;
|
|
1947
2274
|
}
|
|
2275
|
+
type Accessibility = "noPublic" | "explicit" | "none";
|
|
1948
2276
|
type ConsistentArrayType = "shorthand" | "generic";
|
|
1949
2277
|
type FilenameCases = FilenameCase[];
|
|
1950
2278
|
interface Convention {
|
|
@@ -2037,12 +2365,9 @@ interface RegisterProjectFolderParams {
|
|
|
2037
2365
|
setAsCurrentWorkspace: boolean;
|
|
2038
2366
|
}
|
|
2039
2367
|
type ProjectKey = string;
|
|
2040
|
-
interface
|
|
2041
|
-
path: BiomePath;
|
|
2042
|
-
}
|
|
2043
|
-
interface OpenProjectParams {
|
|
2368
|
+
interface SetManifestForProjectParams {
|
|
2044
2369
|
content: string;
|
|
2045
|
-
|
|
2370
|
+
manifest_path: BiomePath;
|
|
2046
2371
|
version: number;
|
|
2047
2372
|
}
|
|
2048
2373
|
interface OpenFileParams {
|
|
@@ -2074,13 +2399,16 @@ interface JsonFileSource {
|
|
|
2074
2399
|
interface CssFileSource {
|
|
2075
2400
|
variant: CssVariant;
|
|
2076
2401
|
}
|
|
2077
|
-
interface GraphqlFileSource {
|
|
2402
|
+
interface GraphqlFileSource {
|
|
2403
|
+
variant: GraphqlVariant;
|
|
2404
|
+
}
|
|
2078
2405
|
type EmbeddingKind = "Astro" | "Vue" | "Svelte" | "None";
|
|
2079
2406
|
type Language = "JavaScript" | { TypeScript: { definition_file: boolean } };
|
|
2080
2407
|
type ModuleKind = "Script" | "Module";
|
|
2081
2408
|
type LanguageVariant = "Standard" | "StandardRestricted" | "Jsx";
|
|
2082
2409
|
type LanguageVersion = "ES2022" | "ESNext";
|
|
2083
2410
|
type CssVariant = "Standard";
|
|
2411
|
+
type GraphqlVariant = "Standard";
|
|
2084
2412
|
interface ChangeFileParams {
|
|
2085
2413
|
content: string;
|
|
2086
2414
|
path: BiomePath;
|
|
@@ -2250,22 +2578,26 @@ type Category =
|
|
|
2250
2578
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
2251
2579
|
| "lint/nursery/noDuplicateElseIf"
|
|
2252
2580
|
| "lint/nursery/noDuplicateFontNames"
|
|
2253
|
-
| "lint/nursery/noDuplicateJsonKeys"
|
|
2254
2581
|
| "lint/nursery/noDuplicateSelectorsKeyframeBlock"
|
|
2582
|
+
| "lint/nursery/noDuplicatedFields"
|
|
2583
|
+
| "lint/nursery/noDynamicNamespaceImportAccess"
|
|
2255
2584
|
| "lint/nursery/noEmptyBlock"
|
|
2585
|
+
| "lint/nursery/noEnum"
|
|
2256
2586
|
| "lint/nursery/noEvolvingTypes"
|
|
2257
2587
|
| "lint/nursery/noExportedImports"
|
|
2258
2588
|
| "lint/nursery/noImportantInKeyframe"
|
|
2259
2589
|
| "lint/nursery/noInvalidDirectionInLinearGradient"
|
|
2260
2590
|
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
2591
|
+
| "lint/nursery/noIrregularWhitespace"
|
|
2261
2592
|
| "lint/nursery/noLabelWithoutControl"
|
|
2262
2593
|
| "lint/nursery/noMisplacedAssertion"
|
|
2263
2594
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
2264
2595
|
| "lint/nursery/noReactSpecificProps"
|
|
2265
2596
|
| "lint/nursery/noRestrictedImports"
|
|
2597
|
+
| "lint/nursery/noRestrictedTypes"
|
|
2266
2598
|
| "lint/nursery/noShorthandPropertyOverrides"
|
|
2599
|
+
| "lint/nursery/noStaticElementInteractions"
|
|
2267
2600
|
| "lint/nursery/noSubstr"
|
|
2268
|
-
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
2269
2601
|
| "lint/nursery/noUndeclaredDependencies"
|
|
2270
2602
|
| "lint/nursery/noUnknownFunction"
|
|
2271
2603
|
| "lint/nursery/noUnknownMediaFeatureName"
|
|
@@ -2275,13 +2607,18 @@ type Category =
|
|
|
2275
2607
|
| "lint/nursery/noUnknownUnit"
|
|
2276
2608
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2277
2609
|
| "lint/nursery/noUnusedFunctionParameters"
|
|
2610
|
+
| "lint/nursery/noUselessEscapeInRegex"
|
|
2278
2611
|
| "lint/nursery/noUselessStringConcat"
|
|
2279
2612
|
| "lint/nursery/noUselessUndefinedInitialization"
|
|
2613
|
+
| "lint/nursery/noValueAtRule"
|
|
2280
2614
|
| "lint/nursery/noYodaExpression"
|
|
2281
2615
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2616
|
+
| "lint/nursery/useAriaPropsSupportedByRole"
|
|
2282
2617
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2283
2618
|
| "lint/nursery/useConsistentBuiltinInstantiation"
|
|
2619
|
+
| "lint/nursery/useConsistentCurlyBraces"
|
|
2284
2620
|
| "lint/nursery/useConsistentGridAreas"
|
|
2621
|
+
| "lint/nursery/useConsistentMemberAccessibility"
|
|
2285
2622
|
| "lint/nursery/useDateNow"
|
|
2286
2623
|
| "lint/nursery/useDefaultSwitchClause"
|
|
2287
2624
|
| "lint/nursery/useDeprecatedReason"
|
|
@@ -2291,12 +2628,15 @@ type Category =
|
|
|
2291
2628
|
| "lint/nursery/useGenericFontNames"
|
|
2292
2629
|
| "lint/nursery/useImportExtensions"
|
|
2293
2630
|
| "lint/nursery/useImportRestrictions"
|
|
2631
|
+
| "lint/nursery/useJsxCurlyBraceConvention"
|
|
2294
2632
|
| "lint/nursery/useNumberToFixedDigitsArgument"
|
|
2295
2633
|
| "lint/nursery/useSemanticElements"
|
|
2296
2634
|
| "lint/nursery/useSortedClasses"
|
|
2635
|
+
| "lint/nursery/useStrictMode"
|
|
2297
2636
|
| "lint/nursery/useThrowNewError"
|
|
2298
2637
|
| "lint/nursery/useThrowOnlyError"
|
|
2299
2638
|
| "lint/nursery/useTopLevelRegex"
|
|
2639
|
+
| "lint/nursery/useTrimStartEnd"
|
|
2300
2640
|
| "lint/nursery/useValidAutocomplete"
|
|
2301
2641
|
| "lint/performance/noAccumulatingSpread"
|
|
2302
2642
|
| "lint/performance/noBarrelFile"
|
|
@@ -2403,13 +2743,19 @@ type Category =
|
|
|
2403
2743
|
| "lint/suspicious/useIsArray"
|
|
2404
2744
|
| "lint/suspicious/useNamespaceKeyword"
|
|
2405
2745
|
| "lint/suspicious/useValidTypeof"
|
|
2406
|
-
| "assists/
|
|
2746
|
+
| "assists/source/useSortedKeys"
|
|
2747
|
+
| "syntax/nursery/noTypeOnlyImportAttributes"
|
|
2748
|
+
| "syntax/correctness/noSuperWithoutExtends"
|
|
2749
|
+
| "syntax/correctness/noInitializerWithDefinite"
|
|
2750
|
+
| "syntax/correctness/noDuplicatePrivateClassMembers"
|
|
2407
2751
|
| "files/missingHandler"
|
|
2408
2752
|
| "format"
|
|
2409
2753
|
| "check"
|
|
2410
2754
|
| "ci"
|
|
2755
|
+
| "stdin"
|
|
2411
2756
|
| "configuration"
|
|
2412
2757
|
| "organizeImports"
|
|
2758
|
+
| "assists"
|
|
2413
2759
|
| "migrate"
|
|
2414
2760
|
| "deserialize"
|
|
2415
2761
|
| "project"
|
|
@@ -2418,9 +2764,6 @@ type Category =
|
|
|
2418
2764
|
| "internalError/fs"
|
|
2419
2765
|
| "internalError/panic"
|
|
2420
2766
|
| "parse"
|
|
2421
|
-
| "parse/noSuperWithoutExtends"
|
|
2422
|
-
| "parse/noInitializerWithDefinite"
|
|
2423
|
-
| "parse/noDuplicatePrivateClassMembers"
|
|
2424
2767
|
| "lint"
|
|
2425
2768
|
| "lint/a11y"
|
|
2426
2769
|
| "lint/complexity"
|
|
@@ -2501,8 +2844,10 @@ interface BacktraceSymbol {
|
|
|
2501
2844
|
name?: string;
|
|
2502
2845
|
}
|
|
2503
2846
|
interface PullActionsParams {
|
|
2847
|
+
only: RuleCode[];
|
|
2504
2848
|
path: BiomePath;
|
|
2505
|
-
range
|
|
2849
|
+
range?: TextRange;
|
|
2850
|
+
skip: RuleCode[];
|
|
2506
2851
|
}
|
|
2507
2852
|
interface PullActionsResult {
|
|
2508
2853
|
actions: CodeAction[];
|
|
@@ -2565,8 +2910,11 @@ interface FormatOnTypeParams {
|
|
|
2565
2910
|
}
|
|
2566
2911
|
interface FixFileParams {
|
|
2567
2912
|
fix_file_mode: FixFileMode;
|
|
2913
|
+
only: RuleCode[];
|
|
2568
2914
|
path: BiomePath;
|
|
2915
|
+
rule_categories: RuleCategories;
|
|
2569
2916
|
should_format: boolean;
|
|
2917
|
+
skip: RuleCode[];
|
|
2570
2918
|
}
|
|
2571
2919
|
type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
|
|
2572
2920
|
interface FixFileResult {
|