@biomejs/wasm-nodejs 2.0.0-beta.3 → 2.0.0-beta.5
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 +55 -35
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -673,6 +673,10 @@ interface OverridePattern {
|
|
|
673
673
|
* Specific configuration for the CSS language
|
|
674
674
|
*/
|
|
675
675
|
css?: CssConfiguration;
|
|
676
|
+
/**
|
|
677
|
+
* Specific configuration for the filesystem
|
|
678
|
+
*/
|
|
679
|
+
files?: OverrideFilesConfiguration;
|
|
676
680
|
/**
|
|
677
681
|
* Specific configuration for the Json language
|
|
678
682
|
*/
|
|
@@ -760,6 +764,12 @@ interface OverrideAssistConfiguration {
|
|
|
760
764
|
*/
|
|
761
765
|
enabled?: Bool;
|
|
762
766
|
}
|
|
767
|
+
interface OverrideFilesConfiguration {
|
|
768
|
+
/**
|
|
769
|
+
* File size limit in bytes
|
|
770
|
+
*/
|
|
771
|
+
maxSize?: MaxSize;
|
|
772
|
+
}
|
|
763
773
|
interface OverrideFormatterConfiguration {
|
|
764
774
|
/**
|
|
765
775
|
* The attribute position style.
|
|
@@ -1000,6 +1010,10 @@ interface Complexity {
|
|
|
1000
1010
|
* Disallow unnecessary boolean casts
|
|
1001
1011
|
*/
|
|
1002
1012
|
noExtraBooleanCast?: RuleFixConfiguration_for_Null;
|
|
1013
|
+
/**
|
|
1014
|
+
* Disallow to use unnecessary callback on flatMap.
|
|
1015
|
+
*/
|
|
1016
|
+
noFlatMapIdentity?: RuleFixConfiguration_for_Null;
|
|
1003
1017
|
/**
|
|
1004
1018
|
* Prefer for...of statement instead of Array.forEach.
|
|
1005
1019
|
*/
|
|
@@ -1020,6 +1034,10 @@ interface Complexity {
|
|
|
1020
1034
|
* Disallow unnecessary constructors.
|
|
1021
1035
|
*/
|
|
1022
1036
|
noUselessConstructor?: RuleFixConfiguration_for_Null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Avoid using unnecessary continue.
|
|
1039
|
+
*/
|
|
1040
|
+
noUselessContinue?: RuleFixConfiguration_for_Null;
|
|
1023
1041
|
/**
|
|
1024
1042
|
* Disallow empty exports that don't change anything in a module file.
|
|
1025
1043
|
*/
|
|
@@ -1076,10 +1094,6 @@ interface Complexity {
|
|
|
1076
1094
|
* Disallow the use of void operators, which is not a familiar operator.
|
|
1077
1095
|
*/
|
|
1078
1096
|
noVoid?: RuleConfiguration_for_Null;
|
|
1079
|
-
/**
|
|
1080
|
-
* Disallow with statements in non-strict contexts.
|
|
1081
|
-
*/
|
|
1082
|
-
noWith?: RuleConfiguration_for_Null;
|
|
1083
1097
|
/**
|
|
1084
1098
|
* It enables the recommended rules for this group
|
|
1085
1099
|
*/
|
|
@@ -1100,6 +1114,10 @@ interface Complexity {
|
|
|
1100
1114
|
* Enforce the usage of a literal access to properties over computed property access.
|
|
1101
1115
|
*/
|
|
1102
1116
|
useLiteralKeys?: RuleFixConfiguration_for_Null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
|
|
1119
|
+
*/
|
|
1120
|
+
useNumericLiterals?: RuleFixConfiguration_for_Null;
|
|
1103
1121
|
/**
|
|
1104
1122
|
* Enforce using concise optional chain instead of chained logical expressions.
|
|
1105
1123
|
*/
|
|
@@ -1150,10 +1168,6 @@ interface Correctness {
|
|
|
1150
1168
|
* Disallows empty destructuring patterns.
|
|
1151
1169
|
*/
|
|
1152
1170
|
noEmptyPattern?: RuleConfiguration_for_Null;
|
|
1153
|
-
/**
|
|
1154
|
-
* Disallow to use unnecessary callback on flatMap.
|
|
1155
|
-
*/
|
|
1156
|
-
noFlatMapIdentity?: RuleFixConfiguration_for_Null;
|
|
1157
1171
|
/**
|
|
1158
1172
|
* Disallow calling global object properties as functions
|
|
1159
1173
|
*/
|
|
@@ -1302,10 +1316,6 @@ interface Correctness {
|
|
|
1302
1316
|
* Disallow unused variables.
|
|
1303
1317
|
*/
|
|
1304
1318
|
noUnusedVariables?: RuleFixConfiguration_for_NoUnusedVariablesOptions;
|
|
1305
|
-
/**
|
|
1306
|
-
* Avoid using unnecessary continue.
|
|
1307
|
-
*/
|
|
1308
|
-
noUselessContinue?: RuleFixConfiguration_for_Null;
|
|
1309
1319
|
/**
|
|
1310
1320
|
* This rules prevents void elements (AKA self-closing elements) from having children.
|
|
1311
1321
|
*/
|
|
@@ -1318,10 +1328,6 @@ interface Correctness {
|
|
|
1318
1328
|
* It enables the recommended rules for this group
|
|
1319
1329
|
*/
|
|
1320
1330
|
recommended?: boolean;
|
|
1321
|
-
/**
|
|
1322
|
-
* Disallow Array constructors.
|
|
1323
|
-
*/
|
|
1324
|
-
useArrayLiterals?: RuleFixConfiguration_for_Null;
|
|
1325
1331
|
/**
|
|
1326
1332
|
* Enforce all dependencies are correctly specified in a React hook.
|
|
1327
1333
|
*/
|
|
@@ -1346,6 +1352,10 @@ interface Correctness {
|
|
|
1346
1352
|
* Enforce "for" loop update clause moving the counter in the right direction.
|
|
1347
1353
|
*/
|
|
1348
1354
|
useValidForDirection?: RuleConfiguration_for_Null;
|
|
1355
|
+
/**
|
|
1356
|
+
* This rule checks that the result of a typeof expression is compared to a valid value.
|
|
1357
|
+
*/
|
|
1358
|
+
useValidTypeof?: RuleFixConfiguration_for_Null;
|
|
1349
1359
|
/**
|
|
1350
1360
|
* Require generator functions to contain yield.
|
|
1351
1361
|
*/
|
|
@@ -1384,6 +1394,10 @@ interface Nursery {
|
|
|
1384
1394
|
* Disallow the use of the !important style.
|
|
1385
1395
|
*/
|
|
1386
1396
|
noImportantStyles?: RuleFixConfiguration_for_Null;
|
|
1397
|
+
/**
|
|
1398
|
+
* Disallows defining React components inside other components.
|
|
1399
|
+
*/
|
|
1400
|
+
noNestedComponentDefinitions?: RuleConfiguration_for_Null;
|
|
1387
1401
|
/**
|
|
1388
1402
|
* Disallow use event handlers on non-interactive elements.
|
|
1389
1403
|
*/
|
|
@@ -1436,6 +1450,10 @@ interface Nursery {
|
|
|
1436
1450
|
* It enables the recommended rules for this group
|
|
1437
1451
|
*/
|
|
1438
1452
|
recommended?: boolean;
|
|
1453
|
+
/**
|
|
1454
|
+
* Enforce that getters and setters for the same property are adjacent in class and object definitions.
|
|
1455
|
+
*/
|
|
1456
|
+
useAdjacentGetterSetter?: RuleConfiguration_for_Null;
|
|
1439
1457
|
/**
|
|
1440
1458
|
* Require the consistent declaration of object literals. Defaults to explicit definitions.
|
|
1441
1459
|
*/
|
|
@@ -1514,6 +1532,10 @@ interface Performance {
|
|
|
1514
1532
|
* Prevent usage of \<img> element in a Next.js project.
|
|
1515
1533
|
*/
|
|
1516
1534
|
noImgElement?: RuleConfiguration_for_Null;
|
|
1535
|
+
/**
|
|
1536
|
+
* Disallow the use of namespace imports.
|
|
1537
|
+
*/
|
|
1538
|
+
noNamespaceImport?: RuleConfiguration_for_Null;
|
|
1517
1539
|
/**
|
|
1518
1540
|
* Avoid re-export all.
|
|
1519
1541
|
*/
|
|
@@ -1598,10 +1620,6 @@ interface Style {
|
|
|
1598
1620
|
* Disallow the use of TypeScript's namespaces.
|
|
1599
1621
|
*/
|
|
1600
1622
|
noNamespace?: RuleConfiguration_for_Null;
|
|
1601
|
-
/**
|
|
1602
|
-
* Disallow the use of namespace imports.
|
|
1603
|
-
*/
|
|
1604
|
-
noNamespaceImport?: RuleConfiguration_for_Null;
|
|
1605
1623
|
/**
|
|
1606
1624
|
* Disallow negation in the condition of an if statement if it has an else clause.
|
|
1607
1625
|
*/
|
|
@@ -1666,6 +1684,10 @@ interface Style {
|
|
|
1666
1684
|
* It enables the recommended rules for this group
|
|
1667
1685
|
*/
|
|
1668
1686
|
recommended?: boolean;
|
|
1687
|
+
/**
|
|
1688
|
+
* Disallow Array constructors.
|
|
1689
|
+
*/
|
|
1690
|
+
useArrayLiterals?: RuleFixConfiguration_for_Null;
|
|
1669
1691
|
/**
|
|
1670
1692
|
* Enforce the use of as const over literal type and type annotation.
|
|
1671
1693
|
*/
|
|
@@ -1774,10 +1796,6 @@ interface Style {
|
|
|
1774
1796
|
* Use the Number properties instead of global ones.
|
|
1775
1797
|
*/
|
|
1776
1798
|
useNumberNamespace?: RuleFixConfiguration_for_Null;
|
|
1777
|
-
/**
|
|
1778
|
-
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
|
|
1779
|
-
*/
|
|
1780
|
-
useNumericLiterals?: RuleFixConfiguration_for_Null;
|
|
1781
1799
|
/**
|
|
1782
1800
|
* Prevent extra closing tags for components without children.
|
|
1783
1801
|
*/
|
|
@@ -2088,6 +2106,10 @@ interface Suspicious {
|
|
|
2088
2106
|
* Disallow the use of var
|
|
2089
2107
|
*/
|
|
2090
2108
|
noVar?: RuleFixConfiguration_for_Null;
|
|
2109
|
+
/**
|
|
2110
|
+
* Disallow with statements in non-strict contexts.
|
|
2111
|
+
*/
|
|
2112
|
+
noWith?: RuleConfiguration_for_Null;
|
|
2091
2113
|
/**
|
|
2092
2114
|
* It enables the recommended rules for this group
|
|
2093
2115
|
*/
|
|
@@ -2136,10 +2158,6 @@ interface Suspicious {
|
|
|
2136
2158
|
* Enforce the use of the directive "use strict" in script files.
|
|
2137
2159
|
*/
|
|
2138
2160
|
useStrictMode?: RuleFixConfiguration_for_Null;
|
|
2139
|
-
/**
|
|
2140
|
-
* This rule checks that the result of a typeof expression is compared to a valid value.
|
|
2141
|
-
*/
|
|
2142
|
-
useValidTypeof?: RuleFixConfiguration_for_Null;
|
|
2143
2161
|
}
|
|
2144
2162
|
type RuleAssistPlainConfiguration = "off" | "on";
|
|
2145
2163
|
interface RuleAssistWithOptions_for_Options {
|
|
@@ -3123,11 +3141,13 @@ type Category =
|
|
|
3123
3141
|
| "lint/complexity/noExcessiveCognitiveComplexity"
|
|
3124
3142
|
| "lint/complexity/noExcessiveNestedTestSuites"
|
|
3125
3143
|
| "lint/complexity/noExtraBooleanCast"
|
|
3144
|
+
| "lint/complexity/noFlatMapIdentity"
|
|
3126
3145
|
| "lint/complexity/noForEach"
|
|
3127
3146
|
| "lint/complexity/noStaticOnlyClass"
|
|
3128
3147
|
| "lint/complexity/noThisInStatic"
|
|
3129
3148
|
| "lint/complexity/noUselessCatch"
|
|
3130
3149
|
| "lint/complexity/noUselessConstructor"
|
|
3150
|
+
| "lint/complexity/noUselessContinue"
|
|
3131
3151
|
| "lint/complexity/noUselessEmptyExport"
|
|
3132
3152
|
| "lint/complexity/noUselessEscapeInRegex"
|
|
3133
3153
|
| "lint/complexity/noUselessFragments"
|
|
@@ -3142,11 +3162,11 @@ type Category =
|
|
|
3142
3162
|
| "lint/complexity/noUselessTypeConstraint"
|
|
3143
3163
|
| "lint/complexity/noUselessUndefinedInitialization"
|
|
3144
3164
|
| "lint/complexity/noVoid"
|
|
3145
|
-
| "lint/complexity/noWith"
|
|
3146
3165
|
| "lint/complexity/useArrowFunction"
|
|
3147
3166
|
| "lint/complexity/useDateNow"
|
|
3148
3167
|
| "lint/complexity/useFlatMap"
|
|
3149
3168
|
| "lint/complexity/useLiteralKeys"
|
|
3169
|
+
| "lint/complexity/useNumericLiterals"
|
|
3150
3170
|
| "lint/complexity/useOptionalChain"
|
|
3151
3171
|
| "lint/complexity/useRegexLiterals"
|
|
3152
3172
|
| "lint/complexity/useSimpleNumberKeys"
|
|
@@ -3159,7 +3179,6 @@ type Category =
|
|
|
3159
3179
|
| "lint/correctness/noConstructorReturn"
|
|
3160
3180
|
| "lint/correctness/noEmptyCharacterClassInRegex"
|
|
3161
3181
|
| "lint/correctness/noEmptyPattern"
|
|
3162
|
-
| "lint/correctness/noFlatMapIdentity"
|
|
3163
3182
|
| "lint/correctness/noGlobalObjectCalls"
|
|
3164
3183
|
| "lint/correctness/noInnerDeclarations"
|
|
3165
3184
|
| "lint/correctness/noInvalidBuiltinInstantiation"
|
|
@@ -3200,16 +3219,15 @@ type Category =
|
|
|
3200
3219
|
| "lint/correctness/noUnusedLabels"
|
|
3201
3220
|
| "lint/correctness/noUnusedPrivateClassMembers"
|
|
3202
3221
|
| "lint/correctness/noUnusedVariables"
|
|
3203
|
-
| "lint/correctness/noUselessContinue"
|
|
3204
3222
|
| "lint/correctness/noVoidElementsWithChildren"
|
|
3205
3223
|
| "lint/correctness/noVoidTypeReturn"
|
|
3206
|
-
| "lint/correctness/useArrayLiterals"
|
|
3207
3224
|
| "lint/correctness/useExhaustiveDependencies"
|
|
3208
3225
|
| "lint/correctness/useHookAtTopLevel"
|
|
3209
3226
|
| "lint/correctness/useImportExtensions"
|
|
3210
3227
|
| "lint/correctness/useIsNan"
|
|
3211
3228
|
| "lint/correctness/useJsxKeyInIterable"
|
|
3212
3229
|
| "lint/correctness/useValidForDirection"
|
|
3230
|
+
| "lint/correctness/useValidTypeof"
|
|
3213
3231
|
| "lint/correctness/useYield"
|
|
3214
3232
|
| "lint/nursery/colorNoInvalidHex"
|
|
3215
3233
|
| "lint/nursery/noAwaitInLoop"
|
|
@@ -3229,6 +3247,7 @@ type Category =
|
|
|
3229
3247
|
| "lint/nursery/noInvalidGridAreas"
|
|
3230
3248
|
| "lint/nursery/noInvalidPositionAtImportRule"
|
|
3231
3249
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
3250
|
+
| "lint/nursery/noNestedComponentDefinitions"
|
|
3232
3251
|
| "lint/nursery/noNoninteractiveElementInteractions"
|
|
3233
3252
|
| "lint/nursery/noProcessGlobal"
|
|
3234
3253
|
| "lint/nursery/noReactSpecificProps"
|
|
@@ -3251,6 +3270,7 @@ type Category =
|
|
|
3251
3270
|
| "lint/nursery/noUselessBackrefInRegex"
|
|
3252
3271
|
| "lint/nursery/noUselessEscapeInString"
|
|
3253
3272
|
| "lint/nursery/noUselessUndefined"
|
|
3273
|
+
| "lint/nursery/useAdjacentGetterSetter"
|
|
3254
3274
|
| "lint/nursery/useBiomeSuppressionComment"
|
|
3255
3275
|
| "lint/nursery/useConsistentObjectDefinition"
|
|
3256
3276
|
| "lint/nursery/useExhaustiveSwitchCases"
|
|
@@ -3275,6 +3295,7 @@ type Category =
|
|
|
3275
3295
|
| "lint/performance/noDelete"
|
|
3276
3296
|
| "lint/performance/noDynamicNamespaceImportAccess"
|
|
3277
3297
|
| "lint/performance/noImgElement"
|
|
3298
|
+
| "lint/performance/noNamespaceImport"
|
|
3278
3299
|
| "lint/performance/noReExportAll"
|
|
3279
3300
|
| "lint/performance/useTopLevelRegex"
|
|
3280
3301
|
| "lint/security/noBlankTarget"
|
|
@@ -3293,7 +3314,6 @@ type Category =
|
|
|
3293
3314
|
| "lint/style/noImplicitBoolean"
|
|
3294
3315
|
| "lint/style/noInferrableTypes"
|
|
3295
3316
|
| "lint/style/noNamespace"
|
|
3296
|
-
| "lint/style/noNamespaceImport"
|
|
3297
3317
|
| "lint/style/noNegationElse"
|
|
3298
3318
|
| "lint/style/noNestedTernary"
|
|
3299
3319
|
| "lint/style/noNonNullAssertion"
|
|
@@ -3309,6 +3329,7 @@ type Category =
|
|
|
3309
3329
|
| "lint/style/noUselessElse"
|
|
3310
3330
|
| "lint/style/noValueAtRule"
|
|
3311
3331
|
| "lint/style/noYodaExpression"
|
|
3332
|
+
| "lint/style/useArrayLiterals"
|
|
3312
3333
|
| "lint/style/useAsConstAssertion"
|
|
3313
3334
|
| "lint/style/useAtIndex"
|
|
3314
3335
|
| "lint/style/useBlockStatements"
|
|
@@ -3336,7 +3357,6 @@ type Category =
|
|
|
3336
3357
|
| "lint/style/useNodeAssertStrict"
|
|
3337
3358
|
| "lint/style/useNodejsImportProtocol"
|
|
3338
3359
|
| "lint/style/useNumberNamespace"
|
|
3339
|
-
| "lint/style/useNumericLiterals"
|
|
3340
3360
|
| "lint/style/useSelfClosingElements"
|
|
3341
3361
|
| "lint/style/useShorthandArrayType"
|
|
3342
3362
|
| "lint/style/useShorthandAssign"
|
|
@@ -3416,6 +3436,7 @@ type Category =
|
|
|
3416
3436
|
| "lint/suspicious/noUnsafeDeclarationMerging"
|
|
3417
3437
|
| "lint/suspicious/noUnsafeNegation"
|
|
3418
3438
|
| "lint/suspicious/noVar"
|
|
3439
|
+
| "lint/suspicious/noWith"
|
|
3419
3440
|
| "lint/suspicious/useAdjacentOverloadSignatures"
|
|
3420
3441
|
| "lint/suspicious/useAwait"
|
|
3421
3442
|
| "lint/suspicious/useDefaultSwitchClauseLast"
|
|
@@ -3427,7 +3448,6 @@ type Category =
|
|
|
3427
3448
|
| "lint/suspicious/useNamespaceKeyword"
|
|
3428
3449
|
| "lint/suspicious/useNumberToFixedDigitsArgument"
|
|
3429
3450
|
| "lint/suspicious/useStrictMode"
|
|
3430
|
-
| "lint/suspicious/useValidTypeof"
|
|
3431
3451
|
| "assist/source/useSortedKeys"
|
|
3432
3452
|
| "assist/source/useSortedProperties"
|
|
3433
3453
|
| "assist/source/useSortedAttributes"
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED