@biomejs/wasm-nodejs 1.8.2 → 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 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 = "Format" | "Lint" | "OrganizeImports" | "Search";
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?: PlainIndentStyle;
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?: PlainIndentStyle;
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 (and its super languages) files.
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 PlainIndentStyle = "tab" | "space";
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?: boolean;
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?: PlainIndentStyle;
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?: PlainIndentStyle;
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?: RuleFixConfiguration_for_Null;
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?: RuleConfiguration_for_Null;
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?: RuleFixConfiguration_for_Null;
1059
+ noConsole?: RuleFixConfiguration_for_NoConsoleOptions;
916
1060
  /**
917
1061
  * Disallow using a callback in asynchronous tests and hooks.
918
1062
  */
@@ -929,22 +1073,34 @@ 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
  */
947
1099
  noEvolvingTypes?: RuleConfiguration_for_Null;
1100
+ /**
1101
+ * Disallow exporting an imported variable.
1102
+ */
1103
+ noExportedImports?: RuleConfiguration_for_Null;
948
1104
  /**
949
1105
  * Disallow invalid !important within keyframe declarations
950
1106
  */
@@ -957,6 +1113,10 @@ interface Nursery {
957
1113
  * Disallow the use of @import at-rules in invalid positions.
958
1114
  */
959
1115
  noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
1116
+ /**
1117
+ * Disallows the use of irregular whitespace characters.
1118
+ */
1119
+ noIrregularWhitespace?: RuleConfiguration_for_Null;
960
1120
  /**
961
1121
  * Enforce that a label element or component has a text label and an associated input.
962
1122
  */
@@ -973,10 +1133,18 @@ interface Nursery {
973
1133
  * Disallow specified modules when loaded by import or require.
974
1134
  */
975
1135
  noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
1136
+ /**
1137
+ * Disallow user defined types.
1138
+ */
1139
+ noRestrictedTypes?: RuleFixConfiguration_for_NoRestrictedTypesOptions;
976
1140
  /**
977
1141
  * Disallow shorthand properties that override related longhand properties.
978
1142
  */
979
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;
980
1148
  /**
981
1149
  * Enforce the use of String.slice() over String.substr() and String.substring().
982
1150
  */
@@ -1017,6 +1185,10 @@ interface Nursery {
1017
1185
  * Disallow unused function parameters.
1018
1186
  */
1019
1187
  noUnusedFunctionParameters?: RuleFixConfiguration_for_Null;
1188
+ /**
1189
+ * Disallow unnecessary escape sequence in regular expression literals.
1190
+ */
1191
+ noUselessEscapeInRegex?: RuleFixConfiguration_for_Null;
1020
1192
  /**
1021
1193
  * Disallow unnecessary concatenation of string or template literals.
1022
1194
  */
@@ -1025,6 +1197,10 @@ interface Nursery {
1025
1197
  * Disallow initializing variables to undefined.
1026
1198
  */
1027
1199
  noUselessUndefinedInitialization?: RuleFixConfiguration_for_Null;
1200
+ /**
1201
+ * Disallow use of @value rule in css modules.
1202
+ */
1203
+ noValueAtRule?: RuleConfiguration_for_Null;
1028
1204
  /**
1029
1205
  * Disallow the use of yoda expressions.
1030
1206
  */
@@ -1037,14 +1213,26 @@ interface Nursery {
1037
1213
  * Disallow the use of overload signatures that are not next to each other.
1038
1214
  */
1039
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;
1040
1220
  /**
1041
1221
  * Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
1042
1222
  */
1043
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;
1044
1228
  /**
1045
1229
  * Disallows invalid named grid areas in CSS Grid Layouts.
1046
1230
  */
1047
1231
  useConsistentGridAreas?: RuleConfiguration_for_Null;
1232
+ /**
1233
+ * Require consistent accessibility modifiers on class properties and methods.
1234
+ */
1235
+ useConsistentMemberAccessibility?: RuleConfiguration_for_ConsistentMemberAccessibilityOptions;
1048
1236
  /**
1049
1237
  * Use Date.now() to get the number of milliseconds since the Unix Epoch.
1050
1238
  */
@@ -1053,6 +1241,10 @@ interface Nursery {
1053
1241
  * Require the default clause in switch statements.
1054
1242
  */
1055
1243
  useDefaultSwitchClause?: RuleConfiguration_for_Null;
1244
+ /**
1245
+ * Require specifying the reason argument when using @deprecated directive
1246
+ */
1247
+ useDeprecatedReason?: RuleConfiguration_for_Null;
1056
1248
  /**
1057
1249
  * Enforce passing a message value when creating a built-in error.
1058
1250
  */
@@ -1072,7 +1264,7 @@ interface Nursery {
1072
1264
  /**
1073
1265
  * Enforce file extensions for relative imports.
1074
1266
  */
1075
- useImportExtensions?: RuleFixConfiguration_for_Null;
1267
+ useImportExtensions?: RuleFixConfiguration_for_UseImportExtensionsOptions;
1076
1268
  /**
1077
1269
  * Disallows package private imports.
1078
1270
  */
@@ -1089,6 +1281,10 @@ interface Nursery {
1089
1281
  * Enforce the sorting of CSS utility classes.
1090
1282
  */
1091
1283
  useSortedClasses?: RuleFixConfiguration_for_UtilityClassSortingOptions;
1284
+ /**
1285
+ * Enforce the use of the directive "use strict" in script files.
1286
+ */
1287
+ useStrictMode?: RuleFixConfiguration_for_Null;
1092
1288
  /**
1093
1289
  * Require new when throwing an error.
1094
1290
  */
@@ -1101,6 +1297,10 @@ interface Nursery {
1101
1297
  * Require regex literals to be declared at the top level.
1102
1298
  */
1103
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;
1104
1304
  /**
1105
1305
  * Use valid values for the autocomplete attribute on input elements.
1106
1306
  */
@@ -1400,7 +1600,7 @@ interface Suspicious {
1400
1600
  /**
1401
1601
  * Require the use of === and !==
1402
1602
  */
1403
- noDoubleEquals?: RuleFixConfiguration_for_Null;
1603
+ noDoubleEquals?: RuleFixConfiguration_for_NoDoubleEqualsOptions;
1404
1604
  /**
1405
1605
  * Disallow duplicate case labels.
1406
1606
  */
@@ -1414,9 +1614,9 @@ interface Suspicious {
1414
1614
  */
1415
1615
  noDuplicateJsxProps?: RuleConfiguration_for_Null;
1416
1616
  /**
1417
- * Prevents object literals having more than one property declaration for the same name.
1617
+ * Disallow two keys with the same name inside objects.
1418
1618
  */
1419
- noDuplicateObjectKeys?: RuleFixConfiguration_for_Null;
1619
+ noDuplicateObjectKeys?: RuleConfiguration_for_Null;
1420
1620
  /**
1421
1621
  * Disallow duplicate function parameter name.
1422
1622
  */
@@ -1571,6 +1771,10 @@ interface OverrideFormatterConfiguration {
1571
1771
  * The attribute position style.
1572
1772
  */
1573
1773
  attributePosition?: AttributePosition;
1774
+ /**
1775
+ * Whether to insert spaces around brackets in object literals. Defaults to true.
1776
+ */
1777
+ bracketSpacing?: BracketSpacing;
1574
1778
  enabled?: boolean;
1575
1779
  /**
1576
1780
  * Stores whether formatting should be allowed to proceed if a given file has syntax errors
@@ -1583,7 +1787,7 @@ interface OverrideFormatterConfiguration {
1583
1787
  /**
1584
1788
  * The indent style.
1585
1789
  */
1586
- indentStyle?: PlainIndentStyle;
1790
+ indentStyle?: IndentStyle;
1587
1791
  /**
1588
1792
  * The size of the indentation, 2 by default
1589
1793
  */
@@ -1613,9 +1817,13 @@ interface OverrideOrganizeImportsConfiguration {
1613
1817
  */
1614
1818
  enabled?: boolean;
1615
1819
  }
1820
+ type RuleAssistConfiguration = "on" | "off";
1616
1821
  type RuleFixConfiguration_for_Null =
1617
1822
  | RulePlainConfiguration
1618
1823
  | RuleWithFixOptions_for_Null;
1824
+ type RuleFixConfiguration_for_AllowDomainOptions =
1825
+ | RulePlainConfiguration
1826
+ | RuleWithFixOptions_for_AllowDomainOptions;
1619
1827
  type RuleConfiguration_for_Null =
1620
1828
  | RulePlainConfiguration
1621
1829
  | RuleWithOptions_for_Null;
@@ -1631,12 +1839,24 @@ type RuleConfiguration_for_HooksOptions =
1631
1839
  type RuleConfiguration_for_DeprecatedHooksOptions =
1632
1840
  | RulePlainConfiguration
1633
1841
  | RuleWithOptions_for_DeprecatedHooksOptions;
1842
+ type RuleFixConfiguration_for_NoConsoleOptions =
1843
+ | RulePlainConfiguration
1844
+ | RuleWithFixOptions_for_NoConsoleOptions;
1634
1845
  type RuleConfiguration_for_NoLabelWithoutControlOptions =
1635
1846
  | RulePlainConfiguration
1636
1847
  | RuleWithOptions_for_NoLabelWithoutControlOptions;
1637
1848
  type RuleConfiguration_for_RestrictedImportsOptions =
1638
1849
  | RulePlainConfiguration
1639
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;
1640
1860
  type RuleFixConfiguration_for_UtilityClassSortingOptions =
1641
1861
  | RulePlainConfiguration
1642
1862
  | RuleWithFixOptions_for_UtilityClassSortingOptions;
@@ -1655,6 +1875,9 @@ type RuleConfiguration_for_FilenamingConventionOptions =
1655
1875
  type RuleFixConfiguration_for_NamingConventionOptions =
1656
1876
  | RulePlainConfiguration
1657
1877
  | RuleWithFixOptions_for_NamingConventionOptions;
1878
+ type RuleFixConfiguration_for_NoDoubleEqualsOptions =
1879
+ | RulePlainConfiguration
1880
+ | RuleWithFixOptions_for_NoDoubleEqualsOptions;
1658
1881
  type RulePlainConfiguration = "warn" | "error" | "info" | "off";
1659
1882
  interface RuleWithFixOptions_for_Null {
1660
1883
  /**
@@ -1670,6 +1893,20 @@ interface RuleWithFixOptions_for_Null {
1670
1893
  */
1671
1894
  options: null;
1672
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
+ }
1673
1910
  interface RuleWithOptions_for_Null {
1674
1911
  /**
1675
1912
  * The severity of the emitted diagnostics by the rule
@@ -1724,6 +1961,20 @@ interface RuleWithOptions_for_DeprecatedHooksOptions {
1724
1961
  */
1725
1962
  options: DeprecatedHooksOptions;
1726
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
+ }
1727
1978
  interface RuleWithOptions_for_NoLabelWithoutControlOptions {
1728
1979
  /**
1729
1980
  * The severity of the emitted diagnostics by the rule
@@ -1744,6 +1995,44 @@ interface RuleWithOptions_for_RestrictedImportsOptions {
1744
1995
  */
1745
1996
  options: RestrictedImportsOptions;
1746
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
+ }
1747
2036
  interface RuleWithFixOptions_for_UtilityClassSortingOptions {
1748
2037
  /**
1749
2038
  * The kind of the code actions emitted by the rule
@@ -1816,7 +2105,27 @@ interface RuleWithFixOptions_for_NamingConventionOptions {
1816
2105
  */
1817
2106
  options: NamingConventionOptions;
1818
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
+ }
1819
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
+ }
1820
2129
  interface ValidAriaRoleOptions {
1821
2130
  allowInvalidRoles: string[];
1822
2131
  ignoreNonDom: boolean;
@@ -1834,6 +2143,12 @@ interface HooksOptions {
1834
2143
  hooks: Hook[];
1835
2144
  }
1836
2145
  interface DeprecatedHooksOptions {}
2146
+ interface NoConsoleOptions {
2147
+ /**
2148
+ * Allowed calls on the console object.
2149
+ */
2150
+ allow: string[];
2151
+ }
1837
2152
  interface NoLabelWithoutControlOptions {
1838
2153
  /**
1839
2154
  * Array of component names that should be considered the same as an `input` element.
@@ -1854,6 +2169,18 @@ interface RestrictedImportsOptions {
1854
2169
  */
1855
2170
  paths: {};
1856
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
+ }
1857
2184
  interface UtilityClassSortingOptions {
1858
2185
  /**
1859
2186
  * Additional attributes that will be sorted.
@@ -1911,6 +2238,14 @@ interface NamingConventionOptions {
1911
2238
  */
1912
2239
  strictCase: boolean;
1913
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
+ }
1914
2249
  interface Hook {
1915
2250
  /**
1916
2251
  * The "position" of the closure function, starting from zero.
@@ -1935,8 +2270,9 @@ Set to `true` to mark the identity of the hook's return value as stable, or use
1935
2270
 
1936
2271
  For example, for React's `useRef()` hook the value would be `true`, while for `useState()` it would be `[1]`.
1937
2272
  */
1938
- stableResult: StableHookResult;
2273
+ stableResult?: StableHookResult;
1939
2274
  }
2275
+ type Accessibility = "noPublic" | "explicit" | "none";
1940
2276
  type ConsistentArrayType = "shorthand" | "generic";
1941
2277
  type FilenameCases = FilenameCase[];
1942
2278
  interface Convention {
@@ -2029,12 +2365,9 @@ interface RegisterProjectFolderParams {
2029
2365
  setAsCurrentWorkspace: boolean;
2030
2366
  }
2031
2367
  type ProjectKey = string;
2032
- interface UpdateProjectParams {
2033
- path: BiomePath;
2034
- }
2035
- interface OpenProjectParams {
2368
+ interface SetManifestForProjectParams {
2036
2369
  content: string;
2037
- path: BiomePath;
2370
+ manifest_path: BiomePath;
2038
2371
  version: number;
2039
2372
  }
2040
2373
  interface OpenFileParams {
@@ -2047,7 +2380,8 @@ type DocumentFileSource =
2047
2380
  | "Unknown"
2048
2381
  | { Js: JsFileSource }
2049
2382
  | { Json: JsonFileSource }
2050
- | { Css: CssFileSource };
2383
+ | { Css: CssFileSource }
2384
+ | { Graphql: GraphqlFileSource };
2051
2385
  interface JsFileSource {
2052
2386
  /**
2053
2387
  * Used to mark if the source is being used for an Astro, Svelte or Vue file
@@ -2065,12 +2399,16 @@ interface JsonFileSource {
2065
2399
  interface CssFileSource {
2066
2400
  variant: CssVariant;
2067
2401
  }
2402
+ interface GraphqlFileSource {
2403
+ variant: GraphqlVariant;
2404
+ }
2068
2405
  type EmbeddingKind = "Astro" | "Vue" | "Svelte" | "None";
2069
2406
  type Language = "JavaScript" | { TypeScript: { definition_file: boolean } };
2070
2407
  type ModuleKind = "Script" | "Module";
2071
2408
  type LanguageVariant = "Standard" | "StandardRestricted" | "Jsx";
2072
2409
  type LanguageVersion = "ES2022" | "ESNext";
2073
2410
  type CssVariant = "Standard";
2411
+ type GraphqlVariant = "Standard";
2074
2412
  interface ChangeFileParams {
2075
2413
  content: string;
2076
2414
  path: BiomePath;
@@ -2240,21 +2578,26 @@ type Category =
2240
2578
  | "lint/nursery/noDuplicateAtImportRules"
2241
2579
  | "lint/nursery/noDuplicateElseIf"
2242
2580
  | "lint/nursery/noDuplicateFontNames"
2243
- | "lint/nursery/noDuplicateJsonKeys"
2244
2581
  | "lint/nursery/noDuplicateSelectorsKeyframeBlock"
2582
+ | "lint/nursery/noDuplicatedFields"
2583
+ | "lint/nursery/noDynamicNamespaceImportAccess"
2245
2584
  | "lint/nursery/noEmptyBlock"
2585
+ | "lint/nursery/noEnum"
2246
2586
  | "lint/nursery/noEvolvingTypes"
2587
+ | "lint/nursery/noExportedImports"
2247
2588
  | "lint/nursery/noImportantInKeyframe"
2248
2589
  | "lint/nursery/noInvalidDirectionInLinearGradient"
2249
2590
  | "lint/nursery/noInvalidPositionAtImportRule"
2591
+ | "lint/nursery/noIrregularWhitespace"
2250
2592
  | "lint/nursery/noLabelWithoutControl"
2251
2593
  | "lint/nursery/noMisplacedAssertion"
2252
2594
  | "lint/nursery/noMissingGenericFamilyKeyword"
2253
2595
  | "lint/nursery/noReactSpecificProps"
2254
2596
  | "lint/nursery/noRestrictedImports"
2597
+ | "lint/nursery/noRestrictedTypes"
2255
2598
  | "lint/nursery/noShorthandPropertyOverrides"
2599
+ | "lint/nursery/noStaticElementInteractions"
2256
2600
  | "lint/nursery/noSubstr"
2257
- | "lint/nursery/noTypeOnlyImportAttributes"
2258
2601
  | "lint/nursery/noUndeclaredDependencies"
2259
2602
  | "lint/nursery/noUnknownFunction"
2260
2603
  | "lint/nursery/noUnknownMediaFeatureName"
@@ -2264,27 +2607,36 @@ type Category =
2264
2607
  | "lint/nursery/noUnknownUnit"
2265
2608
  | "lint/nursery/noUnmatchableAnbSelector"
2266
2609
  | "lint/nursery/noUnusedFunctionParameters"
2610
+ | "lint/nursery/noUselessEscapeInRegex"
2267
2611
  | "lint/nursery/noUselessStringConcat"
2268
2612
  | "lint/nursery/noUselessUndefinedInitialization"
2613
+ | "lint/nursery/noValueAtRule"
2269
2614
  | "lint/nursery/noYodaExpression"
2270
2615
  | "lint/nursery/useAdjacentOverloadSignatures"
2616
+ | "lint/nursery/useAriaPropsSupportedByRole"
2271
2617
  | "lint/nursery/useBiomeSuppressionComment"
2272
2618
  | "lint/nursery/useConsistentBuiltinInstantiation"
2619
+ | "lint/nursery/useConsistentCurlyBraces"
2273
2620
  | "lint/nursery/useConsistentGridAreas"
2621
+ | "lint/nursery/useConsistentMemberAccessibility"
2274
2622
  | "lint/nursery/useDateNow"
2275
2623
  | "lint/nursery/useDefaultSwitchClause"
2624
+ | "lint/nursery/useDeprecatedReason"
2276
2625
  | "lint/nursery/useErrorMessage"
2277
2626
  | "lint/nursery/useExplicitLengthCheck"
2278
2627
  | "lint/nursery/useFocusableInteractive"
2279
2628
  | "lint/nursery/useGenericFontNames"
2280
2629
  | "lint/nursery/useImportExtensions"
2281
2630
  | "lint/nursery/useImportRestrictions"
2631
+ | "lint/nursery/useJsxCurlyBraceConvention"
2282
2632
  | "lint/nursery/useNumberToFixedDigitsArgument"
2283
2633
  | "lint/nursery/useSemanticElements"
2284
2634
  | "lint/nursery/useSortedClasses"
2635
+ | "lint/nursery/useStrictMode"
2285
2636
  | "lint/nursery/useThrowNewError"
2286
2637
  | "lint/nursery/useThrowOnlyError"
2287
2638
  | "lint/nursery/useTopLevelRegex"
2639
+ | "lint/nursery/useTrimStartEnd"
2288
2640
  | "lint/nursery/useValidAutocomplete"
2289
2641
  | "lint/performance/noAccumulatingSpread"
2290
2642
  | "lint/performance/noBarrelFile"
@@ -2391,13 +2743,19 @@ type Category =
2391
2743
  | "lint/suspicious/useIsArray"
2392
2744
  | "lint/suspicious/useNamespaceKeyword"
2393
2745
  | "lint/suspicious/useValidTypeof"
2394
- | "assists/nursery/useSortedKeys"
2746
+ | "assists/source/useSortedKeys"
2747
+ | "syntax/nursery/noTypeOnlyImportAttributes"
2748
+ | "syntax/correctness/noSuperWithoutExtends"
2749
+ | "syntax/correctness/noInitializerWithDefinite"
2750
+ | "syntax/correctness/noDuplicatePrivateClassMembers"
2395
2751
  | "files/missingHandler"
2396
2752
  | "format"
2397
2753
  | "check"
2398
2754
  | "ci"
2755
+ | "stdin"
2399
2756
  | "configuration"
2400
2757
  | "organizeImports"
2758
+ | "assists"
2401
2759
  | "migrate"
2402
2760
  | "deserialize"
2403
2761
  | "project"
@@ -2406,9 +2764,6 @@ type Category =
2406
2764
  | "internalError/fs"
2407
2765
  | "internalError/panic"
2408
2766
  | "parse"
2409
- | "parse/noSuperWithoutExtends"
2410
- | "parse/noInitializerWithDefinite"
2411
- | "parse/noDuplicatePrivateClassMembers"
2412
2767
  | "lint"
2413
2768
  | "lint/a11y"
2414
2769
  | "lint/complexity"
@@ -2489,8 +2844,10 @@ interface BacktraceSymbol {
2489
2844
  name?: string;
2490
2845
  }
2491
2846
  interface PullActionsParams {
2847
+ only: RuleCode[];
2492
2848
  path: BiomePath;
2493
- range: TextRange;
2849
+ range?: TextRange;
2850
+ skip: RuleCode[];
2494
2851
  }
2495
2852
  interface PullActionsResult {
2496
2853
  actions: CodeAction[];
@@ -2553,8 +2910,11 @@ interface FormatOnTypeParams {
2553
2910
  }
2554
2911
  interface FixFileParams {
2555
2912
  fix_file_mode: FixFileMode;
2913
+ only: RuleCode[];
2556
2914
  path: BiomePath;
2915
+ rule_categories: RuleCategories;
2557
2916
  should_format: boolean;
2917
+ skip: RuleCode[];
2558
2918
  }
2559
2919
  type FixFileMode = "SafeFixes" | "SafeAndUnsafeFixes";
2560
2920
  interface FixFileResult {