@biomejs/biome 2.3.3 → 2.3.4
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/README.md +3 -0
- package/configuration_schema.json +131 -117
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -184,6 +184,9 @@ Biome offers [enterprise support](https://biomejs.dev/enterprise), where Core Co
|
|
|
184
184
|
<td align="center" valign="middle">
|
|
185
185
|
<a href="https://www.convex.dev/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/81530787?s=200&v=4" width="80" alt="Convex logo"></a>
|
|
186
186
|
</td>
|
|
187
|
+
<td align="center" valign="middle">
|
|
188
|
+
<a href="https://graphite.dev/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/61942612?s=200&v=4" width="80" alt="Graphite logo"></a>
|
|
189
|
+
</td>
|
|
187
190
|
</tr>
|
|
188
191
|
</tbody>
|
|
189
192
|
</table>
|
|
@@ -2679,7 +2679,7 @@
|
|
|
2679
2679
|
"properties": {
|
|
2680
2680
|
"allow": {
|
|
2681
2681
|
"description": "Allows a list of bitwise operators to be used as exceptions.",
|
|
2682
|
-
"type": "array",
|
|
2682
|
+
"type": ["array", "null"],
|
|
2683
2683
|
"items": { "type": "string" }
|
|
2684
2684
|
}
|
|
2685
2685
|
},
|
|
@@ -2701,8 +2701,7 @@
|
|
|
2701
2701
|
},
|
|
2702
2702
|
"allowNoReferrer": {
|
|
2703
2703
|
"description": "Whether `noreferrer` is allowed in addition to `noopener`.",
|
|
2704
|
-
"
|
|
2705
|
-
"type": "boolean"
|
|
2704
|
+
"type": ["boolean", "null"]
|
|
2706
2705
|
}
|
|
2707
2706
|
},
|
|
2708
2707
|
"additionalProperties": false
|
|
@@ -2776,7 +2775,7 @@
|
|
|
2776
2775
|
"properties": {
|
|
2777
2776
|
"allowedLabels": {
|
|
2778
2777
|
"description": "A list of (non-confusing) labels that should be allowed",
|
|
2779
|
-
"type": "array",
|
|
2778
|
+
"type": ["array", "null"],
|
|
2780
2779
|
"items": { "type": "string" }
|
|
2781
2780
|
}
|
|
2782
2781
|
},
|
|
@@ -2803,7 +2802,7 @@
|
|
|
2803
2802
|
"properties": {
|
|
2804
2803
|
"allow": {
|
|
2805
2804
|
"description": "Allowed calls on the console object.",
|
|
2806
|
-
"type": "array",
|
|
2805
|
+
"type": ["array", "null"],
|
|
2807
2806
|
"items": { "type": "string" }
|
|
2808
2807
|
}
|
|
2809
2808
|
},
|
|
@@ -2863,6 +2862,13 @@
|
|
|
2863
2862
|
"type": "object",
|
|
2864
2863
|
"additionalProperties": false
|
|
2865
2864
|
},
|
|
2865
|
+
"NoContinueConfiguration": {
|
|
2866
|
+
"anyOf": [
|
|
2867
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2868
|
+
{ "$ref": "#/definitions/RuleWithNoContinueOptions" }
|
|
2869
|
+
]
|
|
2870
|
+
},
|
|
2871
|
+
"NoContinueOptions": { "type": "object", "additionalProperties": false },
|
|
2866
2872
|
"NoControlCharactersInRegexConfiguration": {
|
|
2867
2873
|
"anyOf": [
|
|
2868
2874
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -2990,7 +2996,7 @@
|
|
|
2990
2996
|
"properties": {
|
|
2991
2997
|
"ignoreNull": {
|
|
2992
2998
|
"description": "If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.\n\nIf `false`, no such exception will be made.",
|
|
2993
|
-
"type": "boolean"
|
|
2999
|
+
"type": ["boolean", "null"]
|
|
2994
3000
|
}
|
|
2995
3001
|
},
|
|
2996
3002
|
"additionalProperties": false
|
|
@@ -3207,8 +3213,7 @@
|
|
|
3207
3213
|
"properties": {
|
|
3208
3214
|
"allowComments": {
|
|
3209
3215
|
"description": "Whether comments are considered meaningful",
|
|
3210
|
-
"
|
|
3211
|
-
"type": "boolean"
|
|
3216
|
+
"type": ["boolean", "null"]
|
|
3212
3217
|
}
|
|
3213
3218
|
},
|
|
3214
3219
|
"additionalProperties": false
|
|
@@ -3253,8 +3258,7 @@
|
|
|
3253
3258
|
"properties": {
|
|
3254
3259
|
"maxAllowedComplexity": {
|
|
3255
3260
|
"description": "The maximum complexity score that we allow. Anything higher is considered excessive.",
|
|
3256
|
-
"
|
|
3257
|
-
"type": "integer",
|
|
3261
|
+
"type": ["integer", "null"],
|
|
3258
3262
|
"format": "uint8",
|
|
3259
3263
|
"minimum": 1.0
|
|
3260
3264
|
}
|
|
@@ -3272,20 +3276,17 @@
|
|
|
3272
3276
|
"properties": {
|
|
3273
3277
|
"maxLines": {
|
|
3274
3278
|
"description": "The maximum number of lines allowed in a function body.",
|
|
3275
|
-
"
|
|
3276
|
-
"type": "integer",
|
|
3279
|
+
"type": ["integer", "null"],
|
|
3277
3280
|
"format": "uint16",
|
|
3278
3281
|
"minimum": 1.0
|
|
3279
3282
|
},
|
|
3280
3283
|
"skipBlankLines": {
|
|
3281
3284
|
"description": "When this options is set to `true`, blank lines in the function body are not counted towards the maximum line limit.",
|
|
3282
|
-
"
|
|
3283
|
-
"type": "boolean"
|
|
3285
|
+
"type": ["boolean", "null"]
|
|
3284
3286
|
},
|
|
3285
3287
|
"skipIifes": {
|
|
3286
3288
|
"description": "When this option is set to `true`, Immediately Invoked Function Expressions (IIFEs) are not checked for the maximum line limit.",
|
|
3287
|
-
"
|
|
3288
|
-
"type": "boolean"
|
|
3289
|
+
"type": ["boolean", "null"]
|
|
3289
3290
|
}
|
|
3290
3291
|
},
|
|
3291
3292
|
"additionalProperties": false
|
|
@@ -3398,8 +3399,7 @@
|
|
|
3398
3399
|
"properties": {
|
|
3399
3400
|
"allowedIdentifiers": {
|
|
3400
3401
|
"description": "A list of variable names allowed for `forEach` calls.",
|
|
3401
|
-
"
|
|
3402
|
-
"type": "array",
|
|
3402
|
+
"type": ["array", "null"],
|
|
3403
3403
|
"items": { "type": "string" }
|
|
3404
3404
|
}
|
|
3405
3405
|
},
|
|
@@ -3551,8 +3551,7 @@
|
|
|
3551
3551
|
"properties": {
|
|
3552
3552
|
"ignoreTypes": {
|
|
3553
3553
|
"description": "Ignores type-only imports when finding an import cycle. A type-only import (`import type`) will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type imports (`import { type Foo }`) aren't considered as type-only because it's not removed by the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.",
|
|
3554
|
-
"
|
|
3555
|
-
"type": "boolean"
|
|
3554
|
+
"type": ["boolean", "null"]
|
|
3556
3555
|
}
|
|
3557
3556
|
},
|
|
3558
3557
|
"additionalProperties": false
|
|
@@ -3588,8 +3587,7 @@
|
|
|
3588
3587
|
"properties": {
|
|
3589
3588
|
"allowForLoopAfterthoughts": {
|
|
3590
3589
|
"description": "Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.",
|
|
3591
|
-
"
|
|
3592
|
-
"type": "boolean"
|
|
3590
|
+
"type": ["boolean", "null"]
|
|
3593
3591
|
}
|
|
3594
3592
|
},
|
|
3595
3593
|
"additionalProperties": false
|
|
@@ -3709,19 +3707,16 @@
|
|
|
3709
3707
|
"properties": {
|
|
3710
3708
|
"allowedStrings": {
|
|
3711
3709
|
"description": "An array of strings that won't trigger the rule. Whitespaces are taken into consideration",
|
|
3712
|
-
"
|
|
3713
|
-
"type": "array",
|
|
3710
|
+
"type": ["array", "null"],
|
|
3714
3711
|
"items": { "type": "string" }
|
|
3715
3712
|
},
|
|
3716
3713
|
"ignoreProps": {
|
|
3717
3714
|
"description": "When enabled, strings inside props are always ignored",
|
|
3718
|
-
"
|
|
3719
|
-
"type": "boolean"
|
|
3715
|
+
"type": ["boolean", "null"]
|
|
3720
3716
|
},
|
|
3721
3717
|
"noStrings": {
|
|
3722
3718
|
"description": "When enabled, also flag string literals inside JSX expressions and attributes",
|
|
3723
|
-
"
|
|
3724
|
-
"type": "boolean"
|
|
3719
|
+
"type": ["boolean", "null"]
|
|
3725
3720
|
}
|
|
3726
3721
|
},
|
|
3727
3722
|
"additionalProperties": false
|
|
@@ -3744,20 +3739,17 @@
|
|
|
3744
3739
|
"properties": {
|
|
3745
3740
|
"inputComponents": {
|
|
3746
3741
|
"description": "Array of component names that should be considered the same as an `input` element.",
|
|
3747
|
-
"
|
|
3748
|
-
"type": "array",
|
|
3742
|
+
"type": ["array", "null"],
|
|
3749
3743
|
"items": { "type": "string" }
|
|
3750
3744
|
},
|
|
3751
3745
|
"labelAttributes": {
|
|
3752
3746
|
"description": "Array of attributes that should be treated as the `label` accessible text content.",
|
|
3753
|
-
"
|
|
3754
|
-
"type": "array",
|
|
3747
|
+
"type": ["array", "null"],
|
|
3755
3748
|
"items": { "type": "string" }
|
|
3756
3749
|
},
|
|
3757
3750
|
"labelComponents": {
|
|
3758
3751
|
"description": "Array of component names that should be considered the same as a `label` element.",
|
|
3759
|
-
"
|
|
3760
|
-
"type": "array",
|
|
3752
|
+
"type": ["array", "null"],
|
|
3761
3753
|
"items": { "type": "string" }
|
|
3762
3754
|
}
|
|
3763
3755
|
},
|
|
@@ -3986,8 +3978,10 @@
|
|
|
3986
3978
|
"properties": {
|
|
3987
3979
|
"propertyAssignment": {
|
|
3988
3980
|
"description": "Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to `allow`.",
|
|
3989
|
-
"
|
|
3990
|
-
|
|
3981
|
+
"anyOf": [
|
|
3982
|
+
{ "$ref": "#/definitions/PropertyAssignmentMode" },
|
|
3983
|
+
{ "type": "null" }
|
|
3984
|
+
]
|
|
3991
3985
|
}
|
|
3992
3986
|
},
|
|
3993
3987
|
"additionalProperties": false
|
|
@@ -4045,8 +4039,7 @@
|
|
|
4045
4039
|
"properties": {
|
|
4046
4040
|
"defaultVisibility": {
|
|
4047
4041
|
"description": "The default visibility to assume for symbols without visibility tag.\n\nDefault: **public**.",
|
|
4048
|
-
"
|
|
4049
|
-
"allOf": [{ "$ref": "#/definitions/Visibility" }]
|
|
4042
|
+
"anyOf": [{ "$ref": "#/definitions/Visibility" }, { "type": "null" }]
|
|
4050
4043
|
}
|
|
4051
4044
|
},
|
|
4052
4045
|
"additionalProperties": false
|
|
@@ -4201,7 +4194,10 @@
|
|
|
4201
4194
|
"properties": {
|
|
4202
4195
|
"elements": {
|
|
4203
4196
|
"description": "Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.",
|
|
4204
|
-
"
|
|
4197
|
+
"anyOf": [
|
|
4198
|
+
{ "$ref": "#/definitions/CustomRestrictedElements" },
|
|
4199
|
+
{ "type": "null" }
|
|
4200
|
+
]
|
|
4205
4201
|
}
|
|
4206
4202
|
},
|
|
4207
4203
|
"additionalProperties": false
|
|
@@ -4217,7 +4213,7 @@
|
|
|
4217
4213
|
"properties": {
|
|
4218
4214
|
"deniedGlobals": {
|
|
4219
4215
|
"description": "A list of names that should trigger the rule",
|
|
4220
|
-
"type": "object",
|
|
4216
|
+
"type": ["object", "null"],
|
|
4221
4217
|
"additionalProperties": { "type": "string" }
|
|
4222
4218
|
}
|
|
4223
4219
|
},
|
|
@@ -4234,7 +4230,7 @@
|
|
|
4234
4230
|
"properties": {
|
|
4235
4231
|
"paths": {
|
|
4236
4232
|
"description": "A list of import paths that should trigger the rule.",
|
|
4237
|
-
"type": "object",
|
|
4233
|
+
"type": ["object", "null"],
|
|
4238
4234
|
"additionalProperties": { "$ref": "#/definitions/Paths" }
|
|
4239
4235
|
},
|
|
4240
4236
|
"patterns": {
|
|
@@ -4255,8 +4251,7 @@
|
|
|
4255
4251
|
"type": "object",
|
|
4256
4252
|
"properties": {
|
|
4257
4253
|
"types": {
|
|
4258
|
-
"
|
|
4259
|
-
"type": "object",
|
|
4254
|
+
"type": ["object", "null"],
|
|
4260
4255
|
"additionalProperties": {
|
|
4261
4256
|
"$ref": "#/definitions/CustomRestrictedType"
|
|
4262
4257
|
}
|
|
@@ -4275,7 +4270,6 @@
|
|
|
4275
4270
|
"properties": {
|
|
4276
4271
|
"entropyThreshold": {
|
|
4277
4272
|
"description": "Set entropy threshold (default is 41).",
|
|
4278
|
-
"default": null,
|
|
4279
4273
|
"type": ["integer", "null"],
|
|
4280
4274
|
"format": "uint16",
|
|
4281
4275
|
"minimum": 0.0
|
|
@@ -4496,18 +4490,24 @@
|
|
|
4496
4490
|
"properties": {
|
|
4497
4491
|
"devDependencies": {
|
|
4498
4492
|
"description": "If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.",
|
|
4499
|
-
"
|
|
4500
|
-
|
|
4493
|
+
"anyOf": [
|
|
4494
|
+
{ "$ref": "#/definitions/DependencyAvailability" },
|
|
4495
|
+
{ "type": "null" }
|
|
4496
|
+
]
|
|
4501
4497
|
},
|
|
4502
4498
|
"optionalDependencies": {
|
|
4503
4499
|
"description": "If set to `false`, then the rule will show an error when `optionalDependencies` are imported. Defaults to `true`.",
|
|
4504
|
-
"
|
|
4505
|
-
|
|
4500
|
+
"anyOf": [
|
|
4501
|
+
{ "$ref": "#/definitions/DependencyAvailability" },
|
|
4502
|
+
{ "type": "null" }
|
|
4503
|
+
]
|
|
4506
4504
|
},
|
|
4507
4505
|
"peerDependencies": {
|
|
4508
4506
|
"description": "If set to `false`, then the rule will show an error when `peerDependencies` are imported. Defaults to `true`.",
|
|
4509
|
-
"
|
|
4510
|
-
|
|
4507
|
+
"anyOf": [
|
|
4508
|
+
{ "$ref": "#/definitions/DependencyAvailability" },
|
|
4509
|
+
{ "type": "null" }
|
|
4510
|
+
]
|
|
4511
4511
|
}
|
|
4512
4512
|
},
|
|
4513
4513
|
"additionalProperties": false
|
|
@@ -4523,8 +4523,7 @@
|
|
|
4523
4523
|
"properties": {
|
|
4524
4524
|
"checkTypes": {
|
|
4525
4525
|
"description": "Check undeclared types.",
|
|
4526
|
-
"
|
|
4527
|
-
"type": "boolean"
|
|
4526
|
+
"type": ["boolean", "null"]
|
|
4528
4527
|
}
|
|
4529
4528
|
},
|
|
4530
4529
|
"additionalProperties": false
|
|
@@ -4555,7 +4554,7 @@
|
|
|
4555
4554
|
"NoUnknownAttributeOptions": {
|
|
4556
4555
|
"type": "object",
|
|
4557
4556
|
"properties": {
|
|
4558
|
-
"ignore": { "type": "array", "items": { "type": "string" } }
|
|
4557
|
+
"ignore": { "type": ["array", "null"], "items": { "type": "string" } }
|
|
4559
4558
|
},
|
|
4560
4559
|
"additionalProperties": false
|
|
4561
4560
|
},
|
|
@@ -4734,8 +4733,7 @@
|
|
|
4734
4733
|
"properties": {
|
|
4735
4734
|
"ignoreRestSiblings": {
|
|
4736
4735
|
"description": "Whether to ignore unused variables from an object destructuring with a spread.",
|
|
4737
|
-
"
|
|
4738
|
-
"type": "boolean"
|
|
4736
|
+
"type": ["boolean", "null"]
|
|
4739
4737
|
}
|
|
4740
4738
|
},
|
|
4741
4739
|
"additionalProperties": false
|
|
@@ -4791,8 +4789,7 @@
|
|
|
4791
4789
|
"properties": {
|
|
4792
4790
|
"ignoreRestSiblings": {
|
|
4793
4791
|
"description": "Whether to ignore unused variables from an object destructuring with a spread.",
|
|
4794
|
-
"
|
|
4795
|
-
"type": "boolean"
|
|
4792
|
+
"type": ["boolean", "null"]
|
|
4796
4793
|
}
|
|
4797
4794
|
},
|
|
4798
4795
|
"additionalProperties": false
|
|
@@ -5123,6 +5120,13 @@
|
|
|
5123
5120
|
"description": "A list of rules that belong to this group",
|
|
5124
5121
|
"type": "object",
|
|
5125
5122
|
"properties": {
|
|
5123
|
+
"noContinue": {
|
|
5124
|
+
"description": "Disallow continue statements.",
|
|
5125
|
+
"anyOf": [
|
|
5126
|
+
{ "$ref": "#/definitions/NoContinueConfiguration" },
|
|
5127
|
+
{ "type": "null" }
|
|
5128
|
+
]
|
|
5129
|
+
},
|
|
5126
5130
|
"noDeprecatedImports": {
|
|
5127
5131
|
"description": "Restrict imports of deprecated exports.",
|
|
5128
5132
|
"anyOf": [
|
|
@@ -5386,12 +5390,13 @@
|
|
|
5386
5390
|
"type": "object",
|
|
5387
5391
|
"properties": {
|
|
5388
5392
|
"groups": {
|
|
5389
|
-
"
|
|
5390
|
-
|
|
5393
|
+
"anyOf": [
|
|
5394
|
+
{ "$ref": "#/definitions/ImportGroups" },
|
|
5395
|
+
{ "type": "null" }
|
|
5396
|
+
]
|
|
5391
5397
|
},
|
|
5392
5398
|
"identifierOrder": {
|
|
5393
|
-
"
|
|
5394
|
-
"allOf": [{ "$ref": "#/definitions/SortOrder" }]
|
|
5399
|
+
"anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
|
|
5395
5400
|
}
|
|
5396
5401
|
},
|
|
5397
5402
|
"additionalProperties": false
|
|
@@ -6539,6 +6544,21 @@
|
|
|
6539
6544
|
},
|
|
6540
6545
|
"additionalProperties": false
|
|
6541
6546
|
},
|
|
6547
|
+
"RuleWithNoContinueOptions": {
|
|
6548
|
+
"type": "object",
|
|
6549
|
+
"required": ["level"],
|
|
6550
|
+
"properties": {
|
|
6551
|
+
"level": {
|
|
6552
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
6553
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
6554
|
+
},
|
|
6555
|
+
"options": {
|
|
6556
|
+
"description": "Rule's options",
|
|
6557
|
+
"allOf": [{ "$ref": "#/definitions/NoContinueOptions" }]
|
|
6558
|
+
}
|
|
6559
|
+
},
|
|
6560
|
+
"additionalProperties": false
|
|
6561
|
+
},
|
|
6542
6562
|
"RuleWithNoControlCharactersInRegexOptions": {
|
|
6543
6563
|
"type": "object",
|
|
6544
6564
|
"required": ["level"],
|
|
@@ -13922,12 +13942,12 @@
|
|
|
13922
13942
|
"properties": {
|
|
13923
13943
|
"allowConstantExport": {
|
|
13924
13944
|
"description": "Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)",
|
|
13925
|
-
"default":
|
|
13926
|
-
"type": "boolean"
|
|
13945
|
+
"default": null,
|
|
13946
|
+
"type": ["boolean", "null"]
|
|
13927
13947
|
},
|
|
13928
13948
|
"allowExportNames": {
|
|
13929
13949
|
"description": "A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)",
|
|
13930
|
-
"type": "array",
|
|
13950
|
+
"type": ["array", "null"],
|
|
13931
13951
|
"items": { "type": "string" }
|
|
13932
13952
|
}
|
|
13933
13953
|
},
|
|
@@ -13943,8 +13963,10 @@
|
|
|
13943
13963
|
"type": "object",
|
|
13944
13964
|
"properties": {
|
|
13945
13965
|
"syntax": {
|
|
13946
|
-
"
|
|
13947
|
-
|
|
13966
|
+
"anyOf": [
|
|
13967
|
+
{ "$ref": "#/definitions/ConsistentArrayType" },
|
|
13968
|
+
{ "type": "null" }
|
|
13969
|
+
]
|
|
13948
13970
|
}
|
|
13949
13971
|
},
|
|
13950
13972
|
"additionalProperties": false
|
|
@@ -13961,13 +13983,14 @@
|
|
|
13961
13983
|
"properties": {
|
|
13962
13984
|
"requireForObjectLiteral": {
|
|
13963
13985
|
"description": "Determines whether the rule enforces a consistent style when the return value is an object literal.\n\nThis option is only applicable when used in conjunction with the `asNeeded` option.",
|
|
13964
|
-
"
|
|
13965
|
-
"type": "boolean"
|
|
13986
|
+
"type": ["boolean", "null"]
|
|
13966
13987
|
},
|
|
13967
13988
|
"style": {
|
|
13968
13989
|
"description": "The style to enforce for arrow function return statements.",
|
|
13969
|
-
"
|
|
13970
|
-
|
|
13990
|
+
"anyOf": [
|
|
13991
|
+
{ "$ref": "#/definitions/UseConsistentArrowReturnStyle" },
|
|
13992
|
+
{ "type": "null" }
|
|
13993
|
+
]
|
|
13971
13994
|
}
|
|
13972
13995
|
},
|
|
13973
13996
|
"additionalProperties": false
|
|
@@ -14026,8 +14049,10 @@
|
|
|
14026
14049
|
"properties": {
|
|
14027
14050
|
"accessibility": {
|
|
14028
14051
|
"description": "The kind of accessibility you want to enforce. Default to \"noPublic\"",
|
|
14029
|
-
"
|
|
14030
|
-
|
|
14052
|
+
"anyOf": [
|
|
14053
|
+
{ "$ref": "#/definitions/Accessibility" },
|
|
14054
|
+
{ "type": "null" }
|
|
14055
|
+
]
|
|
14031
14056
|
}
|
|
14032
14057
|
},
|
|
14033
14058
|
"additionalProperties": false
|
|
@@ -14045,8 +14070,10 @@
|
|
|
14045
14070
|
"properties": {
|
|
14046
14071
|
"syntax": {
|
|
14047
14072
|
"description": "The preferred syntax to enforce.",
|
|
14048
|
-
"
|
|
14049
|
-
|
|
14073
|
+
"anyOf": [
|
|
14074
|
+
{ "$ref": "#/definitions/ObjectPropertySyntax" },
|
|
14075
|
+
{ "type": "null" }
|
|
14076
|
+
]
|
|
14050
14077
|
}
|
|
14051
14078
|
},
|
|
14052
14079
|
"additionalProperties": false
|
|
@@ -14061,8 +14088,10 @@
|
|
|
14061
14088
|
"type": "object",
|
|
14062
14089
|
"properties": {
|
|
14063
14090
|
"style": {
|
|
14064
|
-
"
|
|
14065
|
-
|
|
14091
|
+
"anyOf": [
|
|
14092
|
+
{ "$ref": "#/definitions/ConsistentTypeDefinition" },
|
|
14093
|
+
{ "type": "null" }
|
|
14094
|
+
]
|
|
14066
14095
|
}
|
|
14067
14096
|
},
|
|
14068
14097
|
"additionalProperties": false
|
|
@@ -14119,9 +14148,7 @@
|
|
|
14119
14148
|
},
|
|
14120
14149
|
"UseDeprecatedDateOptions": {
|
|
14121
14150
|
"type": "object",
|
|
14122
|
-
"properties": {
|
|
14123
|
-
"argumentName": { "default": "deletionDate", "type": "string" }
|
|
14124
|
-
},
|
|
14151
|
+
"properties": { "argumentName": { "type": ["string", "null"] } },
|
|
14125
14152
|
"additionalProperties": false
|
|
14126
14153
|
},
|
|
14127
14154
|
"UseDeprecatedReasonConfiguration": {
|
|
@@ -14165,19 +14192,16 @@
|
|
|
14165
14192
|
"properties": {
|
|
14166
14193
|
"hooks": {
|
|
14167
14194
|
"description": "List of hooks of which the dependencies should be validated.",
|
|
14168
|
-
"
|
|
14169
|
-
"type": "array",
|
|
14195
|
+
"type": ["array", "null"],
|
|
14170
14196
|
"items": { "$ref": "#/definitions/Hook" }
|
|
14171
14197
|
},
|
|
14172
14198
|
"reportMissingDependenciesArray": {
|
|
14173
14199
|
"description": "Whether to report an error when a hook has no dependencies array.",
|
|
14174
|
-
"
|
|
14175
|
-
"type": "boolean"
|
|
14200
|
+
"type": ["boolean", "null"]
|
|
14176
14201
|
},
|
|
14177
14202
|
"reportUnnecessaryDependencies": {
|
|
14178
14203
|
"description": "Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.",
|
|
14179
|
-
"
|
|
14180
|
-
"type": "boolean"
|
|
14204
|
+
"type": ["boolean", "null"]
|
|
14181
14205
|
}
|
|
14182
14206
|
},
|
|
14183
14207
|
"additionalProperties": false
|
|
@@ -14250,7 +14274,10 @@
|
|
|
14250
14274
|
"properties": {
|
|
14251
14275
|
"filenameCases": {
|
|
14252
14276
|
"description": "Allowed cases for file names.",
|
|
14253
|
-
"
|
|
14277
|
+
"anyOf": [
|
|
14278
|
+
{ "$ref": "#/definitions/FilenameCases" },
|
|
14279
|
+
{ "type": "null" }
|
|
14280
|
+
]
|
|
14254
14281
|
},
|
|
14255
14282
|
"match": {
|
|
14256
14283
|
"description": "Regular expression to enforce",
|
|
@@ -14258,11 +14285,11 @@
|
|
|
14258
14285
|
},
|
|
14259
14286
|
"requireAscii": {
|
|
14260
14287
|
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
14261
|
-
"type": "boolean"
|
|
14288
|
+
"type": ["boolean", "null"]
|
|
14262
14289
|
},
|
|
14263
14290
|
"strictCase": {
|
|
14264
14291
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
14265
|
-
"type": "boolean"
|
|
14292
|
+
"type": ["boolean", "null"]
|
|
14266
14293
|
}
|
|
14267
14294
|
},
|
|
14268
14295
|
"additionalProperties": false
|
|
@@ -14433,8 +14460,7 @@
|
|
|
14433
14460
|
"properties": {
|
|
14434
14461
|
"forceJsExtensions": {
|
|
14435
14462
|
"description": "If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.",
|
|
14436
|
-
"
|
|
14437
|
-
"type": "boolean"
|
|
14463
|
+
"type": ["boolean", "null"]
|
|
14438
14464
|
}
|
|
14439
14465
|
},
|
|
14440
14466
|
"additionalProperties": false
|
|
@@ -14450,8 +14476,7 @@
|
|
|
14450
14476
|
"properties": {
|
|
14451
14477
|
"style": {
|
|
14452
14478
|
"description": "The style to apply when import types. Default to \"auto\"",
|
|
14453
|
-
"
|
|
14454
|
-
"allOf": [{ "$ref": "#/definitions/Style2" }]
|
|
14479
|
+
"anyOf": [{ "$ref": "#/definitions/Style2" }, { "type": "null" }]
|
|
14455
14480
|
}
|
|
14456
14481
|
},
|
|
14457
14482
|
"additionalProperties": false
|
|
@@ -14508,8 +14533,7 @@
|
|
|
14508
14533
|
"properties": {
|
|
14509
14534
|
"checkShorthandFragments": {
|
|
14510
14535
|
"description": "Set to `true` to check shorthand fragments (`<></>`)",
|
|
14511
|
-
"
|
|
14512
|
-
"type": "boolean"
|
|
14536
|
+
"type": ["boolean", "null"]
|
|
14513
14537
|
}
|
|
14514
14538
|
},
|
|
14515
14539
|
"additionalProperties": false
|
|
@@ -14565,8 +14589,7 @@
|
|
|
14565
14589
|
"properties": {
|
|
14566
14590
|
"max": {
|
|
14567
14591
|
"description": "Maximum number of parameters allowed (default: 4)",
|
|
14568
|
-
"
|
|
14569
|
-
"type": "integer",
|
|
14592
|
+
"type": ["integer", "null"],
|
|
14570
14593
|
"format": "uint8",
|
|
14571
14594
|
"minimum": 0.0
|
|
14572
14595
|
}
|
|
@@ -14605,16 +14628,16 @@
|
|
|
14605
14628
|
"properties": {
|
|
14606
14629
|
"conventions": {
|
|
14607
14630
|
"description": "Custom conventions.",
|
|
14608
|
-
"type": "array",
|
|
14631
|
+
"type": ["array", "null"],
|
|
14609
14632
|
"items": { "$ref": "#/definitions/Convention" }
|
|
14610
14633
|
},
|
|
14611
14634
|
"requireAscii": {
|
|
14612
14635
|
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
14613
|
-
"type": "boolean"
|
|
14636
|
+
"type": ["boolean", "null"]
|
|
14614
14637
|
},
|
|
14615
14638
|
"strictCase": {
|
|
14616
14639
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
14617
|
-
"type": "boolean"
|
|
14640
|
+
"type": ["boolean", "null"]
|
|
14618
14641
|
}
|
|
14619
14642
|
},
|
|
14620
14643
|
"additionalProperties": false
|
|
@@ -14762,7 +14785,7 @@
|
|
|
14762
14785
|
"properties": {
|
|
14763
14786
|
"checkAllProperties": {
|
|
14764
14787
|
"description": "When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.",
|
|
14765
|
-
"type": "boolean"
|
|
14788
|
+
"type": ["boolean", "null"]
|
|
14766
14789
|
}
|
|
14767
14790
|
},
|
|
14768
14791
|
"additionalProperties": false
|
|
@@ -14785,9 +14808,7 @@
|
|
|
14785
14808
|
},
|
|
14786
14809
|
"UseSelfClosingElementsOptions": {
|
|
14787
14810
|
"type": "object",
|
|
14788
|
-
"properties": {
|
|
14789
|
-
"ignoreHtmlElements": { "default": false, "type": "boolean" }
|
|
14790
|
-
},
|
|
14811
|
+
"properties": { "ignoreHtmlElements": { "type": ["boolean", "null"] } },
|
|
14791
14812
|
"additionalProperties": false
|
|
14792
14813
|
},
|
|
14793
14814
|
"UseSemanticElementsConfiguration": {
|
|
@@ -14874,8 +14895,7 @@
|
|
|
14874
14895
|
"type": "object",
|
|
14875
14896
|
"properties": {
|
|
14876
14897
|
"sortOrder": {
|
|
14877
|
-
"
|
|
14878
|
-
"allOf": [{ "$ref": "#/definitions/SortOrder" }]
|
|
14898
|
+
"anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
|
|
14879
14899
|
}
|
|
14880
14900
|
},
|
|
14881
14901
|
"additionalProperties": false
|
|
@@ -14906,8 +14926,7 @@
|
|
|
14906
14926
|
"type": "object",
|
|
14907
14927
|
"properties": {
|
|
14908
14928
|
"sortOrder": {
|
|
14909
|
-
"
|
|
14910
|
-
"allOf": [{ "$ref": "#/definitions/SortOrder" }]
|
|
14929
|
+
"anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
|
|
14911
14930
|
}
|
|
14912
14931
|
},
|
|
14913
14932
|
"additionalProperties": false
|
|
@@ -15011,8 +15030,7 @@
|
|
|
15011
15030
|
"properties": {
|
|
15012
15031
|
"excludedComponents": {
|
|
15013
15032
|
"description": "Component names that accept an `id` prop that does not translate to a DOM element id.",
|
|
15014
|
-
"
|
|
15015
|
-
"type": "array",
|
|
15033
|
+
"type": ["array", "null"],
|
|
15016
15034
|
"items": { "type": "string" },
|
|
15017
15035
|
"uniqueItems": true
|
|
15018
15036
|
}
|
|
@@ -15050,14 +15068,12 @@
|
|
|
15050
15068
|
"properties": {
|
|
15051
15069
|
"allowInvalidRoles": {
|
|
15052
15070
|
"description": "It allows specifying a list of roles that might be invalid otherwise",
|
|
15053
|
-
"
|
|
15054
|
-
"type": "array",
|
|
15071
|
+
"type": ["array", "null"],
|
|
15055
15072
|
"items": { "type": "string" }
|
|
15056
15073
|
},
|
|
15057
15074
|
"ignoreNonDom": {
|
|
15058
15075
|
"description": "Use this option to ignore non-DOM elements, such as custom components",
|
|
15059
|
-
"
|
|
15060
|
-
"type": "boolean"
|
|
15076
|
+
"type": ["boolean", "null"]
|
|
15061
15077
|
}
|
|
15062
15078
|
},
|
|
15063
15079
|
"additionalProperties": false
|
|
@@ -15083,8 +15099,7 @@
|
|
|
15083
15099
|
"properties": {
|
|
15084
15100
|
"inputComponents": {
|
|
15085
15101
|
"description": "`input` like custom components that should be checked.",
|
|
15086
|
-
"
|
|
15087
|
-
"type": "array",
|
|
15102
|
+
"type": ["array", "null"],
|
|
15088
15103
|
"items": { "type": "string" }
|
|
15089
15104
|
}
|
|
15090
15105
|
},
|
|
@@ -15128,8 +15143,7 @@
|
|
|
15128
15143
|
"properties": {
|
|
15129
15144
|
"order": {
|
|
15130
15145
|
"description": "The order of the Vue define macros.",
|
|
15131
|
-
"
|
|
15132
|
-
"type": "array",
|
|
15146
|
+
"type": ["array", "null"],
|
|
15133
15147
|
"items": { "type": "string" }
|
|
15134
15148
|
}
|
|
15135
15149
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"bin": {
|
|
5
5
|
"biome": "bin/biome"
|
|
6
6
|
},
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"provenance": true
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@biomejs/cli-win32-x64": "2.3.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.3.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.3.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.3.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.3.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.3.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.3.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.3.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.3.4",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.3.4",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.3.4",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.3.4",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.3.4",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.3.4",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.3.4",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.3.4"
|
|
57
57
|
}
|
|
58
58
|
}
|