@biomejs/wasm-web 2.2.6 → 2.3.0

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
@@ -9,7 +9,13 @@ interface SupportsFeatureParams {
9
9
  type FeatureName = FeatureKind[];
10
10
  type BiomePath = string;
11
11
  type ProjectKey = number;
12
- type FeatureKind = "format" | "lint" | "search" | "assist" | "debug";
12
+ type FeatureKind =
13
+ | "format"
14
+ | "lint"
15
+ | "search"
16
+ | "assist"
17
+ | "debug"
18
+ | "htmlFullSupport";
13
19
  interface FileFeaturesResult {
14
20
  featuresSupported: FeaturesSupported;
15
21
  }
@@ -131,27 +137,13 @@ interface CssConfiguration {
131
137
  type Extends = string[] | string;
132
138
  interface FilesConfiguration {
133
139
  /**
134
- * Set of file and folder names that should be unconditionally ignored by Biome's scanner.
135
-
136
- Biome maintains an internal list of default ignore entries, which is based on user feedback and which may change in any release. This setting allows overriding this internal list completely.
137
-
138
- This is considered an advanced feature that users _should_ not need to tweak themselves, but they can as a last resort. This setting can only be configured in root configurations, and is ignored in nested configs.
139
-
140
- Entries must be file or folder *names*. Specific paths and globs are not supported.
141
-
142
- Examples where this may be useful:
143
-
144
- ```jsonc { "files": { "experimentalScannerIgnores": [ // You almost certainly don't want to scan your `.git` // folder, which is why it's already ignored by default: ".git",
145
-
146
- // But the scanner does scan `node_modules` by default. If // you *really* don't want this, you can ignore it like // this: "node_modules",
147
-
148
- // But it's probably better to ignore a specific dependency. // For instance, one that happens to be particularly slow to // scan: "RedisCommander.d.ts", ], } } ```
140
+ * **Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: https://biomejs.dev/reference/configuration/#filesincludes
149
141
 
150
- Please be aware that rules relying on the module graph or type inference information may be negatively affected if dependencies of your project aren't (fully) scanned.
142
+ Set of file and folder names that should be unconditionally ignored by Biome's scanner.
151
143
  */
152
144
  experimentalScannerIgnores?: string[];
153
145
  /**
154
- * Tells Biome to not emit diagnostics when handling files that doesn't know
146
+ * Tells Biome to not emit diagnostics when handling files that it doesn't know
155
147
  */
156
148
  ignoreUnknown?: Bool;
157
149
  /**
@@ -182,7 +174,7 @@ interface FormatterConfiguration {
182
174
  */
183
175
  expand?: Expand;
184
176
  /**
185
- * Stores whether formatting should be allowed to proceed if a given file has syntax errors
177
+ * Whether formatting should be allowed to proceed if a given file has syntax errors
186
178
  */
187
179
  formatWithErrors?: Bool;
188
180
  /**
@@ -238,10 +230,19 @@ interface GritConfiguration {
238
230
  linter?: GritLinterConfiguration;
239
231
  }
240
232
  interface HtmlConfiguration {
233
+ assist?: HtmlAssistConfiguration;
234
+ /**
235
+ * Enables full support for HTML, Vue, Svelte and Astro files.
236
+ */
237
+ experimentalFullSupportEnabled?: Bool;
241
238
  /**
242
239
  * HTML formatter options
243
240
  */
244
241
  formatter?: HtmlFormatterConfiguration;
242
+ /**
243
+ * HTML linter options
244
+ */
245
+ linter?: HtmlLinterConfiguration;
245
246
  /**
246
247
  * HTML parsing options
247
248
  */
@@ -366,7 +367,7 @@ interface CssFormatterConfiguration {
366
367
  */
367
368
  indentWidth?: IndentWidth;
368
369
  /**
369
- * The type of line ending applied to CSS (and its super languages) files.
370
+ * The type of line ending applied to CSS (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
370
371
  */
371
372
  lineEnding?: LineEnding;
372
373
  /**
@@ -393,6 +394,10 @@ interface CssParserConfiguration {
393
394
  * Enables parsing of CSS Modules specific features.
394
395
  */
395
396
  cssModules?: Bool;
397
+ /**
398
+ * Enables parsing of Tailwind CSS 4.0 directives and functions.
399
+ */
400
+ tailwindDirectives?: Bool;
396
401
  }
397
402
  type MaxSize = number;
398
403
  type AttributePosition = "auto" | "multiline";
@@ -401,7 +406,7 @@ type BracketSpacing = boolean;
401
406
  type Expand = "auto" | "always" | "never";
402
407
  type IndentStyle = "tab" | "space";
403
408
  type IndentWidth = number;
404
- type LineEnding = "lf" | "crlf" | "cr";
409
+ type LineEnding = "lf" | "crlf" | "cr" | "auto";
405
410
  type LineWidth = number;
406
411
  interface GraphqlAssistConfiguration {
407
412
  /**
@@ -427,7 +432,7 @@ interface GraphqlFormatterConfiguration {
427
432
  */
428
433
  indentWidth?: IndentWidth;
429
434
  /**
430
- * The type of line ending applied to GraphQL files.
435
+ * The type of line ending applied to GraphQL files. `auto` uses CRLF on Windows and LF on other platforms.
431
436
  */
432
437
  lineEnding?: LineEnding;
433
438
  /**
@@ -479,6 +484,12 @@ interface GritLinterConfiguration {
479
484
  */
480
485
  enabled?: Bool;
481
486
  }
487
+ interface HtmlAssistConfiguration {
488
+ /**
489
+ * Control the assist for HTML (and its super languages) files.
490
+ */
491
+ enabled?: Bool;
492
+ }
482
493
  interface HtmlFormatterConfiguration {
483
494
  /**
484
495
  * The attribute position style in HTML elements. Defaults to auto.
@@ -505,7 +516,7 @@ interface HtmlFormatterConfiguration {
505
516
  */
506
517
  indentWidth?: IndentWidth;
507
518
  /**
508
- * The type of line ending applied to HTML (and its super languages) files.
519
+ * The type of line ending applied to HTML (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
509
520
  */
510
521
  lineEnding?: LineEnding;
511
522
  /**
@@ -521,6 +532,12 @@ interface HtmlFormatterConfiguration {
521
532
  */
522
533
  whitespaceSensitivity?: WhitespaceSensitivity;
523
534
  }
535
+ interface HtmlLinterConfiguration {
536
+ /**
537
+ * Control the linter for HTML (and its super languages) files.
538
+ */
539
+ enabled?: Bool;
540
+ }
524
541
  interface HtmlParserConfiguration {
525
542
  /**
526
543
  * Enables the parsing of double text expressions such as `{{ expression }}` inside `.html` files
@@ -571,7 +588,7 @@ interface JsFormatterConfiguration {
571
588
  */
572
589
  jsxQuoteStyle?: QuoteStyle;
573
590
  /**
574
- * The type of line ending applied to JavaScript (and its super languages) files.
591
+ * The type of line ending applied to JavaScript (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
575
592
  */
576
593
  lineEnding?: LineEnding;
577
594
  /**
@@ -652,7 +669,7 @@ interface JsonFormatterConfiguration {
652
669
  */
653
670
  indentWidth?: IndentWidth;
654
671
  /**
655
- * The type of line ending applied to JSON (and its super languages) files.
672
+ * The type of line ending applied to JSON (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.
656
673
  */
657
674
  lineEnding?: LineEnding;
658
675
  /**
@@ -1310,6 +1327,10 @@ interface Correctness {
1310
1327
  * Disallow the use of process global.
1311
1328
  */
1312
1329
  noProcessGlobal?: RuleFixConfiguration_for_NoProcessGlobalOptions;
1330
+ /**
1331
+ * Disallow useVisibleTask$() functions in Qwik components.
1332
+ */
1333
+ noQwikUseVisibleTask?: RuleConfiguration_for_NoQwikUseVisibleTaskOptions;
1313
1334
  /**
1314
1335
  * Disallow assigning to React component props.
1315
1336
  */
@@ -1442,6 +1463,10 @@ interface Correctness {
1442
1463
  * Enforce that all React hooks are being called from the Top Level component functions.
1443
1464
  */
1444
1465
  useHookAtTopLevel?: RuleConfiguration_for_UseHookAtTopLevelOptions;
1466
+ /**
1467
+ * Enforces that \<img> elements have both width and height attributes.
1468
+ */
1469
+ useImageSize?: RuleConfiguration_for_UseImageSizeOptions;
1445
1470
  /**
1446
1471
  * Enforce file extensions for relative imports.
1447
1472
  */
@@ -1462,6 +1487,10 @@ interface Correctness {
1462
1487
  * Enforce the consistent use of the radix argument when using parseInt().
1463
1488
  */
1464
1489
  useParseIntRadix?: RuleFixConfiguration_for_UseParseIntRadixOptions;
1490
+ /**
1491
+ * Prefer using the class prop as a classlist over the classnames helper.
1492
+ */
1493
+ useQwikClasslist?: RuleConfiguration_for_UseQwikClasslistOptions;
1465
1494
  /**
1466
1495
  * Enforce JSDoc comment lines to start with a single asterisk, except for the first one.
1467
1496
  */
@@ -1492,6 +1521,10 @@ interface Nursery {
1492
1521
  * Prevent the listing of duplicate dependencies. The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
1493
1522
  */
1494
1523
  noDuplicateDependencies?: RuleConfiguration_for_NoDuplicateDependenciesOptions;
1524
+ /**
1525
+ * Disallow empty sources.
1526
+ */
1527
+ noEmptySource?: RuleConfiguration_for_NoEmptySourceOptions;
1495
1528
  /**
1496
1529
  * Require Promise-like statements to be handled appropriately.
1497
1530
  */
@@ -1512,22 +1545,10 @@ interface Nursery {
1512
1545
  * Prevent client components from being async functions.
1513
1546
  */
1514
1547
  noNextAsyncClientComponent?: RuleConfiguration_for_NoNextAsyncClientComponentOptions;
1515
- /**
1516
- * Disallow non-null assertions after optional chaining expressions.
1517
- */
1518
- noNonNullAssertedOptionalChain?: RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions;
1519
- /**
1520
- * Disallow useVisibleTask$() functions in Qwik components.
1521
- */
1522
- noQwikUseVisibleTask?: RuleConfiguration_for_NoQwikUseVisibleTaskOptions;
1523
1548
  /**
1524
1549
  * Replaces usages of forwardRef with passing ref as a prop.
1525
1550
  */
1526
1551
  noReactForwardRef?: RuleFixConfiguration_for_NoReactForwardRefOptions;
1527
- /**
1528
- * Disallow usage of sensitive data such as API keys and tokens.
1529
- */
1530
- noSecrets?: RuleConfiguration_for_NoSecretsOptions;
1531
1552
  /**
1532
1553
  * Disallow variable declarations from shadowing variables declared in the outer scope.
1533
1554
  */
@@ -1572,18 +1593,10 @@ interface Nursery {
1572
1593
  * Enables the recommended rules for this group
1573
1594
  */
1574
1595
  recommended?: boolean;
1575
- /**
1576
- * Enforces href attribute for \<a> elements.
1577
- */
1578
- useAnchorHref?: RuleConfiguration_for_UseAnchorHrefOptions;
1579
1596
  /**
1580
1597
  * Enforce consistent arrow function bodies.
1581
1598
  */
1582
1599
  useConsistentArrowReturn?: RuleFixConfiguration_for_UseConsistentArrowReturnOptions;
1583
- /**
1584
- * Enforce type definitions to consistently use either interface or type.
1585
- */
1586
- useConsistentTypeDefinitions?: RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions;
1587
1600
  /**
1588
1601
  * Require the @deprecated directive to specify a deletion date.
1589
1602
  */
@@ -1596,18 +1609,10 @@ interface Nursery {
1596
1609
  * Enforce types in functions, methods, variables, and parameters.
1597
1610
  */
1598
1611
  useExplicitType?: RuleConfiguration_for_UseExplicitTypeOptions;
1599
- /**
1600
- * Enforces that \<img> elements have both width and height attributes.
1601
- */
1602
- useImageSize?: RuleConfiguration_for_UseImageSizeOptions;
1603
1612
  /**
1604
1613
  * Enforce a maximum number of parameters in function definitions.
1605
1614
  */
1606
1615
  useMaxParams?: RuleConfiguration_for_UseMaxParamsOptions;
1607
- /**
1608
- * Prefer using the class prop as a classlist over the classnames helper.
1609
- */
1610
- useQwikClasslist?: RuleConfiguration_for_UseQwikClasslistOptions;
1611
1616
  /**
1612
1617
  * Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
1613
1618
  */
@@ -1616,14 +1621,14 @@ interface Nursery {
1616
1621
  * Disallow unserializable expressions in Qwik dollar ($) scopes.
1617
1622
  */
1618
1623
  useQwikValidLexicalScope?: RuleConfiguration_for_UseQwikValidLexicalScopeOptions;
1619
- /**
1620
- * Enforce that components are defined as functions and never as classes.
1621
- */
1622
- useReactFunctionComponents?: RuleConfiguration_for_UseReactFunctionComponentsOptions;
1623
1624
  /**
1624
1625
  * Enforce the sorting of CSS utility classes.
1625
1626
  */
1626
1627
  useSortedClasses?: RuleFixConfiguration_for_UseSortedClassesOptions;
1628
+ /**
1629
+ * Enforce specific order of Vue compiler macros.
1630
+ */
1631
+ useVueDefineMacrosOrder?: RuleFixConfiguration_for_UseVueDefineMacrosOrderOptions;
1627
1632
  /**
1628
1633
  * Enforce multi-word component names in Vue components.
1629
1634
  */
@@ -1700,6 +1705,10 @@ interface Security {
1700
1705
  * Disallow the use of global eval().
1701
1706
  */
1702
1707
  noGlobalEval?: RuleConfiguration_for_NoGlobalEvalOptions;
1708
+ /**
1709
+ * Disallow usage of sensitive data such as API keys and tokens.
1710
+ */
1711
+ noSecrets?: RuleConfiguration_for_NoSecretsOptions;
1703
1712
  /**
1704
1713
  * Enables the recommended rules for this group
1705
1714
  */
@@ -1862,6 +1871,10 @@ interface Style {
1862
1871
  * Require the consistent declaration of object literals. Defaults to explicit definitions.
1863
1872
  */
1864
1873
  useConsistentObjectDefinitions?: RuleFixConfiguration_for_UseConsistentObjectDefinitionsOptions;
1874
+ /**
1875
+ * Enforce type definitions to consistently use either interface or type.
1876
+ */
1877
+ useConsistentTypeDefinitions?: RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions;
1865
1878
  /**
1866
1879
  * Require const declarations for variables that are only assigned once.
1867
1880
  */
@@ -1950,6 +1963,10 @@ interface Style {
1950
1963
  * Prefer object spread over Object.assign() when constructing new objects.
1951
1964
  */
1952
1965
  useObjectSpread?: RuleFixConfiguration_for_UseObjectSpreadOptions;
1966
+ /**
1967
+ * Enforce that components are defined as functions and never as classes.
1968
+ */
1969
+ useReactFunctionComponents?: RuleConfiguration_for_UseReactFunctionComponentsOptions;
1953
1970
  /**
1954
1971
  * Enforce marking members as readonly if they are never modified outside the constructor.
1955
1972
  */
@@ -2224,6 +2241,10 @@ interface Suspicious {
2224
2241
  * Disallow shorthand assign when variable appears on both sides.
2225
2242
  */
2226
2243
  noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_NoMisrefactoredShorthandAssignOptions;
2244
+ /**
2245
+ * Disallow non-null assertions after optional chaining expressions.
2246
+ */
2247
+ noNonNullAssertedOptionalChain?: RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions;
2227
2248
  /**
2228
2249
  * Disallow octal escape sequences in string literals
2229
2250
  */
@@ -2727,6 +2748,9 @@ type RuleConfiguration_for_NoPrivateImportsOptions =
2727
2748
  type RuleFixConfiguration_for_NoProcessGlobalOptions =
2728
2749
  | RulePlainConfiguration
2729
2750
  | RuleWithFixOptions_for_NoProcessGlobalOptions;
2751
+ type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
2752
+ | RulePlainConfiguration
2753
+ | RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
2730
2754
  type RuleConfiguration_for_NoReactPropAssignmentsOptions =
2731
2755
  | RulePlainConfiguration
2732
2756
  | RuleWithOptions_for_NoReactPropAssignmentsOptions;
@@ -2823,6 +2847,9 @@ type RuleFixConfiguration_for_UseGraphqlNamedOperationsOptions =
2823
2847
  type RuleConfiguration_for_UseHookAtTopLevelOptions =
2824
2848
  | RulePlainConfiguration
2825
2849
  | RuleWithOptions_for_UseHookAtTopLevelOptions;
2850
+ type RuleConfiguration_for_UseImageSizeOptions =
2851
+ | RulePlainConfiguration
2852
+ | RuleWithOptions_for_UseImageSizeOptions;
2826
2853
  type RuleFixConfiguration_for_UseImportExtensionsOptions =
2827
2854
  | RulePlainConfiguration
2828
2855
  | RuleWithFixOptions_for_UseImportExtensionsOptions;
@@ -2838,6 +2865,9 @@ type RuleConfiguration_for_UseJsxKeyInIterableOptions =
2838
2865
  type RuleFixConfiguration_for_UseParseIntRadixOptions =
2839
2866
  | RulePlainConfiguration
2840
2867
  | RuleWithFixOptions_for_UseParseIntRadixOptions;
2868
+ type RuleConfiguration_for_UseQwikClasslistOptions =
2869
+ | RulePlainConfiguration
2870
+ | RuleWithOptions_for_UseQwikClasslistOptions;
2841
2871
  type RuleFixConfiguration_for_UseSingleJsDocAsteriskOptions =
2842
2872
  | RulePlainConfiguration
2843
2873
  | RuleWithFixOptions_for_UseSingleJsDocAsteriskOptions;
@@ -2859,6 +2889,9 @@ type RuleConfiguration_for_NoDeprecatedImportsOptions =
2859
2889
  type RuleConfiguration_for_NoDuplicateDependenciesOptions =
2860
2890
  | RulePlainConfiguration
2861
2891
  | RuleWithOptions_for_NoDuplicateDependenciesOptions;
2892
+ type RuleConfiguration_for_NoEmptySourceOptions =
2893
+ | RulePlainConfiguration
2894
+ | RuleWithOptions_for_NoEmptySourceOptions;
2862
2895
  type RuleFixConfiguration_for_NoFloatingPromisesOptions =
2863
2896
  | RulePlainConfiguration
2864
2897
  | RuleWithFixOptions_for_NoFloatingPromisesOptions;
@@ -2874,18 +2907,9 @@ type RuleFixConfiguration_for_NoMisusedPromisesOptions =
2874
2907
  type RuleConfiguration_for_NoNextAsyncClientComponentOptions =
2875
2908
  | RulePlainConfiguration
2876
2909
  | RuleWithOptions_for_NoNextAsyncClientComponentOptions;
2877
- type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
2878
- | RulePlainConfiguration
2879
- | RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions;
2880
- type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
2881
- | RulePlainConfiguration
2882
- | RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
2883
2910
  type RuleFixConfiguration_for_NoReactForwardRefOptions =
2884
2911
  | RulePlainConfiguration
2885
2912
  | RuleWithFixOptions_for_NoReactForwardRefOptions;
2886
- type RuleConfiguration_for_NoSecretsOptions =
2887
- | RulePlainConfiguration
2888
- | RuleWithOptions_for_NoSecretsOptions;
2889
2913
  type RuleConfiguration_for_NoShadowOptions =
2890
2914
  | RulePlainConfiguration
2891
2915
  | RuleWithOptions_for_NoShadowOptions;
@@ -2916,15 +2940,9 @@ type RuleConfiguration_for_NoVueReservedKeysOptions =
2916
2940
  type RuleConfiguration_for_NoVueReservedPropsOptions =
2917
2941
  | RulePlainConfiguration
2918
2942
  | RuleWithOptions_for_NoVueReservedPropsOptions;
2919
- type RuleConfiguration_for_UseAnchorHrefOptions =
2920
- | RulePlainConfiguration
2921
- | RuleWithOptions_for_UseAnchorHrefOptions;
2922
2943
  type RuleFixConfiguration_for_UseConsistentArrowReturnOptions =
2923
2944
  | RulePlainConfiguration
2924
2945
  | RuleWithFixOptions_for_UseConsistentArrowReturnOptions;
2925
- type RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions =
2926
- | RulePlainConfiguration
2927
- | RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions;
2928
2946
  type RuleConfiguration_for_UseDeprecatedDateOptions =
2929
2947
  | RulePlainConfiguration
2930
2948
  | RuleWithOptions_for_UseDeprecatedDateOptions;
@@ -2934,27 +2952,21 @@ type RuleFixConfiguration_for_UseExhaustiveSwitchCasesOptions =
2934
2952
  type RuleConfiguration_for_UseExplicitTypeOptions =
2935
2953
  | RulePlainConfiguration
2936
2954
  | RuleWithOptions_for_UseExplicitTypeOptions;
2937
- type RuleConfiguration_for_UseImageSizeOptions =
2938
- | RulePlainConfiguration
2939
- | RuleWithOptions_for_UseImageSizeOptions;
2940
2955
  type RuleConfiguration_for_UseMaxParamsOptions =
2941
2956
  | RulePlainConfiguration
2942
2957
  | RuleWithOptions_for_UseMaxParamsOptions;
2943
- type RuleConfiguration_for_UseQwikClasslistOptions =
2944
- | RulePlainConfiguration
2945
- | RuleWithOptions_for_UseQwikClasslistOptions;
2946
2958
  type RuleConfiguration_for_UseQwikMethodUsageOptions =
2947
2959
  | RulePlainConfiguration
2948
2960
  | RuleWithOptions_for_UseQwikMethodUsageOptions;
2949
2961
  type RuleConfiguration_for_UseQwikValidLexicalScopeOptions =
2950
2962
  | RulePlainConfiguration
2951
2963
  | RuleWithOptions_for_UseQwikValidLexicalScopeOptions;
2952
- type RuleConfiguration_for_UseReactFunctionComponentsOptions =
2953
- | RulePlainConfiguration
2954
- | RuleWithOptions_for_UseReactFunctionComponentsOptions;
2955
2964
  type RuleFixConfiguration_for_UseSortedClassesOptions =
2956
2965
  | RulePlainConfiguration
2957
2966
  | RuleWithFixOptions_for_UseSortedClassesOptions;
2967
+ type RuleFixConfiguration_for_UseVueDefineMacrosOrderOptions =
2968
+ | RulePlainConfiguration
2969
+ | RuleWithFixOptions_for_UseVueDefineMacrosOrderOptions;
2958
2970
  type RuleConfiguration_for_UseVueMultiWordComponentNamesOptions =
2959
2971
  | RulePlainConfiguration
2960
2972
  | RuleWithOptions_for_UseVueMultiWordComponentNamesOptions;
@@ -3006,6 +3018,9 @@ type RuleConfiguration_for_NoDangerouslySetInnerHtmlWithChildrenOptions =
3006
3018
  type RuleConfiguration_for_NoGlobalEvalOptions =
3007
3019
  | RulePlainConfiguration
3008
3020
  | RuleWithOptions_for_NoGlobalEvalOptions;
3021
+ type RuleConfiguration_for_NoSecretsOptions =
3022
+ | RulePlainConfiguration
3023
+ | RuleWithOptions_for_NoSecretsOptions;
3009
3024
  type RuleConfiguration_for_NoCommonJsOptions =
3010
3025
  | RulePlainConfiguration
3011
3026
  | RuleWithOptions_for_NoCommonJsOptions;
@@ -3120,6 +3135,9 @@ type RuleConfiguration_for_UseConsistentMemberAccessibilityOptions =
3120
3135
  type RuleFixConfiguration_for_UseConsistentObjectDefinitionsOptions =
3121
3136
  | RulePlainConfiguration
3122
3137
  | RuleWithFixOptions_for_UseConsistentObjectDefinitionsOptions;
3138
+ type RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions =
3139
+ | RulePlainConfiguration
3140
+ | RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions;
3123
3141
  type RuleFixConfiguration_for_UseConstOptions =
3124
3142
  | RulePlainConfiguration
3125
3143
  | RuleWithFixOptions_for_UseConstOptions;
@@ -3186,6 +3204,9 @@ type RuleFixConfiguration_for_UseNumericSeparatorsOptions =
3186
3204
  type RuleFixConfiguration_for_UseObjectSpreadOptions =
3187
3205
  | RulePlainConfiguration
3188
3206
  | RuleWithFixOptions_for_UseObjectSpreadOptions;
3207
+ type RuleConfiguration_for_UseReactFunctionComponentsOptions =
3208
+ | RulePlainConfiguration
3209
+ | RuleWithOptions_for_UseReactFunctionComponentsOptions;
3189
3210
  type RuleFixConfiguration_for_UseReadonlyClassPropertiesOptions =
3190
3211
  | RulePlainConfiguration
3191
3212
  | RuleWithFixOptions_for_UseReadonlyClassPropertiesOptions;
@@ -3390,6 +3411,9 @@ type RuleConfiguration_for_NoMisplacedAssertionOptions =
3390
3411
  type RuleFixConfiguration_for_NoMisrefactoredShorthandAssignOptions =
3391
3412
  | RulePlainConfiguration
3392
3413
  | RuleWithFixOptions_for_NoMisrefactoredShorthandAssignOptions;
3414
+ type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
3415
+ | RulePlainConfiguration
3416
+ | RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions;
3393
3417
  type RuleFixConfiguration_for_NoOctalEscapeOptions =
3394
3418
  | RulePlainConfiguration
3395
3419
  | RuleWithFixOptions_for_NoOctalEscapeOptions;
@@ -4759,6 +4783,16 @@ interface RuleWithFixOptions_for_NoProcessGlobalOptions {
4759
4783
  */
4760
4784
  options: NoProcessGlobalOptions;
4761
4785
  }
4786
+ interface RuleWithOptions_for_NoQwikUseVisibleTaskOptions {
4787
+ /**
4788
+ * The severity of the emitted diagnostics by the rule
4789
+ */
4790
+ level: RulePlainConfiguration;
4791
+ /**
4792
+ * Rule's options
4793
+ */
4794
+ options: NoQwikUseVisibleTaskOptions;
4795
+ }
4762
4796
  interface RuleWithOptions_for_NoReactPropAssignmentsOptions {
4763
4797
  /**
4764
4798
  * The severity of the emitted diagnostics by the rule
@@ -5119,6 +5153,16 @@ interface RuleWithOptions_for_UseHookAtTopLevelOptions {
5119
5153
  */
5120
5154
  options: UseHookAtTopLevelOptions;
5121
5155
  }
5156
+ interface RuleWithOptions_for_UseImageSizeOptions {
5157
+ /**
5158
+ * The severity of the emitted diagnostics by the rule
5159
+ */
5160
+ level: RulePlainConfiguration;
5161
+ /**
5162
+ * Rule's options
5163
+ */
5164
+ options: UseImageSizeOptions;
5165
+ }
5122
5166
  interface RuleWithFixOptions_for_UseImportExtensionsOptions {
5123
5167
  /**
5124
5168
  * The kind of the code actions emitted by the rule
@@ -5185,6 +5229,16 @@ interface RuleWithFixOptions_for_UseParseIntRadixOptions {
5185
5229
  */
5186
5230
  options: UseParseIntRadixOptions;
5187
5231
  }
5232
+ interface RuleWithOptions_for_UseQwikClasslistOptions {
5233
+ /**
5234
+ * The severity of the emitted diagnostics by the rule
5235
+ */
5236
+ level: RulePlainConfiguration;
5237
+ /**
5238
+ * Rule's options
5239
+ */
5240
+ options: UseQwikClasslistOptions;
5241
+ }
5188
5242
  interface RuleWithFixOptions_for_UseSingleJsDocAsteriskOptions {
5189
5243
  /**
5190
5244
  * The kind of the code actions emitted by the rule
@@ -5263,6 +5317,16 @@ interface RuleWithOptions_for_NoDuplicateDependenciesOptions {
5263
5317
  */
5264
5318
  options: NoDuplicateDependenciesOptions;
5265
5319
  }
5320
+ interface RuleWithOptions_for_NoEmptySourceOptions {
5321
+ /**
5322
+ * The severity of the emitted diagnostics by the rule
5323
+ */
5324
+ level: RulePlainConfiguration;
5325
+ /**
5326
+ * Rule's options
5327
+ */
5328
+ options: NoEmptySourceOptions;
5329
+ }
5266
5330
  interface RuleWithFixOptions_for_NoFloatingPromisesOptions {
5267
5331
  /**
5268
5332
  * The kind of the code actions emitted by the rule
@@ -5321,26 +5385,6 @@ interface RuleWithOptions_for_NoNextAsyncClientComponentOptions {
5321
5385
  */
5322
5386
  options: NoNextAsyncClientComponentOptions;
5323
5387
  }
5324
- interface RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions {
5325
- /**
5326
- * The severity of the emitted diagnostics by the rule
5327
- */
5328
- level: RulePlainConfiguration;
5329
- /**
5330
- * Rule's options
5331
- */
5332
- options: NoNonNullAssertedOptionalChainOptions;
5333
- }
5334
- interface RuleWithOptions_for_NoQwikUseVisibleTaskOptions {
5335
- /**
5336
- * The severity of the emitted diagnostics by the rule
5337
- */
5338
- level: RulePlainConfiguration;
5339
- /**
5340
- * Rule's options
5341
- */
5342
- options: NoQwikUseVisibleTaskOptions;
5343
- }
5344
5388
  interface RuleWithFixOptions_for_NoReactForwardRefOptions {
5345
5389
  /**
5346
5390
  * The kind of the code actions emitted by the rule
@@ -5355,16 +5399,6 @@ interface RuleWithFixOptions_for_NoReactForwardRefOptions {
5355
5399
  */
5356
5400
  options: NoReactForwardRefOptions;
5357
5401
  }
5358
- interface RuleWithOptions_for_NoSecretsOptions {
5359
- /**
5360
- * The severity of the emitted diagnostics by the rule
5361
- */
5362
- level: RulePlainConfiguration;
5363
- /**
5364
- * Rule's options
5365
- */
5366
- options: NoSecretsOptions;
5367
- }
5368
5402
  interface RuleWithOptions_for_NoShadowOptions {
5369
5403
  /**
5370
5404
  * The severity of the emitted diagnostics by the rule
@@ -5477,16 +5511,6 @@ interface RuleWithOptions_for_NoVueReservedPropsOptions {
5477
5511
  */
5478
5512
  options: NoVueReservedPropsOptions;
5479
5513
  }
5480
- interface RuleWithOptions_for_UseAnchorHrefOptions {
5481
- /**
5482
- * The severity of the emitted diagnostics by the rule
5483
- */
5484
- level: RulePlainConfiguration;
5485
- /**
5486
- * Rule's options
5487
- */
5488
- options: UseAnchorHrefOptions;
5489
- }
5490
5514
  interface RuleWithFixOptions_for_UseConsistentArrowReturnOptions {
5491
5515
  /**
5492
5516
  * The kind of the code actions emitted by the rule
@@ -5501,20 +5525,6 @@ interface RuleWithFixOptions_for_UseConsistentArrowReturnOptions {
5501
5525
  */
5502
5526
  options: UseConsistentArrowReturnOptions;
5503
5527
  }
5504
- interface RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions {
5505
- /**
5506
- * The kind of the code actions emitted by the rule
5507
- */
5508
- fix?: FixKind;
5509
- /**
5510
- * The severity of the emitted diagnostics by the rule
5511
- */
5512
- level: RulePlainConfiguration;
5513
- /**
5514
- * Rule's options
5515
- */
5516
- options: UseConsistentTypeDefinitionsOptions;
5517
- }
5518
5528
  interface RuleWithOptions_for_UseDeprecatedDateOptions {
5519
5529
  /**
5520
5530
  * The severity of the emitted diagnostics by the rule
@@ -5549,16 +5559,6 @@ interface RuleWithOptions_for_UseExplicitTypeOptions {
5549
5559
  */
5550
5560
  options: UseExplicitTypeOptions;
5551
5561
  }
5552
- interface RuleWithOptions_for_UseImageSizeOptions {
5553
- /**
5554
- * The severity of the emitted diagnostics by the rule
5555
- */
5556
- level: RulePlainConfiguration;
5557
- /**
5558
- * Rule's options
5559
- */
5560
- options: UseImageSizeOptions;
5561
- }
5562
5562
  interface RuleWithOptions_for_UseMaxParamsOptions {
5563
5563
  /**
5564
5564
  * The severity of the emitted diagnostics by the rule
@@ -5569,16 +5569,6 @@ interface RuleWithOptions_for_UseMaxParamsOptions {
5569
5569
  */
5570
5570
  options: UseMaxParamsOptions;
5571
5571
  }
5572
- interface RuleWithOptions_for_UseQwikClasslistOptions {
5573
- /**
5574
- * The severity of the emitted diagnostics by the rule
5575
- */
5576
- level: RulePlainConfiguration;
5577
- /**
5578
- * Rule's options
5579
- */
5580
- options: UseQwikClasslistOptions;
5581
- }
5582
5572
  interface RuleWithOptions_for_UseQwikMethodUsageOptions {
5583
5573
  /**
5584
5574
  * The severity of the emitted diagnostics by the rule
@@ -5599,7 +5589,11 @@ interface RuleWithOptions_for_UseQwikValidLexicalScopeOptions {
5599
5589
  */
5600
5590
  options: UseQwikValidLexicalScopeOptions;
5601
5591
  }
5602
- interface RuleWithOptions_for_UseReactFunctionComponentsOptions {
5592
+ interface RuleWithFixOptions_for_UseSortedClassesOptions {
5593
+ /**
5594
+ * The kind of the code actions emitted by the rule
5595
+ */
5596
+ fix?: FixKind;
5603
5597
  /**
5604
5598
  * The severity of the emitted diagnostics by the rule
5605
5599
  */
@@ -5607,9 +5601,9 @@ interface RuleWithOptions_for_UseReactFunctionComponentsOptions {
5607
5601
  /**
5608
5602
  * Rule's options
5609
5603
  */
5610
- options: UseReactFunctionComponentsOptions;
5604
+ options: UseSortedClassesOptions;
5611
5605
  }
5612
- interface RuleWithFixOptions_for_UseSortedClassesOptions {
5606
+ interface RuleWithFixOptions_for_UseVueDefineMacrosOrderOptions {
5613
5607
  /**
5614
5608
  * The kind of the code actions emitted by the rule
5615
5609
  */
@@ -5621,7 +5615,7 @@ interface RuleWithFixOptions_for_UseSortedClassesOptions {
5621
5615
  /**
5622
5616
  * Rule's options
5623
5617
  */
5624
- options: UseSortedClassesOptions;
5618
+ options: UseVueDefineMacrosOrderOptions;
5625
5619
  }
5626
5620
  interface RuleWithOptions_for_UseVueMultiWordComponentNamesOptions {
5627
5621
  /**
@@ -5805,6 +5799,16 @@ interface RuleWithOptions_for_NoGlobalEvalOptions {
5805
5799
  */
5806
5800
  options: NoGlobalEvalOptions;
5807
5801
  }
5802
+ interface RuleWithOptions_for_NoSecretsOptions {
5803
+ /**
5804
+ * The severity of the emitted diagnostics by the rule
5805
+ */
5806
+ level: RulePlainConfiguration;
5807
+ /**
5808
+ * Rule's options
5809
+ */
5810
+ options: NoSecretsOptions;
5811
+ }
5808
5812
  interface RuleWithOptions_for_NoCommonJsOptions {
5809
5813
  /**
5810
5814
  * The severity of the emitted diagnostics by the rule
@@ -6265,6 +6269,20 @@ interface RuleWithFixOptions_for_UseConsistentObjectDefinitionsOptions {
6265
6269
  */
6266
6270
  options: UseConsistentObjectDefinitionsOptions;
6267
6271
  }
6272
+ interface RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions {
6273
+ /**
6274
+ * The kind of the code actions emitted by the rule
6275
+ */
6276
+ fix?: FixKind;
6277
+ /**
6278
+ * The severity of the emitted diagnostics by the rule
6279
+ */
6280
+ level: RulePlainConfiguration;
6281
+ /**
6282
+ * Rule's options
6283
+ */
6284
+ options: UseConsistentTypeDefinitionsOptions;
6285
+ }
6268
6286
  interface RuleWithFixOptions_for_UseConstOptions {
6269
6287
  /**
6270
6288
  * The kind of the code actions emitted by the rule
@@ -6541,6 +6559,16 @@ interface RuleWithFixOptions_for_UseObjectSpreadOptions {
6541
6559
  */
6542
6560
  options: UseObjectSpreadOptions;
6543
6561
  }
6562
+ interface RuleWithOptions_for_UseReactFunctionComponentsOptions {
6563
+ /**
6564
+ * The severity of the emitted diagnostics by the rule
6565
+ */
6566
+ level: RulePlainConfiguration;
6567
+ /**
6568
+ * Rule's options
6569
+ */
6570
+ options: UseReactFunctionComponentsOptions;
6571
+ }
6544
6572
  interface RuleWithFixOptions_for_UseReadonlyClassPropertiesOptions {
6545
6573
  /**
6546
6574
  * The kind of the code actions emitted by the rule
@@ -7321,6 +7349,16 @@ interface RuleWithFixOptions_for_NoMisrefactoredShorthandAssignOptions {
7321
7349
  */
7322
7350
  options: NoMisrefactoredShorthandAssignOptions;
7323
7351
  }
7352
+ interface RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions {
7353
+ /**
7354
+ * The severity of the emitted diagnostics by the rule
7355
+ */
7356
+ level: RulePlainConfiguration;
7357
+ /**
7358
+ * Rule's options
7359
+ */
7360
+ options: NoNonNullAssertedOptionalChainOptions;
7361
+ }
7324
7362
  interface RuleWithFixOptions_for_NoOctalEscapeOptions {
7325
7363
  /**
7326
7364
  * The kind of the code actions emitted by the rule
@@ -7922,6 +7960,7 @@ Default: **public**.
7922
7960
  defaultVisibility?: Visibility;
7923
7961
  }
7924
7962
  interface NoProcessGlobalOptions {}
7963
+ interface NoQwikUseVisibleTaskOptions {}
7925
7964
  interface NoReactPropAssignmentsOptions {}
7926
7965
  interface NoRenderReturnValueOptions {}
7927
7966
  interface NoRestrictedElementsOptions {
@@ -8000,6 +8039,7 @@ interface UseExhaustiveDependenciesOptions {
8000
8039
  }
8001
8040
  interface UseGraphqlNamedOperationsOptions {}
8002
8041
  interface UseHookAtTopLevelOptions {}
8042
+ type UseImageSizeOptions = null;
8003
8043
  interface UseImportExtensionsOptions {
8004
8044
  /**
8005
8045
  * If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.
@@ -8015,6 +8055,7 @@ interface UseJsxKeyInIterableOptions {
8015
8055
  checkShorthandFragments?: boolean;
8016
8056
  }
8017
8057
  interface UseParseIntRadixOptions {}
8058
+ interface UseQwikClasslistOptions {}
8018
8059
  interface UseSingleJsDocAsteriskOptions {}
8019
8060
  interface UseUniqueElementIdsOptions {
8020
8061
  /**
@@ -8027,6 +8068,12 @@ interface UseValidTypeofOptions {}
8027
8068
  interface UseYieldOptions {}
8028
8069
  interface NoDeprecatedImportsOptions {}
8029
8070
  interface NoDuplicateDependenciesOptions {}
8071
+ interface NoEmptySourceOptions {
8072
+ /**
8073
+ * Whether comments are considered meaningful
8074
+ */
8075
+ allowComments?: boolean;
8076
+ }
8030
8077
  interface NoFloatingPromisesOptions {}
8031
8078
  interface NoImportCyclesOptions {
8032
8079
  /**
@@ -8050,15 +8097,7 @@ interface NoJsxLiteralsOptions {
8050
8097
  }
8051
8098
  interface NoMisusedPromisesOptions {}
8052
8099
  interface NoNextAsyncClientComponentOptions {}
8053
- interface NoNonNullAssertedOptionalChainOptions {}
8054
- interface NoQwikUseVisibleTaskOptions {}
8055
8100
  interface NoReactForwardRefOptions {}
8056
- interface NoSecretsOptions {
8057
- /**
8058
- * Set entropy threshold (default is 41).
8059
- */
8060
- entropyThreshold?: number;
8061
- }
8062
8101
  interface NoShadowOptions {}
8063
8102
  interface NoUnnecessaryConditionsOptions {}
8064
8103
  interface NoUnresolvedImportsOptions {}
@@ -8069,7 +8108,6 @@ interface NoVueDataObjectDeclarationOptions {}
8069
8108
  interface NoVueDuplicateKeysOptions {}
8070
8109
  interface NoVueReservedKeysOptions {}
8071
8110
  interface NoVueReservedPropsOptions {}
8072
- type UseAnchorHrefOptions = null;
8073
8111
  interface UseConsistentArrowReturnOptions {
8074
8112
  /**
8075
8113
  * Determines whether the rule enforces a consistent style when the return value is an object literal.
@@ -8082,25 +8120,19 @@ This option is only applicable when used in conjunction with the `asNeeded` opti
8082
8120
  */
8083
8121
  style?: UseConsistentArrowReturnStyle;
8084
8122
  }
8085
- interface UseConsistentTypeDefinitionsOptions {
8086
- style?: ConsistentTypeDefinition;
8087
- }
8088
8123
  interface UseDeprecatedDateOptions {
8089
8124
  argumentName?: string;
8090
8125
  }
8091
8126
  interface UseExhaustiveSwitchCasesOptions {}
8092
8127
  interface UseExplicitTypeOptions {}
8093
- type UseImageSizeOptions = null;
8094
8128
  interface UseMaxParamsOptions {
8095
8129
  /**
8096
8130
  * Maximum number of parameters allowed (default: 4)
8097
8131
  */
8098
8132
  max?: number;
8099
8133
  }
8100
- interface UseQwikClasslistOptions {}
8101
8134
  interface UseQwikMethodUsageOptions {}
8102
8135
  interface UseQwikValidLexicalScopeOptions {}
8103
- interface UseReactFunctionComponentsOptions {}
8104
8136
  interface UseSortedClassesOptions {
8105
8137
  /**
8106
8138
  * Additional attributes that will be sorted.
@@ -8111,6 +8143,12 @@ interface UseSortedClassesOptions {
8111
8143
  */
8112
8144
  functions?: string[];
8113
8145
  }
8146
+ interface UseVueDefineMacrosOrderOptions {
8147
+ /**
8148
+ * The order of the Vue define macros.
8149
+ */
8150
+ order?: string[];
8151
+ }
8114
8152
  interface UseVueMultiWordComponentNamesOptions {
8115
8153
  /**
8116
8154
  * Component names to ignore (allowed to be single-word).
@@ -8142,6 +8180,12 @@ interface NoBlankTargetOptions {
8142
8180
  interface NoDangerouslySetInnerHtmlOptions {}
8143
8181
  interface NoDangerouslySetInnerHtmlWithChildrenOptions {}
8144
8182
  interface NoGlobalEvalOptions {}
8183
+ interface NoSecretsOptions {
8184
+ /**
8185
+ * Set entropy threshold (default is 41).
8186
+ */
8187
+ entropyThreshold?: number;
8188
+ }
8145
8189
  interface NoCommonJsOptions {}
8146
8190
  interface NoDefaultExportOptions {}
8147
8191
  interface NoDescendingSpecificityOptions {}
@@ -8222,6 +8266,9 @@ interface UseConsistentObjectDefinitionsOptions {
8222
8266
  */
8223
8267
  syntax?: ObjectPropertySyntax;
8224
8268
  }
8269
+ interface UseConsistentTypeDefinitionsOptions {
8270
+ style?: ConsistentTypeDefinition;
8271
+ }
8225
8272
  interface UseConstOptions {}
8226
8273
  interface UseDefaultParameterLastOptions {}
8227
8274
  interface UseDefaultSwitchClauseOptions {}
@@ -8279,6 +8326,7 @@ interface UseNodejsImportProtocolOptions {}
8279
8326
  interface UseNumberNamespaceOptions {}
8280
8327
  interface UseNumericSeparatorsOptions {}
8281
8328
  interface UseObjectSpreadOptions {}
8329
+ interface UseReactFunctionComponentsOptions {}
8282
8330
  interface UseReadonlyClassPropertiesOptions {
8283
8331
  /**
8284
8332
  * When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
@@ -8376,6 +8424,7 @@ interface NoMisleadingCharacterClassOptions {}
8376
8424
  interface NoMisleadingInstantiatorOptions {}
8377
8425
  interface NoMisplacedAssertionOptions {}
8378
8426
  interface NoMisrefactoredShorthandAssignOptions {}
8427
+ interface NoNonNullAssertedOptionalChainOptions {}
8379
8428
  interface NoOctalEscapeOptions {}
8380
8429
  interface NoPrototypeBuiltinsOptions {}
8381
8430
  interface NoQuickfixBiomeOptions {
@@ -8397,7 +8446,12 @@ interface NoTemplateCurlyInStringOptions {}
8397
8446
  interface NoThenPropertyOptions {}
8398
8447
  interface NoTsIgnoreOptions {}
8399
8448
  interface NoUnassignedVariablesOptions {}
8400
- interface NoUnknownAtRulesOptions {}
8449
+ interface NoUnknownAtRulesOptions {
8450
+ /**
8451
+ * A list of unknown at-rule names to ignore (case-insensitive).
8452
+ */
8453
+ ignore: string[];
8454
+ }
8401
8455
  interface NoUnsafeDeclarationMergingOptions {}
8402
8456
  interface NoUnsafeNegationOptions {}
8403
8457
  interface NoUselessEscapeInStringOptions {}
@@ -8449,7 +8503,6 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
8449
8503
  stableResult?: StableHookResult;
8450
8504
  }
8451
8505
  type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
8452
- type ConsistentTypeDefinition = "interface" | "type";
8453
8506
  type PropertyAssignmentMode = "allow" | "deny";
8454
8507
  type Paths = string | PathOptions;
8455
8508
  type Patterns = PatternOptions;
@@ -8457,6 +8510,7 @@ type CustomRestrictedType = string | CustomRestrictedTypeOptions;
8457
8510
  type ConsistentArrayType = "shorthand" | "generic";
8458
8511
  type Accessibility = "noPublic" | "explicit" | "none";
8459
8512
  type ObjectPropertySyntax = "explicit" | "shorthand";
8513
+ type ConsistentTypeDefinition = "interface" | "type";
8460
8514
  type FilenameCases = FilenameCase[];
8461
8515
  type Regex = string;
8462
8516
  type Style2 = "auto" | "inlineType" | "separatedType";
@@ -8726,6 +8780,7 @@ type Category =
8726
8780
  | "lint/correctness/noPrecisionLoss"
8727
8781
  | "lint/correctness/noPrivateImports"
8728
8782
  | "lint/correctness/noProcessGlobal"
8783
+ | "lint/correctness/noQwikUseVisibleTask"
8729
8784
  | "lint/correctness/noReactPropAssignments"
8730
8785
  | "lint/correctness/noRenderReturnValue"
8731
8786
  | "lint/correctness/noRestrictedElements"
@@ -8759,11 +8814,13 @@ type Category =
8759
8814
  | "lint/correctness/useExhaustiveDependencies"
8760
8815
  | "lint/correctness/useGraphqlNamedOperations"
8761
8816
  | "lint/correctness/useHookAtTopLevel"
8817
+ | "lint/correctness/useImageSize"
8762
8818
  | "lint/correctness/useImportExtensions"
8763
8819
  | "lint/correctness/useIsNan"
8764
8820
  | "lint/correctness/useJsonImportAttributes"
8765
8821
  | "lint/correctness/useJsxKeyInIterable"
8766
8822
  | "lint/correctness/useParseIntRadix"
8823
+ | "lint/correctness/useQwikClasslist"
8767
8824
  | "lint/correctness/useSingleJsDocAsterisk"
8768
8825
  | "lint/correctness/useUniqueElementIds"
8769
8826
  | "lint/correctness/useValidForDirection"
@@ -8772,6 +8829,7 @@ type Category =
8772
8829
  | "lint/nursery/noColorInvalidHex"
8773
8830
  | "lint/nursery/noDeprecatedImports"
8774
8831
  | "lint/nursery/noDuplicateDependencies"
8832
+ | "lint/nursery/noEmptySource"
8775
8833
  | "lint/nursery/noFloatingPromises"
8776
8834
  | "lint/nursery/noImplicitCoercion"
8777
8835
  | "lint/nursery/noImportCycles"
@@ -8779,10 +8837,7 @@ type Category =
8779
8837
  | "lint/nursery/noMissingGenericFamilyKeyword"
8780
8838
  | "lint/nursery/noMisusedPromises"
8781
8839
  | "lint/nursery/noNextAsyncClientComponent"
8782
- | "lint/nursery/noNonNullAssertedOptionalChain"
8783
- | "lint/nursery/noQwikUseVisibleTask"
8784
8840
  | "lint/nursery/noReactForwardRef"
8785
- | "lint/nursery/noSecrets"
8786
8841
  | "lint/nursery/noShadow"
8787
8842
  | "lint/nursery/noUnnecessaryConditions"
8788
8843
  | "lint/nursery/noUnresolvedImports"
@@ -8799,20 +8854,17 @@ type Category =
8799
8854
  | "lint/nursery/useBiomeSuppressionComment"
8800
8855
  | "lint/nursery/useConsistentArrowReturn"
8801
8856
  | "lint/nursery/useConsistentObjectDefinition"
8802
- | "lint/nursery/useConsistentTypeDefinitions"
8803
8857
  | "lint/nursery/useDeprecatedDate"
8804
8858
  | "lint/nursery/useExhaustiveSwitchCases"
8805
8859
  | "lint/nursery/useExplicitFunctionReturnType"
8806
8860
  | "lint/nursery/useExplicitType"
8807
- | "lint/nursery/useImageSize"
8808
8861
  | "lint/nursery/useImportRestrictions"
8809
8862
  | "lint/nursery/useJsxCurlyBraceConvention"
8810
8863
  | "lint/nursery/useMaxParams"
8811
- | "lint/nursery/useQwikClasslist"
8812
8864
  | "lint/nursery/useQwikMethodUsage"
8813
8865
  | "lint/nursery/useQwikValidLexicalScope"
8814
- | "lint/nursery/useReactFunctionComponents"
8815
8866
  | "lint/nursery/useSortedClasses"
8867
+ | "lint/nursery/useVueDefineMacrosOrder"
8816
8868
  | "lint/nursery/useVueMultiWordComponentNames"
8817
8869
  | "lint/performance/noAccumulatingSpread"
8818
8870
  | "lint/performance/noAwaitInLoops"
@@ -8830,6 +8882,7 @@ type Category =
8830
8882
  | "lint/security/noDangerouslySetInnerHtml"
8831
8883
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
8832
8884
  | "lint/security/noGlobalEval"
8885
+ | "lint/security/noSecrets"
8833
8886
  | "lint/style/noCommonJs"
8834
8887
  | "lint/style/noDefaultExport"
8835
8888
  | "lint/style/noDescendingSpecificity"
@@ -8868,6 +8921,7 @@ type Category =
8868
8921
  | "lint/style/useConsistentCurlyBraces"
8869
8922
  | "lint/style/useConsistentMemberAccessibility"
8870
8923
  | "lint/style/useConsistentObjectDefinitions"
8924
+ | "lint/style/useConsistentTypeDefinitions"
8871
8925
  | "lint/style/useConst"
8872
8926
  | "lint/style/useDefaultParameterLast"
8873
8927
  | "lint/style/useDefaultSwitchClause"
@@ -8890,6 +8944,7 @@ type Category =
8890
8944
  | "lint/style/useNumberNamespace"
8891
8945
  | "lint/style/useNumericSeparators"
8892
8946
  | "lint/style/useObjectSpread"
8947
+ | "lint/style/useReactFunctionComponents"
8893
8948
  | "lint/style/useReadonlyClassProperties"
8894
8949
  | "lint/style/useSelfClosingElements"
8895
8950
  | "lint/style/useShorthandArrayType"
@@ -8960,6 +9015,7 @@ type Category =
8960
9015
  | "lint/suspicious/noMisleadingInstantiator"
8961
9016
  | "lint/suspicious/noMisplacedAssertion"
8962
9017
  | "lint/suspicious/noMisrefactoredShorthandAssign"
9018
+ | "lint/suspicious/noNonNullAssertedOptionalChain"
8963
9019
  | "lint/suspicious/noOctalEscape"
8964
9020
  | "lint/suspicious/noPrototypeBuiltins"
8965
9021
  | "lint/suspicious/noQuickfixBiome"
@@ -9010,6 +9066,7 @@ type Category =
9010
9066
  | "check"
9011
9067
  | "ci"
9012
9068
  | "stdin"
9069
+ | "init"
9013
9070
  | "configuration"
9014
9071
  | "assist"
9015
9072
  | "migrate"
@@ -9201,7 +9258,7 @@ type DocumentFileSource =
9201
9258
  | { Grit: GritFileSource };
9202
9259
  interface JsFileSource {
9203
9260
  /**
9204
- * Used to mark if the source is being used for an Astro, Svelte or Vue file
9261
+ * Used to mark if the JavaScript is embedded inside some particular files. This affects the parsing. For example, if inside an Astro file, a top-level return statement is allowed.
9205
9262
  */
9206
9263
  embedding_kind: EmbeddingKind;
9207
9264
  language: Language;
@@ -9360,18 +9417,18 @@ interface PullDiagnosticsParams {
9360
9417
  /**
9361
9418
  * Rules to apply on top of the configuration
9362
9419
  */
9363
- enabledRules?: RuleCode[];
9364
- only?: RuleCode[];
9420
+ enabledRules?: AnalyzerSelector[];
9421
+ only?: AnalyzerSelector[];
9365
9422
  path: BiomePath;
9366
9423
  projectKey: ProjectKey;
9367
9424
  /**
9368
9425
  * When `false` the diagnostics, don't have code frames of the code actions (fixes, suppressions, etc.)
9369
9426
  */
9370
9427
  pullCodeActions: boolean;
9371
- skip?: RuleCode[];
9428
+ skip?: AnalyzerSelector[];
9372
9429
  }
9373
9430
  type RuleCategories = RuleCategory[];
9374
- type RuleCode = string;
9431
+ type AnalyzerSelector = string;
9375
9432
  type RuleCategory = "syntax" | "lint" | "action" | "transformation";
9376
9433
  interface PullDiagnosticsResult {
9377
9434
  diagnostics: Diagnostic[];
@@ -9380,12 +9437,12 @@ interface PullDiagnosticsResult {
9380
9437
  }
9381
9438
  interface PullActionsParams {
9382
9439
  categories?: RuleCategories;
9383
- enabledRules?: RuleCode[];
9384
- only?: RuleCode[];
9440
+ enabledRules?: AnalyzerSelector[];
9441
+ only?: AnalyzerSelector[];
9385
9442
  path: BiomePath;
9386
9443
  projectKey: ProjectKey;
9387
9444
  range?: TextRange;
9388
- skip?: RuleCode[];
9445
+ skip?: AnalyzerSelector[];
9389
9446
  suppressionReason?: string;
9390
9447
  }
9391
9448
  interface PullActionsResult {
@@ -9393,6 +9450,7 @@ interface PullActionsResult {
9393
9450
  }
9394
9451
  interface CodeAction {
9395
9452
  category: ActionCategory;
9453
+ offset?: TextSize;
9396
9454
  ruleName?: [string, string];
9397
9455
  suggestion: CodeSuggestion;
9398
9456
  }
@@ -9458,14 +9516,14 @@ interface FixFileParams {
9458
9516
  /**
9459
9517
  * Rules to apply to the file
9460
9518
  */
9461
- enabledRules?: RuleCode[];
9519
+ enabledRules?: AnalyzerSelector[];
9462
9520
  fixFileMode: FixFileMode;
9463
- only?: RuleCode[];
9521
+ only?: AnalyzerSelector[];
9464
9522
  path: BiomePath;
9465
9523
  projectKey: ProjectKey;
9466
9524
  ruleCategories: RuleCategories;
9467
9525
  shouldFormat: boolean;
9468
- skip?: RuleCode[];
9526
+ skip?: AnalyzerSelector[];
9469
9527
  suppressionReason?: string;
9470
9528
  }
9471
9529
  type FixFileMode = "safeFixes" | "safeAndUnsafeFixes" | "applySuppressions";
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Biome Developers and Contributors"
6
6
  ],
7
7
  "description": "WebAssembly bindings to the Biome workspace API",
8
- "version": "2.2.6",
8
+ "version": "2.3.0",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",