@biomejs/wasm-web 2.1.2 → 2.1.4

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
@@ -770,7 +770,15 @@ type QuoteProperties = "asNeeded" | "preserve";
770
770
  type Semicolons = "always" | "asNeeded";
771
771
  type TrailingCommas = "all" | "es5" | "none";
772
772
  type TrailingCommas2 = "none" | "all";
773
- type RuleDomain = "react" | "test" | "solid" | "next" | "vue" | "project";
773
+ type RuleDomain =
774
+ | "react"
775
+ | "test"
776
+ | "solid"
777
+ | "next"
778
+ | "qwik"
779
+ | "vue"
780
+ | "project"
781
+ | "tailwind";
774
782
  type RuleDomainValue = "all" | "none" | "recommended";
775
783
  type SeverityOrGroup_for_A11y = GroupPlainConfiguration | A11y;
776
784
  type SeverityOrGroup_for_Complexity = GroupPlainConfiguration | Complexity;
@@ -1454,6 +1462,10 @@ interface Nursery {
1454
1462
  * Disallows defining React components inside other components.
1455
1463
  */
1456
1464
  noNestedComponentDefinitions?: RuleConfiguration_for_NoNestedComponentDefinitionsOptions;
1465
+ /**
1466
+ * Disallow non-null assertions after optional chaining expressions.
1467
+ */
1468
+ noNonNullAssertedOptionalChain?: RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions;
1457
1469
  /**
1458
1470
  * Disallow use event handlers on non-interactive elements.
1459
1471
  */
@@ -1462,6 +1474,14 @@ interface Nursery {
1462
1474
  * Disallow the use of process global.
1463
1475
  */
1464
1476
  noProcessGlobal?: RuleFixConfiguration_for_NoProcessGlobalOptions;
1477
+ /**
1478
+ * Disallow the use if quickfix.biome inside editor settings file.
1479
+ */
1480
+ noQuickfixBiome?: RuleFixConfiguration_for_NoQuickfixBiomeOptions;
1481
+ /**
1482
+ * Disallow useVisibleTask$() functions in Qwik components.
1483
+ */
1484
+ noQwikUseVisibleTask?: RuleConfiguration_for_NoQwikUseVisibleTaskOptions;
1465
1485
  /**
1466
1486
  * Disallow assigning to React component props.
1467
1487
  */
@@ -1490,6 +1510,10 @@ interface Nursery {
1490
1510
  * Disallow unknown at-rules.
1491
1511
  */
1492
1512
  noUnknownAtRule?: RuleConfiguration_for_NoUnknownAtRuleOptions;
1513
+ /**
1514
+ * Disallow unnecessary type-based conditions that can be statically determined as redundant.
1515
+ */
1516
+ noUnnecessaryConditions?: RuleConfiguration_for_NoUnnecessaryConditionsOptions;
1493
1517
  /**
1494
1518
  * Warn when importing non-existing exports.
1495
1519
  */
@@ -1510,6 +1534,14 @@ interface Nursery {
1510
1534
  * Disallow the use of useless undefined.
1511
1535
  */
1512
1536
  noUselessUndefined?: RuleFixConfiguration_for_NoUselessUndefinedOptions;
1537
+ /**
1538
+ * Enforce that Vue component data options are declared as functions.
1539
+ */
1540
+ noVueDataObjectDeclaration?: RuleFixConfiguration_for_NoVueDataObjectDeclarationOptions;
1541
+ /**
1542
+ * Disallow reserved keys in Vue component data and computed properties.
1543
+ */
1544
+ noVueReservedKeys?: RuleConfiguration_for_NoVueReservedKeysOptions;
1513
1545
  /**
1514
1546
  * Disallow reserved names to be used as props.
1515
1547
  */
@@ -1522,6 +1554,10 @@ interface Nursery {
1522
1554
  * Enforce that getters and setters for the same property are adjacent in class and object definitions.
1523
1555
  */
1524
1556
  useAdjacentGetterSetter?: RuleConfiguration_for_UseAdjacentGetterSetterOptions;
1557
+ /**
1558
+ * Enforces href attribute for \<a> elements.
1559
+ */
1560
+ useAnchorHref?: RuleConfiguration_for_UseAnchorHrefOptions;
1525
1561
  /**
1526
1562
  * Require the consistent declaration of object literals. Defaults to explicit definitions.
1527
1563
  */
@@ -1530,6 +1566,10 @@ interface Nursery {
1530
1566
  * Use static Response methods instead of new Response() constructor when possible.
1531
1567
  */
1532
1568
  useConsistentResponse?: RuleFixConfiguration_for_UseConsistentResponseOptions;
1569
+ /**
1570
+ * Enforce type definitions to consistently use either interface or type.
1571
+ */
1572
+ useConsistentTypeDefinitions?: RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions;
1533
1573
  /**
1534
1574
  * Require switch-case statements to be exhaustive.
1535
1575
  */
@@ -1550,6 +1590,10 @@ interface Nursery {
1550
1590
  * Ensure the preconnect attribute is used when using Google Fonts.
1551
1591
  */
1552
1592
  useGoogleFontPreconnect?: RuleFixConfiguration_for_UseGoogleFontPreconnectOptions;
1593
+ /**
1594
+ * Enforces that \<img> elements have both width and height attributes.
1595
+ */
1596
+ useImageSize?: RuleConfiguration_for_UseImageSizeOptions;
1553
1597
  /**
1554
1598
  * Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.
1555
1599
  */
@@ -1582,6 +1626,14 @@ interface Nursery {
1582
1626
  * Enforce the consistent use of the radix argument when using parseInt().
1583
1627
  */
1584
1628
  useParseIntRadix?: RuleFixConfiguration_for_UseParseIntRadixOptions;
1629
+ /**
1630
+ * Prefer using the class prop as a classlist over the classnames helper.
1631
+ */
1632
+ useQwikClasslist?: RuleConfiguration_for_UseQwikClasslistOptions;
1633
+ /**
1634
+ * Enforce that components are defined as functions and never as classes.
1635
+ */
1636
+ useReactFunctionComponents?: RuleConfiguration_for_UseReactFunctionComponentsOptions;
1585
1637
  /**
1586
1638
  * Enforce marking members as readonly if they are never modified outside the constructor.
1587
1639
  */
@@ -2718,12 +2770,21 @@ type RuleFixConfiguration_for_NoMisusedPromisesOptions =
2718
2770
  type RuleConfiguration_for_NoNestedComponentDefinitionsOptions =
2719
2771
  | RulePlainConfiguration
2720
2772
  | RuleWithOptions_for_NoNestedComponentDefinitionsOptions;
2773
+ type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
2774
+ | RulePlainConfiguration
2775
+ | RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions;
2721
2776
  type RuleConfiguration_for_NoNoninteractiveElementInteractionsOptions =
2722
2777
  | RulePlainConfiguration
2723
2778
  | RuleWithOptions_for_NoNoninteractiveElementInteractionsOptions;
2724
2779
  type RuleFixConfiguration_for_NoProcessGlobalOptions =
2725
2780
  | RulePlainConfiguration
2726
2781
  | RuleWithFixOptions_for_NoProcessGlobalOptions;
2782
+ type RuleFixConfiguration_for_NoQuickfixBiomeOptions =
2783
+ | RulePlainConfiguration
2784
+ | RuleWithFixOptions_for_NoQuickfixBiomeOptions;
2785
+ type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
2786
+ | RulePlainConfiguration
2787
+ | RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
2727
2788
  type RuleConfiguration_for_NoReactPropAssignOptions =
2728
2789
  | RulePlainConfiguration
2729
2790
  | RuleWithOptions_for_NoReactPropAssignOptions;
@@ -2745,6 +2806,9 @@ type RuleConfiguration_for_NoUnassignedVariablesOptions =
2745
2806
  type RuleConfiguration_for_NoUnknownAtRuleOptions =
2746
2807
  | RulePlainConfiguration
2747
2808
  | RuleWithOptions_for_NoUnknownAtRuleOptions;
2809
+ type RuleConfiguration_for_NoUnnecessaryConditionsOptions =
2810
+ | RulePlainConfiguration
2811
+ | RuleWithOptions_for_NoUnnecessaryConditionsOptions;
2748
2812
  type RuleConfiguration_for_NoUnresolvedImportsOptions =
2749
2813
  | RulePlainConfiguration
2750
2814
  | RuleWithOptions_for_NoUnresolvedImportsOptions;
@@ -2760,18 +2824,30 @@ type RuleFixConfiguration_for_NoUselessEscapeInStringOptions =
2760
2824
  type RuleFixConfiguration_for_NoUselessUndefinedOptions =
2761
2825
  | RulePlainConfiguration
2762
2826
  | RuleWithFixOptions_for_NoUselessUndefinedOptions;
2827
+ type RuleFixConfiguration_for_NoVueDataObjectDeclarationOptions =
2828
+ | RulePlainConfiguration
2829
+ | RuleWithFixOptions_for_NoVueDataObjectDeclarationOptions;
2830
+ type RuleConfiguration_for_NoVueReservedKeysOptions =
2831
+ | RulePlainConfiguration
2832
+ | RuleWithOptions_for_NoVueReservedKeysOptions;
2763
2833
  type RuleConfiguration_for_NoVueReservedPropsOptions =
2764
2834
  | RulePlainConfiguration
2765
2835
  | RuleWithOptions_for_NoVueReservedPropsOptions;
2766
2836
  type RuleConfiguration_for_UseAdjacentGetterSetterOptions =
2767
2837
  | RulePlainConfiguration
2768
2838
  | RuleWithOptions_for_UseAdjacentGetterSetterOptions;
2839
+ type RuleConfiguration_for_UseAnchorHrefOptions =
2840
+ | RulePlainConfiguration
2841
+ | RuleWithOptions_for_UseAnchorHrefOptions;
2769
2842
  type RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions =
2770
2843
  | RulePlainConfiguration
2771
2844
  | RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions;
2772
2845
  type RuleFixConfiguration_for_UseConsistentResponseOptions =
2773
2846
  | RulePlainConfiguration
2774
2847
  | RuleWithFixOptions_for_UseConsistentResponseOptions;
2848
+ type RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions =
2849
+ | RulePlainConfiguration
2850
+ | RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions;
2775
2851
  type RuleFixConfiguration_for_UseExhaustiveSwitchCasesOptions =
2776
2852
  | RulePlainConfiguration
2777
2853
  | RuleWithFixOptions_for_UseExhaustiveSwitchCasesOptions;
@@ -2787,6 +2863,9 @@ type RuleConfiguration_for_UseForComponentOptions =
2787
2863
  type RuleFixConfiguration_for_UseGoogleFontPreconnectOptions =
2788
2864
  | RulePlainConfiguration
2789
2865
  | RuleWithFixOptions_for_UseGoogleFontPreconnectOptions;
2866
+ type RuleConfiguration_for_UseImageSizeOptions =
2867
+ | RulePlainConfiguration
2868
+ | RuleWithOptions_for_UseImageSizeOptions;
2790
2869
  type RuleFixConfiguration_for_UseIndexOfOptions =
2791
2870
  | RulePlainConfiguration
2792
2871
  | RuleWithFixOptions_for_UseIndexOfOptions;
@@ -2811,6 +2890,12 @@ type RuleFixConfiguration_for_UseObjectSpreadOptions =
2811
2890
  type RuleFixConfiguration_for_UseParseIntRadixOptions =
2812
2891
  | RulePlainConfiguration
2813
2892
  | RuleWithFixOptions_for_UseParseIntRadixOptions;
2893
+ type RuleConfiguration_for_UseQwikClasslistOptions =
2894
+ | RulePlainConfiguration
2895
+ | RuleWithOptions_for_UseQwikClasslistOptions;
2896
+ type RuleConfiguration_for_UseReactFunctionComponentsOptions =
2897
+ | RulePlainConfiguration
2898
+ | RuleWithOptions_for_UseReactFunctionComponentsOptions;
2814
2899
  type RuleFixConfiguration_for_UseReadonlyClassPropertiesOptions =
2815
2900
  | RulePlainConfiguration
2816
2901
  | RuleWithFixOptions_for_UseReadonlyClassPropertiesOptions;
@@ -4985,6 +5070,16 @@ interface RuleWithOptions_for_NoNestedComponentDefinitionsOptions {
4985
5070
  */
4986
5071
  options: NoNestedComponentDefinitionsOptions;
4987
5072
  }
5073
+ interface RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions {
5074
+ /**
5075
+ * The severity of the emitted diagnostics by the rule
5076
+ */
5077
+ level: RulePlainConfiguration;
5078
+ /**
5079
+ * Rule's options
5080
+ */
5081
+ options: NoNonNullAssertedOptionalChainOptions;
5082
+ }
4988
5083
  interface RuleWithOptions_for_NoNoninteractiveElementInteractionsOptions {
4989
5084
  /**
4990
5085
  * The severity of the emitted diagnostics by the rule
@@ -5009,6 +5104,30 @@ interface RuleWithFixOptions_for_NoProcessGlobalOptions {
5009
5104
  */
5010
5105
  options: NoProcessGlobalOptions;
5011
5106
  }
5107
+ interface RuleWithFixOptions_for_NoQuickfixBiomeOptions {
5108
+ /**
5109
+ * The kind of the code actions emitted by the rule
5110
+ */
5111
+ fix?: FixKind;
5112
+ /**
5113
+ * The severity of the emitted diagnostics by the rule
5114
+ */
5115
+ level: RulePlainConfiguration;
5116
+ /**
5117
+ * Rule's options
5118
+ */
5119
+ options: NoQuickfixBiomeOptions;
5120
+ }
5121
+ interface RuleWithOptions_for_NoQwikUseVisibleTaskOptions {
5122
+ /**
5123
+ * The severity of the emitted diagnostics by the rule
5124
+ */
5125
+ level: RulePlainConfiguration;
5126
+ /**
5127
+ * Rule's options
5128
+ */
5129
+ options: NoQwikUseVisibleTaskOptions;
5130
+ }
5012
5131
  interface RuleWithOptions_for_NoReactPropAssignOptions {
5013
5132
  /**
5014
5133
  * The severity of the emitted diagnostics by the rule
@@ -5083,6 +5202,16 @@ interface RuleWithOptions_for_NoUnknownAtRuleOptions {
5083
5202
  */
5084
5203
  options: NoUnknownAtRuleOptions;
5085
5204
  }
5205
+ interface RuleWithOptions_for_NoUnnecessaryConditionsOptions {
5206
+ /**
5207
+ * The severity of the emitted diagnostics by the rule
5208
+ */
5209
+ level: RulePlainConfiguration;
5210
+ /**
5211
+ * Rule's options
5212
+ */
5213
+ options: NoUnnecessaryConditionsOptions;
5214
+ }
5086
5215
  interface RuleWithOptions_for_NoUnresolvedImportsOptions {
5087
5216
  /**
5088
5217
  * The severity of the emitted diagnostics by the rule
@@ -5141,6 +5270,30 @@ interface RuleWithFixOptions_for_NoUselessUndefinedOptions {
5141
5270
  */
5142
5271
  options: NoUselessUndefinedOptions;
5143
5272
  }
5273
+ interface RuleWithFixOptions_for_NoVueDataObjectDeclarationOptions {
5274
+ /**
5275
+ * The kind of the code actions emitted by the rule
5276
+ */
5277
+ fix?: FixKind;
5278
+ /**
5279
+ * The severity of the emitted diagnostics by the rule
5280
+ */
5281
+ level: RulePlainConfiguration;
5282
+ /**
5283
+ * Rule's options
5284
+ */
5285
+ options: NoVueDataObjectDeclarationOptions;
5286
+ }
5287
+ interface RuleWithOptions_for_NoVueReservedKeysOptions {
5288
+ /**
5289
+ * The severity of the emitted diagnostics by the rule
5290
+ */
5291
+ level: RulePlainConfiguration;
5292
+ /**
5293
+ * Rule's options
5294
+ */
5295
+ options: NoVueReservedKeysOptions;
5296
+ }
5144
5297
  interface RuleWithOptions_for_NoVueReservedPropsOptions {
5145
5298
  /**
5146
5299
  * The severity of the emitted diagnostics by the rule
@@ -5161,6 +5314,16 @@ interface RuleWithOptions_for_UseAdjacentGetterSetterOptions {
5161
5314
  */
5162
5315
  options: UseAdjacentGetterSetterOptions;
5163
5316
  }
5317
+ interface RuleWithOptions_for_UseAnchorHrefOptions {
5318
+ /**
5319
+ * The severity of the emitted diagnostics by the rule
5320
+ */
5321
+ level: RulePlainConfiguration;
5322
+ /**
5323
+ * Rule's options
5324
+ */
5325
+ options: UseAnchorHrefOptions;
5326
+ }
5164
5327
  interface RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions {
5165
5328
  /**
5166
5329
  * The kind of the code actions emitted by the rule
@@ -5189,6 +5352,20 @@ interface RuleWithFixOptions_for_UseConsistentResponseOptions {
5189
5352
  */
5190
5353
  options: UseConsistentResponseOptions;
5191
5354
  }
5355
+ interface RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions {
5356
+ /**
5357
+ * The kind of the code actions emitted by the rule
5358
+ */
5359
+ fix?: FixKind;
5360
+ /**
5361
+ * The severity of the emitted diagnostics by the rule
5362
+ */
5363
+ level: RulePlainConfiguration;
5364
+ /**
5365
+ * Rule's options
5366
+ */
5367
+ options: UseConsistentTypeDefinitionsOptions;
5368
+ }
5192
5369
  interface RuleWithFixOptions_for_UseExhaustiveSwitchCasesOptions {
5193
5370
  /**
5194
5371
  * The kind of the code actions emitted by the rule
@@ -5247,6 +5424,16 @@ interface RuleWithFixOptions_for_UseGoogleFontPreconnectOptions {
5247
5424
  */
5248
5425
  options: UseGoogleFontPreconnectOptions;
5249
5426
  }
5427
+ interface RuleWithOptions_for_UseImageSizeOptions {
5428
+ /**
5429
+ * The severity of the emitted diagnostics by the rule
5430
+ */
5431
+ level: RulePlainConfiguration;
5432
+ /**
5433
+ * Rule's options
5434
+ */
5435
+ options: UseImageSizeOptions;
5436
+ }
5250
5437
  interface RuleWithFixOptions_for_UseIndexOfOptions {
5251
5438
  /**
5252
5439
  * The kind of the code actions emitted by the rule
@@ -5351,6 +5538,26 @@ interface RuleWithFixOptions_for_UseParseIntRadixOptions {
5351
5538
  */
5352
5539
  options: UseParseIntRadixOptions;
5353
5540
  }
5541
+ interface RuleWithOptions_for_UseQwikClasslistOptions {
5542
+ /**
5543
+ * The severity of the emitted diagnostics by the rule
5544
+ */
5545
+ level: RulePlainConfiguration;
5546
+ /**
5547
+ * Rule's options
5548
+ */
5549
+ options: UseQwikClasslistOptions;
5550
+ }
5551
+ interface RuleWithOptions_for_UseReactFunctionComponentsOptions {
5552
+ /**
5553
+ * The severity of the emitted diagnostics by the rule
5554
+ */
5555
+ level: RulePlainConfiguration;
5556
+ /**
5557
+ * Rule's options
5558
+ */
5559
+ options: UseReactFunctionComponentsOptions;
5560
+ }
5354
5561
  interface RuleWithFixOptions_for_UseReadonlyClassPropertiesOptions {
5355
5562
  /**
5356
5563
  * The kind of the code actions emitted by the rule
@@ -7497,13 +7704,26 @@ interface NoExcessiveLinesPerFunctionOptions {
7497
7704
  interface NoFloatingPromisesOptions {}
7498
7705
  interface NoGlobalDirnameFilenameOptions {}
7499
7706
  interface NoImplicitCoercionOptions {}
7500
- interface NoImportCyclesOptions {}
7707
+ interface NoImportCyclesOptions {
7708
+ /**
7709
+ * Ignores type-only imports when finding an import cycle. A type-only import (`import type`) will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type imports (`import { type Foo }`) aren't considered as type-only because it's not removed by the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
7710
+ */
7711
+ ignoreTypes?: boolean;
7712
+ }
7501
7713
  interface NoImportantStylesOptions {}
7502
7714
  interface NoMagicNumbersOptions {}
7503
7715
  interface NoMisusedPromisesOptions {}
7504
7716
  interface NoNestedComponentDefinitionsOptions {}
7717
+ interface NoNonNullAssertedOptionalChainOptions {}
7505
7718
  interface NoNoninteractiveElementInteractionsOptions {}
7506
7719
  interface NoProcessGlobalOptions {}
7720
+ interface NoQuickfixBiomeOptions {
7721
+ /**
7722
+ * A list of additional JSON files that should be checked.
7723
+ */
7724
+ additionalPaths?: string[];
7725
+ }
7726
+ interface NoQwikUseVisibleTaskOptions {}
7507
7727
  interface NoReactPropAssignOptions {}
7508
7728
  interface NoRestrictedElementsOptions {
7509
7729
  /**
@@ -7521,13 +7741,17 @@ interface NoShadowOptions {}
7521
7741
  interface NoTsIgnoreOptions {}
7522
7742
  interface NoUnassignedVariablesOptions {}
7523
7743
  interface NoUnknownAtRuleOptions {}
7744
+ interface NoUnnecessaryConditionsOptions {}
7524
7745
  interface NoUnresolvedImportsOptions {}
7525
7746
  interface NoUnwantedPolyfillioOptions {}
7526
7747
  interface NoUselessBackrefInRegexOptions {}
7527
7748
  interface NoUselessEscapeInStringOptions {}
7528
7749
  interface NoUselessUndefinedOptions {}
7750
+ interface NoVueDataObjectDeclarationOptions {}
7751
+ interface NoVueReservedKeysOptions {}
7529
7752
  interface NoVueReservedPropsOptions {}
7530
7753
  interface UseAdjacentGetterSetterOptions {}
7754
+ type UseAnchorHrefOptions = null;
7531
7755
  interface UseConsistentObjectDefinitionOptions {
7532
7756
  /**
7533
7757
  * The preferred syntax to enforce.
@@ -7535,11 +7759,15 @@ interface UseConsistentObjectDefinitionOptions {
7535
7759
  syntax?: ObjectPropertySyntax;
7536
7760
  }
7537
7761
  interface UseConsistentResponseOptions {}
7762
+ interface UseConsistentTypeDefinitionsOptions {
7763
+ style?: ConsistentTypeDefinition;
7764
+ }
7538
7765
  interface UseExhaustiveSwitchCasesOptions {}
7539
7766
  interface UseExplicitTypeOptions {}
7540
7767
  interface UseExportsLastOptions {}
7541
7768
  interface UseForComponentOptions {}
7542
7769
  interface UseGoogleFontPreconnectOptions {}
7770
+ type UseImageSizeOptions = null;
7543
7771
  interface UseIndexOfOptions {}
7544
7772
  interface UseIterableCallbackReturnOptions {}
7545
7773
  interface UseJsonImportAttributeOptions {}
@@ -7561,6 +7789,8 @@ interface UseNamingConventionOptions {
7561
7789
  interface UseNumericSeparatorsOptions {}
7562
7790
  interface UseObjectSpreadOptions {}
7563
7791
  interface UseParseIntRadixOptions {}
7792
+ interface UseQwikClasslistOptions {}
7793
+ interface UseReactFunctionComponentsOptions {}
7564
7794
  interface UseReadonlyClassPropertiesOptions {
7565
7795
  /**
7566
7796
  * When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
@@ -7854,6 +8084,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
7854
8084
  }
7855
8085
  type CustomRestrictedElements = Record<string, string>;
7856
8086
  type ObjectPropertySyntax = "explicit" | "shorthand";
8087
+ type ConsistentTypeDefinition = "interface" | "type";
7857
8088
  interface Convention {
7858
8089
  /**
7859
8090
  * String cases to enforce
@@ -8160,8 +8391,11 @@ type Category =
8160
8391
  | "lint/nursery/noMissingGenericFamilyKeyword"
8161
8392
  | "lint/nursery/noMisusedPromises"
8162
8393
  | "lint/nursery/noNestedComponentDefinitions"
8394
+ | "lint/nursery/noNonNullAssertedOptionalChain"
8163
8395
  | "lint/nursery/noNoninteractiveElementInteractions"
8164
8396
  | "lint/nursery/noProcessGlobal"
8397
+ | "lint/nursery/noQuickfixBiome"
8398
+ | "lint/nursery/noQwikUseVisibleTask"
8165
8399
  | "lint/nursery/noReactPropAssign"
8166
8400
  | "lint/nursery/noReactSpecificProps"
8167
8401
  | "lint/nursery/noRestrictedElements"
@@ -8178,23 +8412,29 @@ type Category =
8178
8412
  | "lint/nursery/noUnknownSelectorPseudoElement"
8179
8413
  | "lint/nursery/noUnknownUnit"
8180
8414
  | "lint/nursery/noUnmatchableAnbSelector"
8415
+ | "lint/nursery/noUnnecessaryConditions"
8181
8416
  | "lint/nursery/noUnresolvedImports"
8182
8417
  | "lint/nursery/noUnusedFunctionParameters"
8183
8418
  | "lint/nursery/noUnwantedPolyfillio"
8184
8419
  | "lint/nursery/noUselessBackrefInRegex"
8185
8420
  | "lint/nursery/noUselessEscapeInString"
8186
8421
  | "lint/nursery/noUselessUndefined"
8422
+ | "lint/nursery/noVueReservedKeys"
8187
8423
  | "lint/nursery/noVueReservedProps"
8424
+ | "lint/nursery/noVueDataObjectDeclaration"
8188
8425
  | "lint/nursery/useAdjacentGetterSetter"
8426
+ | "lint/nursery/useAnchorHref"
8189
8427
  | "lint/nursery/useBiomeSuppressionComment"
8190
8428
  | "lint/nursery/useConsistentObjectDefinition"
8191
8429
  | "lint/nursery/useConsistentResponse"
8430
+ | "lint/nursery/useConsistentTypeDefinitions"
8192
8431
  | "lint/nursery/useExhaustiveSwitchCases"
8193
8432
  | "lint/nursery/useExplicitFunctionReturnType"
8194
8433
  | "lint/nursery/useExplicitType"
8195
8434
  | "lint/nursery/useExportsLast"
8196
8435
  | "lint/nursery/useForComponent"
8197
8436
  | "lint/nursery/useGoogleFontPreconnect"
8437
+ | "lint/nursery/useImageSize"
8198
8438
  | "lint/nursery/useImportRestrictions"
8199
8439
  | "lint/nursery/useIndexOf"
8200
8440
  | "lint/nursery/useIterableCallbackReturn"
@@ -8205,6 +8445,8 @@ type Category =
8205
8445
  | "lint/nursery/useNumericSeparators"
8206
8446
  | "lint/nursery/useObjectSpread"
8207
8447
  | "lint/nursery/useParseIntRadix"
8448
+ | "lint/nursery/useQwikClasslist"
8449
+ | "lint/nursery/useReactFunctionComponents"
8208
8450
  | "lint/nursery/useReadonlyClassProperties"
8209
8451
  | "lint/nursery/useSingleJsDocAsterisk"
8210
8452
  | "lint/nursery/useSortedClasses"
@@ -8479,10 +8721,6 @@ interface BacktraceSymbol {
8479
8721
  name?: string;
8480
8722
  }
8481
8723
  interface OpenProjectParams {
8482
- /**
8483
- * Whether the client wants to run only certain rules. This is needed to compute the kind of [ScanKind].
8484
- */
8485
- onlyRules?: RuleCode[];
8486
8724
  /**
8487
8725
  * Whether the folder should be opened as a project, even if no `biome.json` can be found.
8488
8726
  */
@@ -8491,42 +8729,13 @@ interface OpenProjectParams {
8491
8729
  * The path to open
8492
8730
  */
8493
8731
  path: BiomePath;
8494
- /**
8495
- * Whether the client wants to skip some lint rule. This is needed to compute the kind of [ScanKind].
8496
- */
8497
- skipRules?: RuleCode[];
8498
8732
  }
8499
- type RuleCode = string;
8500
8733
  interface OpenProjectResult {
8501
8734
  /**
8502
8735
  * A unique identifier for this project
8503
8736
  */
8504
8737
  projectKey: ProjectKey;
8505
- /**
8506
- * How to scan this project
8507
- */
8508
- scanKind: ScanKind;
8509
- }
8510
- type ScanKind =
8511
- | "noScanner"
8512
- | "knownFiles"
8513
- | {
8514
- targetedKnownFiles: {
8515
- /**
8516
- * Determines whether the file scanner should descend into subdirectories of the target paths.
8517
- */
8518
- descendFromTargets: boolean;
8519
- /**
8520
- * The paths to target by the scanner.
8521
-
8522
- If a target path indicates a folder, all files within are scanned as well.
8523
-
8524
- Target paths must be absolute.
8525
- */
8526
- targetPaths: BiomePath[];
8527
- };
8528
- }
8529
- | "project";
8738
+ }
8530
8739
  interface OpenFileParams {
8531
8740
  content: FileContent;
8532
8741
  documentFileSource?: DocumentFileSource;
@@ -8658,6 +8867,7 @@ interface PullDiagnosticsParams {
8658
8867
  skip?: RuleCode[];
8659
8868
  }
8660
8869
  type RuleCategories = RuleCategory[];
8870
+ type RuleCode = string;
8661
8871
  type RuleCategory = "syntax" | "lint" | "action" | "transformation";
8662
8872
  interface PullDiagnosticsResult {
8663
8873
  diagnostics: Diagnostic[];
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.1.2",
8
+ "version": "2.1.4",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",