@biomejs/biome 1.9.4 → 1.9.5-nightly.4713c52
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/configuration_schema.json +137 -7
- package/package.json +9 -9
|
@@ -1267,6 +1267,10 @@
|
|
|
1267
1267
|
"description": "Allowed cases for file names.",
|
|
1268
1268
|
"allOf": [{ "$ref": "#/definitions/FilenameCases" }]
|
|
1269
1269
|
},
|
|
1270
|
+
"match": {
|
|
1271
|
+
"description": "Regular expression to enforce",
|
|
1272
|
+
"anyOf": [{ "$ref": "#/definitions/Regex" }, { "type": "null" }]
|
|
1273
|
+
},
|
|
1270
1274
|
"requireAscii": {
|
|
1271
1275
|
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
1272
1276
|
"type": "boolean"
|
|
@@ -1493,6 +1497,12 @@
|
|
|
1493
1497
|
},
|
|
1494
1498
|
"additionalProperties": false
|
|
1495
1499
|
},
|
|
1500
|
+
"ImportGroup": {
|
|
1501
|
+
"anyOf": [
|
|
1502
|
+
{ "$ref": "#/definitions/PredefinedImportGroup" },
|
|
1503
|
+
{ "$ref": "#/definitions/Regex" }
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1496
1506
|
"IndentStyle": {
|
|
1497
1507
|
"oneOf": [
|
|
1498
1508
|
{ "description": "Tab", "type": "string", "enum": ["tab"] },
|
|
@@ -1668,6 +1678,10 @@
|
|
|
1668
1678
|
"description": "Options that changes how the JavaScript parser behaves",
|
|
1669
1679
|
"type": "object",
|
|
1670
1680
|
"properties": {
|
|
1681
|
+
"gritMetavariables": {
|
|
1682
|
+
"description": "Enables parsing of Grit metavariables. Defaults to `false`.",
|
|
1683
|
+
"type": ["boolean", "null"]
|
|
1684
|
+
},
|
|
1671
1685
|
"unsafeParameterDecoratorsEnabled": {
|
|
1672
1686
|
"description": "It enables the experimental and unsafe parsing of parameter decorators\n\nThese decorators belong to an old proposal, and they are subject to change.",
|
|
1673
1687
|
"type": ["boolean", "null"]
|
|
@@ -2295,6 +2309,13 @@
|
|
|
2295
2309
|
{ "type": "null" }
|
|
2296
2310
|
]
|
|
2297
2311
|
},
|
|
2312
|
+
"noUselessUndefined": {
|
|
2313
|
+
"description": "Disallow the use of useless undefined.",
|
|
2314
|
+
"anyOf": [
|
|
2315
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2316
|
+
{ "type": "null" }
|
|
2317
|
+
]
|
|
2318
|
+
},
|
|
2298
2319
|
"noValueAtRule": {
|
|
2299
2320
|
"description": "Disallow use of @value rule in css modules.",
|
|
2300
2321
|
"anyOf": [
|
|
@@ -2380,6 +2401,13 @@
|
|
|
2380
2401
|
{ "type": "null" }
|
|
2381
2402
|
]
|
|
2382
2403
|
},
|
|
2404
|
+
"useGoogleFontPreconnect": {
|
|
2405
|
+
"description": "Ensure the preconnect attribute is used when using Google Fonts.",
|
|
2406
|
+
"anyOf": [
|
|
2407
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2408
|
+
{ "type": "null" }
|
|
2409
|
+
]
|
|
2410
|
+
},
|
|
2383
2411
|
"useGuardForIn": {
|
|
2384
2412
|
"description": "Require for-in loops to include an if statement.",
|
|
2385
2413
|
"anyOf": [
|
|
@@ -2394,6 +2422,13 @@
|
|
|
2394
2422
|
{ "type": "null" }
|
|
2395
2423
|
]
|
|
2396
2424
|
},
|
|
2425
|
+
"useNamedOperation": {
|
|
2426
|
+
"description": "Enforce specifying the name of GraphQL operations.",
|
|
2427
|
+
"anyOf": [
|
|
2428
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2429
|
+
{ "type": "null" }
|
|
2430
|
+
]
|
|
2431
|
+
},
|
|
2397
2432
|
"useSortedClasses": {
|
|
2398
2433
|
"description": "Enforce the sorting of CSS utility classes.",
|
|
2399
2434
|
"anyOf": [
|
|
@@ -2425,6 +2460,18 @@
|
|
|
2425
2460
|
},
|
|
2426
2461
|
"additionalProperties": false
|
|
2427
2462
|
},
|
|
2463
|
+
"Options": {
|
|
2464
|
+
"type": "object",
|
|
2465
|
+
"properties": {
|
|
2466
|
+
"importGroups": {
|
|
2467
|
+
"default": [],
|
|
2468
|
+
"type": "array",
|
|
2469
|
+
"items": { "$ref": "#/definitions/ImportGroup" }
|
|
2470
|
+
},
|
|
2471
|
+
"legacy": { "default": false, "type": "boolean" }
|
|
2472
|
+
},
|
|
2473
|
+
"additionalProperties": false
|
|
2474
|
+
},
|
|
2428
2475
|
"OrganizeImports": {
|
|
2429
2476
|
"type": "object",
|
|
2430
2477
|
"properties": {
|
|
@@ -2629,6 +2676,10 @@
|
|
|
2629
2676
|
},
|
|
2630
2677
|
"additionalProperties": false
|
|
2631
2678
|
},
|
|
2679
|
+
"PredefinedImportGroup": {
|
|
2680
|
+
"type": "string",
|
|
2681
|
+
"enum": [":blank-line:", ":bun:", ":node:", ":types:"]
|
|
2682
|
+
},
|
|
2632
2683
|
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
2633
2684
|
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
2634
2685
|
"Regex": { "type": "string" },
|
|
@@ -2672,7 +2723,46 @@
|
|
|
2672
2723
|
"type": "string",
|
|
2673
2724
|
"enum": ["abstract", "private", "protected", "readonly", "static"]
|
|
2674
2725
|
},
|
|
2675
|
-
"
|
|
2726
|
+
"RuleAssistConfiguration_for_Null": {
|
|
2727
|
+
"anyOf": [
|
|
2728
|
+
{ "$ref": "#/definitions/RuleAssistPlainConfiguration" },
|
|
2729
|
+
{ "$ref": "#/definitions/RuleAssistWithOptions_for_Null" }
|
|
2730
|
+
]
|
|
2731
|
+
},
|
|
2732
|
+
"RuleAssistConfiguration_for_Options": {
|
|
2733
|
+
"anyOf": [
|
|
2734
|
+
{ "$ref": "#/definitions/RuleAssistPlainConfiguration" },
|
|
2735
|
+
{ "$ref": "#/definitions/RuleAssistWithOptions_for_Options" }
|
|
2736
|
+
]
|
|
2737
|
+
},
|
|
2738
|
+
"RuleAssistPlainConfiguration": { "type": "string", "enum": ["on", "off"] },
|
|
2739
|
+
"RuleAssistWithOptions_for_Null": {
|
|
2740
|
+
"type": "object",
|
|
2741
|
+
"required": ["level", "options"],
|
|
2742
|
+
"properties": {
|
|
2743
|
+
"level": {
|
|
2744
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
2745
|
+
"allOf": [{ "$ref": "#/definitions/RuleAssistPlainConfiguration" }]
|
|
2746
|
+
},
|
|
2747
|
+
"options": { "description": "Rule's options", "type": "null" }
|
|
2748
|
+
},
|
|
2749
|
+
"additionalProperties": false
|
|
2750
|
+
},
|
|
2751
|
+
"RuleAssistWithOptions_for_Options": {
|
|
2752
|
+
"type": "object",
|
|
2753
|
+
"required": ["level", "options"],
|
|
2754
|
+
"properties": {
|
|
2755
|
+
"level": {
|
|
2756
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
2757
|
+
"allOf": [{ "$ref": "#/definitions/RuleAssistPlainConfiguration" }]
|
|
2758
|
+
},
|
|
2759
|
+
"options": {
|
|
2760
|
+
"description": "Rule's options",
|
|
2761
|
+
"allOf": [{ "$ref": "#/definitions/Options" }]
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
"additionalProperties": false
|
|
2765
|
+
},
|
|
2676
2766
|
"RuleConfiguration": {
|
|
2677
2767
|
"anyOf": [
|
|
2678
2768
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -3004,6 +3094,25 @@
|
|
|
3004
3094
|
},
|
|
3005
3095
|
"additionalProperties": false
|
|
3006
3096
|
},
|
|
3097
|
+
"RuleWithUseSelfClosingElementsOptions": {
|
|
3098
|
+
"type": "object",
|
|
3099
|
+
"required": ["level"],
|
|
3100
|
+
"properties": {
|
|
3101
|
+
"fix": {
|
|
3102
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
3103
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
3104
|
+
},
|
|
3105
|
+
"level": {
|
|
3106
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3107
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3108
|
+
},
|
|
3109
|
+
"options": {
|
|
3110
|
+
"description": "Rule's options",
|
|
3111
|
+
"allOf": [{ "$ref": "#/definitions/UseSelfClosingElementsOptions" }]
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
"additionalProperties": false
|
|
3115
|
+
},
|
|
3007
3116
|
"RuleWithUseValidAutocompleteOptions": {
|
|
3008
3117
|
"type": "object",
|
|
3009
3118
|
"required": ["level"],
|
|
@@ -3155,17 +3264,24 @@
|
|
|
3155
3264
|
"description": "A list of rules that belong to this group",
|
|
3156
3265
|
"type": "object",
|
|
3157
3266
|
"properties": {
|
|
3158
|
-
"
|
|
3159
|
-
"description": "
|
|
3267
|
+
"organizeImports": {
|
|
3268
|
+
"description": "Provides a whole-source code action to sort the imports in the file using import groups and natural ordering.",
|
|
3269
|
+
"anyOf": [
|
|
3270
|
+
{ "$ref": "#/definitions/RuleAssistConfiguration_for_Options" },
|
|
3271
|
+
{ "type": "null" }
|
|
3272
|
+
]
|
|
3273
|
+
},
|
|
3274
|
+
"useSortedAttributes": {
|
|
3275
|
+
"description": "Enforce attribute sorting in JSX elements.",
|
|
3160
3276
|
"anyOf": [
|
|
3161
|
-
{ "$ref": "#/definitions/
|
|
3277
|
+
{ "$ref": "#/definitions/RuleAssistConfiguration_for_Null" },
|
|
3162
3278
|
{ "type": "null" }
|
|
3163
3279
|
]
|
|
3164
3280
|
},
|
|
3165
3281
|
"useSortedKeys": {
|
|
3166
3282
|
"description": "Sorts the keys of a JSON object in natural order",
|
|
3167
3283
|
"anyOf": [
|
|
3168
|
-
{ "$ref": "#/definitions/
|
|
3284
|
+
{ "$ref": "#/definitions/RuleAssistConfiguration_for_Null" },
|
|
3169
3285
|
{ "type": "null" }
|
|
3170
3286
|
]
|
|
3171
3287
|
}
|
|
@@ -3491,7 +3607,7 @@
|
|
|
3491
3607
|
"useSelfClosingElements": {
|
|
3492
3608
|
"description": "Prevent extra closing tags for components without children",
|
|
3493
3609
|
"anyOf": [
|
|
3494
|
-
{ "$ref": "#/definitions/
|
|
3610
|
+
{ "$ref": "#/definitions/UseSelfClosingElementsConfiguration" },
|
|
3495
3611
|
{ "type": "null" }
|
|
3496
3612
|
]
|
|
3497
3613
|
},
|
|
@@ -3910,7 +4026,7 @@
|
|
|
3910
4026
|
"noPrototypeBuiltins": {
|
|
3911
4027
|
"description": "Disallow direct use of Object.prototype builtins.",
|
|
3912
4028
|
"anyOf": [
|
|
3913
|
-
{ "$ref": "#/definitions/
|
|
4029
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3914
4030
|
{ "type": "null" }
|
|
3915
4031
|
]
|
|
3916
4032
|
},
|
|
@@ -4166,6 +4282,20 @@
|
|
|
4166
4282
|
},
|
|
4167
4283
|
"additionalProperties": false
|
|
4168
4284
|
},
|
|
4285
|
+
"UseSelfClosingElementsConfiguration": {
|
|
4286
|
+
"anyOf": [
|
|
4287
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
4288
|
+
{ "$ref": "#/definitions/RuleWithUseSelfClosingElementsOptions" }
|
|
4289
|
+
]
|
|
4290
|
+
},
|
|
4291
|
+
"UseSelfClosingElementsOptions": {
|
|
4292
|
+
"description": "Options for the `useSelfClosingElements` rule.",
|
|
4293
|
+
"type": "object",
|
|
4294
|
+
"properties": {
|
|
4295
|
+
"ignoreHtmlElements": { "default": false, "type": "boolean" }
|
|
4296
|
+
},
|
|
4297
|
+
"additionalProperties": false
|
|
4298
|
+
},
|
|
4169
4299
|
"UseValidAutocompleteConfiguration": {
|
|
4170
4300
|
"anyOf": [
|
|
4171
4301
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5-nightly.4713c52",
|
|
4
4
|
"bin": {
|
|
5
5
|
"biome": "bin/biome"
|
|
6
6
|
},
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"provenance": true
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@biomejs/cli-win32-x64": "1.9.
|
|
54
|
-
"@biomejs/cli-win32-arm64": "1.9.
|
|
55
|
-
"@biomejs/cli-darwin-x64": "1.9.
|
|
56
|
-
"@biomejs/cli-darwin-arm64": "1.9.
|
|
57
|
-
"@biomejs/cli-linux-x64": "1.9.
|
|
58
|
-
"@biomejs/cli-linux-arm64": "1.9.
|
|
59
|
-
"@biomejs/cli-linux-x64-musl": "1.9.
|
|
60
|
-
"@biomejs/cli-linux-arm64-musl": "1.9.
|
|
53
|
+
"@biomejs/cli-win32-x64": "1.9.5-nightly.4713c52",
|
|
54
|
+
"@biomejs/cli-win32-arm64": "1.9.5-nightly.4713c52",
|
|
55
|
+
"@biomejs/cli-darwin-x64": "1.9.5-nightly.4713c52",
|
|
56
|
+
"@biomejs/cli-darwin-arm64": "1.9.5-nightly.4713c52",
|
|
57
|
+
"@biomejs/cli-linux-x64": "1.9.5-nightly.4713c52",
|
|
58
|
+
"@biomejs/cli-linux-arm64": "1.9.5-nightly.4713c52",
|
|
59
|
+
"@biomejs/cli-linux-x64-musl": "1.9.5-nightly.4713c52",
|
|
60
|
+
"@biomejs/cli-linux-arm64-musl": "1.9.5-nightly.4713c52"
|
|
61
61
|
}
|
|
62
62
|
}
|