@biomejs/wasm-web 2.3.9 → 2.3.11

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
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function main(): void;
4
3
  interface SupportsFeatureParams {
5
4
  features: FeatureName;
6
5
  path: BiomePath;
7
6
  projectKey: ProjectKey;
7
+ skipIgnoreCheck?: boolean;
8
8
  }
9
9
  type FeatureName = FeatureKind[];
10
10
  type BiomePath = string;
@@ -840,7 +840,8 @@ type RuleDomain =
840
840
  | "qwik"
841
841
  | "vue"
842
842
  | "project"
843
- | "tailwind";
843
+ | "tailwind"
844
+ | "turborepo";
844
845
  type RuleDomainValue = "all" | "none" | "recommended";
845
846
  type SeverityOrA11y = GroupPlainConfiguration | A11y;
846
847
  type SeverityOrComplexity = GroupPlainConfiguration | Complexity;
@@ -1702,6 +1703,16 @@ See <https://biomejs.dev/linter/rules/use-yield>
1702
1703
  useYield?: UseYieldConfiguration;
1703
1704
  }
1704
1705
  interface Nursery {
1706
+ /**
1707
+ * Disallow ambiguous anchor descriptions.
1708
+ See <https://biomejs.dev/linter/rules/no-ambiguous-anchor-text>
1709
+ */
1710
+ noAmbiguousAnchorText?: NoAmbiguousAnchorTextConfiguration;
1711
+ /**
1712
+ * Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.
1713
+ See <https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document>
1714
+ */
1715
+ noBeforeInteractiveScriptOutsideDocument?: NoBeforeInteractiveScriptOutsideDocumentConfiguration;
1705
1716
  /**
1706
1717
  * Disallow continue statements.
1707
1718
  See <https://biomejs.dev/linter/rules/no-continue>
@@ -1758,6 +1769,11 @@ See <https://biomejs.dev/linter/rules/no-jsx-literals>
1758
1769
  */
1759
1770
  noJsxLiterals?: NoJsxLiteralsConfiguration;
1760
1771
  /**
1772
+ * Disallow .bind(), arrow functions, or function expressions in JSX props.
1773
+ See <https://biomejs.dev/linter/rules/no-jsx-props-bind>
1774
+ */
1775
+ noJsxPropsBind?: NoJsxPropsBindConfiguration;
1776
+ /**
1761
1777
  * Prevent problematic leaked values from being rendered.
1762
1778
  See <https://biomejs.dev/linter/rules/no-leaked-render>
1763
1779
  */
@@ -1768,6 +1784,11 @@ See <https://biomejs.dev/linter/rules/no-misused-promises>
1768
1784
  */
1769
1785
  noMisusedPromises?: NoMisusedPromisesConfiguration;
1770
1786
  /**
1787
+ * Disallow use of chained assignment expressions.
1788
+ See <https://biomejs.dev/linter/rules/no-multi-assign>
1789
+ */
1790
+ noMultiAssign?: NoMultiAssignConfiguration;
1791
+ /**
1771
1792
  * Disallow creating multiline strings by escaping newlines.
1772
1793
  See <https://biomejs.dev/linter/rules/no-multi-str>
1773
1794
  */
@@ -1793,6 +1814,11 @@ See <https://biomejs.dev/linter/rules/no-react-forward-ref>
1793
1814
  */
1794
1815
  noReactForwardRef?: NoReactForwardRefConfiguration;
1795
1816
  /**
1817
+ * Disallow assignments in return statements.
1818
+ See <https://biomejs.dev/linter/rules/no-return-assign>
1819
+ */
1820
+ noReturnAssign?: NoReturnAssignConfiguration;
1821
+ /**
1796
1822
  * Disallow javascript: URLs in HTML.
1797
1823
  See <https://biomejs.dev/linter/rules/no-script-url>
1798
1824
  */
@@ -1813,6 +1839,11 @@ See <https://biomejs.dev/linter/rules/no-ternary>
1813
1839
  */
1814
1840
  noTernary?: NoTernaryConfiguration;
1815
1841
  /**
1842
+ * Disallow the use of undeclared environment variables.
1843
+ See <https://biomejs.dev/linter/rules/no-undeclared-env-vars>
1844
+ */
1845
+ noUndeclaredEnvVars?: NoUndeclaredEnvVarsConfiguration;
1846
+ /**
1816
1847
  * Disallow unknown DOM properties.
1817
1848
  See <https://biomejs.dev/linter/rules/no-unknown-attribute>
1818
1849
  */
@@ -1957,11 +1988,46 @@ See <https://biomejs.dev/linter/rules/use-spread>
1957
1988
  */
1958
1989
  useSpread?: UseSpreadConfiguration;
1959
1990
  /**
1991
+ * Require all argument names for fields & directives to be unique.
1992
+ See <https://biomejs.dev/linter/rules/use-unique-argument-names>
1993
+ */
1994
+ useUniqueArgumentNames?: UseUniqueArgumentNamesConfiguration;
1995
+ /**
1996
+ * Require all fields of a type to be unique.
1997
+ See <https://biomejs.dev/linter/rules/use-unique-field-definition-names>
1998
+ */
1999
+ useUniqueFieldDefinitionNames?: UseUniqueFieldDefinitionNamesConfiguration;
2000
+ /**
1960
2001
  * Enforce unique operation names across a GraphQL document.
1961
2002
  See <https://biomejs.dev/linter/rules/use-unique-graphql-operation-name>
1962
2003
  */
1963
2004
  useUniqueGraphqlOperationName?: UseUniqueGraphqlOperationNameConfiguration;
1964
2005
  /**
2006
+ * Require fields within an input object to be unique.
2007
+ See <https://biomejs.dev/linter/rules/use-unique-input-field-names>
2008
+ */
2009
+ useUniqueInputFieldNames?: UseUniqueInputFieldNamesConfiguration;
2010
+ /**
2011
+ * Require all variable definitions to be unique.
2012
+ See <https://biomejs.dev/linter/rules/use-unique-variable-names>
2013
+ */
2014
+ useUniqueVariableNames?: UseUniqueVariableNamesConfiguration;
2015
+ /**
2016
+ * Enforce consistent defineProps declaration style.
2017
+ See <https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration>
2018
+ */
2019
+ useVueConsistentDefinePropsDeclaration?: UseVueConsistentDefinePropsDeclarationConfiguration;
2020
+ /**
2021
+ * Enforce a consistent style for v-bind in Vue templates.
2022
+ See <https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style>
2023
+ */
2024
+ useVueConsistentVBindStyle?: UseVueConsistentVBindStyleConfiguration;
2025
+ /**
2026
+ * Enforce a consistent style for v-on in Vue templates.
2027
+ See <https://biomejs.dev/linter/rules/use-vue-consistent-v-on-style>
2028
+ */
2029
+ useVueConsistentVOnStyle?: UseVueConsistentVOnStyleConfiguration;
2030
+ /**
1965
2031
  * Enforce specific order of Vue compiler macros.
1966
2032
  See <https://biomejs.dev/linter/rules/use-vue-define-macros-order>
1967
2033
  */
@@ -1977,11 +2043,26 @@ See <https://biomejs.dev/linter/rules/use-vue-multi-word-component-names>
1977
2043
  */
1978
2044
  useVueMultiWordComponentNames?: UseVueMultiWordComponentNamesConfiguration;
1979
2045
  /**
2046
+ * Enforce that elements using v-for also specify a unique key.
2047
+ See <https://biomejs.dev/linter/rules/use-vue-v-for-key>
2048
+ */
2049
+ useVueVForKey?: UseVueVForKeyConfiguration;
2050
+ /**
2051
+ * Enforce valid Vue \<template> root usage.
2052
+ See <https://biomejs.dev/linter/rules/use-vue-valid-template-root>
2053
+ */
2054
+ useVueValidTemplateRoot?: UseVueValidTemplateRootConfiguration;
2055
+ /**
1980
2056
  * Forbids v-bind directives with missing arguments or invalid modifiers.
1981
2057
  See <https://biomejs.dev/linter/rules/use-vue-valid-v-bind>
1982
2058
  */
1983
2059
  useVueValidVBind?: UseVueValidVBindConfiguration;
1984
2060
  /**
2061
+ * Enforce valid v-cloak Vue directives.
2062
+ See <https://biomejs.dev/linter/rules/use-vue-valid-v-cloak>
2063
+ */
2064
+ useVueValidVCloak?: UseVueValidVCloakConfiguration;
2065
+ /**
1985
2066
  * Enforce valid usage of v-else.
1986
2067
  See <https://biomejs.dev/linter/rules/use-vue-valid-v-else>
1987
2068
  */
@@ -2007,10 +2088,25 @@ See <https://biomejs.dev/linter/rules/use-vue-valid-v-on>
2007
2088
  */
2008
2089
  useVueValidVOn?: UseVueValidVOnConfiguration;
2009
2090
  /**
2091
+ * Enforce valid v-once Vue directives.
2092
+ See <https://biomejs.dev/linter/rules/use-vue-valid-v-once>
2093
+ */
2094
+ useVueValidVOnce?: UseVueValidVOnceConfiguration;
2095
+ /**
2096
+ * Enforce valid v-pre Vue directives.
2097
+ See <https://biomejs.dev/linter/rules/use-vue-valid-v-pre>
2098
+ */
2099
+ useVueValidVPre?: UseVueValidVPreConfiguration;
2100
+ /**
2010
2101
  * Enforce valid v-text Vue directives.
2011
2102
  See <https://biomejs.dev/linter/rules/use-vue-valid-v-text>
2012
2103
  */
2013
2104
  useVueValidVText?: UseVueValidVTextConfiguration;
2105
+ /**
2106
+ * Enforce opting in to Vue Vapor mode in \<script setup> blocks.
2107
+ See <https://biomejs.dev/linter/rules/use-vue-vapor>
2108
+ */
2109
+ useVueVapor?: UseVueVaporConfiguration;
2014
2110
  }
