@biomejs/wasm-nodejs 1.7.4-nightly.125f34b → 1.8.1
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 +103 -35
- 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
|
*/
|
|
@@ -277,8 +277,13 @@ interface PartialCssParser {
|
|
|
277
277
|
* Allow comments to appear on incorrect lines in `.css` files
|
|
278
278
|
*/
|
|
279
279
|
allowWrongLineComments?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Enables parsing of CSS Modules specific features.
|
|
282
|
+
*/
|
|
283
|
+
cssModules?: boolean;
|
|
280
284
|
}
|
|
281
285
|
type AttributePosition = "auto" | "multiline";
|
|
286
|
+
type IndentWidth = number;
|
|
282
287
|
type PlainIndentStyle = "tab" | "space";
|
|
283
288
|
type LineEnding = "lf" | "crlf" | "cr";
|
|
284
289
|
type LineWidth = number;
|
|
@@ -306,7 +311,7 @@ interface PartialJavascriptFormatter {
|
|
|
306
311
|
/**
|
|
307
312
|
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
|
|
308
313
|
*/
|
|
309
|
-
indentSize?:
|
|
314
|
+
indentSize?: IndentWidth;
|
|
310
315
|
/**
|
|
311
316
|
* The indent style applied to JavaScript (and its super languages) files.
|
|
312
317
|
*/
|
|
@@ -314,7 +319,7 @@ interface PartialJavascriptFormatter {
|
|
|
314
319
|
/**
|
|
315
320
|
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
|
|
316
321
|
*/
|
|
317
|
-
indentWidth?:
|
|
322
|
+
indentWidth?: IndentWidth;
|
|
318
323
|
/**
|
|
319
324
|
* The type of quotes used in JSX. Defaults to double.
|
|
320
325
|
*/
|
|
@@ -372,7 +377,7 @@ interface PartialJsonFormatter {
|
|
|
372
377
|
/**
|
|
373
378
|
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
374
379
|
*/
|
|
375
|
-
indentSize?:
|
|
380
|
+
indentSize?: IndentWidth;
|
|
376
381
|
/**
|
|
377
382
|
* The indent style applied to JSON (and its super languages) files.
|
|
378
383
|
*/
|
|
@@ -380,7 +385,7 @@ interface PartialJsonFormatter {
|
|
|
380
385
|
/**
|
|
381
386
|
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
|
|
382
387
|
*/
|
|
383
|
-
indentWidth?:
|
|
388
|
+
indentWidth?: IndentWidth;
|
|
384
389
|
/**
|
|
385
390
|
* The type of line ending applied to JSON (and its super languages) files.
|
|
386
391
|
*/
|
|
@@ -742,6 +747,10 @@ interface Correctness {
|
|
|
742
747
|
* Disallow constant expressions in conditions
|
|
743
748
|
*/
|
|
744
749
|
noConstantCondition?: RuleConfiguration_for_Null;
|
|
750
|
+
/**
|
|
751
|
+
* Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
|
|
752
|
+
*/
|
|
753
|
+
noConstantMathMinMaxClamp?: RuleFixConfiguration_for_Null;
|
|
745
754
|
/**
|
|
746
755
|
* Disallow returning a value from a constructor.
|
|
747
756
|
*/
|
|
@@ -754,6 +763,10 @@ interface Correctness {
|
|
|
754
763
|
* Disallows empty destructuring patterns.
|
|
755
764
|
*/
|
|
756
765
|
noEmptyPattern?: RuleConfiguration_for_Null;
|
|
766
|
+
/**
|
|
767
|
+
* Disallow to use unnecessary callback on flatMap.
|
|
768
|
+
*/
|
|
769
|
+
noFlatMapIdentity?: RuleFixConfiguration_for_Null;
|
|
757
770
|
/**
|
|
758
771
|
* Disallow calling global object properties as functions
|
|
759
772
|
*/
|
|
@@ -778,6 +791,10 @@ interface Correctness {
|
|
|
778
791
|
* Disallow new operators with the Symbol object.
|
|
779
792
|
*/
|
|
780
793
|
noNewSymbol?: RuleFixConfiguration_for_Null;
|
|
794
|
+
/**
|
|
795
|
+
* Forbid the use of Node.js builtin modules.
|
|
796
|
+
*/
|
|
797
|
+
noNodejsModules?: RuleConfiguration_for_Null;
|
|
781
798
|
/**
|
|
782
799
|
* Disallow \8 and \9 escape sequences in string literals.
|
|
783
800
|
*/
|
|
@@ -858,6 +875,10 @@ interface Correctness {
|
|
|
858
875
|
* It enables the recommended rules for this group
|
|
859
876
|
*/
|
|
860
877
|
recommended?: boolean;
|
|
878
|
+
/**
|
|
879
|
+
* Disallow Array constructors.
|
|
880
|
+
*/
|
|
881
|
+
useArrayLiterals?: RuleFixConfiguration_for_Null;
|
|
861
882
|
/**
|
|
862
883
|
* Enforce all dependencies are correctly specified in a React hook.
|
|
863
884
|
*/
|
|
@@ -892,10 +913,6 @@ interface Nursery {
|
|
|
892
913
|
* Disallow the use of console.
|
|
893
914
|
*/
|
|
894
915
|
noConsole?: RuleFixConfiguration_for_Null;
|
|
895
|
-
/**
|
|
896
|
-
* Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
|
|
897
|
-
*/
|
|
898
|
-
noConstantMathMinMaxClamp?: RuleFixConfiguration_for_Null;
|
|
899
916
|
/**
|
|
900
917
|
* Disallow using a callback in asynchronous tests and hooks.
|
|
901
918
|
*/
|
|
@@ -927,11 +944,7 @@ interface Nursery {
|
|
|
927
944
|
/**
|
|
928
945
|
* Disallow variables from evolving into any type through reassignments.
|
|
929
946
|
*/
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Disallow to use unnecessary callback on flatMap.
|
|
933
|
-
*/
|
|
934
|
-
noFlatMapIdentity?: RuleFixConfiguration_for_Null;
|
|
947
|
+
noEvolvingTypes?: RuleConfiguration_for_Null;
|
|
935
948
|
/**
|
|
936
949
|
* Disallow invalid !important within keyframe declarations
|
|
937
950
|
*/
|
|
@@ -941,13 +954,13 @@ interface Nursery {
|
|
|
941
954
|
*/
|
|
942
955
|
noInvalidPositionAtImportRule?: RuleConfiguration_for_Null;
|
|
943
956
|
/**
|
|
944
|
-
*
|
|
957
|
+
* Enforce that a label element or component has a text label and an associated input.
|
|
945
958
|
*/
|
|
946
|
-
|
|
959
|
+
noLabelWithoutControl?: RuleConfiguration_for_NoLabelWithoutControlOptions;
|
|
947
960
|
/**
|
|
948
|
-
*
|
|
961
|
+
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
949
962
|
*/
|
|
950
|
-
|
|
963
|
+
noMisplacedAssertion?: RuleConfiguration_for_Null;
|
|
951
964
|
/**
|
|
952
965
|
* Prevents React-specific JSX properties from being used.
|
|
953
966
|
*/
|
|
@@ -956,6 +969,10 @@ interface Nursery {
|
|
|
956
969
|
* Disallow specified modules when loaded by import or require.
|
|
957
970
|
*/
|
|
958
971
|
noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
|
|
972
|
+
/**
|
|
973
|
+
* Disallow shorthand properties that override related longhand properties.
|
|
974
|
+
*/
|
|
975
|
+
noShorthandPropertyOverrides?: RuleConfiguration_for_Null;
|
|
959
976
|
/**
|
|
960
977
|
* Disallow the use of dependencies that aren't specified in the package.json.
|
|
961
978
|
*/
|
|
@@ -972,6 +989,10 @@ interface Nursery {
|
|
|
972
989
|
* Disallow unknown properties.
|
|
973
990
|
*/
|
|
974
991
|
noUnknownProperty?: RuleConfiguration_for_Null;
|
|
992
|
+
/**
|
|
993
|
+
* Disallow unknown pseudo-class selectors.
|
|
994
|
+
*/
|
|
995
|
+
noUnknownPseudoClassSelector?: RuleConfiguration_for_Null;
|
|
975
996
|
/**
|
|
976
997
|
* Disallow unknown pseudo-element selectors.
|
|
977
998
|
*/
|
|
@@ -984,6 +1005,10 @@ interface Nursery {
|
|
|
984
1005
|
* Disallow unmatchable An+B selectors.
|
|
985
1006
|
*/
|
|
986
1007
|
noUnmatchableAnbSelector?: RuleConfiguration_for_Null;
|
|
1008
|
+
/**
|
|
1009
|
+
* Disallow unused function parameters.
|
|
1010
|
+
*/
|
|
1011
|
+
noUnusedFunctionParameters?: RuleFixConfiguration_for_Null;
|
|
987
1012
|
/**
|
|
988
1013
|
* Disallow unnecessary concatenation of string or template literals.
|
|
989
1014
|
*/
|
|
@@ -1004,18 +1029,26 @@ interface Nursery {
|
|
|
1004
1029
|
* Disallow the use of overload signatures that are not next to each other.
|
|
1005
1030
|
*/
|
|
1006
1031
|
useAdjacentOverloadSignatures?: RuleConfiguration_for_Null;
|
|
1007
|
-
/**
|
|
1008
|
-
* Disallow Array constructors.
|
|
1009
|
-
*/
|
|
1010
|
-
useArrayLiterals?: RuleFixConfiguration_for_Null;
|
|
1011
1032
|
/**
|
|
1012
1033
|
* Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.
|
|
1013
1034
|
*/
|
|
1014
1035
|
useConsistentBuiltinInstantiation?: RuleFixConfiguration_for_Null;
|
|
1036
|
+
/**
|
|
1037
|
+
* Disallowing invalid named grid areas in CSS Grid Layouts.
|
|
1038
|
+
*/
|
|
1039
|
+
useConsistentGridAreas?: RuleConfiguration_for_Null;
|
|
1040
|
+
/**
|
|
1041
|
+
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
1042
|
+
*/
|
|
1043
|
+
useDateNow?: RuleFixConfiguration_for_Null;
|
|
1015
1044
|
/**
|
|
1016
1045
|
* Require the default clause in switch statements.
|
|
1017
1046
|
*/
|
|
1018
1047
|
useDefaultSwitchClause?: RuleConfiguration_for_Null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Enforce passing a message value when creating a built-in error.
|
|
1050
|
+
*/
|
|
1051
|
+
useErrorMessage?: RuleConfiguration_for_Null;
|
|
1019
1052
|
/**
|
|
1020
1053
|
* Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.
|
|
1021
1054
|
*/
|
|
@@ -1534,7 +1567,7 @@ interface OverrideFormatterConfiguration {
|
|
|
1534
1567
|
/**
|
|
1535
1568
|
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
|
|
1536
1569
|
*/
|
|
1537
|
-
indentSize?:
|
|
1570
|
+
indentSize?: IndentWidth;
|
|
1538
1571
|
/**
|
|
1539
1572
|
* The indent style.
|
|
1540
1573
|
*/
|
|
@@ -1542,7 +1575,7 @@ interface OverrideFormatterConfiguration {
|
|
|
1542
1575
|
/**
|
|
1543
1576
|
* The size of the indentation, 2 by default
|
|
1544
1577
|
*/
|
|
1545
|
-
indentWidth?:
|
|
1578
|
+
indentWidth?: IndentWidth;
|
|
1546
1579
|
/**
|
|
1547
1580
|
* The type of line ending.
|
|
1548
1581
|
*/
|
|
@@ -1586,6 +1619,9 @@ type RuleConfiguration_for_HooksOptions =
|
|
|
1586
1619
|
type RuleConfiguration_for_DeprecatedHooksOptions =
|
|
1587
1620
|
| RulePlainConfiguration
|
|
1588
1621
|
| RuleWithOptions_for_DeprecatedHooksOptions;
|
|
1622
|
+
type RuleConfiguration_for_NoLabelWithoutControlOptions =
|
|
1623
|
+
| RulePlainConfiguration
|
|
1624
|
+
| RuleWithOptions_for_NoLabelWithoutControlOptions;
|
|
1589
1625
|
type RuleConfiguration_for_RestrictedImportsOptions =
|
|
1590
1626
|
| RulePlainConfiguration
|
|
1591
1627
|
| RuleWithOptions_for_RestrictedImportsOptions;
|
|
@@ -1604,7 +1640,7 @@ type RuleConfiguration_for_FilenamingConventionOptions =
|
|
|
1604
1640
|
type RuleFixConfiguration_for_NamingConventionOptions =
|
|
1605
1641
|
| RulePlainConfiguration
|
|
1606
1642
|
| RuleWithFixOptions_for_NamingConventionOptions;
|
|
1607
|
-
type RulePlainConfiguration = "warn" | "error" | "off";
|
|
1643
|
+
type RulePlainConfiguration = "warn" | "error" | "info" | "off";
|
|
1608
1644
|
interface RuleWithFixOptions_for_Null {
|
|
1609
1645
|
/**
|
|
1610
1646
|
* The kind of the code actions emitted by the rule
|
|
@@ -1673,6 +1709,16 @@ interface RuleWithOptions_for_DeprecatedHooksOptions {
|
|
|
1673
1709
|
*/
|
|
1674
1710
|
options: DeprecatedHooksOptions;
|
|
1675
1711
|
}
|
|
1712
|
+
interface RuleWithOptions_for_NoLabelWithoutControlOptions {
|
|
1713
|
+
/**
|
|
1714
|
+
* The severity of the emitted diagnostics by the rule
|
|
1715
|
+
*/
|
|
1716
|
+
level: RulePlainConfiguration;
|
|
1717
|
+
/**
|
|
1718
|
+
* Rule's options
|
|
1719
|
+
*/
|
|
1720
|
+
options: NoLabelWithoutControlOptions;
|
|
1721
|
+
}
|
|
1676
1722
|
interface RuleWithOptions_for_RestrictedImportsOptions {
|
|
1677
1723
|
/**
|
|
1678
1724
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -1763,6 +1809,20 @@ interface HooksOptions {
|
|
|
1763
1809
|
hooks: Hook[];
|
|
1764
1810
|
}
|
|
1765
1811
|
interface DeprecatedHooksOptions {}
|
|
1812
|
+
interface NoLabelWithoutControlOptions {
|
|
1813
|
+
/**
|
|
1814
|
+
* Array of component names that should be considered the same as an `input` element.
|
|
1815
|
+
*/
|
|
1816
|
+
inputComponents: string[];
|
|
1817
|
+
/**
|
|
1818
|
+
* Array of attributes that should be treated as the `label` accessible text content.
|
|
1819
|
+
*/
|
|
1820
|
+
labelAttributes: string[];
|
|
1821
|
+
/**
|
|
1822
|
+
* Array of component names that should be considered the same as a `label` element.
|
|
1823
|
+
*/
|
|
1824
|
+
labelComponents: string[];
|
|
1825
|
+
}
|
|
1766
1826
|
interface RestrictedImportsOptions {
|
|
1767
1827
|
/**
|
|
1768
1828
|
* A list of names that should trigger the rule
|
|
@@ -2015,8 +2075,9 @@ interface GetFormatterIRParams {
|
|
|
2015
2075
|
interface PullDiagnosticsParams {
|
|
2016
2076
|
categories: RuleCategories;
|
|
2017
2077
|
max_diagnostics: number;
|
|
2078
|
+
only: RuleCode[];
|
|
2018
2079
|
path: BiomePath;
|
|
2019
|
-
|
|
2080
|
+
skip: RuleCode[];
|
|
2020
2081
|
}
|
|
2021
2082
|
type RuleCategories = RuleCategory[];
|
|
2022
2083
|
type RuleCode = string;
|
|
@@ -2103,15 +2164,18 @@ type Category =
|
|
|
2103
2164
|
| "lint/correctness/noChildrenProp"
|
|
2104
2165
|
| "lint/correctness/noConstAssign"
|
|
2105
2166
|
| "lint/correctness/noConstantCondition"
|
|
2167
|
+
| "lint/correctness/noConstantMathMinMaxClamp"
|
|
2106
2168
|
| "lint/correctness/noConstructorReturn"
|
|
2107
2169
|
| "lint/correctness/noEmptyCharacterClassInRegex"
|
|
2108
2170
|
| "lint/correctness/noEmptyPattern"
|
|
2171
|
+
| "lint/correctness/noFlatMapIdentity"
|
|
2109
2172
|
| "lint/correctness/noGlobalObjectCalls"
|
|
2110
2173
|
| "lint/correctness/noInnerDeclarations"
|
|
2111
2174
|
| "lint/correctness/noInvalidConstructorSuper"
|
|
2112
2175
|
| "lint/correctness/noInvalidNewBuiltin"
|
|
2113
2176
|
| "lint/correctness/noInvalidUseBeforeDeclaration"
|
|
2114
2177
|
| "lint/correctness/noNewSymbol"
|
|
2178
|
+
| "lint/correctness/noNodejsModules"
|
|
2115
2179
|
| "lint/correctness/noNonoctalDecimalEscape"
|
|
2116
2180
|
| "lint/correctness/noPrecisionLoss"
|
|
2117
2181
|
| "lint/correctness/noRenderReturnValue"
|
|
@@ -2131,6 +2195,7 @@ type Category =
|
|
|
2131
2195
|
| "lint/correctness/noUnusedVariables"
|
|
2132
2196
|
| "lint/correctness/noVoidElementsWithChildren"
|
|
2133
2197
|
| "lint/correctness/noVoidTypeReturn"
|
|
2198
|
+
| "lint/correctness/useArrayLiterals"
|
|
2134
2199
|
| "lint/correctness/useExhaustiveDependencies"
|
|
2135
2200
|
| "lint/correctness/useHookAtTopLevel"
|
|
2136
2201
|
| "lint/correctness/useIsNan"
|
|
@@ -2138,41 +2203,44 @@ type Category =
|
|
|
2138
2203
|
| "lint/correctness/useValidForDirection"
|
|
2139
2204
|
| "lint/correctness/useYield"
|
|
2140
2205
|
| "lint/nursery/colorNoInvalidHex"
|
|
2141
|
-
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2142
2206
|
| "lint/nursery/noColorInvalidHex"
|
|
2143
2207
|
| "lint/nursery/noConsole"
|
|
2144
|
-
| "lint/nursery/noConstantMathMinMaxClamp"
|
|
2145
|
-
| "lint/nursery/noEmptyBlock"
|
|
2146
2208
|
| "lint/nursery/noDoneCallback"
|
|
2147
2209
|
| "lint/nursery/noDuplicateAtImportRules"
|
|
2148
2210
|
| "lint/nursery/noDuplicateElseIf"
|
|
2149
2211
|
| "lint/nursery/noDuplicateFontNames"
|
|
2150
2212
|
| "lint/nursery/noDuplicateJsonKeys"
|
|
2151
2213
|
| "lint/nursery/noDuplicateSelectorsKeyframeBlock"
|
|
2152
|
-
| "lint/nursery/
|
|
2153
|
-
| "lint/nursery/
|
|
2214
|
+
| "lint/nursery/noEmptyBlock"
|
|
2215
|
+
| "lint/nursery/noEvolvingTypes"
|
|
2154
2216
|
| "lint/nursery/noImportantInKeyframe"
|
|
2155
2217
|
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
2218
|
+
| "lint/nursery/noLabelWithoutControl"
|
|
2156
2219
|
| "lint/nursery/noMisplacedAssertion"
|
|
2157
2220
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
2158
|
-
| "lint/nursery/noNodejsModules"
|
|
2159
2221
|
| "lint/nursery/noReactSpecificProps"
|
|
2160
2222
|
| "lint/nursery/noRestrictedImports"
|
|
2223
|
+
| "lint/nursery/noShorthandPropertyOverrides"
|
|
2161
2224
|
| "lint/nursery/noTypeOnlyImportAttributes"
|
|
2162
2225
|
| "lint/nursery/noUndeclaredDependencies"
|
|
2163
2226
|
| "lint/nursery/noUnknownFunction"
|
|
2164
2227
|
| "lint/nursery/noUnknownMediaFeatureName"
|
|
2165
2228
|
| "lint/nursery/noUnknownProperty"
|
|
2229
|
+
| "lint/nursery/noUnknownPseudoClassSelector"
|
|
2166
2230
|
| "lint/nursery/noUnknownSelectorPseudoElement"
|
|
2167
2231
|
| "lint/nursery/noUnknownUnit"
|
|
2168
2232
|
| "lint/nursery/noUnmatchableAnbSelector"
|
|
2233
|
+
| "lint/nursery/noUnusedFunctionParameters"
|
|
2169
2234
|
| "lint/nursery/noUselessStringConcat"
|
|
2170
2235
|
| "lint/nursery/noUselessUndefinedInitialization"
|
|
2171
2236
|
| "lint/nursery/noYodaExpression"
|
|
2172
|
-
| "lint/nursery/
|
|
2237
|
+
| "lint/nursery/useAdjacentOverloadSignatures"
|
|
2173
2238
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
2174
2239
|
| "lint/nursery/useConsistentBuiltinInstantiation"
|
|
2240
|
+
| "lint/nursery/useConsistentGridAreas"
|
|
2241
|
+
| "lint/nursery/useDateNow"
|
|
2175
2242
|
| "lint/nursery/useDefaultSwitchClause"
|
|
2243
|
+
| "lint/nursery/useErrorMessage"
|
|
2176
2244
|
| "lint/nursery/useExplicitLengthCheck"
|
|
2177
2245
|
| "lint/nursery/useFocusableInteractive"
|
|
2178
2246
|
| "lint/nursery/useGenericFontNames"
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED