@biomejs/wasm-web 1.8.0 → 1.8.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 +60 -9
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ interface PartialFormatterConfiguration {
|
|
|
126
126
|
/**
|
|
127
127
|
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
|
|
128
128
|
*/
|
|
129
|
-
indentSize?:
|
|
129
|
+
indentSize?: IndentWidth;
|
|
130
130
|
/**
|
|
131
131
|
* The indent style.
|
|
132
132
|
*/
|
|
@@ -134,7 +134,7 @@ interface PartialFormatterConfiguration {
|
|
|
134
134
|
/**
|
|
135
135
|
* The size of the indentation, 2 by default
|
|
136
136
|
*/
|
|
137
|
-
indentWidth?:
|
|
137
|
+
indentWidth?: IndentWidth;
|
|
138
138
|
/**
|
|
139
139
|
* The type of line ending.
|
|
140
140
|
*/
|
|
@@ -252,7 +252,7 @@ interface PartialCssFormatter {
|
|
|
252
252
|
/**
|
|
253
253
|
* The size of the indentation applied to CSS (and its super languages) files. Default to 2.
|
|
254
254
|
*/
|
|
255
|
-
indentWidth?:
|
|
255
|
+
indentWidth?: IndentWidth;
|
|
256
256
|
/**
|
|
257
257
|
* The type of line ending applied to CSS (and its super languages) files.
|
|
258
258
|
*/
|
|
@@ -283,6 +283,7 @@ interface PartialCssParser {
|
|
|
283
283
|
cssModules?: boolean;
|
|
284
284
|
}
|
|
285
285
|
type AttributePosition = "auto" | "multiline";
|
|
286
|
+
type IndentWidth = number;
|
|
286
287
|
type PlainIndentStyle = "tab" | "space";
|
|
287
288
|
type LineEnding = "lf" | "crlf" | "cr";
|
|
288
289
|
type LineWidth = number;
|
|
@@ -310,7 +311,7 @@ interface PartialJavascriptFormatter {
|
|
|
310
311
|
/**
|
|
311
312
|
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
|
|
312
313
|
*/
|
|
313
|
-
indentSize?:
|
|
314
|
+
indentSize?: IndentWidth;
|
|
314
315
|
/**
|
|
315
316
|
* The indent style applied to JavaScript (and its super languages) files.
|
|
316
317
|
*/
|
|
@@ -318,7 +319,7 @@ interface PartialJavascriptFormatter {
|
|
|
318
319
|
/**
|
|
319
320
|
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
|
|
320
321
|
*/
|
|
321
|
-
indentWidth?:
|
|
322
|
+
indentWidth?: IndentWidth;
|
|
322
323
|
/**
|
|
323
324
|
* The type of quotes used in JSX. Defaults to double.
|
|
324
325
|
*/
|
|
@@ -376,7 +377,7 @@ interface PartialJsonFormatter {
|
|
|
376
377
|
/**
|
|
377
378
|
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
378
379
|
*/
|
|
379
|
-
indentSize?:
|
|
380
|
+
indentSize?: IndentWidth;
|
|
380
381
|
/**
|
|
381
382
|
* The indent style applied to JSON (and its super languages) files.
|
|
382
383
|
*/
|
|
@@ -384,7 +385,7 @@ interface PartialJsonFormatter {
|
|
|
384
385
|
/**
|
|
385
386
|
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
386
387
|
*/
|
|
387
|
-
indentWidth?:
|
|
388
|
+
indentWidth?: IndentWidth;
|
|
388
389
|
/**
|
|
389
390
|
* The type of line ending applied to JSON (and its super languages) files.
|
|
390
391
|
*/
|
|
@@ -948,6 +949,10 @@ interface Nursery {
|
|
|
948
949
|
* Disallow invalid !important within keyframe declarations
|
|
949
950
|
*/
|
|
950
951
|
noImportantInKeyframe?: RuleConfiguration_for_Null;
|
|
952
|
+
/**
|
|
953
|
+
* Disallow non-standard direction values for linear gradient functions.
|
|
954
|
+
*/
|
|
955
|
+
noInvalidDirectionInLinearGradient?: RuleConfiguration_for_Null;
|
|
951
956
|
/**
|
|
952
957
|
* Disallow the use of @import at-rules in invalid positions.
|
|
953
958
|
*/
|
|
@@ -968,6 +973,14 @@ interface Nursery {
|
|
|
968
973
|
* Disallow specified modules when loaded by import or require.
|
|
969
974
|
*/
|
|
970
975
|
noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
|
|
976
|
+
/**
|
|
977
|
+
* Disallow shorthand properties that override related longhand properties.
|
|
978
|
+
*/
|
|
979
|
+
noShorthandPropertyOverrides?: RuleConfiguration_for_Null;
|
|
980
|
+
/**
|
|
981
|
+
* Enforce the use of String.slice() over String.substr() and String.substring().
|
|
982
|
+
*/
|
|
983
|
+
noSubstr?: RuleFixConfiguration_for_Null;
|
|
971
984
|
/**
|
|
972
985
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
973
986
|
*/
|
|
@@ -984,6 +997,10 @@ interface Nursery {
|
|
|
984
997
|
* Disallow unknown properties.
|
|
985
998
|
*/
|
|
986
999
|
noUnknownProperty?: RuleConfiguration_for_Null;
|
|
1000
|
+
/**
|
|
1001
|
+
* Disallow unknown pseudo-class selectors.
|
|
1002
|
+
*/
|
|
1003
|
+
noUnknownPseudoClassSelector?: RuleConfiguration_for_Null;
|
|
987
1004
|
/**
|
|
988
1005
|
* Disallow unknown pseudo-element selectors.
|
|
989
1006
|
*/
|
|
@@ -1024,6 +1041,10 @@ interface Nursery {
|
|
|
1024
1041
|
* Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
|
|
1025
1042
|
*/
|
|
1026
1043
|
useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
|
|
1044
|
+
/**
|
|
1045
|
+
* Disallows invalid named grid areas in CSS Grid Layouts.
|
|
1046
|
+
*/
|
|
1047
|
+
useConsistentGridAreas?: RuleConfiguration_for_Null;
|
|
1027
1048
|
/**
|
|
1028
1049
|
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
1029
1050
|
*/
|
|
@@ -1080,6 +1101,10 @@ interface Nursery {
|
|
|
1080
1101
|
* Require regex literals to be declared at the top level.
|
|
1081
1102
|
*/
|
|
1082
1103
|
useTopLevelRegex?: RuleConfiguration_for_Null;
|
|
1104
|
+
/**
|
|
1105
|
+
* Use valid values for the autocomplete attribute on input elements.
|
|
1106
|
+
*/
|
|
1107
|
+
useValidAutocomplete?: RuleConfiguration_for_UseValidAutocompleteOptions;
|
|
1083
1108
|
}
|
|
1084
1109
|
interface Performance {
|
|
1085
1110
|
/**
|
|
@@ -1554,7 +1579,7 @@ interface OverrideFormatterConfiguration {
|
|
|
1554
1579
|
/**
|
|
1555
1580
|
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
|
|
1556
1581
|
*/
|
|
1557
|
-
indentSize?:
|
|
1582
|
+
indentSize?: IndentWidth;
|
|
1558
1583
|
/**
|
|
1559
1584
|
* The indent style.
|
|
1560
1585
|
*/
|
|
@@ -1562,7 +1587,7 @@ interface OverrideFormatterConfiguration {
|
|
|
1562
1587
|
/**
|
|
1563
1588
|
* The size of the indentation, 2 by default
|
|
1564
1589
|
*/
|
|
1565
|
-
indentWidth?:
|
|
1590
|
+
indentWidth?: IndentWidth;
|
|
1566
1591
|
/**
|
|
1567
1592
|
* The type of line ending.
|
|
1568
1593
|
*/
|
|
@@ -1615,6 +1640,9 @@ type RuleConfiguration_for_RestrictedImportsOptions =
|
|
|
1615
1640
|
type RuleFixConfiguration_for_UtilityClassSortingOptions =
|
|
1616
1641
|
| RulePlainConfiguration
|
|
1617
1642
|
| RuleWithFixOptions_for_UtilityClassSortingOptions;
|
|
1643
|
+
type RuleConfiguration_for_UseValidAutocompleteOptions =
|
|
1644
|
+
| RulePlainConfiguration
|
|
1645
|
+
| RuleWithOptions_for_UseValidAutocompleteOptions;
|
|
1618
1646
|
type RuleConfiguration_for_RestrictedGlobalsOptions =
|
|
1619
1647
|
| RulePlainConfiguration
|
|
1620
1648
|
| RuleWithOptions_for_RestrictedGlobalsOptions;
|
|
@@ -1730,6 +1758,16 @@ interface RuleWithFixOptions_for_UtilityClassSortingOptions {
|
|
|
1730
1758
|
*/
|
|
1731
1759
|
options: UtilityClassSortingOptions;
|
|
1732
1760
|
}
|
|
1761
|
+
interface RuleWithOptions_for_UseValidAutocompleteOptions {
|
|
1762
|
+
/**
|
|
1763
|
+
* The severity of the emitted diagnostics by the rule
|
|
1764
|
+
*/
|
|
1765
|
+
level: RulePlainConfiguration;
|
|
1766
|
+
/**
|
|
1767
|
+
* Rule's options
|
|
1768
|
+
*/
|
|
1769
|
+
options: UseValidAutocompleteOptions;
|
|
1770
|
+
}
|
|
1733
1771
|
interface RuleWithOptions_for_RestrictedGlobalsOptions {
|
|
1734
1772
|
/**
|
|
1735
1773
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -1826,6 +1864,12 @@ interface UtilityClassSortingOptions {
|
|
|
1826
1864
|
*/
|
|
1827
1865
|
functions?: string[];
|
|
1828
1866
|
}
|
|
1867
|
+
interface UseValidAutocompleteOptions {
|
|
1868
|
+
/**
|
|
1869
|
+
* `input` like custom components that should be checked.
|
|
1870
|
+
*/
|
|
1871
|
+
inputComponents: string[];
|
|
1872
|
+
}
|
|
1829
1873
|
interface RestrictedGlobalsOptions {
|
|
1830
1874
|
/**
|
|
1831
1875
|
* A list of names that should trigger the rule
|
|
@@ -2201,17 +2245,21 @@ type Category =
|
|
|
2201
2245
|
| "lint/nursery/noEmptyBlock"
|
|
2202
2246
|
| "lint/nursery/noEvolvingTypes"
|
|
2203
2247
|
| "lint/nursery/noImportantInKeyframe"
|
|
2248
|
+
| "lint/nursery/noInvalidDirectionInLinearGradient"
|
|
2204
2249
|
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
2205
2250
|
| "lint/nursery/noLabelWithoutControl"
|
|
2206
2251
|
| "lint/nursery/noMisplacedAssertion"
|
|
2207
2252
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
2208
2253
|
| "lint/nursery/noReactSpecificProps"
|
|
2209
2254
|
| "lint/nursery/noRestrictedImports"
|
|
2255
|
+
| "lint/nursery/noShorthandPropertyOverrides"
|
|
2256
|
+
| "lint/nursery/noSubstr"
|
|
2210
2257
|
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
2211
2258
|
| "lint/nursery/noUndeclaredDependencies"
|
|
2212
2259
|
| "lint/nursery/noUnknownFunction"
|
|
2213
2260
|
| "lint/nursery/noUnknownMediaFeatureName"
|
|
2214
2261
|
| "lint/nursery/noUnknownProperty"
|
|
2262
|
+
| "lint/nursery/noUnknownPseudoClassSelector"
|
|
2215
2263
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
2216
2264
|
| "lint/nursery/noUnknownUnit"
|
|
2217
2265
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
@@ -2222,6 +2270,7 @@ type Category =
|
|
|
2222
2270
|
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2223
2271
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2224
2272
|
| "lint/nursery/useConsistentBuiltinInstantiation"
|
|
2273
|
+
| "lint/nursery/useConsistentGridAreas"
|
|
2225
2274
|
| "lint/nursery/useDateNow"
|
|
2226
2275
|
| "lint/nursery/useDefaultSwitchClause"
|
|
2227
2276
|
| "lint/nursery/useErrorMessage"
|
|
@@ -2236,6 +2285,7 @@ type Category =
|
|
|
2236
2285
|
| "lint/nursery/useThrowNewError"
|
|
2237
2286
|
| "lint/nursery/useThrowOnlyError"
|
|
2238
2287
|
| "lint/nursery/useTopLevelRegex"
|
|
2288
|
+
| "lint/nursery/useValidAutocomplete"
|
|
2239
2289
|
| "lint/performance/noAccumulatingSpread"
|
|
2240
2290
|
| "lint/performance/noBarrelFile"
|
|
2241
2291
|
| "lint/performance/noDelete"
|
|
@@ -2341,6 +2391,7 @@ type Category =
|
|
|
2341
2391
|
| "lint/suspicious/useIsArray"
|
|
2342
2392
|
| "lint/suspicious/useNamespaceKeyword"
|
|
2343
2393
|
| "lint/suspicious/useValidTypeof"
|
|
2394
|
+
| "assists/nursery/useSortedKeys"
|
|
2344
2395
|
| "files/missingHandler"
|
|
2345
2396
|
| "format"
|
|
2346
2397
|
| "check"
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|