@biomejs/wasm-web 2.0.0-beta → 2.0.0-beta.2

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
@@ -97,13 +97,13 @@ interface AssistConfiguration {
97
97
  */
98
98
  actions?: Actions;
99
99
  /**
100
- * Whether Biome should enable assist via LSP.
100
+ * Whether Biome should enable assist via LSP and CLI.
101
101
  */
102
102
  enabled?: Bool;
103
103
  /**
104
104
  * A list of glob patterns. Biome will include files/folders that will match these patterns.
105
105
  */
106
- includes?: Glob[];
106
+ includes?: NormalizedGlob[];
107
107
  }
108
108
  interface CssConfiguration {
109
109
  /**
@@ -135,7 +135,7 @@ interface FilesConfiguration {
135
135
  /**
136
136
  * A list of glob patterns. Biome will handle only those files/folders that will match these patterns.
137
137
  */
138
- includes?: Glob[];
138
+ includes?: NormalizedGlob[];
139
139
  /**
140
140
  * The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB
141
141
  */
@@ -166,7 +166,7 @@ interface FormatterConfiguration {
166
166
  /**
167
167
  * A list of glob patterns. The formatter will include files/folders that will match these patterns.
168
168
  */
169
- includes?: Glob[];
169
+ includes?: NormalizedGlob[];
170
170
  /**
171
171
  * The indent style.
172
172
  */
@@ -283,7 +283,7 @@ interface LinterConfiguration {
283
283
  /**
284
284
  * A list of glob patterns. The analyzer will handle only those files/folders that will match these patterns.
285
285
  */
286
- includes?: Glob[];
286
+ includes?: NormalizedGlob[];
287
287
  /**
288
288
  * List of rules
289
289
  */
@@ -323,7 +323,7 @@ interface Actions {
323
323
  recommended?: boolean;
324
324
  source?: Source;
325
325
  }
326
- type Glob = string;
326
+ type NormalizedGlob = Glob;
327
327
  interface CssAssistConfiguration {
328
328
  /**
329
329
  * Control the assist for CSS files.
@@ -490,6 +490,10 @@ interface HtmlFormatterConfiguration {
490
490
  * What's the max width of a line applied to HTML (and its super languages) files. Defaults to 80.
491
491
  */
492
492
  lineWidth?: LineWidth;
493
+ /**
494
+ * Whether void elements should be self-closed. Defaults to never.
495
+ */
496
+ selfCloseVoidElements?: SelfCloseVoidElements;
493
497
  /**
494
498
  * Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to "css".
495
499
  */
@@ -726,15 +730,17 @@ interface Source {
726
730
  */
727
731
  useSortedProperties?: RuleAssistConfiguration_for_Null;
728
732
  }
733
+ type Glob = string;
729
734
  type QuoteStyle = "double" | "single";
730
735
  type IndentScriptAndStyle = boolean;
736
+ type SelfCloseVoidElements = "never" | "always";
731
737
  type WhitespaceSensitivity = "css" | "strict" | "ignore";
732
738
  type ArrowParentheses = "always" | "asNeeded";
733
739
  type QuoteProperties = "asNeeded" | "preserve";
734
740
  type Semicolons = "always" | "asNeeded";
735
741
  type TrailingCommas = "all" | "es5" | "none";
736
742
  type TrailingCommas2 = "none" | "all";
737
- type RuleDomain = "react" | "test" | "solid" | "next";
743
+ type RuleDomain = "react" | "test" | "solid" | "next" | "project";
738
744
  type RuleDomainValue = "all" | "none" | "recommended";
739
745
  type SeverityOrGroup_for_A11y = GroupPlainConfiguration | A11y;
740
746
  type SeverityOrGroup_for_Complexity = GroupPlainConfiguration | Complexity;
@@ -836,10 +842,6 @@ interface A11y {
836
842
  * Enforce that autoFocus prop is not used on elements.
837
843
  */
838
844
  noAutofocus?: RuleFixConfiguration_for_Null;
839
- /**
840
- * Disallow target="_blank" attribute without rel="noreferrer"
841
- */
842
- noBlankTarget?: RuleFixConfiguration_for_AllowDomainOptions;
843
845
  /**
844
846
  * Enforces that no distracting elements are used.
845
847
  */
@@ -1185,7 +1187,7 @@ interface Correctness {
1185
1187
  */
1186
1188
  noPrecisionLoss?: RuleConfiguration_for_Null;
1187
1189
  /**
1188
- * Restricts imports of private exports.
1190
+ * Restrict imports of private exports.
1189
1191
  */
1190
1192
  noPrivateImports?: RuleConfiguration_for_NoPrivateImportsOptions;
1191
1193
  /**
@@ -1406,6 +1408,10 @@ interface Nursery {
1406
1408
  * Prevent import cycles.
1407
1409
  */
1408
1410
  noImportCycles?: RuleConfiguration_for_Null;
1411
+ /**
1412
+ * Disallow the use of the !important style.
1413
+ */
1414
+ noImportantStyles?: RuleFixConfiguration_for_Null;
1409
1415
  /**
1410
1416
  * Disallows the use of irregular whitespace characters.
1411
1417
  */
@@ -1434,6 +1440,10 @@ interface Nursery {
1434
1440
  * Disallow the use of process global.
1435
1441
  */
1436
1442
  noProcessGlobal?: RuleFixConfiguration_for_Null;
1443
+ /**
1444
+ * Disallow the use of configured elements.
1445
+ */
1446
+ noRestrictedElements?: RuleConfiguration_for_NoRestrictedElementsOptions;
1437
1447
  /**
1438
1448
  * Disallow specified modules when loaded by import or require.
1439
1449
  */
@@ -1478,6 +1488,10 @@ interface Nursery {
1478
1488
  * Disallow unknown type selectors.
1479
1489
  */
1480
1490
  noUnknownTypeSelector?: RuleConfiguration_for_Null;
1491
+ /**
1492
+ * Warn when importing non-existing exports.
1493
+ */
1494
+ noUnresolvedImports?: RuleConfiguration_for_Null;
1481
1495
  /**
1482
1496
  * Prevent duplicate polyfills from Polyfill.io.
1483
1497
  */
@@ -1537,13 +1551,13 @@ interface Nursery {
1537
1551
  /**
1538
1552
  * Require the consistent declaration of object literals. Defaults to explicit definitions.
1539
1553
  */
1540
- useConsistentObjectDefinition?: RuleConfiguration_for_UseConsistentObjectDefinitionOptions;
1554
+ useConsistentObjectDefinition?: RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions;
1541
1555
  /**
1542
1556
  * Require specifying the reason argument when using @deprecated directive
1543
1557
  */
1544
1558
  useDeprecatedReason?: RuleConfiguration_for_Null;
1545
1559
  /**
1546
- * Require explicit return types on functions and class methods.
1560
+ * Enforce types in functions, methods, variables, and parameters.
1547
1561
  */
1548
1562
  useExplicitType?: RuleConfiguration_for_Null;
1549
1563
  /**
@@ -1566,6 +1580,10 @@ interface Nursery {
1566
1580
  * Require for-in loops to include an if statement.
1567
1581
  */
1568
1582
  useGuardForIn?: RuleConfiguration_for_Null;
1583
+ /**
1584
+ * Enforce consistent return values in iterable callbacks.
1585
+ */
1586
+ useIterableCallbackReturn?: RuleConfiguration_for_Null;
1569
1587
  /**
1570
1588
  * Enforce specifying the name of GraphQL operations.
1571
1589
  */
@@ -1574,6 +1592,10 @@ interface Nursery {
1574
1592
  * Validates that all enum values are capitalized.
1575
1593
  */
1576
1594
  useNamingConvention?: RuleConfiguration_for_Null;
1595
+ /**
1596
+ * Enforce the use of numeric separators in numeric literals.
1597
+ */
1598
+ useNumericSeparators?: RuleFixConfiguration_for_Null;
1577
1599
  /**
1578
1600
  * Enforce the consistent use of the radix argument when using parseInt().
1579
1601
  */
@@ -1626,6 +1648,10 @@ interface Performance {
1626
1648
  useTopLevelRegex?: RuleConfiguration_for_Null;
1627
1649
  }
1628
1650
  interface Security {
1651
+ /**
1652
+ * Disallow target="_blank" attribute without rel="noopener".
1653
+ */
1654
+ noBlankTarget?: RuleFixConfiguration_for_NoBlankTargetOptions;
1629
1655
  /**
1630
1656
  * Prevent the usage of dangerous JSX props
1631
1657
  */
@@ -1779,7 +1805,7 @@ interface Style {
1779
1805
  /**
1780
1806
  * Promotes the use of import type for types.
1781
1807
  */
1782
- useImportType?: RuleFixConfiguration_for_Null;
1808
+ useImportType?: RuleFixConfiguration_for_ImportTypeOptions;
1783
1809
  /**
1784
1810
  * Require all enum members to be literal values.
1785
1811
  */
@@ -2139,9 +2165,6 @@ interface RuleAssistWithOptions_for_Null {
2139
2165
  type RuleFixConfiguration_for_Null =
2140
2166
  | RulePlainConfiguration
2141
2167
  | RuleWithFixOptions_for_Null;
2142
- type RuleFixConfiguration_for_AllowDomainOptions =
2143
- | RulePlainConfiguration
2144
- | RuleWithFixOptions_for_AllowDomainOptions;
2145
2168
  type RuleConfiguration_for_NoLabelWithoutControlOptions =
2146
2169
  | RulePlainConfiguration
2147
2170
  | RuleWithOptions_for_NoLabelWithoutControlOptions;
@@ -2181,6 +2204,9 @@ type RuleFixConfiguration_for_UseImportExtensionsOptions =
2181
2204
  type RuleConfiguration_for_NoBitwiseOperatorsOptions =
2182
2205
  | RulePlainConfiguration
2183
2206
  | RuleWithOptions_for_NoBitwiseOperatorsOptions;
2207
+ type RuleConfiguration_for_NoRestrictedElementsOptions =
2208
+ | RulePlainConfiguration
2209
+ | RuleWithOptions_for_NoRestrictedElementsOptions;
2184
2210
  type RuleConfiguration_for_RestrictedImportsOptions =
2185
2211
  | RulePlainConfiguration
2186
2212
  | RuleWithOptions_for_RestrictedImportsOptions;
@@ -2196,15 +2222,18 @@ type RuleConfiguration_for_UseComponentExportOnlyModulesOptions =
2196
2222
  type RuleConfiguration_for_ConsistentMemberAccessibilityOptions =
2197
2223
  | RulePlainConfiguration
2198
2224
  | RuleWithOptions_for_ConsistentMemberAccessibilityOptions;
2199
- type RuleConfiguration_for_UseConsistentObjectDefinitionOptions =
2225
+ type RuleFixConfiguration_for_UseConsistentObjectDefinitionOptions =
2200
2226
  | RulePlainConfiguration
2201
- | RuleWithOptions_for_UseConsistentObjectDefinitionOptions;
2227
+ | RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions;
2202
2228
  type RuleFixConfiguration_for_UtilityClassSortingOptions =
2203
2229
  | RulePlainConfiguration
2204
2230
  | RuleWithFixOptions_for_UtilityClassSortingOptions;
2205
2231
  type RuleConfiguration_for_UseValidAutocompleteOptions =
2206
2232
  | RulePlainConfiguration
2207
2233
  | RuleWithOptions_for_UseValidAutocompleteOptions;
2234
+ type RuleFixConfiguration_for_NoBlankTargetOptions =
2235
+ | RulePlainConfiguration
2236
+ | RuleWithFixOptions_for_NoBlankTargetOptions;
2208
2237
  type RuleConfiguration_for_RestrictedGlobalsOptions =
2209
2238
  | RulePlainConfiguration
2210
2239
  | RuleWithOptions_for_RestrictedGlobalsOptions;
@@ -2214,6 +2243,9 @@ type RuleFixConfiguration_for_ConsistentArrayTypeOptions =
2214
2243
  type RuleConfiguration_for_FilenamingConventionOptions =
2215
2244
  | RulePlainConfiguration
2216
2245
  | RuleWithOptions_for_FilenamingConventionOptions;
2246
+ type RuleFixConfiguration_for_ImportTypeOptions =
2247
+ | RulePlainConfiguration
2248
+ | RuleWithFixOptions_for_ImportTypeOptions;
2217
2249
  type RuleFixConfiguration_for_NamingConventionOptions =
2218
2250
  | RulePlainConfiguration
2219
2251
  | RuleWithFixOptions_for_NamingConventionOptions;
@@ -2247,20 +2279,6 @@ interface RuleWithFixOptions_for_Null {
2247
2279
  */
2248
2280
  options: null;
2249
2281
  }
2250
- interface RuleWithFixOptions_for_AllowDomainOptions {
2251
- /**
2252
- * The kind of the code actions emitted by the rule
2253
- */
2254
- fix?: FixKind;
2255
- /**
2256
- * The severity of the emitted diagnostics by the rule
2257
- */
2258
- level: RulePlainConfiguration;
2259
- /**
2260
- * Rule's options
2261
- */
2262
- options: AllowDomainOptions;
2263
- }
2264
2282
  interface RuleWithOptions_for_NoLabelWithoutControlOptions {
2265
2283
  /**
2266
2284
  * The severity of the emitted diagnostics by the rule
@@ -2407,6 +2425,16 @@ interface RuleWithOptions_for_NoBitwiseOperatorsOptions {
2407
2425
  */
2408
2426
  options: NoBitwiseOperatorsOptions;
2409
2427
  }
2428
+ interface RuleWithOptions_for_NoRestrictedElementsOptions {
2429
+ /**
2430
+ * The severity of the emitted diagnostics by the rule
2431
+ */
2432
+ level: RulePlainConfiguration;
2433
+ /**
2434
+ * Rule's options
2435
+ */
2436
+ options: NoRestrictedElementsOptions;
2437
+ }
2410
2438
  interface RuleWithOptions_for_RestrictedImportsOptions {
2411
2439
  /**
2412
2440
  * The severity of the emitted diagnostics by the rule
@@ -2461,7 +2489,11 @@ interface RuleWithOptions_for_ConsistentMemberAccessibilityOptions {
2461
2489
  */
2462
2490
  options: ConsistentMemberAccessibilityOptions;
2463
2491
  }
2464
- interface RuleWithOptions_for_UseConsistentObjectDefinitionOptions {
2492
+ interface RuleWithFixOptions_for_UseConsistentObjectDefinitionOptions {
2493
+ /**
2494
+ * The kind of the code actions emitted by the rule
2495
+ */
2496
+ fix?: FixKind;
2465
2497
  /**
2466
2498
  * The severity of the emitted diagnostics by the rule
2467
2499
  */
@@ -2495,6 +2527,20 @@ interface RuleWithOptions_for_UseValidAutocompleteOptions {
2495
2527
  */
2496
2528
  options: UseValidAutocompleteOptions;
2497
2529
  }
2530
+ interface RuleWithFixOptions_for_NoBlankTargetOptions {
2531
+ /**
2532
+ * The kind of the code actions emitted by the rule
2533
+ */
2534
+ fix?: FixKind;
2535
+ /**
2536
+ * The severity of the emitted diagnostics by the rule
2537
+ */
2538
+ level: RulePlainConfiguration;
2539
+ /**
2540
+ * Rule's options
2541
+ */
2542
+ options: NoBlankTargetOptions;
2543
+ }
2498
2544
  interface RuleWithOptions_for_RestrictedGlobalsOptions {
2499
2545
  /**
2500
2546
  * The severity of the emitted diagnostics by the rule
@@ -2529,6 +2575,20 @@ interface RuleWithOptions_for_FilenamingConventionOptions {
2529
2575
  */
2530
2576
  options: FilenamingConventionOptions;
2531
2577
  }
2578
+ interface RuleWithFixOptions_for_ImportTypeOptions {
2579
+ /**
2580
+ * The kind of the code actions emitted by the rule
2581
+ */
2582
+ fix?: FixKind;
2583
+ /**
2584
+ * The severity of the emitted diagnostics by the rule
2585
+ */
2586
+ level: RulePlainConfiguration;
2587
+ /**
2588
+ * Rule's options
2589
+ */
2590
+ options: ImportTypeOptions;
2591
+ }
2532
2592
  interface RuleWithFixOptions_for_NamingConventionOptions {
2533
2593
  /**
2534
2594
  * The kind of the code actions emitted by the rule
@@ -2597,12 +2657,6 @@ interface RuleWithFixOptions_for_NoDoubleEqualsOptions {
2597
2657
  }
2598
2658
  type ImportGroups = ImportGroup[];
2599
2659
  type FixKind = "none" | "safe" | "unsafe";
2600
- interface AllowDomainOptions {
2601
- /**
2602
- * List of domains to allow `target="_blank"` without `rel="noreferrer"`
2603
- */
2604
- allowDomains: string[];
2605
- }
2606
2660
  interface NoLabelWithoutControlOptions {
2607
2661
  /**
2608
2662
  * Array of component names that should be considered the same as an `input` element.
@@ -2694,6 +2748,12 @@ interface NoBitwiseOperatorsOptions {
2694
2748
  */
2695
2749
  allow: string[];
2696
2750
  }
2751
+ interface NoRestrictedElementsOptions {
2752
+ /**
2753
+ * Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.
2754
+ */
2755
+ elements: CustomRestrictedElements;
2756
+ }
2697
2757
  interface RestrictedImportsOptions {
2698
2758
  /**
2699
2759
  * A list of import paths that should trigger the rule.
@@ -2744,11 +2804,21 @@ interface UseValidAutocompleteOptions {
2744
2804
  */
2745
2805
  inputComponents?: string[];
2746
2806
  }
2807
+ interface NoBlankTargetOptions {
2808
+ /**
2809
+ * List of domains where `target="_blank"` is allowed without `rel="noopener"`.
2810
+ */
2811
+ allowDomains: string[];
2812
+ /**
2813
+ * Whether `noreferrer` is allowed in addition to `noopener`.
2814
+ */
2815
+ allowNoReferrer?: boolean;
2816
+ }
2747
2817
  interface RestrictedGlobalsOptions {
2748
2818
  /**
2749
2819
  * A list of names that should trigger the rule
2750
2820
  */
2751
- deniedGlobals: string[];
2821
+ deniedGlobals: Record<string, string>;
2752
2822
  }
2753
2823
  interface ConsistentArrayTypeOptions {
2754
2824
  syntax?: ConsistentArrayType;
@@ -2771,6 +2841,9 @@ interface FilenamingConventionOptions {
2771
2841
  */
2772
2842
  strictCase: boolean;
2773
2843
  }
2844
+ interface ImportTypeOptions {
2845
+ style: Style2;
2846
+ }
2774
2847
  interface NamingConventionOptions {
2775
2848
  /**
2776
2849
  * Custom conventions.
@@ -2808,10 +2881,7 @@ If `false`, no such exception will be made.
2808
2881
  */
2809
2882
  ignoreNull: boolean;
2810
2883
  }
2811
- type ImportGroup =
2812
- | PredefinedImportGroup
2813
- | ImportSourceGlob
2814
- | ImportSourceGlob[];
2884
+ type ImportGroup = null | GroupMatcher | GroupMatcher[];
2815
2885
  type Visibility = "public" | "package" | "private";
2816
2886
  type DependencyAvailability = boolean | string[];
2817
2887
  interface Hook {
@@ -2840,6 +2910,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
2840
2910
  */
2841
2911
  stableResult?: StableHookResult;
2842
2912
  }
2913
+ type CustomRestrictedElements = Record<string, string>;
2843
2914
  type CustomRestrictedImport = string | CustomRestrictedImportOptions;
2844
2915
  type CustomRestrictedType = string | CustomRestrictedTypeOptions;
2845
2916
  type Accessibility = "noPublic" | "explicit" | "none";
@@ -2847,6 +2918,7 @@ type ObjectPropertySyntax = "explicit" | "shorthand";
2847
2918
  type ConsistentArrayType = "shorthand" | "generic";
2848
2919
  type FilenameCases = FilenameCase[];
2849
2920
  type Regex = string;
2921
+ type Style2 = "auto" | "inlineType" | "separatedType";
2850
2922
  interface Convention {
2851
2923
  /**
2852
2924
  * String cases to enforce
@@ -2861,16 +2933,7 @@ interface Convention {
2861
2933
  */
2862
2934
  selector: Selector;
2863
2935
  }
2864
- type PredefinedImportGroup =
2865
- | ":BLANK_LINE:"
2866
- | ":ALIAS:"
2867
- | ":BUN:"
2868
- | ":NODE:"
2869
- | ":PACKAGE:"
2870
- | ":PACKAGE_WITH_PROTOCOL:"
2871
- | ":PATH:"
2872
- | ":URL:";
2873
- type ImportSourceGlob = Glob;
2936
+ type GroupMatcher = ImportMatcher | SourceMatcher;
2874
2937
  type StableHookResult = boolean | number[];
2875
2938
  interface CustomRestrictedImportOptions {
2876
2939
  /**
@@ -2911,6 +2974,11 @@ interface Selector {
2911
2974
  */
2912
2975
  scope: Scope;
2913
2976
  }
2977
+ interface ImportMatcher {
2978
+ source?: SourcesMatcher;
2979
+ type?: boolean;
2980
+ }
2981
+ type SourceMatcher = PredefinedGroupMatcher | ImportSourceGlob;
2914
2982
  type Format = "camelCase" | "CONSTANT_CASE" | "PascalCase" | "snake_case";
2915
2983
  type Kind =
2916
2984
  | "class"
@@ -2953,6 +3021,9 @@ type Kind =
2953
3021
  | "typeMethod";
2954
3022
  type Modifiers = RestrictedModifier[];
2955
3023
  type Scope = "any" | "global";
3024
+ type SourcesMatcher = SourceMatcher | SourceMatcher[];
3025
+ type PredefinedGroupMatcher = string;
3026
+ type ImportSourceGlob = Glob;
2956
3027
  type RestrictedModifier =
2957
3028
  | "abstract"
2958
3029
  | "private"
@@ -2981,7 +3052,6 @@ type Category =
2981
3052
  | "lint/a11y/noAriaHiddenOnFocusable"
2982
3053
  | "lint/a11y/noAriaUnsupportedElements"
2983
3054
  | "lint/a11y/noAutofocus"
2984
- | "lint/a11y/noBlankTarget"
2985
3055
  | "lint/a11y/noDistractingElements"
2986
3056
  | "lint/a11y/noHeaderScope"
2987
3057
  | "lint/a11y/noInteractiveElementToNoninteractiveRole"
@@ -3011,13 +3081,13 @@ type Category =
3011
3081
  | "lint/a11y/useValidAriaRole"
3012
3082
  | "lint/a11y/useValidAriaValues"
3013
3083
  | "lint/a11y/useValidLang"
3084
+ | "lint/complexity/noAdjacentSpacesInRegex"
3014
3085
  | "lint/complexity/noBannedTypes"
3015
3086
  | "lint/complexity/noEmptyTypeParameters"
3016
3087
  | "lint/complexity/noExcessiveCognitiveComplexity"
3017
3088
  | "lint/complexity/noExcessiveNestedTestSuites"
3018
3089
  | "lint/complexity/noExtraBooleanCast"
3019
3090
  | "lint/complexity/noForEach"
3020
- | "lint/complexity/noAdjacentSpacesInRegex"
3021
3091
  | "lint/complexity/noStaticOnlyClass"
3022
3092
  | "lint/complexity/noThisInStatic"
3023
3093
  | "lint/complexity/noUselessCatch"
@@ -3078,7 +3148,6 @@ type Category =
3078
3148
  | "lint/correctness/noUnknownProperty"
3079
3149
  | "lint/correctness/noUnknownUnit"
3080
3150
  | "lint/correctness/noUnmatchableAnbSelector"
3081
- | "lint/correctness/noUselessContinue"
3082
3151
  | "lint/correctness/noUnreachable"
3083
3152
  | "lint/correctness/noUnreachableSuper"
3084
3153
  | "lint/correctness/noUnsafeFinally"
@@ -3088,6 +3157,7 @@ type Category =
3088
3157
  | "lint/correctness/noUnusedLabels"
3089
3158
  | "lint/correctness/noUnusedPrivateClassMembers"
3090
3159
  | "lint/correctness/noUnusedVariables"
3160
+ | "lint/correctness/noUselessContinue"
3091
3161
  | "lint/correctness/noVoidElementsWithChildren"
3092
3162
  | "lint/correctness/noVoidTypeReturn"
3093
3163
  | "lint/correctness/useArrayLiterals"
@@ -3113,8 +3183,8 @@ type Category =
3113
3183
  | "lint/nursery/noDuplicateAtImportRules"
3114
3184
  | "lint/nursery/noDuplicateCustomProperties"
3115
3185
  | "lint/nursery/noDuplicateElseIf"
3116
- | "lint/nursery/noDuplicateProperties"
3117
3186
  | "lint/nursery/noDuplicateFields"
3187
+ | "lint/nursery/noDuplicateProperties"
3118
3188
  | "lint/nursery/noDynamicNamespaceImportAccess"
3119
3189
  | "lint/nursery/noEnum"
3120
3190
  | "lint/nursery/noExportedImports"
@@ -3125,6 +3195,7 @@ type Category =
3125
3195
  | "lint/nursery/noImgElement"
3126
3196
  | "lint/nursery/noImportCycles"
3127
3197
  | "lint/nursery/noImportantInKeyframe"
3198
+ | "lint/nursery/noImportantStyles"
3128
3199
  | "lint/nursery/noInvalidDirectionInLinearGradient"
3129
3200
  | "lint/nursery/noInvalidGridAreas"
3130
3201
  | "lint/nursery/noInvalidPositionAtImportRule"
@@ -3137,6 +3208,7 @@ type Category =
3137
3208
  | "lint/nursery/noProcessEnv"
3138
3209
  | "lint/nursery/noProcessGlobal"
3139
3210
  | "lint/nursery/noReactSpecificProps"
3211
+ | "lint/nursery/noRestrictedElements"
3140
3212
  | "lint/nursery/noRestrictedImports"
3141
3213
  | "lint/nursery/noRestrictedTypes"
3142
3214
  | "lint/nursery/noSecrets"
@@ -3157,6 +3229,7 @@ type Category =
3157
3229
  | "lint/nursery/noUnknownTypeSelector"
3158
3230
  | "lint/nursery/noUnknownUnit"
3159
3231
  | "lint/nursery/noUnmatchableAnbSelector"
3232
+ | "lint/nursery/noUnresolvedImports"
3160
3233
  | "lint/nursery/noUnusedFunctionParameters"
3161
3234
  | "lint/nursery/noUnwantedPolyfillio"
3162
3235
  | "lint/nursery/noUselessEscapeInRegex"
@@ -3182,9 +3255,11 @@ type Category =
3182
3255
  | "lint/nursery/useGoogleFontPreconnect"
3183
3256
  | "lint/nursery/useGuardForIn"
3184
3257
  | "lint/nursery/useImportRestrictions"
3258
+ | "lint/nursery/useIterableCallbackReturn"
3185
3259
  | "lint/nursery/useJsxCurlyBraceConvention"
3186
3260
  | "lint/nursery/useNamedOperation"
3187
3261
  | "lint/nursery/useNamingConvention"
3262
+ | "lint/nursery/useNumericSeparators"
3188
3263
  | "lint/nursery/useParseIntRadix"
3189
3264
  | "lint/nursery/useSortedClasses"
3190
3265
  | "lint/nursery/useSortedProperties"
@@ -3197,6 +3272,7 @@ type Category =
3197
3272
  | "lint/performance/noDelete"
3198
3273
  | "lint/performance/noReExportAll"
3199
3274
  | "lint/performance/useTopLevelRegex"
3275
+ | "lint/security/noBlankTarget"
3200
3276
  | "lint/security/noDangerouslySetInnerHtml"
3201
3277
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
3202
3278
  | "lint/security/noGlobalEval"
@@ -3316,6 +3392,9 @@ type Category =
3316
3392
  | "lint/suspicious/useNumberToFixedDigitsArgument"
3317
3393
  | "lint/suspicious/useValidTypeof"
3318
3394
  | "assist/source/useSortedKeys"
3395
+ | "assist/source/useSortedProperties"
3396
+ | "assist/source/useSortedAttributes"
3397
+ | "assist/source/organizeImports"
3319
3398
  | "syntax/correctness/noTypeOnlyImportAttributes"
3320
3399
  | "syntax/correctness/noSuperWithoutExtends"
3321
3400
  | "syntax/correctness/noInitializerWithDefinite"
@@ -3337,8 +3416,7 @@ type Category =
3337
3416
  | "internalError/panic"
3338
3417
  | "reporter/parse"
3339
3418
  | "reporter/format"
3340
- | "reporter/assist"
3341
- | "reporter/linter"
3419
+ | "reporter/violations"
3342
3420
  | "parse"
3343
3421
  | "lint"
3344
3422
  | "lint/a11y"
@@ -3353,6 +3431,7 @@ type Category =
3353
3431
  | "suppressions/parse"
3354
3432
  | "suppressions/unknownGroup"
3355
3433
  | "suppressions/unknownRule"
3434
+ | "suppressions/unknownAction"
3356
3435
  | "suppressions/unused"
3357
3436
  | "suppressions/incorrect"
3358
3437
  | "args/fileNotFound"
@@ -3537,10 +3616,13 @@ interface PullDiagnosticsParams {
3537
3616
  * Rules to apply on top of the configuration
3538
3617
  */
3539
3618
  enabledRules?: RuleCode[];
3540
- maxDiagnostics: number;
3541
3619
  only?: RuleCode[];
3542
3620
  path: BiomePath;
3543
3621
  projectKey: ProjectKey;
3622
+ /**
3623
+ * When `false` the diagnostics, don't have code frames of the code actions (fixes, suppressions, etc.)
3624
+ */
3625
+ pullCodeActions: boolean;
3544
3626
  skip?: RuleCode[];
3545
3627
  }
3546
3628
  type RuleCategories = RuleCategory[];
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.0.0-beta",
8
+ "version": "2.0.0-beta.2",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",