2015
2111
  interface Performance {
2016
2112
  /**
@@ -3413,6 +3509,12 @@ type UseValidTypeofConfiguration =
3413
3509
  | RulePlainConfiguration
3414
3510
  | RuleWithUseValidTypeofOptions;
3415
3511
  type UseYieldConfiguration = RulePlainConfiguration | RuleWithUseYieldOptions;
3512
+ type NoAmbiguousAnchorTextConfiguration =
3513
+ | RulePlainConfiguration
3514
+ | RuleWithNoAmbiguousAnchorTextOptions;
3515
+ type NoBeforeInteractiveScriptOutsideDocumentConfiguration =
3516
+ | RulePlainConfiguration
3517
+ | RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions;
3416
3518
  type NoContinueConfiguration =
3417
3519
  | RulePlainConfiguration
3418
3520
  | RuleWithNoContinueOptions;
@@ -3444,12 +3546,18 @@ type NoIncrementDecrementConfiguration =
3444
3546
  type NoJsxLiteralsConfiguration =
3445
3547
  | RulePlainConfiguration
3446
3548
  | RuleWithNoJsxLiteralsOptions;
3549
+ type NoJsxPropsBindConfiguration =
3550
+ | RulePlainConfiguration
3551
+ | RuleWithNoJsxPropsBindOptions;
3447
3552
  type NoLeakedRenderConfiguration =
3448
3553
  | RulePlainConfiguration
3449
3554
  | RuleWithNoLeakedRenderOptions;
3450
3555
  type NoMisusedPromisesConfiguration =
3451
3556
  | RulePlainConfiguration
3452
3557
  | RuleWithNoMisusedPromisesOptions;
3558
+ type NoMultiAssignConfiguration =
3559
+ | RulePlainConfiguration
3560
+ | RuleWithNoMultiAssignOptions;
3453
3561
  type NoMultiStrConfiguration =
3454
3562
  | RulePlainConfiguration
3455
3563
  | RuleWithNoMultiStrOptions;
@@ -3463,6 +3571,9 @@ type NoProtoConfiguration = RulePlainConfiguration | RuleWithNoProtoOptions;
3463
3571
  type NoReactForwardRefConfiguration =
3464
3572
  | RulePlainConfiguration
3465
3573
  | RuleWithNoReactForwardRefOptions;
3574
+ type NoReturnAssignConfiguration =
3575
+ | RulePlainConfiguration
3576
+ | RuleWithNoReturnAssignOptions;
3466
3577
  type NoScriptUrlConfiguration =
3467
3578
  | RulePlainConfiguration
3468
3579
  | RuleWithNoScriptUrlOptions;
@@ -3471,6 +3582,9 @@ type NoSyncScriptsConfiguration =
3471
3582
  | RulePlainConfiguration
3472
3583
  | RuleWithNoSyncScriptsOptions;
3473
3584
  type NoTernaryConfiguration = RulePlainConfiguration | RuleWithNoTernaryOptions;
3585
+ type NoUndeclaredEnvVarsConfiguration =
3586
+ | RulePlainConfiguration
3587
+ | RuleWithNoUndeclaredEnvVarsOptions;
3474
3588
  type NoUnknownAttributeConfiguration =
3475
3589
  | RulePlainConfiguration
3476
3590
  | RuleWithNoUnknownAttributeOptions;
@@ -3551,9 +3665,30 @@ type UseSortedClassesConfiguration =
3551
3665
  | RulePlainConfiguration
3552
3666
  | RuleWithUseSortedClassesOptions;
3553
3667
  type UseSpreadConfiguration = RulePlainConfiguration | RuleWithUseSpreadOptions;
3668
+ type UseUniqueArgumentNamesConfiguration =
3669
+ | RulePlainConfiguration
3670
+ | RuleWithUseUniqueArgumentNamesOptions;
3671
+ type UseUniqueFieldDefinitionNamesConfiguration =
3672
+ | RulePlainConfiguration
3673
+ | RuleWithUseUniqueFieldDefinitionNamesOptions;
3554
3674
  type UseUniqueGraphqlOperationNameConfiguration =
3555
3675
  | RulePlainConfiguration
3556
3676
  | RuleWithUseUniqueGraphqlOperationNameOptions;
3677
+ type UseUniqueInputFieldNamesConfiguration =
3678
+ | RulePlainConfiguration
3679
+ | RuleWithUseUniqueInputFieldNamesOptions;
3680
+ type UseUniqueVariableNamesConfiguration =
3681
+ | RulePlainConfiguration
3682
+ | RuleWithUseUniqueVariableNamesOptions;
3683
+ type UseVueConsistentDefinePropsDeclarationConfiguration =
3684
+ | RulePlainConfiguration
3685
+ | RuleWithUseVueConsistentDefinePropsDeclarationOptions;
3686
+ type UseVueConsistentVBindStyleConfiguration =
3687
+ | RulePlainConfiguration
3688
+ | RuleWithUseVueConsistentVBindStyleOptions;
3689
+ type UseVueConsistentVOnStyleConfiguration =
3690
+ | RulePlainConfiguration
3691
+ | RuleWithUseVueConsistentVOnStyleOptions;
3557
3692
  type UseVueDefineMacrosOrderConfiguration =
3558
3693
  | RulePlainConfiguration
3559
3694
  | RuleWithUseVueDefineMacrosOrderOptions;
@@ -3563,9 +3698,18 @@ type UseVueHyphenatedAttributesConfiguration =
3563
3698
  type UseVueMultiWordComponentNamesConfiguration =
3564
3699
  | RulePlainConfiguration
3565
3700
  | RuleWithUseVueMultiWordComponentNamesOptions;
3701
+ type UseVueVForKeyConfiguration =
3702
+ | RulePlainConfiguration
3703
+ | RuleWithUseVueVForKeyOptions;
3704
+ type UseVueValidTemplateRootConfiguration =
3705
+ | RulePlainConfiguration
3706
+ | RuleWithUseVueValidTemplateRootOptions;
3566
3707
  type UseVueValidVBindConfiguration =
3567
3708
  | RulePlainConfiguration
3568
3709
  | RuleWithUseVueValidVBindOptions;
3710
+ type UseVueValidVCloakConfiguration =
3711
+ | RulePlainConfiguration
3712
+ | RuleWithUseVueValidVCloakOptions;
3569
3713
  type UseVueValidVElseConfiguration =
3570
3714
  | RulePlainConfiguration
3571
3715
  | RuleWithUseVueValidVElseOptions;
@@ -3581,9 +3725,18 @@ type UseVueValidVIfConfiguration =
3581
3725
  type UseVueValidVOnConfiguration =
3582
3726
  | RulePlainConfiguration
3583
3727
  | RuleWithUseVueValidVOnOptions;
3728
+ type UseVueValidVOnceConfiguration =
3729
+ | RulePlainConfiguration
3730
+ | RuleWithUseVueValidVOnceOptions;
3731
+ type UseVueValidVPreConfiguration =
3732
+ | RulePlainConfiguration
3733
+ | RuleWithUseVueValidVPreOptions;
3584
3734
  type UseVueValidVTextConfiguration =
3585
3735
  | RulePlainConfiguration
3586
3736
  | RuleWithUseVueValidVTextOptions;
3737
+ type UseVueVaporConfiguration =
3738
+ | RulePlainConfiguration
3739
+ | RuleWithUseVueVaporOptions;
3587
3740
  type NoAccumulatingSpreadConfiguration =
3588
3741
  | RulePlainConfiguration
3589
3742
  | RuleWithNoAccumulatingSpreadOptions;
@@ -4791,6 +4944,14 @@ interface RuleWithUseYieldOptions {
4791
4944
  level: RulePlainConfiguration;
4792
4945
  options?: UseYieldOptions;
4793
4946
  }
4947
+ interface RuleWithNoAmbiguousAnchorTextOptions {
4948
+ level: RulePlainConfiguration;
4949
+ options?: NoAmbiguousAnchorTextOptions;
4950
+ }
4951
+ interface RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions {
4952
+ level: RulePlainConfiguration;
4953
+ options?: NoBeforeInteractiveScriptOutsideDocumentOptions;
4954
+ }
4794
4955
  interface RuleWithNoContinueOptions {
4795
4956
  level: RulePlainConfiguration;
4796
4957
  options?: NoContinueOptions;
@@ -4837,6 +4998,10 @@ interface RuleWithNoJsxLiteralsOptions {
4837
4998
  level: RulePlainConfiguration;
4838
4999
  options?: NoJsxLiteralsOptions;
4839
5000
  }
5001
+ interface RuleWithNoJsxPropsBindOptions {
5002
+ level: RulePlainConfiguration;
5003
+ options?: NoJsxPropsBindOptions;
5004
+ }
4840
5005
  interface RuleWithNoLeakedRenderOptions {
4841
5006
  level: RulePlainConfiguration;
4842
5007
  options?: NoLeakedRenderOptions;
@@ -4846,6 +5011,10 @@ interface RuleWithNoMisusedPromisesOptions {
4846
5011
  level: RulePlainConfiguration;
4847
5012
  options?: NoMisusedPromisesOptions;
4848
5013
  }
5014
+ interface RuleWithNoMultiAssignOptions {
5015
+ level: RulePlainConfiguration;
5016
+ options?: NoMultiAssignOptions;
5017
+ }
4849
5018
  interface RuleWithNoMultiStrOptions {
4850
5019
  level: RulePlainConfiguration;
4851
5020
  options?: NoMultiStrOptions;
@@ -4868,6 +5037,10 @@ interface RuleWithNoReactForwardRefOptions {
4868
5037
  level: RulePlainConfiguration;
4869
5038
  options?: NoReactForwardRefOptions;
4870
5039
  }
5040
+ interface RuleWithNoReturnAssignOptions {
5041
+ level: RulePlainConfiguration;
5042
+ options?: NoReturnAssignOptions;
5043
+ }
4871
5044
  interface RuleWithNoScriptUrlOptions {
4872
5045
  level: RulePlainConfiguration;
4873
5046
  options?: NoScriptUrlOptions;
@@ -4884,6 +5057,10 @@ interface RuleWithNoTernaryOptions {
4884
5057
  level: RulePlainConfiguration;
4885
5058
  options?: NoTernaryOptions;
4886
5059
  }
5060
+ interface RuleWithNoUndeclaredEnvVarsOptions {
5061
+ level: RulePlainConfiguration;
5062
+ options?: NoUndeclaredEnvVarsOptions;
5063
+ }
4887
5064
  interface RuleWithNoUnknownAttributeOptions {
4888
5065
  level: RulePlainConfiguration;
4889
5066
  options?: NoUnknownAttributeOptions;
@@ -5003,10 +5180,40 @@ interface RuleWithUseSpreadOptions {
5003
5180
  level: RulePlainConfiguration;
5004
5181
  options?: UseSpreadOptions;
5005
5182
  }
5183
+ interface RuleWithUseUniqueArgumentNamesOptions {
5184
+ level: RulePlainConfiguration;
5185
+ options?: UseUniqueArgumentNamesOptions;
5186
+ }
5187
+ interface RuleWithUseUniqueFieldDefinitionNamesOptions {
5188
+ level: RulePlainConfiguration;
5189
+ options?: UseUniqueFieldDefinitionNamesOptions;
5190
+ }
5006
5191
  interface RuleWithUseUniqueGraphqlOperationNameOptions {
5007
5192
  level: RulePlainConfiguration;
5008
5193
  options?: UseUniqueGraphqlOperationNameOptions;
5009
5194
  }
5195
+ interface RuleWithUseUniqueInputFieldNamesOptions {
5196
+ level: RulePlainConfiguration;
5197
+ options?: UseUniqueInputFieldNamesOptions;
5198
+ }
5199
+ interface RuleWithUseUniqueVariableNamesOptions {
5200
+ level: RulePlainConfiguration;
5201
+ options?: UseUniqueVariableNamesOptions;
5202
+ }
5203
+ interface RuleWithUseVueConsistentDefinePropsDeclarationOptions {
5204
+ level: RulePlainConfiguration;
5205
+ options?: UseVueConsistentDefinePropsDeclarationOptions;
5206
+ }
5207
+ interface RuleWithUseVueConsistentVBindStyleOptions {
5208
+ fix?: FixKind;
5209
+ level: RulePlainConfiguration;
5210
+ options?: UseVueConsistentVBindStyleOptions;
5211
+ }
5212
+ interface RuleWithUseVueConsistentVOnStyleOptions {
5213
+ fix?: FixKind;
5214
+ level: RulePlainConfiguration;
5215
+ options?: UseVueConsistentVOnStyleOptions;
5216
+ }
5010
5217
  interface RuleWithUseVueDefineMacrosOrderOptions {
5011
5218
  fix?: FixKind;
5012
5219
  level: RulePlainConfiguration;
@@ -5021,10 +5228,24 @@ interface RuleWithUseVueMultiWordComponentNamesOptions {
5021
5228
  level: RulePlainConfiguration;
5022
5229
  options?: UseVueMultiWordComponentNamesOptions;
5023
5230
  }
5231
+ interface RuleWithUseVueVForKeyOptions {
5232
+ level: RulePlainConfiguration;
5233
+ options?: UseVueVForKeyOptions;
5234
+ }
5235
+ interface RuleWithUseVueValidTemplateRootOptions {
5236
+ fix?: FixKind;
5237
+ level: RulePlainConfiguration;
5238
+ options?: UseVueValidTemplateRootOptions;
5239
+ }
5024
5240
  interface RuleWithUseVueValidVBindOptions {
5025
5241
  level: RulePlainConfiguration;
5026
5242
  options?: UseVueValidVBindOptions;
5027
5243
  }
5244
+ interface RuleWithUseVueValidVCloakOptions {
5245
+ fix?: FixKind;
5246
+ level: RulePlainConfiguration;
5247
+ options?: UseVueValidVCloakOptions;
5248
+ }
5028
5249
  interface RuleWithUseVueValidVElseOptions {
5029
5250
  level: RulePlainConfiguration;
5030
5251
  options?: UseVueValidVElseOptions;
@@ -5045,10 +5266,25 @@ interface RuleWithUseVueValidVOnOptions {
5045
5266
  level: RulePlainConfiguration;
5046
5267
  options?: UseVueValidVOnOptions;
5047
5268
  }
5269
+ interface RuleWithUseVueValidVOnceOptions {
5270
+ fix?: FixKind;
5271
+ level: RulePlainConfiguration;
5272
+ options?: UseVueValidVOnceOptions;
5273
+ }
5274
+ interface RuleWithUseVueValidVPreOptions {
5275
+ fix?: FixKind;
5276
+ level: RulePlainConfiguration;
5277
+ options?: UseVueValidVPreOptions;
5278
+ }
5048
5279
  interface RuleWithUseVueValidVTextOptions {
5049
5280
  level: RulePlainConfiguration;
5050
5281
  options?: UseVueValidVTextOptions;
5051
5282
  }
5283
+ interface RuleWithUseVueVaporOptions {
5284
+ fix?: FixKind;
5285
+ level: RulePlainConfiguration;
5286
+ options?: UseVueVaporOptions;
5287
+ }
5052
5288
  interface RuleWithNoAccumulatingSpreadOptions {
5053
5289
  level: RulePlainConfiguration;
5054
5290
  options?: NoAccumulatingSpreadOptions;
@@ -6141,6 +6377,13 @@ to a DOM element id.
6141
6377
  type UseValidForDirectionOptions = {};
6142
6378
  type UseValidTypeofOptions = {};
6143
6379
  type UseYieldOptions = {};
6380
+ interface NoAmbiguousAnchorTextOptions {
6381
+ /**
6382
+ * It allows users to modify the strings that can be checked for in the anchor text. Useful for specifying other words in other languages
6383
+ */
6384
+ words?: string[];
6385
+ }
6386
+ type NoBeforeInteractiveScriptOutsideDocumentOptions = {};
6144
6387
  type NoContinueOptions = {};
6145
6388
  type NoDeprecatedImportsOptions = {};
6146
6389
  type NoDuplicateDependenciesOptions = {};
@@ -6183,17 +6426,29 @@ interface NoJsxLiteralsOptions {
6183
6426
  */
6184
6427
  noStrings?: boolean;
6185
6428
  }
6429
+ type NoJsxPropsBindOptions = {};
6186
6430
  type NoLeakedRenderOptions = {};
6187
6431
  type NoMisusedPromisesOptions = {};
6432
+ type NoMultiAssignOptions = {};
6188
6433
  type NoMultiStrOptions = {};
6189
6434
  type NoNextAsyncClientComponentOptions = {};
6190
6435
  type NoParametersOnlyUsedInRecursionOptions = {};
6191
6436
  type NoProtoOptions = {};
6192
6437
  type NoReactForwardRefOptions = {};
6438
+ type NoReturnAssignOptions = {};
6193
6439
  type NoScriptUrlOptions = {};
6194
6440
  type NoShadowOptions = {};
6195
6441
  type NoSyncScriptsOptions = {};
6196
6442
  type NoTernaryOptions = {};
6443
+ interface NoUndeclaredEnvVarsOptions {
6444
+ /**
6445
+ * Environment variables that should always be allowed.
6446
+ Use this to specify environment variables that are always available
6447
+ in your environment, even when not declared in turbo.json.
6448
+ Supports regular expressions, e.g. `["MY_ENV_.*"]`.
6449
+ */
6450
+ allowedEnvVars?: Regex[];
6451
+ }
6197
6452
  interface NoUnknownAttributeOptions {
6198
6453
  ignore?: string[];
6199
6454
  }
