@biomejs/wasm-nodejs 2.1.3 → 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 +181 -37
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
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 =
|
|
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
|
*/
|
|
@@ -1466,6 +1478,10 @@ interface Nursery {
|
|
|
1466
1478
|
* Disallow the use if quickfix.biome inside editor settings file.
|
|
1467
1479
|
*/
|
|
1468
1480
|
noQuickfixBiome?: RuleFixConfiguration_for_NoQuickfixBiomeOptions;
|
|
1481
|
+
/**
|
|
1482
|
+
* Disallow useVisibleTask$() functions in Qwik components.
|
|
1483
|
+
*/
|
|
1484
|
+
noQwikUseVisibleTask?: RuleConfiguration_for_NoQwikUseVisibleTaskOptions;
|
|
1469
1485
|
/**
|
|
1470
1486
|
* Disallow assigning to React component props.
|
|
1471
1487
|
*/
|
|
@@ -1494,6 +1510,10 @@ interface Nursery {
|
|
|
1494
1510
|
* Disallow unknown at-rules.
|
|
1495
1511
|
*/
|
|
1496
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;
|
|
1497
1517
|
/**
|
|
1498
1518
|
* Warn when importing non-existing exports.
|
|
1499
1519
|
*/
|
|
@@ -1514,6 +1534,10 @@ interface Nursery {
|
|
|
1514
1534
|
* Disallow the use of useless undefined.
|
|
1515
1535
|
*/
|
|
1516
1536
|
noUselessUndefined?: RuleFixConfiguration_for_NoUselessUndefinedOptions;
|
|
1537
|
+
/**
|
|
1538
|
+
* Enforce that Vue component data options are declared as functions.
|
|
1539
|
+
*/
|
|
1540
|
+
noVueDataObjectDeclaration?: RuleFixConfiguration_for_NoVueDataObjectDeclarationOptions;
|
|
1517
1541
|
/**
|
|
1518
1542
|
* Disallow reserved keys in Vue component data and computed properties.
|
|
1519
1543
|
*/
|
|
@@ -1530,6 +1554,10 @@ interface Nursery {
|
|
|
1530
1554
|
* Enforce that getters and setters for the same property are adjacent in class and object definitions.
|
|
1531
1555
|
*/
|
|
1532
1556
|
useAdjacentGetterSetter?: RuleConfiguration_for_UseAdjacentGetterSetterOptions;
|
|
1557
|
+
/**
|
|
1558
|
+
* Enforces href attribute for \<a> elements.
|
|
1559
|
+
*/
|
|
1560
|
+
useAnchorHref?: RuleConfiguration_for_UseAnchorHrefOptions;
|
|
1533
1561
|
/**
|
|
1534
1562
|
* Require the consistent declaration of object literals. Defaults to explicit definitions.
|
|
1535
1563
|
*/
|
|
@@ -1538,6 +1566,10 @@ interface Nursery {
|
|
|
1538
1566
|
* Use static Response methods instead of new Response() constructor when possible.
|
|
1539
1567
|
*/
|
|
1540
1568
|
useConsistentResponse?: RuleFixConfiguration_for_UseConsistentResponseOptions;
|
|
1569
|
+
/**
|
|
1570
|
+
* Enforce type definitions to consistently use either interface or type.
|
|
1571
|
+
*/
|
|
1572
|
+
useConsistentTypeDefinitions?: RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions;
|
|
1541
1573
|
/**
|
|
1542
1574
|
* Require switch-case statements to be exhaustive.
|
|
1543
1575
|
*/
|
|
@@ -1558,6 +1590,10 @@ interface Nursery {
|
|
|
1558
1590
|
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
1559
1591
|
*/
|
|
1560
1592
|
useGoogleFontPreconnect?: RuleFixConfiguration_for_UseGoogleFontPreconnectOptions;
|
|
1593
|
+
/**
|
|
1594
|
+
* Enforces that \<img> elements have both width and height attributes.
|
|
1595
|
+
*/
|
|
1596
|
+
useImageSize?: RuleConfiguration_for_UseImageSizeOptions;
|
|
1561
1597
|
/**
|
|
1562
1598
|
* Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.
|
|
1563
1599
|
*/
|
|
@@ -1590,6 +1626,10 @@ interface Nursery {
|
|
|
1590
1626
|
* Enforce the consistent use of the radix argument when using parseInt().
|
|
1591
1627
|
*/
|
|
1592
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;
|
|
1593
1633
|
/**
|
|
1594
1634
|
* Enforce that components are defined as functions and never as classes.
|
|
1595
1635
|
*/
|
|
@@ -2730,6 +2770,9 @@ type RuleFixConfiguration_for_NoMisusedPromisesOptions =
|
|
|
2730
2770
|
type RuleConfiguration_for_NoNestedComponentDefinitionsOptions =
|
|
2731
2771
|
| RulePlainConfiguration
|
|
2732
2772
|
| RuleWithOptions_for_NoNestedComponentDefinitionsOptions;
|
|
2773
|
+
type RuleConfiguration_for_NoNonNullAssertedOptionalChainOptions =
|
|
2774
|
+
| RulePlainConfiguration
|
|
2775
|
+
| RuleWithOptions_for_NoNonNullAssertedOptionalChainOptions;
|
|
2733
2776
|
type RuleConfiguration_for_NoNoninteractiveElementInteractionsOptions =
|
|
2734
2777
|
| RulePlainConfiguration
|
|
2735
2778
|
| RuleWithOptions_for_NoNoninteractiveElementInteractionsOptions;
|
|
@@ -2739,6 +2782,9 @@ type RuleFixConfiguration_for_NoProcessGlobalOptions =
|
|
|
2739
2782
|
type RuleFixConfiguration_for_NoQuickfixBiomeOptions =
|
|
2740
2783
|
| RulePlainConfiguration
|
|
2741
2784
|
| RuleWithFixOptions_for_NoQuickfixBiomeOptions;
|
|
2785
|
+
type RuleConfiguration_for_NoQwikUseVisibleTaskOptions =
|
|
2786
|
+
| RulePlainConfiguration
|
|
2787
|
+
| RuleWithOptions_for_NoQwikUseVisibleTaskOptions;
|
|
2742
2788
|
type RuleConfiguration_for_NoReactPropAssignOptions =
|
|
2743
2789
|
| RulePlainConfiguration
|
|
2744
2790
|
| RuleWithOptions_for_NoReactPropAssignOptions;
|
|
@@ -2760,6 +2806,9 @@ type RuleConfiguration_for_NoUnassignedVariablesOptions =
|
|
|
2760
2806
|
type RuleConfiguration_for_NoUnknownAtRuleOptions =
|
|
2761
2807
|
| RulePlainConfiguration
|
|
2762
2808
|
| RuleWithOptions_for_NoUnknownAtRuleOptions;
|
|
2809
|
+
type RuleConfiguration_for_NoUnnecessaryConditionsOptions =
|
|
2810
|
+
| RulePlainConfiguration
|
|
2811
|
+
| RuleWithOptions_for_NoUnnecessaryConditionsOptions;
|
|
2763
2812
|
type RuleConfiguration_for_NoUnresolvedImportsOptions =
|
|
2764
2813
|
| RulePlainConfiguration
|
|
2765
2814
|
| RuleWithOptions_for_NoUnresolvedImportsOptions;
|
|
@@ -2775,6 +2824,9 @@ type RuleFixConfiguration_for_NoUselessEscapeInStringOptions =
|
|
|
2775
2824
|
type RuleFixConfiguration_for_NoUselessUndefinedOptions =
|
|
2776
2825
|
| RulePlainConfiguration
|
|
2777
2826
|
| RuleWithFixOptions_for_NoUselessUndefinedOptions;
|
|
2827
|
+
type RuleFixConfiguration_for_NoVueDataObjectDeclarationOptions =
|
|
2828
|
+
| RulePlainConfiguration
|
|
2829
|
+
| RuleWithFixOptions_for_NoVueDataObjectDeclarationOptions;
|
|
2778
2830
|
type RuleConfiguration_for_NoVueReservedKeysOptions =
|
|
2779
2831
|
| RulePlainConfiguration
|
|
2780
2832
|
| RuleWithOptions_for_NoVueReservedKeysOptions;
|
|
@@ -2784,12 +2836,18 @@ type RuleConfiguration_for_NoVueReservedPropsOptions =
|
|
|
2784
2836
|
type RuleConfiguration_for_UseAdjacentGetterSetterOptions =
|
|
2785
2837
|
| RulePlainConfiguration
|
|
2786
2838
|
| RuleWithOptions_for_UseAdjacentGetterSetterOptions;
|
|
2839
|
+
type RuleConfiguration_for_UseAnchorHrefOptions =
|
|
2840
|
+
| RulePlainConfiguration
|
|
2841
|
+
| RuleWithOptions_for_UseAnchorHrefOptions;
|
|
2787
2842
|
type RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions =
|
|
2788
2843
|
| RulePlainConfiguration
|
|
2789
2844
|
| RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions;
|
|
2790
2845
|
type RuleFixConfiguration_for_UseConsistentResponseOptions =
|
|
2791
2846
|
| RulePlainConfiguration
|
|
2792
2847
|
| RuleWithFixOptions_for_UseConsistentResponseOptions;
|
|
2848
|
+
type RuleFixConfiguration_for_UseConsistentTypeDefinitionsOptions =
|
|
2849
|
+
| RulePlainConfiguration
|
|
2850
|
+
| RuleWithFixOptions_for_UseConsistentTypeDefinitionsOptions;
|
|
2793
2851
|
type RuleFixConfiguration_for_UseExhaustiveSwitchCasesOptions =
|
|
2794
2852
|
| RulePlainConfiguration
|
|
2795
2853
|
| RuleWithFixOptions_for_UseExhaustiveSwitchCasesOptions;
|
|
@@ -2805,6 +2863,9 @@ type RuleConfiguration_for_UseForComponentOptions =
|
|
|
2805
2863
|
type RuleFixConfiguration_for_UseGoogleFontPreconnectOptions =
|
|
2806
2864
|
| RulePlainConfiguration
|
|
2807
2865
|
| RuleWithFixOptions_for_UseGoogleFontPreconnectOptions;
|
|
2866
|
+
type RuleConfiguration_for_UseImageSizeOptions =
|
|
2867
|
+
| RulePlainConfiguration
|
|
2868
|
+
| RuleWithOptions_for_UseImageSizeOptions;
|
|
2808
2869
|
type RuleFixConfiguration_for_UseIndexOfOptions =
|
|
2809
2870
|
| RulePlainConfiguration
|
|
2810
2871
|
| RuleWithFixOptions_for_UseIndexOfOptions;
|
|
@@ -2829,6 +2890,9 @@ type RuleFixConfiguration_for_UseObjectSpreadOptions =
|
|
|
2829
2890
|
type RuleFixConfiguration_for_UseParseIntRadixOptions =
|
|
2830
2891
|
| RulePlainConfiguration
|
|
2831
2892
|
| RuleWithFixOptions_for_UseParseIntRadixOptions;
|
|
2893
|
+
type RuleConfiguration_for_UseQwikClasslistOptions =
|
|
2894
|
+
| RulePlainConfiguration
|
|
2895
|
+
| RuleWithOptions_for_UseQwikClasslistOptions;
|
|
2832
2896
|
type RuleConfiguration_for_UseReactFunctionComponentsOptions =
|
|
2833
2897
|
| RulePlainConfiguration
|
|
2834
2898
|
| RuleWithOptions_for_UseReactFunctionComponentsOptions;
|
|
@@ -5006,6 +5070,16 @@ interface RuleWithOptions_for_NoNestedComponentDefinitionsOptions {
|
|
|
5006
5070
|
*/
|
|
5007
5071
|
options: NoNestedComponentDefinitionsOptions;
|
|
5008
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
|
+
}
|
|
5009
5083
|
interface RuleWithOptions_for_NoNoninteractiveElementInteractionsOptions {
|
|
5010
5084
|
/**
|
|
5011
5085
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -5044,6 +5118,16 @@ interface RuleWithFixOptions_for_NoQuickfixBiomeOptions {
|
|
|
5044
5118
|
*/
|
|
5045
5119
|
options: NoQuickfixBiomeOptions;
|
|
5046
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
|
+
}
|
|
5047
5131
|
interface RuleWithOptions_for_NoReactPropAssignOptions {
|
|
5048
5132
|
/**
|
|
5049
5133
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -5118,6 +5202,16 @@ interface RuleWithOptions_for_NoUnknownAtRuleOptions {
|
|
|
5118
5202
|
*/
|
|
5119
5203
|
options: NoUnknownAtRuleOptions;
|
|
5120
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
|
+
}
|
|
5121
5215
|
interface RuleWithOptions_for_NoUnresolvedImportsOptions {
|
|
5122
5216
|
/**
|
|
5123
5217
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -5176,6 +5270,20 @@ interface RuleWithFixOptions_for_NoUselessUndefinedOptions {
|
|
|
5176
5270
|
*/
|
|
5177
5271
|
options: NoUselessUndefinedOptions;
|
|
5178
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
|
+
}
|
|
5179
5287
|
interface RuleWithOptions_for_NoVueReservedKeysOptions {
|
|
5180
5288
|
/**
|
|
5181
5289
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -5206,6 +5314,16 @@ interface RuleWithOptions_for_UseAdjacentGetterSetterOptions {
|
|
|
5206
5314
|
*/
|
|
5207
5315
|
options: UseAdjacentGetterSetterOptions;
|
|
5208
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
|
+
}
|
|
5209
5327
|
interface RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions {
|
|
5210
5328
|
/**
|
|
5211
5329
|
* The kind of the code actions emitted by the rule
|
|
@@ -5234,6 +5352,20 @@ interface RuleWithFixOptions_for_UseConsistentResponseOptions {
|
|
|
5234
5352
|
*/
|
|
5235
5353
|
options: UseConsistentResponseOptions;
|
|
5236
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
|
+
}
|
|
5237
5369
|
interface RuleWithFixOptions_for_UseExhaustiveSwitchCasesOptions {
|
|
5238
5370
|
/**
|
|
5239
5371
|
* The kind of the code actions emitted by the rule
|
|
@@ -5292,6 +5424,16 @@ interface RuleWithFixOptions_for_UseGoogleFontPreconnectOptions {
|
|
|
5292
5424
|
*/
|
|
5293
5425
|
options: UseGoogleFontPreconnectOptions;
|
|
5294
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
|
+
}
|
|
5295
5437
|
interface RuleWithFixOptions_for_UseIndexOfOptions {
|
|
5296
5438
|
/**
|
|
5297
5439
|
* The kind of the code actions emitted by the rule
|
|
@@ -5396,6 +5538,16 @@ interface RuleWithFixOptions_for_UseParseIntRadixOptions {
|
|
|
5396
5538
|
*/
|
|
5397
5539
|
options: UseParseIntRadixOptions;
|
|
5398
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
|
+
}
|
|
5399
5551
|
interface RuleWithOptions_for_UseReactFunctionComponentsOptions {
|
|
5400
5552
|
/**
|
|
5401
5553
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -7552,11 +7704,17 @@ interface NoExcessiveLinesPerFunctionOptions {
|
|
|
7552
7704
|
interface NoFloatingPromisesOptions {}
|
|
7553
7705
|
interface NoGlobalDirnameFilenameOptions {}
|
|
7554
7706
|
interface NoImplicitCoercionOptions {}
|
|
7555
|
-
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
|
+
}
|
|
7556
7713
|
interface NoImportantStylesOptions {}
|
|
7557
7714
|
interface NoMagicNumbersOptions {}
|
|
7558
7715
|
interface NoMisusedPromisesOptions {}
|
|
7559
7716
|
interface NoNestedComponentDefinitionsOptions {}
|
|
7717
|
+
interface NoNonNullAssertedOptionalChainOptions {}
|
|
7560
7718
|
interface NoNoninteractiveElementInteractionsOptions {}
|
|
7561
7719
|
interface NoProcessGlobalOptions {}
|
|
7562
7720
|
interface NoQuickfixBiomeOptions {
|
|
@@ -7565,6 +7723,7 @@ interface NoQuickfixBiomeOptions {
|
|
|
7565
7723
|
*/
|
|
7566
7724
|
additionalPaths?: string[];
|
|
7567
7725
|
}
|
|
7726
|
+
interface NoQwikUseVisibleTaskOptions {}
|
|
7568
7727
|
interface NoReactPropAssignOptions {}
|
|
7569
7728
|
interface NoRestrictedElementsOptions {
|
|
7570
7729
|
/**
|
|
@@ -7582,14 +7741,17 @@ interface NoShadowOptions {}
|
|
|
7582
7741
|
interface NoTsIgnoreOptions {}
|
|
7583
7742
|
interface NoUnassignedVariablesOptions {}
|
|
7584
7743
|
interface NoUnknownAtRuleOptions {}
|
|
7744
|
+
interface NoUnnecessaryConditionsOptions {}
|
|
7585
7745
|
interface NoUnresolvedImportsOptions {}
|
|
7586
7746
|
interface NoUnwantedPolyfillioOptions {}
|
|
7587
7747
|
interface NoUselessBackrefInRegexOptions {}
|
|
7588
7748
|
interface NoUselessEscapeInStringOptions {}
|
|
7589
7749
|
interface NoUselessUndefinedOptions {}
|
|
7750
|
+
interface NoVueDataObjectDeclarationOptions {}
|
|
7590
7751
|
interface NoVueReservedKeysOptions {}
|
|
7591
7752
|
interface NoVueReservedPropsOptions {}
|
|
7592
7753
|
interface UseAdjacentGetterSetterOptions {}
|
|
7754
|
+
type UseAnchorHrefOptions = null;
|
|
7593
7755
|
interface UseConsistentObjectDefinitionOptions {
|
|
7594
7756
|
/**
|
|
7595
7757
|
* The preferred syntax to enforce.
|
|
@@ -7597,11 +7759,15 @@ interface UseConsistentObjectDefinitionOptions {
|
|
|
7597
7759
|
syntax?: ObjectPropertySyntax;
|
|
7598
7760
|
}
|
|
7599
7761
|
interface UseConsistentResponseOptions {}
|
|
7762
|
+
interface UseConsistentTypeDefinitionsOptions {
|
|
7763
|
+
style?: ConsistentTypeDefinition;
|
|
7764
|
+
}
|
|
7600
7765
|
interface UseExhaustiveSwitchCasesOptions {}
|
|
7601
7766
|
interface UseExplicitTypeOptions {}
|
|
7602
7767
|
interface UseExportsLastOptions {}
|
|
7603
7768
|
interface UseForComponentOptions {}
|
|
7604
7769
|
interface UseGoogleFontPreconnectOptions {}
|
|
7770
|
+
type UseImageSizeOptions = null;
|
|
7605
7771
|
interface UseIndexOfOptions {}
|
|
7606
7772
|
interface UseIterableCallbackReturnOptions {}
|
|
7607
7773
|
interface UseJsonImportAttributeOptions {}
|
|
@@ -7623,6 +7789,7 @@ interface UseNamingConventionOptions {
|
|
|
7623
7789
|
interface UseNumericSeparatorsOptions {}
|
|
7624
7790
|
interface UseObjectSpreadOptions {}
|
|
7625
7791
|
interface UseParseIntRadixOptions {}
|
|
7792
|
+
interface UseQwikClasslistOptions {}
|
|
7626
7793
|
interface UseReactFunctionComponentsOptions {}
|
|
7627
7794
|
interface UseReadonlyClassPropertiesOptions {
|
|
7628
7795
|
/**
|
|
@@ -7917,6 +8084,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
|
|
|
7917
8084
|
}
|
|
7918
8085
|
type CustomRestrictedElements = Record<string, string>;
|
|
7919
8086
|
type ObjectPropertySyntax = "explicit" | "shorthand";
|
|
8087
|
+
type ConsistentTypeDefinition = "interface" | "type";
|
|
7920
8088
|
interface Convention {
|
|
7921
8089
|
/**
|
|
7922
8090
|
* String cases to enforce
|
|
@@ -8223,9 +8391,11 @@ type Category =
|
|
|
8223
8391
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
8224
8392
|
| "lint/nursery/noMisusedPromises"
|
|
8225
8393
|
| "lint/nursery/noNestedComponentDefinitions"
|
|
8394
|
+
| "lint/nursery/noNonNullAssertedOptionalChain"
|
|
8226
8395
|
| "lint/nursery/noNoninteractiveElementInteractions"
|
|
8227
8396
|
| "lint/nursery/noProcessGlobal"
|
|
8228
8397
|
| "lint/nursery/noQuickfixBiome"
|
|
8398
|
+
| "lint/nursery/noQwikUseVisibleTask"
|
|
8229
8399
|
| "lint/nursery/noReactPropAssign"
|
|
8230
8400
|
| "lint/nursery/noReactSpecificProps"
|
|
8231
8401
|
| "lint/nursery/noRestrictedElements"
|
|
@@ -8242,6 +8412,7 @@ type Category =
|
|
|
8242
8412
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
8243
8413
|
| "lint/nursery/noUnknownUnit"
|
|
8244
8414
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
8415
|
+
| "lint/nursery/noUnnecessaryConditions"
|
|
8245
8416
|
| "lint/nursery/noUnresolvedImports"
|
|
8246
8417
|
| "lint/nursery/noUnusedFunctionParameters"
|
|
8247
8418
|
| "lint/nursery/noUnwantedPolyfillio"
|
|
@@ -8250,17 +8421,20 @@ type Category =
|
|
|
8250
8421
|
| "lint/nursery/noUselessUndefined"
|
|
8251
8422
|
| "lint/nursery/noVueReservedKeys"
|
|
8252
8423
|
| "lint/nursery/noVueReservedProps"
|
|
8424
|
+
| "lint/nursery/noVueDataObjectDeclaration"
|
|
8253
8425
|
| "lint/nursery/useAdjacentGetterSetter"
|
|
8426
|
+
| "lint/nursery/useAnchorHref"
|
|
8254
8427
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
8255
8428
|
| "lint/nursery/useConsistentObjectDefinition"
|
|
8256
8429
|
| "lint/nursery/useConsistentResponse"
|
|
8430
|
+
| "lint/nursery/useConsistentTypeDefinitions"
|
|
8257
8431
|
| "lint/nursery/useExhaustiveSwitchCases"
|
|
8258
8432
|
| "lint/nursery/useExplicitFunctionReturnType"
|
|
8259
8433
|
| "lint/nursery/useExplicitType"
|
|
8260
8434
|
| "lint/nursery/useExportsLast"
|
|
8261
8435
|
| "lint/nursery/useForComponent"
|
|
8262
|
-
| "lint/nursery/useReactFunctionComponents"
|
|
8263
8436
|
| "lint/nursery/useGoogleFontPreconnect"
|
|
8437
|
+
| "lint/nursery/useImageSize"
|
|
8264
8438
|
| "lint/nursery/useImportRestrictions"
|
|
8265
8439
|
| "lint/nursery/useIndexOf"
|
|
8266
8440
|
| "lint/nursery/useIterableCallbackReturn"
|
|
@@ -8271,6 +8445,8 @@ type Category =
|
|
|
8271
8445
|
| "lint/nursery/useNumericSeparators"
|
|
8272
8446
|
| "lint/nursery/useObjectSpread"
|
|
8273
8447
|
| "lint/nursery/useParseIntRadix"
|
|
8448
|
+
| "lint/nursery/useQwikClasslist"
|
|
8449
|
+
| "lint/nursery/useReactFunctionComponents"
|
|
8274
8450
|
| "lint/nursery/useReadonlyClassProperties"
|
|
8275
8451
|
| "lint/nursery/useSingleJsDocAsterisk"
|
|
8276
8452
|
| "lint/nursery/useSortedClasses"
|
|
@@ -8545,10 +8721,6 @@ interface BacktraceSymbol {
|
|
|
8545
8721
|
name?: string;
|
|
8546
8722
|
}
|
|
8547
8723
|
interface OpenProjectParams {
|
|
8548
|
-
/**
|
|
8549
|
-
* Whether the client wants to run only certain rules. This is needed to compute the kind of [ScanKind].
|
|
8550
|
-
*/
|
|
8551
|
-
onlyRules?: RuleCode[];
|
|
8552
8724
|
/**
|
|
8553
8725
|
* Whether the folder should be opened as a project, even if no `biome.json` can be found.
|
|
8554
8726
|
*/
|
|
@@ -8557,42 +8729,13 @@ interface OpenProjectParams {
|
|
|
8557
8729
|
* The path to open
|
|
8558
8730
|
*/
|
|
8559
8731
|
path: BiomePath;
|
|
8560
|
-
/**
|
|
8561
|
-
* Whether the client wants to skip some lint rule. This is needed to compute the kind of [ScanKind].
|
|
8562
|
-
*/
|
|
8563
|
-
skipRules?: RuleCode[];
|
|
8564
8732
|
}
|
|
8565
|
-
type RuleCode = string;
|
|
8566
8733
|
interface OpenProjectResult {
|
|
8567
8734
|
/**
|
|
8568
8735
|
* A unique identifier for this project
|
|
8569
8736
|
*/
|
|
8570
8737
|
projectKey: ProjectKey;
|
|
8571
|
-
|
|
8572
|
-
* How to scan this project
|
|
8573
|
-
*/
|
|
8574
|
-
scanKind: ScanKind;
|
|
8575
|
-
}
|
|
8576
|
-
type ScanKind =
|
|
8577
|
-
| "noScanner"
|
|
8578
|
-
| "knownFiles"
|
|
8579
|
-
| {
|
|
8580
|
-
targetedKnownFiles: {
|
|
8581
|
-
/**
|
|
8582
|
-
* Determines whether the file scanner should descend into subdirectories of the target paths.
|
|
8583
|
-
*/
|
|
8584
|
-
descendFromTargets: boolean;
|
|
8585
|
-
/**
|
|
8586
|
-
* The paths to target by the scanner.
|
|
8587
|
-
|
|
8588
|
-
If a target path indicates a folder, all files within are scanned as well.
|
|
8589
|
-
|
|
8590
|
-
Target paths must be absolute.
|
|
8591
|
-
*/
|
|
8592
|
-
targetPaths: BiomePath[];
|
|
8593
|
-
};
|
|
8594
|
-
}
|
|
8595
|
-
| "project";
|
|
8738
|
+
}
|
|
8596
8739
|
interface OpenFileParams {
|
|
8597
8740
|
content: FileContent;
|
|
8598
8741
|
documentFileSource?: DocumentFileSource;
|
|
@@ -8724,6 +8867,7 @@ interface PullDiagnosticsParams {
|
|
|
8724
8867
|
skip?: RuleCode[];
|
|
8725
8868
|
}
|
|
8726
8869
|
type RuleCategories = RuleCategory[];
|
|
8870
|
+
type RuleCode = string;
|
|
8727
8871
|
type RuleCategory = "syntax" | "lint" | "action" | "transformation";
|
|
8728
8872
|
interface PullDiagnosticsResult {
|
|
8729
8873
|
diagnostics: Diagnostic[];
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|