@biomejs/wasm-nodejs 2.2.7 → 2.3.1

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
  */
@@ -1516,22 +1545,10 @@ interface Nursery {
1516
1545
  * Prevent client components from being async functions.
1517
1546
  */
1518
1547
  noNextAsyncClientComponent?: RuleConfiguration_for_NoNextAsyncClientComponentOptions;
1519
- /**
1520
- * Disallow non-null assertions after optional chaining expressions.
1521
- */
1522
- noNonNullAssertedOptionalChain?: RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions;
1523
- /**
1524
- * Disallow useVisibleTask$() functions in Qwik components.
1525
- */
1526
- noQwikUseVisibleTask?: RuleConfiguration_for_NoQwikUseVisibleTaskOptions;
1527
1548
  /**
1528
1549
  * Replaces usages of forwardRef with passing ref as a prop.
1529
1550
  */
1530
1551
  noReactForwardRef?: RuleFixConfiguration_for_NoReactForwardRefOptions;
1531
- /**
1532
- * Disallow usage of sensitive data such as API keys and tokens.
1533
- */
1534
- noSecrets?: RuleConfiguration_for_NoSecretsOptions;
1535
1552
  /**
1536
1553
  * Disallow variable declarations from shadowing variables declared in the outer scope.
1537
1554
  */
@@ -1576,18 +1593,10 @@ interface Nursery {
1576
1593
  * Enables the recommended rules for this group
1577
1594
  */
1578
1595
  recommended?: boolean;
1579
- /**
1580
- * Enforces href attribute for \<a> elements.
1581
- */
1582
- useAnchorHref?: RuleConfiguration_for_UseAnchorHrefOptions;
1583
1596
  /**
1584
1597
  * Enforce consistent arrow function bodies.
1585
1598
  */
1586
1599
  useConsistentArrowReturn?: RuleFixConfiguration_for_UseConsistentArrowReturnOptions;
1587
- /**
1588
- * Enforce type definitions to consistently use either interface or type.
1589
- */
1590
- useConsistentTypeDefinitions?: RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions;
1591
1600
  /**
1592
1601
  * Require the @deprecated directive to specify a deletion date.
1593
1602
  */
@@ -1600,18 +1609,10 @@ interface Nursery {
1600
1609
  * Enforce types in functions, methods, variables, and parameters.
1601
1610
  */
1602
1611
  useExplicitType?: RuleConfiguration_for_UseExplicitTypeOptions;
1603
- /**
1604
- * Enforces that \<img> elements have both width and height attributes.
1605
- */
1606
- useImageSize?: RuleConfiguration_for_UseImageSizeOptions;
1607
1612
  /**
1608
1613
  * Enforce a maximum number of parameters in function definitions.
1609
1614
  */
1610
1615
  useMaxParams?: RuleConfiguration_for_UseMaxParamsOptions;
1611
- /**
1612
- * Prefer using the class prop as a classlist over the classnames helper.
1613
- */
1614
- useQwikClasslist?: RuleConfiguration_for_UseQwikClasslistOptions;
1615
1616
  /**
1616
1617
  * Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.
1617
1618
  */
@@ -1620,14 +1621,14 @@ interface Nursery {
1620
1621
  * Disallow unserializable expressions in Qwik dollar ($) scopes.
1621
1622
  */
1622
1623
  useQwikValidLexicalScope?: RuleConfiguration_for_UseQwikValidLexicalScopeOptions;
1623
- /**
1624
- * Enforce that components are defined as functions and never as classes.
1625
- */
1626
- useReactFunctionComponents?: RuleConfiguration_for_UseReactFunctionComponentsOptions;
1627
1624
  /**
1628
1625
  * Enforce the sorting of CSS utility classes.
1629
1626
  */
1630
1627
  useSortedClasses?: RuleFixConfiguration_for_UseSortedClassesOptions;
1628
+ /**
1629
+ * Enforce specific order of Vue compiler macros.
1630
+ */
1631
+ useVueDefineMacrosOrder?: RuleFixConfiguration_for_UseVueDefineMacrosOrderOptions;
1631
1632
  /**
1632
1633
  * Enforce multi-word component names in Vue components.
1633
1634
  */
@@ -1704,6 +1705,10 @@ interface Security {
1704
1705
  * Disallow the use of global eval().
1705
1706
  */
1706
1707
  noGlobalEval?: RuleConfiguration_for_NoGlobalEvalOptions;
1708
+ /**
1709
+ * Disallow usage of sensitive data such as API keys and tokens.
1710
+ */
1711
+ noSecrets?: RuleConfiguration_for_NoSecretsOptions;
1707
1712
  /**
1708
1713
  * Enables the recommended rules for this group
1709
1714
  */
@@ -1866,6 +1871,10 @@ interface Style {
1866
1871
  * Require the consistent declaration of object literals. Defaults to explicit definitions.
1867
1872
  */
1868
1873
  useConsistentObjectDefinitions?: RuleFixConfiguration_for_UseConsistentObjectDefinitionsOptions;
1874
+ /**
1875
+ * Enforce type definitions to consistently use either interface or type.
1876
+ */
1877
+ useConsistentTypeDefinitions?: RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions;
1869
1878
  /**
1870
1879
  * Require const declarations for variables that are only assigned once.
1871
1880
  */
@@ -1954,6 +1963,10 @@ interface Style {
1954
1963
  * Prefer object spread over Object.assign() when constructing new objects.
1955
1964
  */
1956
1965
  useObjectSpread?: RuleFixConfiguration_for_UseObjectSpreadOptions;
1966
+ /**
1967
+ * Enforce that components are defined as functions and never as classes.
1968
+ */
1969
+ useReactFunctionComponents?: RuleConfiguration_for_UseReactFunctionComponentsOptions;
1957
1970
  /**
1958
1971
  * Enforce marking members as readonly if they are never modified outside the constructor.
1959
1972
  */
@@ -2228,6 +2241,10 @@ interface Suspicious {
2228
2241
  * Disallow shorthand assign when variable appears on both sides.
2229
2242
  */
2230
2243
  noMisrefactoredShorthandAssign?: RuleFixConfiguration_for_NoMisrefactoredShorthandAssignOptions;
2244
+ /**
2245
+ * Disallow non-null assertions after optional chaining expressions.
2246
+ */
2247
+ noNonNullAssertedOptionalChain?: RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions;
2231
2248
  /**
2232
2249
  * Disallow octal escape sequences in string literals
2233
2250
  */
@@ -2731,6 +2748,9 @@ type RuleConfiguration_for_NoPrivateImportsOptions =
2731
2748
  type RuleFixConfiguration_for_NoProcessGlobalOptions =
2732
2749
  | RulePlainConfiguration
2733
2750
  | RuleWithFixOptions_for_NoProcessGlobalOptions;
2751
+ type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
2752
+ | RulePlainConfiguration
2753
+ | RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
2734
2754
  type RuleConfiguration_for_NoReactPropAssignmentsOptions =
2735
2755
  | RulePlainConfiguration
2736
2756
  | RuleWithOptions_for_NoReactPropAssignmentsOptions;
@@ -2827,6 +2847,9 @@ type RuleFixConfiguration_for_UseGraphqlNamedOperationsOptions =
2827
2847
  type RuleConfiguration_for_UseHookAtTopLevelOptions =
2828
2848
  | RulePlainConfiguration
2829
2849
  | RuleWithOptions_for_UseHookAtTopLevelOptions;
2850
+ type RuleConfiguration_for_UseImageSizeOptions =
2851
+ | RulePlainConfiguration
2852
+ | RuleWithOptions_for_UseImageSizeOptions;
2830
2853
  type RuleFixConfiguration_for_UseImportExtensionsOptions =
2831
2854
  | RulePlainConfiguration
2832
2855
  | RuleWithFixOptions_for_UseImportExtensionsOptions;
@@ -2842,6 +2865,9 @@ type RuleConfiguration_for_UseJsxKeyInIterableOptions =
2842
2865
  type RuleFixConfiguration_for_UseParseIntRadixOptions =
2843
2866
  | RulePlainConfiguration
2844
2867
  | RuleWithFixOptions_for_UseParseIntRadixOptions;
2868
+ type RuleConfiguration_for_UseQwikClasslistOptions =
2869
+ | RulePlainConfiguration
2870
+ | RuleWithOptions_for_UseQwikClasslistOptions;
2845
2871
  type RuleFixConfiguration_for_UseSingleJsDocAsteriskOptions =
2846
2872
  | RulePlainConfiguration
2847
2873
  | RuleWithFixOptions_for_UseSingleJsDocAsteriskOptions;
@@ -2881,18 +2907,9 @@ type RuleFixConfiguration_for_NoMisusedPromisesOptions =
2881
2907
  type RuleConfiguration_for_NoNextAsyncClientComponentOptions =
2882
2908
  | RulePlainConfiguration
2883
2909
  | RuleWithOptions_for_NoNextAsyncClientComponentOptions;
2884
- type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
2885
- | RulePlainConfiguration
2886
- | RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions;
2887
- type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
2888
- | RulePlainConfiguration
2889
- | RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
2890
2910
  type RuleFixConfiguration_for_NoReactForwardRefOptions =
2891
2911
  | RulePlainConfiguration
2892
2912
  | RuleWithFixOptions_for_NoReactForwardRefOptions;
2893
- type RuleConfiguration_for_NoSecretsOptions =
2894
- | RulePlainConfiguration
2895
- | RuleWithOptions_for_NoSecretsOptions;
2896
2913
  type RuleConfiguration_for_NoShadowOptions =
2897
2914
  | RulePlainConfiguration
2898
2915
  | RuleWithOptions_for_NoShadowOptions;
@@ -2923,15 +2940,9 @@ type RuleConfiguration_for_NoVueReservedKeysOptions =
2923
2940
  type RuleConfiguration_for_NoVueReservedPropsOptions =
2924
2941
  | RulePlainConfiguration
2925
2942
  | RuleWithOptions_for_NoVueReservedPropsOptions;
2926
- type RuleConfiguration_for_UseAnchorHrefOptions =
2927
- | RulePlainConfiguration
2928
- | RuleWithOptions_for_UseAnchorHrefOptions;
2929
2943
  type RuleFixConfiguration_for_UseConsistentArrowReturnOptions =
2930
2944
  | RulePlainConfiguration
2931
2945
  | RuleWithFixOptions_for_UseConsistentArrowReturnOptions;
2932
- type RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions =
2933
- | RulePlainConfiguration
2934
- | RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions;
2935
2946
  type RuleConfiguration_for_UseDeprecatedDateOptions =
2936
2947
  | RulePlainConfiguration
2937
2948
  | RuleWithOptions_for_UseDeprecatedDateOptions;
@@ -2941,27 +2952,21 @@ type RuleFixConfiguration_for_UseExhaustiveSwitchCasesOptions =
2941
2952
  type RuleConfiguration_for_UseExplicitTypeOptions =
2942
2953
  | RulePlainConfiguration
2943
2954
  | RuleWithOptions_for_UseExplicitTypeOptions;
2944
- type RuleConfiguration_for_UseImageSizeOptions =
2945
- | RulePlainConfiguration
2946
- | RuleWithOptions_for_UseImageSizeOptions;
2947
2955
  type RuleConfiguration_for_UseMaxParamsOptions =
2948
2956
  | RulePlainConfiguration
2949
2957
  | RuleWithOptions_for_UseMaxParamsOptions;
2950
- type RuleConfiguration_for_UseQwikClasslistOptions =
2951
- | RulePlainConfiguration
2952
- | RuleWithOptions_for_UseQwikClasslistOptions;
2953
2958
  type RuleConfiguration_for_UseQwikMethodUsageOptions =
2954
2959
  | RulePlainConfiguration
2955
2960
  | RuleWithOptions_for_UseQwikMethodUsageOptions;
2956
2961
  type RuleConfiguration_for_UseQwikValidLexicalScopeOptions =
2957
2962
  | RulePlainConfiguration
2958
2963
  | RuleWithOptions_for_UseQwikValidLexicalScopeOptions;
2959
- type RuleConfiguration_for_UseReactFunctionComponentsOptions =
2960
- | RulePlainConfiguration
2961
- | RuleWithOptions_for_UseReactFunctionComponentsOptions;
2962
2964
  type RuleFixConfiguration_for_UseSortedClassesOptions =
2963
2965
  | RulePlainConfiguration
2964
2966
  | RuleWithFixOptions_for_UseSortedClassesOptions;
2967
+ type RuleFixConfiguration_for_UseVueDefineMacrosOrderOptions =
2968
+ | RulePlainConfiguration
2969
+ | RuleWithFixOptions_for_UseVueDefineMacrosOrderOptions;
2965
2970
  type RuleConfiguration_for_UseVueMultiWordComponentNamesOptions =
2966
2971
  | RulePlainConfiguration
2967
2972
  | RuleWithOptions_for_UseVueMultiWordComponentNamesOptions;
@@ -3013,6 +3018,9 @@ type RuleConfiguration_for_NoDangerouslySetInnerHtmlWithChildrenOptions =
3013
3018
  type RuleConfiguration_for_NoGlobalEvalOptions =
3014
3019
  | RulePlainConfiguration
3015
3020
  | RuleWithOptions_for_NoGlobalEvalOptions;
3021
+ type RuleConfiguration_for_NoSecretsOptions =
3022
+ | RulePlainConfiguration
3023
+ | RuleWithOptions_for_NoSecretsOptions;
3016
3024
  type RuleConfiguration_for_NoCommonJsOptions =
3017
3025
  | RulePlainConfiguration
3018
3026
  | RuleWithOptions_for_NoCommonJsOptions;
@@ -3127,6 +3135,9 @@ type RuleConfiguration_for_UseConsistentMemberAccessibilityOptions =
3127
3135
  type RuleFixConfiguration_for_UseConsistentObjectDefinitionsOptions =
3128
3136
  | RulePlainConfiguration
3129
3137
  | RuleWithFixOptions_for_UseConsistentObjectDefinitionsOptions;
3138
+ type RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions =
3139
+ | RulePlainConfiguration
3140
+ | RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions;
3130
3141
  type RuleFixConfiguration_for_UseConstOptions =
3131
3142
  | RulePlainConfiguration
3132
3143
  | RuleWithFixOptions_for_UseConstOptions;
@@ -3193,6 +3204,9 @@ type RuleFixConfiguration_for_UseNumericSeparatorsOptions =
3193
3204
  type RuleFixConfiguration_for_UseObjectSpreadOptions =
3194
3205
  | RulePlainConfiguration
3195
3206
  | RuleWithFixOptions_for_UseObjectSpreadOptions;
3207
+ type RuleConfiguration_for_UseReactFunctionComponentsOptions =
3208
+ | RulePlainConfiguration
3209
+ | RuleWithOptions_for_UseReactFunctionComponentsOptions;
3196
3210
  type RuleFixConfiguration_for_UseReadonlyClassPropertiesOptions =
3197
3211
  | RulePlainConfiguration
3198
3212
  | RuleWithFixOptions_for_UseReadonlyClassPropertiesOptions;
@@ -3397,6 +3411,9 @@ type RuleConfiguration_for_NoMisplacedAssertionOptions =
3397
3411
  type RuleFixConfiguration_for_NoMisrefactoredShorthandAssignOptions =
3398
3412
  | RulePlainConfiguration
3399
3413
  | RuleWithFixOptions_for_NoMisrefactoredShorthandAssignOptions;
3414
+ type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
3415
+ | RulePlainConfiguration
3416
+ | RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions;
3400
3417
  type RuleFixConfiguration_for_NoOctalEscapeOptions =
3401
3418
  | RulePlainConfiguration
3402
3419
  | RuleWithFixOptions_for_NoOctalEscapeOptions;
@@ -4766,6 +4783,16 @@ interface RuleWithFixOptions_for_NoProcessGlobalOptions {
4766
4783
  */
4767
4784
  options: NoProcessGlobalOptions;
4768
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
+ }
4769
4796
  interface RuleWithOptions_for_NoReactPropAssignmentsOptions {
4770
4797
  /**
4771
4798
  * The severity of the emitted diagnostics by the rule
@@ -5126,6 +5153,16 @@ interface RuleWithOptions_for_UseHookAtTopLevelOptions {
5126
5153
  */
5127
5154
  options: UseHookAtTopLevelOptions;
5128
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
+ }
5129
5166
  interface RuleWithFixOptions_for_UseImportExtensionsOptions {
5130
5167
  /**
5131
5168
  * The kind of the code actions emitted by the rule
@@ -5192,6 +5229,16 @@ interface RuleWithFixOptions_for_UseParseIntRadixOptions {
5192
5229
  */
5193
5230
  options: UseParseIntRadixOptions;
5194
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
+ }
5195
5242
  interface RuleWithFixOptions_for_UseSingleJsDocAsteriskOptions {
5196
5243
  /**
5197
5244
  * The kind of the code actions emitted by the rule
@@ -5338,26 +5385,6 @@ interface RuleWithOptions_for_NoNextAsyncClientComponentOptions {
5338
5385
  */
5339
5386
  options: NoNextAsyncClientComponentOptions;
5340
5387
  }
5341
- interface RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions {
5342
- /**
5343
- * The severity of the emitted diagnostics by the rule
5344
- */
5345
- level: RulePlainConfiguration;
5346
- /**
5347
- * Rule's options
5348
- */
5349
- options: NoNonNullAssertedOptionalChainOptions;
5350
- }
5351
- interface RuleWithOptions_for_NoQwikUseVisibleTaskOptions {
5352
- /**
5353
- * The severity of the emitted diagnostics by the rule
5354
- */
5355
- level: RulePlainConfiguration;
5356
- /**
5357
- * Rule's options
5358
- */
5359
- options: NoQwikUseVisibleTaskOptions;
5360
- }
5361
5388
  interface RuleWithFixOptions_for_NoReactForwardRefOptions {
5362
5389
  /**
5363
5390
  * The kind of the code actions emitted by the rule
@@ -5372,16 +5399,6 @@ interface RuleWithFixOptions_for_NoReactForwardRefOptions {
5372
5399
  */
5373
5400
  options: NoReactForwardRefOptions;
5374
5401
  }
5375
- interface RuleWithOptions_for_NoSecretsOptions {
5376
- /**
5377
- * The severity of the emitted diagnostics by the rule
5378
- */
5379
- level: RulePlainConfiguration;
5380
- /**
5381
- * Rule's options
5382
- */
5383
- options: NoSecretsOptions;
5384
- }
5385
5402
  interface RuleWithOptions_for_NoShadowOptions {
5386
5403
  /**
5387
5404
  * The severity of the emitted diagnostics by the rule
@@ -5494,16 +5511,6 @@ interface RuleWithOptions_for_NoVueReservedPropsOptions {
5494
5511
  */
5495
5512
  options: NoVueReservedPropsOptions;
5496
5513
  }
5497
- interface RuleWithOptions_for_UseAnchorHrefOptions {
5498
- /**
5499
- * The severity of the emitted diagnostics by the rule
5500
- */
5501
- level: RulePlainConfiguration;
5502
- /**
5503
- * Rule's options
5504
- */
5505
- options: UseAnchorHrefOptions;
5506
- }
5507
5514
  interface RuleWithFixOptions_for_UseConsistentArrowReturnOptions {
5508
5515
  /**
5509
5516
  * The kind of the code actions emitted by the rule
@@ -5518,20 +5525,6 @@ interface RuleWithFixOptions_for_UseConsistentArrowReturnOptions {
5518
5525
  */
5519
5526
  options: UseConsistentArrowReturnOptions;
5520
5527
  }
5521
- interface RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions {
5522
- /**
5523
- * The kind of the code actions emitted by the rule
5524
- */
5525
- fix?: FixKind;
5526
- /**
5527
- * The severity of the emitted diagnostics by the rule
5528
- */
5529
- level: RulePlainConfiguration;
5530
- /**
5531
- * Rule's options
5532
- */
5533
- options: UseConsistentTypeDefinitionsOptions;
5534
- }
5535
5528
  interface RuleWithOptions_for_UseDeprecatedDateOptions {
5536
5529
  /**
5537
5530
  * The severity of the emitted diagnostics by the rule
@@ -5566,16 +5559,6 @@ interface RuleWithOptions_for_UseExplicitTypeOptions {
5566
5559
  */
5567
5560
  options: UseExplicitTypeOptions;
5568
5561
  }
5569
- interface RuleWithOptions_for_UseImageSizeOptions {
5570
- /**
5571
- * The severity of the emitted diagnostics by the rule
5572
- */
5573
- level: RulePlainConfiguration;
5574
- /**
5575
- * Rule's options
5576
- */
5577
- options: UseImageSizeOptions;
5578
- }
5579
5562
  interface RuleWithOptions_for_UseMaxParamsOptions {
5580
5563
  /**
5581
5564
  * The severity of the emitted diagnostics by the rule
@@ -5586,16 +5569,6 @@ interface RuleWithOptions_for_UseMaxParamsOptions {
5586
5569
  */
5587
5570
  options: UseMaxParamsOptions;
5588
5571
  }
5589
- interface RuleWithOptions_for_UseQwikClasslistOptions {
5590
- /**
5591
- * The severity of the emitted diagnostics by the rule
5592
- */
5593
- level: RulePlainConfiguration;
5594
- /**
5595
- * Rule's options
5596
- */
5597
- options: UseQwikClasslistOptions;
5598
- }
5599
5572
  interface RuleWithOptions_for_UseQwikMethodUsageOptions {
5600
5573
  /**
5601
5574
  * The severity of the emitted diagnostics by the rule
@@ -5616,7 +5589,11 @@ interface RuleWithOptions_for_UseQwikValidLexicalScopeOptions {
5616
5589
  */
5617
5590
  options: UseQwikValidLexicalScopeOptions;
5618
5591
  }
5619
- 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;
5620
5597
  /**
5621
5598
  * The severity of the emitted diagnostics by the rule
5622
5599
  */
@@ -5624,9 +5601,9 @@ interface RuleWithOptions_for_UseReactFunctionComponentsOptions {
5624
5601
  /**
5625
5602
  * Rule's options
5626
5603
  */
5627
- options: UseReactFunctionComponentsOptions;
5604
+ options: UseSortedClassesOptions;
5628
5605
  }
5629
- interface RuleWithFixOptions_for_UseSortedClassesOptions {
5606
+ interface RuleWithFixOptions_for_UseVueDefineMacrosOrderOptions {
5630
5607
  /**
5631
5608
  * The kind of the code actions emitted by the rule
5632
5609
  */
@@ -5638,7 +5615,7 @@ interface RuleWithFixOptions_for_UseSortedClassesOptions {
5638
5615
  /**
5639
5616
  * Rule's options
5640
5617
  */
5641
- options: UseSortedClassesOptions;
5618
+ options: UseVueDefineMacrosOrderOptions;
5642
5619
  }
5643
5620
  interface RuleWithOptions_for_UseVueMultiWordComponentNamesOptions {
5644
5621
  /**
@@ -5822,6 +5799,16 @@ interface RuleWithOptions_for_NoGlobalEvalOptions {
5822
5799
  */
5823
5800
  options: NoGlobalEvalOptions;
5824
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
+ }
5825
5812
  interface RuleWithOptions_for_NoCommonJsOptions {
5826
5813
  /**
5827
5814
  * The severity of the emitted diagnostics by the rule
@@ -6282,6 +6269,20 @@ interface RuleWithFixOptions_for_UseConsistentObjectDefinitionsOptions {
6282
6269
  */
6283
6270
  options: UseConsistentObjectDefinitionsOptions;
6284
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
+ }
6285
6286
  interface RuleWithFixOptions_for_UseConstOptions {
6286
6287
  /**
6287
6288
  * The kind of the code actions emitted by the rule
@@ -6558,6 +6559,16 @@ interface RuleWithFixOptions_for_UseObjectSpreadOptions {
6558
6559
  */
6559
6560
  options: UseObjectSpreadOptions;
6560
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
+ }
6561
6572
  interface RuleWithFixOptions_for_UseReadonlyClassPropertiesOptions {
6562
6573
  /**
6563
6574
  * The kind of the code actions emitted by the rule
@@ -7338,6 +7349,16 @@ interface RuleWithFixOptions_for_NoMisrefactoredShorthandAssignOptions {
7338
7349
  */
7339
7350
  options: NoMisrefactoredShorthandAssignOptions;
7340
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
+ }
7341
7362
  interface RuleWithFixOptions_for_NoOctalEscapeOptions {
7342
7363
  /**
7343
7364
  * The kind of the code actions emitted by the rule
@@ -7939,6 +7960,7 @@ Default: **public**.
7939
7960
  defaultVisibility?: Visibility;
7940
7961
  }
7941
7962
  interface NoProcessGlobalOptions {}
7963
+ interface NoQwikUseVisibleTaskOptions {}
7942
7964
  interface NoReactPropAssignmentsOptions {}
7943
7965
  interface NoRenderReturnValueOptions {}
7944
7966
  interface NoRestrictedElementsOptions {
@@ -8017,6 +8039,7 @@ interface UseExhaustiveDependenciesOptions {
8017
8039
  }
8018
8040
  interface UseGraphqlNamedOperationsOptions {}
8019
8041
  interface UseHookAtTopLevelOptions {}
8042
+ type UseImageSizeOptions = null;
8020
8043
  interface UseImportExtensionsOptions {
8021
8044
  /**
8022
8045
  * If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.
@@ -8032,6 +8055,7 @@ interface UseJsxKeyInIterableOptions {
8032
8055
  checkShorthandFragments?: boolean;
8033
8056
  }
8034
8057
  interface UseParseIntRadixOptions {}
8058
+ interface UseQwikClasslistOptions {}
8035
8059
  interface UseSingleJsDocAsteriskOptions {}
8036
8060
  interface UseUniqueElementIdsOptions {
8037
8061
  /**
@@ -8073,15 +8097,7 @@ interface NoJsxLiteralsOptions {
8073
8097
  }
8074
8098
  interface NoMisusedPromisesOptions {}
8075
8099
  interface NoNextAsyncClientComponentOptions {}
8076
- interface NoNonNullAssertedOptionalChainOptions {}
8077
- interface NoQwikUseVisibleTaskOptions {}
8078
8100
  interface NoReactForwardRefOptions {}
8079
- interface NoSecretsOptions {
8080
- /**
8081
- * Set entropy threshold (default is 41).
8082
- */
8083
- entropyThreshold?: number;
8084
- }
8085
8101
  interface NoShadowOptions {}
8086
8102
  interface NoUnnecessaryConditionsOptions {}
8087
8103
  interface NoUnresolvedImportsOptions {}
@@ -8092,7 +8108,6 @@ interface NoVueDataObjectDeclarationOptions {}
8092
8108
  interface NoVueDuplicateKeysOptions {}
8093
8109
  interface NoVueReservedKeysOptions {}
8094
8110
  interface NoVueReservedPropsOptions {}
8095
- type UseAnchorHrefOptions = null;
8096
8111
  interface UseConsistentArrowReturnOptions {
8097
8112
  /**
8098
8113
  * Determines whether the rule enforces a consistent style when the return value is an object literal.
@@ -8105,25 +8120,19 @@ This option is only applicable when used in conjunction with the `asNeeded` opti
8105
8120
  */
8106
8121
  style?: UseConsistentArrowReturnStyle;
8107
8122
  }
8108
- interface UseConsistentTypeDefinitionsOptions {
8109
- style?: ConsistentTypeDefinition;
8110
- }
8111
8123
  interface UseDeprecatedDateOptions {
8112
8124
  argumentName?: string;
8113
8125
  }
8114
8126
  interface UseExhaustiveSwitchCasesOptions {}
8115
8127
  interface UseExplicitTypeOptions {}
8116
- type UseImageSizeOptions = null;
8117
8128
  interface UseMaxParamsOptions {
8118
8129
  /**
8119
8130
  * Maximum number of parameters allowed (default: 4)
8120
8131
  */
8121
8132
  max?: number;
8122
8133
  }
8123
- interface UseQwikClasslistOptions {}
8124
8134
  interface UseQwikMethodUsageOptions {}
8125
8135
  interface UseQwikValidLexicalScopeOptions {}
8126
- interface UseReactFunctionComponentsOptions {}
8127
8136
  interface UseSortedClassesOptions {
8128
8137
  /**
8129
8138
  * Additional attributes that will be sorted.
@@ -8134,6 +8143,12 @@ interface UseSortedClassesOptions {
8134
8143
  */
8135
8144
  functions?: string[];
8136
8145
  }
8146
+ interface UseVueDefineMacrosOrderOptions {
8147
+ /**
8148
+ * The order of the Vue define macros.
8149
+ */
8150
+ order?: string[];
8151
+ }
8137
8152
  interface UseVueMultiWordComponentNamesOptions {
8138
8153
  /**
8139
8154
  * Component names to ignore (allowed to be single-word).
@@ -8165,6 +8180,12 @@ interface NoBlankTargetOptions {
8165
8180
  interface NoDangerouslySetInnerHtmlOptions {}
8166
8181
  interface NoDangerouslySetInnerHtmlWithChildrenOptions {}
8167
8182
  interface NoGlobalEvalOptions {}
8183
+ interface NoSecretsOptions {
8184
+ /**
8185
+ * Set entropy threshold (default is 41).
8186
+ */
8187
+ entropyThreshold?: number;
8188
+ }
8168
8189
  interface NoCommonJsOptions {}
8169
8190
  interface NoDefaultExportOptions {}
8170
8191
  interface NoDescendingSpecificityOptions {}
@@ -8245,6 +8266,9 @@ interface UseConsistentObjectDefinitionsOptions {
8245
8266
  */
8246
8267
  syntax?: ObjectPropertySyntax;
8247
8268
  }
8269
+ interface UseConsistentTypeDefinitionsOptions {
8270
+ style?: ConsistentTypeDefinition;
8271
+ }
8248
8272
  interface UseConstOptions {}
8249
8273
  interface UseDefaultParameterLastOptions {}
8250
8274
  interface UseDefaultSwitchClauseOptions {}
@@ -8302,6 +8326,7 @@ interface UseNodejsImportProtocolOptions {}
8302
8326
  interface UseNumberNamespaceOptions {}
8303
8327
  interface UseNumericSeparatorsOptions {}
8304
8328
  interface UseObjectSpreadOptions {}
8329
+ interface UseReactFunctionComponentsOptions {}
8305
8330
  interface UseReadonlyClassPropertiesOptions {
8306
8331
  /**
8307
8332
  * When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
@@ -8399,6 +8424,7 @@ interface NoMisleadingCharacterClassOptions {}
8399
8424
  interface NoMisleadingInstantiatorOptions {}
8400
8425
  interface NoMisplacedAssertionOptions {}
8401
8426
  interface NoMisrefactoredShorthandAssignOptions {}
8427
+ interface NoNonNullAssertedOptionalChainOptions {}
8402
8428
  interface NoOctalEscapeOptions {}
8403
8429
  interface NoPrototypeBuiltinsOptions {}
8404
8430
  interface NoQuickfixBiomeOptions {
@@ -8420,7 +8446,12 @@ interface NoTemplateCurlyInStringOptions {}
8420
8446
  interface NoThenPropertyOptions {}
8421
8447
  interface NoTsIgnoreOptions {}
8422
8448
  interface NoUnassignedVariablesOptions {}
8423
- interface NoUnknownAtRulesOptions {}
8449
+ interface NoUnknownAtRulesOptions {
8450
+ /**
8451
+ * A list of unknown at-rule names to ignore (case-insensitive).
8452
+ */
8453
+ ignore: string[];
8454
+ }
8424
8455
  interface NoUnsafeDeclarationMergingOptions {}
8425
8456
  interface NoUnsafeNegationOptions {}
8426
8457
  interface NoUselessEscapeInStringOptions {}
@@ -8472,7 +8503,6 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
8472
8503
  stableResult?: StableHookResult;
8473
8504
  }
8474
8505
  type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
8475
- type ConsistentTypeDefinition = "interface" | "type";
8476
8506
  type PropertyAssignmentMode = "allow" | "deny";
8477
8507
  type Paths = string | PathOptions;
8478
8508
  type Patterns = PatternOptions;
@@ -8480,6 +8510,7 @@ type CustomRestrictedType = string | CustomRestrictedTypeOptions;
8480
8510
  type ConsistentArrayType = "shorthand" | "generic";
8481
8511
  type Accessibility = "noPublic" | "explicit" | "none";
8482
8512
  type ObjectPropertySyntax = "explicit" | "shorthand";
8513
+ type ConsistentTypeDefinition = "interface" | "type";
8483
8514
  type FilenameCases = FilenameCase[];
8484
8515
  type Regex = string;
8485
8516
  type Style2 = "auto" | "inlineType" | "separatedType";
@@ -8749,6 +8780,7 @@ type Category =
8749
8780
  | "lint/correctness/noPrecisionLoss"
8750
8781
  | "lint/correctness/noPrivateImports"
8751
8782
  | "lint/correctness/noProcessGlobal"
8783
+ | "lint/correctness/noQwikUseVisibleTask"
8752
8784
  | "lint/correctness/noReactPropAssignments"
8753
8785
  | "lint/correctness/noRenderReturnValue"
8754
8786
  | "lint/correctness/noRestrictedElements"
@@ -8782,11 +8814,13 @@ type Category =
8782
8814
  | "lint/correctness/useExhaustiveDependencies"
8783
8815
  | "lint/correctness/useGraphqlNamedOperations"
8784
8816
  | "lint/correctness/useHookAtTopLevel"
8817
+ | "lint/correctness/useImageSize"
8785
8818
  | "lint/correctness/useImportExtensions"
8786
8819
  | "lint/correctness/useIsNan"
8787
8820
  | "lint/correctness/useJsonImportAttributes"
8788
8821
  | "lint/correctness/useJsxKeyInIterable"
8789
8822
  | "lint/correctness/useParseIntRadix"
8823
+ | "lint/correctness/useQwikClasslist"
8790
8824
  | "lint/correctness/useSingleJsDocAsterisk"
8791
8825
  | "lint/correctness/useUniqueElementIds"
8792
8826
  | "lint/correctness/useValidForDirection"
@@ -8803,10 +8837,7 @@ type Category =
8803
8837
  | "lint/nursery/noMissingGenericFamilyKeyword"
8804
8838
  | "lint/nursery/noMisusedPromises"
8805
8839
  | "lint/nursery/noNextAsyncClientComponent"
8806
- | "lint/nursery/noNonNullAssertedOptionalChain"
8807
- | "lint/nursery/noQwikUseVisibleTask"
8808
8840
  | "lint/nursery/noReactForwardRef"
8809
- | "lint/nursery/noSecrets"
8810
8841
  | "lint/nursery/noShadow"
8811
8842
  | "lint/nursery/noUnnecessaryConditions"
8812
8843
  | "lint/nursery/noUnresolvedImports"
@@ -8823,20 +8854,17 @@ type Category =
8823
8854
  | "lint/nursery/useBiomeSuppressionComment"
8824
8855
  | "lint/nursery/useConsistentArrowReturn"
8825
8856
  | "lint/nursery/useConsistentObjectDefinition"
8826
- | "lint/nursery/useConsistentTypeDefinitions"
8827
8857
  | "lint/nursery/useDeprecatedDate"
8828
8858
  | "lint/nursery/useExhaustiveSwitchCases"
8829
8859
  | "lint/nursery/useExplicitFunctionReturnType"
8830
8860
  | "lint/nursery/useExplicitType"
8831
- | "lint/nursery/useImageSize"
8832
8861
  | "lint/nursery/useImportRestrictions"
8833
8862
  | "lint/nursery/useJsxCurlyBraceConvention"
8834
8863
  | "lint/nursery/useMaxParams"
8835
- | "lint/nursery/useQwikClasslist"
8836
8864
  | "lint/nursery/useQwikMethodUsage"
8837
8865
  | "lint/nursery/useQwikValidLexicalScope"
8838
- | "lint/nursery/useReactFunctionComponents"
8839
8866
  | "lint/nursery/useSortedClasses"
8867
+ | "lint/nursery/useVueDefineMacrosOrder"
8840
8868
  | "lint/nursery/useVueMultiWordComponentNames"
8841
8869
  | "lint/performance/noAccumulatingSpread"
8842
8870
  | "lint/performance/noAwaitInLoops"
@@ -8854,6 +8882,7 @@ type Category =
8854
8882
  | "lint/security/noDangerouslySetInnerHtml"
8855
8883
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
8856
8884
  | "lint/security/noGlobalEval"
8885
+ | "lint/security/noSecrets"
8857
8886
  | "lint/style/noCommonJs"
8858
8887
  | "lint/style/noDefaultExport"
8859
8888
  | "lint/style/noDescendingSpecificity"
@@ -8892,6 +8921,7 @@ type Category =
8892
8921
  | "lint/style/useConsistentCurlyBraces"
8893
8922
  | "lint/style/useConsistentMemberAccessibility"
8894
8923
  | "lint/style/useConsistentObjectDefinitions"
8924
+ | "lint/style/useConsistentTypeDefinitions"
8895
8925
  | "lint/style/useConst"
8896
8926
  | "lint/style/useDefaultParameterLast"
8897
8927
  | "lint/style/useDefaultSwitchClause"
@@ -8914,6 +8944,7 @@ type Category =
8914
8944
  | "lint/style/useNumberNamespace"
8915
8945
  | "lint/style/useNumericSeparators"
8916
8946
  | "lint/style/useObjectSpread"
8947
+ | "lint/style/useReactFunctionComponents"
8917
8948
  | "lint/style/useReadonlyClassProperties"
8918
8949
  | "lint/style/useSelfClosingElements"
8919
8950
  | "lint/style/useShorthandArrayType"
@@ -8984,6 +9015,7 @@ type Category =
8984
9015
  | "lint/suspicious/noMisleadingInstantiator"
8985
9016
  | "lint/suspicious/noMisplacedAssertion"
8986
9017
  | "lint/suspicious/noMisrefactoredShorthandAssign"
9018
+ | "lint/suspicious/noNonNullAssertedOptionalChain"
8987
9019
  | "lint/suspicious/noOctalEscape"
8988
9020
  | "lint/suspicious/noPrototypeBuiltins"
8989
9021
  | "lint/suspicious/noQuickfixBiome"
@@ -9034,6 +9066,7 @@ type Category =
9034
9066
  | "check"
9035
9067
  | "ci"
9036
9068
  | "stdin"
9069
+ | "init"
9037
9070
  | "configuration"
9038
9071
  | "assist"
9039
9072
  | "migrate"
@@ -9225,7 +9258,7 @@ type DocumentFileSource =
9225
9258
  | { Grit: GritFileSource };
9226
9259
  interface JsFileSource {
9227
9260
  /**
9228
- * 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.
9229
9262
  */
9230
9263
  embedding_kind: EmbeddingKind;
9231
9264
  language: Language;
@@ -9384,18 +9417,18 @@ interface PullDiagnosticsParams {
9384
9417
  /**
9385
9418
  * Rules to apply on top of the configuration
9386
9419
  */
9387
- enabledRules?: RuleCode[];
9388
- only?: RuleCode[];
9420
+ enabledRules?: AnalyzerSelector[];
9421
+ only?: AnalyzerSelector[];
9389
9422
  path: BiomePath;
9390
9423
  projectKey: ProjectKey;
9391
9424
  /**
9392
9425
  * When `false` the diagnostics, don't have code frames of the code actions (fixes, suppressions, etc.)
9393
9426
  */
9394
9427
  pullCodeActions: boolean;
9395
- skip?: RuleCode[];
9428
+ skip?: AnalyzerSelector[];
9396
9429
  }
9397
9430
  type RuleCategories = RuleCategory[];
9398
- type RuleCode = string;
9431
+ type AnalyzerSelector = string;
9399
9432
  type RuleCategory = "syntax" | "lint" | "action" | "transformation";
9400
9433
  interface PullDiagnosticsResult {
9401
9434
  diagnostics: Diagnostic[];
@@ -9404,12 +9437,12 @@ interface PullDiagnosticsResult {
9404
9437
  }
9405
9438
  interface PullActionsParams {
9406
9439
  categories?: RuleCategories;
9407
- enabledRules?: RuleCode[];
9408
- only?: RuleCode[];
9440
+ enabledRules?: AnalyzerSelector[];
9441
+ only?: AnalyzerSelector[];
9409
9442
  path: BiomePath;
9410
9443
  projectKey: ProjectKey;
9411
9444
  range?: TextRange;
9412
- skip?: RuleCode[];
9445
+ skip?: AnalyzerSelector[];
9413
9446
  suppressionReason?: string;
9414
9447
  }
9415
9448
  interface PullActionsResult {
@@ -9417,6 +9450,7 @@ interface PullActionsResult {
9417
9450
  }
9418
9451
  interface CodeAction {
9419
9452
  category: ActionCategory;
9453
+ offset?: TextSize;
9420
9454
  ruleName?: [string, string];
9421
9455
  suggestion: CodeSuggestion;
9422
9456
  }
@@ -9482,14 +9516,14 @@ interface FixFileParams {
9482
9516
  /**
9483
9517
  * Rules to apply to the file
9484
9518
  */
9485
- enabledRules?: RuleCode[];
9519
+ enabledRules?: AnalyzerSelector[];
9486
9520
  fixFileMode: FixFileMode;
9487
- only?: RuleCode[];
9521
+ only?: AnalyzerSelector[];
9488
9522
  path: BiomePath;
9489
9523
  projectKey: ProjectKey;
9490
9524
  ruleCategories: RuleCategories;
9491
9525
  shouldFormat: boolean;
9492
- skip?: RuleCode[];
9526
+ skip?: AnalyzerSelector[];
9493
9527
  suppressionReason?: string;
9494
9528
  }
9495
9529
  type FixFileMode = "safeFixes" | "safeAndUnsafeFixes" | "applySuppressions";
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Biome Developers and Contributors"
5
5
  ],
6
6
  "description": "WebAssembly bindings to the Biome workspace API",
7
- "version": "2.2.7",
7
+ "version": "2.3.1",
8
8
  "license": "MIT OR Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",