@@ -6261,7 +6516,28 @@ interface UseSortedClassesOptions {
6261
6516
  functions?: string[];
6262
6517
  }
6263
6518
  type UseSpreadOptions = {};
6519
+ type UseUniqueArgumentNamesOptions = {};
6520
+ type UseUniqueFieldDefinitionNamesOptions = {};
6264
6521
  type UseUniqueGraphqlOperationNameOptions = {};
6522
+ type UseUniqueInputFieldNamesOptions = {};
6523
+ type UseUniqueVariableNamesOptions = {};
6524
+ interface UseVueConsistentDefinePropsDeclarationOptions {
6525
+ style?: DeclarationStyle;
6526
+ }
6527
+ interface UseVueConsistentVBindStyleOptions {
6528
+ /**
6529
+ * Preferred style for `v-bind` usage: "shorthand" or "longhand".
6530
+ If omitted, shorthand is preferred.
6531
+ */
6532
+ style?: VueDirectiveStyle;
6533
+ }
6534
+ interface UseVueConsistentVOnStyleOptions {
6535
+ /**
6536
+ * Preferred style for `v-on` usage: "shorthand" or "longhand".
6537
+ If omitted, shorthand is preferred.
6538
+ */
6539
+ style?: VueDirectiveStyle2;
6540
+ }
6265
6541
  interface UseVueDefineMacrosOrderOptions {
6266
6542
  /**
6267
6543
  * The order of the Vue define macros.
@@ -6284,7 +6560,10 @@ interface UseVueMultiWordComponentNamesOptions {
6284
6560
  */
6285
6561
  ignores?: string[];
6286
6562
  }
6563
+ type UseVueVForKeyOptions = {};
6564
+ type UseVueValidTemplateRootOptions = {};
6287
6565
  type UseVueValidVBindOptions = {};
6566
+ type UseVueValidVCloakOptions = {};
6288
6567
  type UseVueValidVElseOptions = {};
6289
6568
  type UseVueValidVElseIfOptions = {};
6290
6569
  type UseVueValidVHtmlOptions = {};
@@ -6295,7 +6574,10 @@ interface UseVueValidVOnOptions {
6295
6574
  */
6296
6575
  modifiers?: string[];
6297
6576
  }
6577
+ type UseVueValidVOnceOptions = {};
6578
+ type UseVueValidVPreOptions = {};
6298
6579
  type UseVueValidVTextOptions = {};
6580
+ type UseVueVaporOptions = {};
6299
6581
  type NoAccumulatingSpreadOptions = {};
6300
6582
  type NoAwaitInLoopsOptions = {};
6301
6583
  type NoBarrelFileOptions = {};
@@ -6650,8 +6932,12 @@ while for `useState()` it would be `[1]`.
6650
6932
  */
6651
6933
  stableResult?: StableHookResult;
6652
6934
  }
6935
+ type Regex = string;
6653
6936
  type UseConsistentArrowReturnStyle = "asNeeded" | "always" | "never";
6654
6937
  type UseConsistentGraphqlDescriptionsStyle = "block" | "inline";
6938
+ type DeclarationStyle = "type" | "runtime";
6939
+ type VueDirectiveStyle = "shorthand" | "longhand";
6940
+ type VueDirectiveStyle2 = "shorthand" | "longhand";
6655
6941
  type PropertyAssignmentMode = "allow" | "deny";
6656
6942
  type Paths = string | PathOptions;
6657
6943
  type Patterns = PatternOptions;
@@ -6661,7 +6947,6 @@ type Accessibility = "noPublic" | "explicit" | "none";
6661
6947
  type ObjectPropertySyntax = "explicit" | "shorthand";
6662
6948
  type ConsistentTypeDefinition = "interface" | "type";
6663
6949
  type FilenameCases = FilenameCase[];
6664
- type Regex = string;
6665
6950
  type UseImportTypeStyle = "auto" | "inlineType" | "separatedType";
6666
6951
  interface Convention {
6667
6952
  /**
@@ -6975,6 +7260,8 @@ type Category =
6975
7260
  | "lint/correctness/useValidForDirection"
6976
7261
  | "lint/correctness/useValidTypeof"
6977
7262
  | "lint/correctness/useYield"
7263
+ | "lint/nursery/noAmbiguousAnchorText"
7264
+ | "lint/nursery/noBeforeInteractiveScriptOutsideDocument"
6978
7265
  | "lint/nursery/noColorInvalidHex"
6979
7266
  | "lint/nursery/noContinue"
6980
7267
  | "lint/nursery/noDeprecatedImports"
@@ -6988,17 +7275,22 @@ type Category =
6988
7275
  | "lint/nursery/noImportCycles"
6989
7276
  | "lint/nursery/noIncrementDecrement"
6990
7277
  | "lint/nursery/noJsxLiterals"
7278
+ | "lint/nursery/noJsxPropsBind"
6991
7279
  | "lint/nursery/noLeakedRender"
6992
7280
  | "lint/nursery/noMissingGenericFamilyKeyword"
6993
7281
  | "lint/nursery/noMisusedPromises"
7282
+ | "lint/nursery/noMultiAssign"
6994
7283
  | "lint/nursery/noMultiStr"
6995
7284
  | "lint/nursery/noNextAsyncClientComponent"
6996
7285
  | "lint/nursery/noParametersOnlyUsedInRecursion"
6997
7286
  | "lint/nursery/noProto"
6998
7287
  | "lint/nursery/noReactForwardRef"
7288
+ | "lint/nursery/noReturnAssign"
7289
+ | "lint/nursery/noScriptUrl"
6999
7290
  | "lint/nursery/noShadow"
7000
7291
  | "lint/nursery/noSyncScripts"
7001
7292
  | "lint/nursery/noTernary"
7293
+ | "lint/nursery/noUndeclaredEnvVars"
7002
7294
  | "lint/nursery/noUnknownAttribute"
7003
7295
  | "lint/nursery/noUnnecessaryConditions"
7004
7296
  | "lint/nursery/noUnresolvedImports"
@@ -7035,11 +7327,22 @@ type Category =
7035
7327
  | "lint/nursery/useRequiredScripts"
7036
7328
  | "lint/nursery/useSortedClasses"
7037
7329
  | "lint/nursery/useSpread"
7330
+ | "lint/nursery/useUniqueArgumentNames"
7331
+ | "lint/nursery/useUniqueFieldDefinitionNames"
7038
7332
  | "lint/nursery/useUniqueGraphqlOperationName"
7333
+ | "lint/nursery/useUniqueInputFieldNames"
7334
+ | "lint/nursery/useUniqueVariableNames"
7335
+ | "lint/nursery/useVueConsistentDefinePropsDeclaration"
7336
+ | "lint/nursery/useVueConsistentVBindStyle"
7337
+ | "lint/nursery/useVueConsistentVOnStyle"
7039
7338
  | "lint/nursery/useVueDefineMacrosOrder"
7040
7339
  | "lint/nursery/useVueHyphenatedAttributes"
7041
7340
  | "lint/nursery/useVueMultiWordComponentNames"
7341
+ | "lint/nursery/useVueVForKey"
7342
+ | "lint/nursery/useVueVapor"
7343
+ | "lint/nursery/useVueValidTemplateRoot"
7042
7344
  | "lint/nursery/useVueValidVBind"
7345
+ | "lint/nursery/useVueValidVCloak"
7043
7346
  | "lint/nursery/useVueValidVElse"
7044
7347
  | "lint/nursery/useVueValidVElseIf"
7045
7348
  | "lint/nursery/useVueValidVFor"
@@ -7047,6 +7350,8 @@ type Category =
7047
7350
  | "lint/nursery/useVueValidVIf"
7048
7351
  | "lint/nursery/useVueValidVModel"
7049
7352
  | "lint/nursery/useVueValidVOn"
7353
+ | "lint/nursery/useVueValidVOnce"
7354
+ | "lint/nursery/useVueValidVPre"
7050
7355
  | "lint/nursery/useVueValidVText"
7051
7356
  | "lint/performance/noAccumulatingSpread"
7052
7357
  | "lint/performance/noAwaitInLoops"
@@ -7064,7 +7369,6 @@ type Category =
7064
7369
  | "lint/security/noDangerouslySetInnerHtml"
7065
7370
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
7066
7371
  | "lint/security/noGlobalEval"
7067
- | "lint/nursery/noScriptUrl"
7068
7372
  | "lint/security/noSecrets"
7069
7373
  | "lint/style/noCommonJs"
7070
7374
  | "lint/style/noDefaultExport"
@@ -7472,7 +7776,6 @@ interface GritFileSource {
7472
7776
  variant: GritVariant;
7473
7777
  }
7474
7778
  type EmbeddingKind =
7475
- | "Vue"
7476
7779
  | "Svelte"
7477
7780
  | "None"
7478
7781
  | {
@@ -7482,6 +7785,14 @@ type EmbeddingKind =
7482
7785
  */
7483
7786
  frontmatter: boolean;
7484
7787
  };
7788
+ }
7789
+ | {
7790
+ Vue: {
7791
+ /**
7792
+ * Whether the script is inside script tag with setup attribute
7793
+ */
7794
+ setup: boolean;
7795
+ };
7485
7796
  };
7486
7797
  type Language = "javaScript" | { typeScript: { definition_file: boolean } };
7487
7798
  type ModuleKind = "script" | "module";
@@ -7584,8 +7895,11 @@ interface GetSemanticModelParams {
7584
7895
  }
7585
7896
  type GetModuleGraphParams = {};
7586
7897
  interface GetModuleGraphResult {
7587
- data: Record<string, SerializedJsModuleInfo>;
7898
+ data: Record<string, SerializedModuleInfo>;
7588
7899
  }
7900
+ type SerializedModuleInfo =
7901
+ | { js: SerializedJsModuleInfo }
7902
+ | { css: SerializedCssModuleInfo };
7589
7903
  interface SerializedJsModuleInfo {
7590
7904
  /**
7591
7905
  * Dynamic imports.
@@ -7619,6 +7933,14 @@ Maps from the local imported name to the absolute path it resolves to.
7619
7933
  */
7620
7934
  staticImports: Record<string, string>;
7621
7935
  }
7936
+ interface SerializedCssModuleInfo {
7937
+ /**
7938
+ * Map of all static imports found in the module.
7939
+
7940
+ Maps from the local imported name to the absolute path it resolves to.
7941
+ */
7942
+ imports: string[];
7943
+ }
7622
7944
  interface PullDiagnosticsParams {
7623
7945
  categories: RuleCategories;
7624
7946
  /**
@@ -7812,6 +8134,7 @@ interface DropPatternParams {
7812
8134
  }
7813
8135
 
7814
8136
 
8137
+
7815
8138
  export class DiagnosticPrinter {
7816
8139
  free(): void;
7817
8140
  [Symbol.dispose](): void;
@@ -7820,6 +8143,7 @@ export class DiagnosticPrinter {
7820
8143
  constructor(file_name: string, file_source: string);
7821
8144
  finish(): string;
7822
8145
  }
8146
+
7823
8147
  export class MemoryFileSystem {
7824
8148
  free(): void;
7825
8149
  [Symbol.dispose](): void;
@@ -7827,6 +8151,7 @@ export class MemoryFileSystem {
7827
8151
  insert(path: string, data: Uint8Array): void;
7828
8152
  remove(path: string): void;
7829
8153
  }
8154
+
7830
8155
  export class Workspace {
7831
8156
  free(): void;
7832
8157
  [Symbol.dispose](): void;
@@ -7859,6 +8184,8 @@ export class Workspace {
7859
8184
  openFile(params: OpenFileParams): OpenFileResult;
7860
8185
  }
7861
8186
 
8187
+ export function main(): void;
8188
+
7862
8189
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
7863
8190
 
7864
8191
  export interface InitOutput {
@@ -7912,6 +8239,7 @@ export interface InitOutput {
7912
8239
  }
7913
8240
 
7914
8241
  export type SyncInitInput = BufferSource | WebAssembly.Module;
8242
+
7915
8243
  /**
7916
8244
  * Instantiates the given `module`, which can either be bytes or
7917
8245
  * a precompiled `WebAssembly.Module`.
package/biome_wasm.js CHANGED
@@ -1,100 +1,15 @@
1
1
  let wasm;
2
2
 
3
- let cachedUint8ArrayMemory0 = null;
4
-
5
- function getUint8ArrayMemory0() {
6
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
7
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
8
- }
9
- return cachedUint8ArrayMemory0;
10
- }
11
-
12
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
13
-
14
- cachedTextDecoder.decode();
15
-
16
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
17
- let numBytesDecoded = 0;
18
- function decodeText(ptr, len) {
19
- numBytesDecoded += len;
20
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
21
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
22
- cachedTextDecoder.decode();
23
- numBytesDecoded = len;
24
- }
25
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
- }
27
-
28
- function getStringFromWasm0(ptr, len) {
29
- ptr = ptr >>> 0;
30
- return decodeText(ptr, len);
31
- }
32
-
33
- let WASM_VECTOR_LEN = 0;
34
-
35
- const cachedTextEncoder = new TextEncoder();
36
-
37
- if (!('encodeInto' in cachedTextEncoder)) {
38
- cachedTextEncoder.encodeInto = function (arg, view) {
39
- const buf = cachedTextEncoder.encode(arg);
40
- view.set(buf);
41
- return {
42
- read: arg.length,
43
- written: buf.length
44
- };
45
- }
46
- }
47
-
48
- function passStringToWasm0(arg, malloc, realloc) {
49
-
50
- if (realloc === undefined) {
51
- const buf = cachedTextEncoder.encode(arg);
52
- const ptr = malloc(buf.length, 1) >>> 0;
53
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
54
- WASM_VECTOR_LEN = buf.length;
55
- return ptr;
56
- }
57
-
58
- let len = arg.length;
59
- let ptr = malloc(len, 1) >>> 0;
60
-
61
- const mem = getUint8ArrayMemory0();
62
-
63
- let offset = 0;
64
-
65
- for (; offset < len; offset++) {
66
- const code = arg.charCodeAt(offset);
67
- if (code > 0x7F) break;
68
- mem[ptr + offset] = code;
69
- }
70
-
71
- if (offset !== len) {
72
- if (offset !== 0) {
73
- arg = arg.slice(offset);
74
- }
75
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
76
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
77
- const ret = cachedTextEncoder.encodeInto(arg, view);
78
-
79
- offset += ret.written;
80
- ptr = realloc(ptr, len, offset, 1) >>> 0;
81
- }
82
-
83
- WASM_VECTOR_LEN = offset;
84
- return ptr;
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_externrefs.set(idx, obj);
6
+ return idx;
85
7
  }
86
8
 
87
- let cachedDataViewMemory0 = null;
88
-
89
- function getDataViewMemory0() {
90
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
91
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
9
+ function _assertClass(instance, klass) {
10
+ if (!(instance instanceof klass)) {
11
+ throw new Error(`expected instance of ${klass.name}`);
92
12
  }
93
- return cachedDataViewMemory0;
94
- }
95
-
96
- function isLikeNone(x) {
97
- return x === undefined || x === null;
98
13
  }
99
14
 
100
15
  function debugString(val) {
@@ -162,10 +77,30 @@ function debugString(val) {
162
77
  return className;
163
78
  }
164
79
 
165
- function addToExternrefTable0(obj) {
166
- const idx = wasm.__externref_table_alloc();
167
- wasm.__wbindgen_externrefs.set(idx, obj);
168
- return idx;
80
+ function getArrayU8FromWasm0(ptr, len) {
81
+ ptr = ptr >>> 0;
82
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
83
+ }
84
+
85
+ let cachedDataViewMemory0 = null;
86
+ function getDataViewMemory0() {
87
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
88
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
89
+ }
90
+ return cachedDataViewMemory0;
91
+ }
92
+
93
+ function getStringFromWasm0(ptr, len) {
94
+ ptr = ptr >>> 0;
95
+ return decodeText(ptr, len);
96
+ }
97
+
98
+ let cachedUint8ArrayMemory0 = null;
99
+ function getUint8ArrayMemory0() {
100
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
101
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
102
+ }
103
+ return cachedUint8ArrayMemory0;
169
104
  }
170
105
 
171
106
  function handleError(f, args) {
@@ -177,9 +112,8 @@ function handleError(f, args) {
177
112
  }
178
113
  }
179
114
 
180
- function getArrayU8FromWasm0(ptr, len) {
181
- ptr = ptr >>> 0;
182
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
115
+ function isLikeNone(x) {
116
+ return x === undefined || x === null;
183
117
  }
184
118
 
185
119
  function passArray8ToWasm0(arg, malloc) {
@@ -189,8 +123,41 @@ function passArray8ToWasm0(arg, malloc) {
189
123
  return ptr;
190
124
  }
191
125
 
192
- export function main() {
193
- wasm.main();
126
+ function passStringToWasm0(arg, malloc, realloc) {
127
+ if (realloc === undefined) {
128
+ const buf = cachedTextEncoder.encode(arg);
129
+ const ptr = malloc(buf.length, 1) >>> 0;
130
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
131
+ WASM_VECTOR_LEN = buf.length;
132
+ return ptr;
133
+ }
134
+
135
+ let len = arg.length;
136
+ let ptr = malloc(len, 1) >>> 0;
137
+
138
+ const mem = getUint8ArrayMemory0();
139
+
140
+ let offset = 0;
141
+
142
+ for (; offset < len; offset++) {
143
+ const code = arg.charCodeAt(offset);
144
+ if (code > 0x7F) break;
145
+ mem[ptr + offset] = code;
146
+ }
147
+ if (offset !== len) {
148
+ if (offset !== 0) {
149
+ arg = arg.slice(offset);
150
+ }
151
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
152
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
153
+ const ret = cachedTextEncoder.encodeInto(arg, view);
154
+
155
+ offset += ret.written;
156
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
157
+ }
158
+
159
+ WASM_VECTOR_LEN = offset;
160
+ return ptr;
194
161
  }
195
162
 
196
163
  function takeFromExternrefTable0(idx) {
@@ -199,25 +166,54 @@ function takeFromExternrefTable0(idx) {
199
166
  return value;
200
167
  }
201
168
 
202
- function _assertClass(instance, klass) {
203
- if (!(instance instanceof klass)) {
204
- throw new Error(`expected instance of ${klass.name}`);
169
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
170
+ cachedTextDecoder.decode();
171
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
172
+ let numBytesDecoded = 0;
173
+ function decodeText(ptr, len) {
174
+ numBytesDecoded += len;
175
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
176
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
177
+ cachedTextDecoder.decode();
178
+ numBytesDecoded = len;
179
+ }
180
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
181
+ }
182
+
183
+ const cachedTextEncoder = new TextEncoder();
184
+
185
+ if (!('encodeInto' in cachedTextEncoder)) {
186
+ cachedTextEncoder.encodeInto = function (arg, view) {
187
+ const buf = cachedTextEncoder.encode(arg);
188
+ view.set(buf);
189
+ return {
190
+ read: arg.length,
191
+ written: buf.length
192
+ };
205
193
  }
206
194
  }
207
195
 
196
+ let WASM_VECTOR_LEN = 0;
197
+
208
198
  const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
209
199
  ? { register: () => {}, unregister: () => {} }
210
200
  : new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1));
211
201
 
212
- export class DiagnosticPrinter {
202
+ const MemoryFileSystemFinalization = (typeof FinalizationRegistry === 'undefined')
203
+ ? { register: () => {}, unregister: () => {} }
204
+ : new FinalizationRegistry(ptr => wasm.__wbg_memoryfilesystem_free(ptr >>> 0, 1));
213
205
 
206
+ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
207
+ ? { register: () => {}, unregister: () => {} }
208
+ : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
209
+
210
+ export class DiagnosticPrinter {
214
211
  __destroy_into_raw() {
215
212
  const ptr = this.__wbg_ptr;
216
213
  this.__wbg_ptr = 0;
217
214
  DiagnosticPrinterFinalization.unregister(this);
218
215
  return ptr;
219
216
  }
220
-
221
217
  free() {
222
218
  const ptr = this.__destroy_into_raw();
223
219
  wasm.__wbg_diagnosticprinter_free(ptr, 0);
@@ -279,19 +275,13 @@ export class DiagnosticPrinter {
279
275
  }
280
276
  if (Symbol.dispose) DiagnosticPrinter.prototype[Symbol.dispose] = DiagnosticPrinter.prototype.free;
281
277
 
282
- const MemoryFileSystemFinalization = (typeof FinalizationRegistry === 'undefined')
283
- ? { register: () => {}, unregister: () => {} }
284
- : new FinalizationRegistry(ptr => wasm.__wbg_memoryfilesystem_free(ptr >>> 0, 1));
285
-
286
278
  export class MemoryFileSystem {
287
-
288
279
  __destroy_into_raw() {
289
280
  const ptr = this.__wbg_ptr;
290
281
  this.__wbg_ptr = 0;
291
282
  MemoryFileSystemFinalization.unregister(this);
292
283
  return ptr;
293
284
  }
294
-
295
285
  free() {
296
286
  const ptr = this.__destroy_into_raw();
297
287
  wasm.__wbg_memoryfilesystem_free(ptr, 0);
@@ -324,12 +314,7 @@ export class MemoryFileSystem {
324
314
  }
325
315
  if (Symbol.dispose) MemoryFileSystem.prototype[Symbol.dispose] = MemoryFileSystem.prototype.free;
326
316
 
327
- const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
328
- ? { register: () => {}, unregister: () => {} }
329
- : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
330
-
331
317
  export class Workspace {
332
-
333
318
  static __wrap(ptr) {
334
319
  ptr = ptr >>> 0;
335
320
  const obj = Object.create(Workspace.prototype);
@@ -337,14 +322,12 @@ export class Workspace {
337
322
  WorkspaceFinalization.register(obj, obj.__wbg_ptr, obj);
338
323
  return obj;
339
324
  }
340
-
341
325
  __destroy_into_raw() {
342
326
  const ptr = this.__wbg_ptr;
343
327
  this.__wbg_ptr = 0;
344
328
  WorkspaceFinalization.unregister(this);
345
329
  return ptr;
346
330
  }
347
-
348
331
  free() {
349
332
  const ptr = this.__destroy_into_raw();
350
333
  wasm.__wbg_workspace_free(ptr, 0);
@@ -704,6 +687,10 @@ export class Workspace {
704
687
  }
705
688
  if (Symbol.dispose) Workspace.prototype[Symbol.dispose] = Workspace.prototype.free;
706
689
 
690
+ export function main() {
691
+ wasm.main();
692
+ }
693
+
707
694
  const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
708
695
 
709
696
  async function __wbg_load(module, imports) {
@@ -711,7 +698,6 @@ async function __wbg_load(module, imports) {
711
698
  if (typeof WebAssembly.instantiateStreaming === 'function') {
712
699
  try {
713
700
  return await WebAssembly.instantiateStreaming(module, imports);
714
-
715
701
  } catch (e) {
716
702
  const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
717
703
 
@@ -726,13 +712,11 @@ async function __wbg_load(module, imports) {
726
712
 
727
713
  const bytes = await module.arrayBuffer();
728
714
  return await WebAssembly.instantiate(bytes, imports);
729
-
730
715
  } else {
731
716
  const instance = await WebAssembly.instantiate(module, imports);
732
717
 
733
718
  if (instance instanceof WebAssembly.Instance) {
734
719
  return { instance, module };
735
-
736
720
  } else {
737
721
  return instance;
738
722
  }
@@ -742,11 +726,11 @@ async function __wbg_load(module, imports) {
742
726
  function __wbg_get_imports() {
743
727
  const imports = {};
744
728
  imports.wbg = {};
745
- imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
729
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
746
730
  const ret = Error(getStringFromWasm0(arg0, arg1));
747
731
  return ret;
748
732
  };
749
- imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
733
+ imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
750
734
  const ret = Number(arg0);
751
735
  return ret;
752
736
  };
@@ -757,64 +741,64 @@ function __wbg_get_imports() {
757
741
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
758
742
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
759
743
  };
760
- imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
744
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
761
745
  const v = arg1;
762
746
  const ret = typeof(v) === 'bigint' ? v : undefined;
763
747
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
764
748
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
765
749
  };
766
- imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
750
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
767
751
  const v = arg0;
768
752
  const ret = typeof(v) === 'boolean' ? v : undefined;
769
753
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
770
754
  };
771
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
755
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
772
756
  const ret = debugString(arg1);
773
757
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
774
758
  const len1 = WASM_VECTOR_LEN;
775
759
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
776
760
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
777
761
  };
778
- imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
762
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
779
763
  const ret = arg0 in arg1;
780
764
  return ret;
781
765
  };
782
- imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
766
+ imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
783
767
  const ret = typeof(arg0) === 'bigint';
784
768
  return ret;
785
769
  };
786
- imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
770
+ imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
787
771
  const ret = typeof(arg0) === 'function';
788
772
  return ret;
789
773
  };
790
- imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
774
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
791
775
  const val = arg0;
792
776
  const ret = typeof(val) === 'object' && val !== null;
793
777
  return ret;
794
778
  };
795
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
779
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
796
780
  const ret = typeof(arg0) === 'string';
797
781
  return ret;
798
782
  };
799
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
783
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
800
784
  const ret = arg0 === undefined;
801
785
  return ret;
802
786
  };
803
- imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
787
+ imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
804
788
  const ret = arg0 === arg1;
805
789
  return ret;
806
790
  };
807
- imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
791
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
808
792
  const ret = arg0 == arg1;
809
793
  return ret;
810
794
  };
811
- imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
795
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
812
796
  const obj = arg1;
813
797
  const ret = typeof(obj) === 'number' ? obj : undefined;
814
798
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
815
799
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
816
800
  };
817
- imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
801
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
818
802
  const obj = arg1;
819
803
  const ret = typeof(obj) === 'string' ? obj : undefined;
820
804
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -822,18 +806,18 @@ function __wbg_get_imports() {
822
806
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
823
807
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
824
808
  };
825
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
809
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
826
810
  throw new Error(getStringFromWasm0(arg0, arg1));
827
811
  };
828
- imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
812
+ imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
829
813
  const ret = arg0.call(arg1);
830
814
  return ret;
831
815
  }, arguments) };
832
- imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
816
+ imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
833
817
  const ret = arg0.done;
834
818
  return ret;
835
819
  };
836
- imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
820
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
837
821
  const ret = Object.entries(arg0);
838
822
  return ret;
839
823
  };
@@ -848,11 +832,11 @@ function __wbg_get_imports() {
848
832
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
849
833
  }
850
834
  };
851
- imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
835
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
852
836
  const ret = arg0[arg1 >>> 0];
853
837
  return ret;
854
838
  };
855
- imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
839
+ imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
856
840
  const ret = Reflect.get(arg0, arg1);
857
841
  return ret;
858
842
  }, arguments) };
@@ -860,7 +844,7 @@ function __wbg_get_imports() {
860
844
  const ret = arg0[arg1];
861
845
  return ret;
862
846
  };
863
- imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
847
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
864
848
  let result;
865
849
  try {
866
850
  result = arg0 instanceof ArrayBuffer;
@@ -870,7 +854,7 @@ function __wbg_get_imports() {
870
854
  const ret = result;
871
855
  return ret;
872
856
  };
873
- imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
857
+ imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
874
858
  let result;
875
859
  try {
876
860
  result = arg0 instanceof Map;
@@ -880,7 +864,7 @@ function __wbg_get_imports() {
880
864
  const ret = result;
881
865
  return ret;
882
866
  };
883
- imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
867
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
884
868
  let result;
885
869
  try {
886
870
  result = arg0 instanceof Uint8Array;
@@ -890,62 +874,62 @@ function __wbg_get_imports() {
890
874
  const ret = result;
891
875
  return ret;
892
876
  };
893
- imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
877
+ imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
894
878
  const ret = Array.isArray(arg0);
895
879
  return ret;
896
880
  };
897
- imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
881
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
898
882
  const ret = Number.isSafeInteger(arg0);
899
883
  return ret;
900
884
  };
901
- imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
885
+ imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
902
886
  const ret = Symbol.iterator;
903
887
  return ret;
904
888
  };
905
- imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
889
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
906
890
  const ret = arg0.length;
907
891
  return ret;
908
892
  };
909
- imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
893
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
910
894
  const ret = arg0.length;
911
895
  return ret;
912
896
  };
913
- imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
897
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
914
898
  const ret = new Object();
915
899
  return ret;
916
900
  };
917
- imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
918
- const ret = new Uint8Array(arg0);
901
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
902
+ const ret = new Array();
919
903
  return ret;
920
904
  };
921
- imports.wbg.__wbg_new_68651c719dcda04e = function() {
922
- const ret = new Map();
905
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
906
+ const ret = new Uint8Array(arg0);
923
907
  return ret;
924
908
  };
925
909
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
926
910
  const ret = new Error();
927
911
  return ret;
928
912
  };
929
- imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
930
- const ret = new Error(getStringFromWasm0(arg0, arg1));
913
+ imports.wbg.__wbg_new_b546ae120718850e = function() {
914
+ const ret = new Map();
931
915
  return ret;
932
916
  };
933
- imports.wbg.__wbg_new_e17d9f43105b08be = function() {
934
- const ret = new Array();
917
+ imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
918
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
935
919
  return ret;
936
920
  };
937
- imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
921
+ imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
938
922
  const ret = new Function(getStringFromWasm0(arg0, arg1));
939
923
  return ret;
940
924
  };
941
- imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
942
- const ret = arg0.next();
943
- return ret;
944
- }, arguments) };
945
- imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
925
+ imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
946
926
  const ret = arg0.next;
947
927
  return ret;
948
928
  };
929
+ imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
930
+ const ret = arg0.next();
931
+ return ret;
932
+ }, arguments) };
949
933
  imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
950
934
  const ret = arg0.now();
951
935
  return ret;
@@ -954,19 +938,19 @@ function __wbg_get_imports() {
954
938
  const ret = arg0.performance;
955
939
  return ret;
956
940
  };
957
- imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
941
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
958
942
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
959
943
  };
960
944
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
961
945
  arg0[arg1] = arg2;
962
946
  };
963
- imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
947
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
948
+ arg0[arg1 >>> 0] = arg2;
949
+ };
950
+ imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
964
951
  const ret = arg0.set(arg1, arg2);
965
952
  return ret;
966
953
  };
967
- imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
968
- arg0[arg1 >>> 0] = arg2;
969
- };
970
954
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
971
955
  const ret = arg1.stack;
972
956
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -974,23 +958,23 @@ function __wbg_get_imports() {
974
958
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
975
959
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
976
960
  };
977
- imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
961
+ imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
978
962
  const ret = typeof global === 'undefined' ? null : global;
979
963
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
980
964
  };
981
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
965
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
982
966
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
983
967
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
984
968
  };
985
- imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
969
+ imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
986
970
  const ret = typeof self === 'undefined' ? null : self;
987
971
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
988
972
  };
989
- imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
973
+ imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
990
974
  const ret = typeof window === 'undefined' ? null : window;
991
975
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
992
976
  };
993
- imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
977
+ imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
994
978
  const ret = arg0.value;
995
979
  return ret;
996
980
  };
@@ -1022,7 +1006,6 @@ function __wbg_get_imports() {
1022
1006
  table.set(offset + 1, null);
1023
1007
  table.set(offset + 2, true);
1024
1008
  table.set(offset + 3, false);
1025
- ;
1026
1009
  };
1027
1010
 
1028
1011
  return imports;
@@ -1052,13 +1035,10 @@ function initSync(module) {
1052
1035
  }
1053
1036
 
1054
1037
  const imports = __wbg_get_imports();
1055
-
1056
1038
  if (!(module instanceof WebAssembly.Module)) {
1057
1039
  module = new WebAssembly.Module(module);
1058
1040
  }
1059
-
1060
1041
  const instance = new WebAssembly.Instance(module, imports);
1061
-
1062
1042
  return __wbg_finalize_init(instance, module);
1063
1043
  }
1064
1044
 
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.3.9",
8
+ "version": "2.3.11",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",