@biomejs/biome 2.3.3 → 2.3.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/README.md +3 -0
- package/configuration_schema.json +163 -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": [
|
|
@@ -5283,6 +5287,13 @@
|
|
|
5283
5287
|
"description": "Enables the recommended rules for this group",
|
|
5284
5288
|
"type": ["boolean", "null"]
|
|
5285
5289
|
},
|
|
5290
|
+
"useArraySortCompare": {
|
|
5291
|
+
"description": "Require Array#sort and Array#toSorted calls to always provide a compareFunction.",
|
|
5292
|
+
"anyOf": [
|
|
5293
|
+
{ "$ref": "#/definitions/UseArraySortCompareConfiguration" },
|
|
5294
|
+
{ "type": "null" }
|
|
5295
|
+
]
|
|
5296
|
+
},
|
|
5286
5297
|
"useConsistentArrowReturn": {
|
|
5287
5298
|
"description": "Enforce consistent arrow function bodies.",
|
|
5288
5299
|
"anyOf": [
|
|
@@ -5386,12 +5397,13 @@
|
|
|
5386
5397
|
"type": "object",
|
|
5387
5398
|
"properties": {
|
|
5388
5399
|
"groups": {
|
|
5389
|
-
"
|
|
5390
|
-
|
|
5400
|
+
"anyOf": [
|
|
5401
|
+
{ "$ref": "#/definitions/ImportGroups" },
|
|
5402
|
+
{ "type": "null" }
|
|
5403
|
+
]
|
|
5391
5404
|
},
|
|
5392
5405
|
"identifierOrder": {
|
|
5393
|
-
"
|
|
5394
|
-
"allOf": [{ "$ref": "#/definitions/SortOrder" }]
|
|
5406
|
+
"anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
|
|
5395
5407
|
}
|
|
5396
5408
|
},
|
|
5397
5409
|
"additionalProperties": false
|
|
@@ -6539,6 +6551,21 @@
|
|
|
6539
6551
|
},
|
|
6540
6552
|
"additionalProperties": false
|
|
6541
6553
|
},
|
|
6554
|
+
"RuleWithNoContinueOptions": {
|
|
6555
|
+
"type": "object",
|
|
6556
|
+
"required": ["level"],
|
|
6557
|
+
"properties": {
|
|
6558
|
+
"level": {
|
|
6559
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
6560
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
6561
|
+
},
|
|
6562
|
+
"options": {
|
|
6563
|
+
"description": "Rule's options",
|
|
6564
|
+
"allOf": [{ "$ref": "#/definitions/NoContinueOptions" }]
|
|
6565
|
+
}
|
|
6566
|
+
},
|
|
6567
|
+
"additionalProperties": false
|
|
6568
|
+
},
|
|
6542
6569
|
"RuleWithNoControlCharactersInRegexOptions": {
|
|
6543
6570
|
"type": "object",
|
|
6544
6571
|
"required": ["level"],
|
|
@@ -10204,6 +10231,21 @@
|
|
|
10204
10231
|
},
|
|
10205
10232
|
"additionalProperties": false
|
|
10206
10233
|
},
|
|
10234
|
+
"RuleWithUseArraySortCompareOptions": {
|
|
10235
|
+
"type": "object",
|
|
10236
|
+
"required": ["level"],
|
|
10237
|
+
"properties": {
|
|
10238
|
+
"level": {
|
|
10239
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
10240
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
10241
|
+
},
|
|
10242
|
+
"options": {
|
|
10243
|
+
"description": "Rule's options",
|
|
10244
|
+
"allOf": [{ "$ref": "#/definitions/UseArraySortCompareOptions" }]
|
|
10245
|
+
}
|
|
10246
|
+
},
|
|
10247
|
+
"additionalProperties": false
|
|
10248
|
+
},
|
|
10207
10249
|
"RuleWithUseArrowFunctionOptions": {
|
|
10208
10250
|
"type": "object",
|
|
10209
10251
|
"required": ["level"],
|
|
@@ -13830,6 +13872,16 @@
|
|
|
13830
13872
|
"type": "object",
|
|
13831
13873
|
"additionalProperties": false
|
|
13832
13874
|
},
|
|
13875
|
+
"UseArraySortCompareConfiguration": {
|
|
13876
|
+
"anyOf": [
|
|
13877
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
13878
|
+
{ "$ref": "#/definitions/RuleWithUseArraySortCompareOptions" }
|
|
13879
|
+
]
|
|
13880
|
+
},
|
|
13881
|
+
"UseArraySortCompareOptions": {
|
|
13882
|
+
"type": "object",
|
|
13883
|
+
"additionalProperties": false
|
|
13884
|
+
},
|
|
13833
13885
|
"UseArrowFunctionConfiguration": {
|
|
13834
13886
|
"anyOf": [
|
|
13835
13887
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -13922,12 +13974,12 @@
|
|
|
13922
13974
|
"properties": {
|
|
13923
13975
|
"allowConstantExport": {
|
|
13924
13976
|
"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"
|
|
13977
|
+
"default": null,
|
|
13978
|
+
"type": ["boolean", "null"]
|
|
13927
13979
|
},
|
|
13928
13980
|
"allowExportNames": {
|
|
13929
13981
|
"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",
|
|
13982
|
+
"type": ["array", "null"],
|
|
13931
13983
|
"items": { "type": "string" }
|
|
13932
13984
|
}
|
|
13933
13985
|
},
|
|
@@ -13943,8 +13995,10 @@
|
|
|
13943
13995
|
"type": "object",
|
|
13944
13996
|
"properties": {
|
|
13945
13997
|
"syntax": {
|
|
13946
|
-
"
|
|
13947
|
-
|
|
13998
|
+
"anyOf": [
|
|
13999
|
+
{ "$ref": "#/definitions/ConsistentArrayType" },
|
|
14000
|
+
{ "type": "null" }
|
|
14001
|
+
]
|
|
13948
14002
|
}
|
|
13949
14003
|
},
|
|
13950
14004
|
"additionalProperties": false
|
|
@@ -13961,13 +14015,14 @@
|
|
|
13961
14015
|
"properties": {
|
|
13962
14016
|
"requireForObjectLiteral": {
|
|
13963
14017
|
"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"
|
|
14018
|
+
"type": ["boolean", "null"]
|
|
13966
14019
|
},
|
|
13967
14020
|
"style": {
|
|
13968
14021
|
"description": "The style to enforce for arrow function return statements.",
|
|
13969
|
-
"
|
|
13970
|
-
|
|
14022
|
+
"anyOf": [
|
|
14023
|
+
{ "$ref": "#/definitions/UseConsistentArrowReturnStyle" },
|
|
14024
|
+
{ "type": "null" }
|
|
14025
|
+
]
|
|
13971
14026
|
}
|
|
13972
14027
|
},
|
|
13973
14028
|
"additionalProperties": false
|
|
@@ -14026,8 +14081,10 @@
|
|
|
14026
14081
|
"properties": {
|
|
14027
14082
|
"accessibility": {
|
|
14028
14083
|
"description": "The kind of accessibility you want to enforce. Default to \"noPublic\"",
|
|
14029
|
-
"
|
|
14030
|
-
|
|
14084
|
+
"anyOf": [
|
|
14085
|
+
{ "$ref": "#/definitions/Accessibility" },
|
|
14086
|
+
{ "type": "null" }
|
|
14087
|
+
]
|
|
14031
14088
|
}
|
|
14032
14089
|
},
|
|
14033
14090
|
"additionalProperties": false
|
|
@@ -14045,8 +14102,10 @@
|
|
|
14045
14102
|
"properties": {
|
|
14046
14103
|
"syntax": {
|
|
14047
14104
|
"description": "The preferred syntax to enforce.",
|
|
14048
|
-
"
|
|
14049
|
-
|
|
14105
|
+
"anyOf": [
|
|
14106
|
+
{ "$ref": "#/definitions/ObjectPropertySyntax" },
|
|
14107
|
+
{ "type": "null" }
|
|
14108
|
+
]
|
|
14050
14109
|
}
|
|
14051
14110
|
},
|
|
14052
14111
|
"additionalProperties": false
|
|
@@ -14061,8 +14120,10 @@
|
|
|
14061
14120
|
"type": "object",
|
|
14062
14121
|
"properties": {
|
|
14063
14122
|
"style": {
|
|
14064
|
-
"
|
|
14065
|
-
|
|
14123
|
+
"anyOf": [
|
|
14124
|
+
{ "$ref": "#/definitions/ConsistentTypeDefinition" },
|
|
14125
|
+
{ "type": "null" }
|
|
14126
|
+
]
|
|
14066
14127
|
}
|
|
14067
14128
|
},
|
|
14068
14129
|
"additionalProperties": false
|
|
@@ -14119,9 +14180,7 @@
|
|
|
14119
14180
|
},
|
|
14120
14181
|
"UseDeprecatedDateOptions": {
|
|
14121
14182
|
"type": "object",
|
|
14122
|
-
"properties": {
|
|
14123
|
-
"argumentName": { "default": "deletionDate", "type": "string" }
|
|
14124
|
-
},
|
|
14183
|
+
"properties": { "argumentName": { "type": ["string", "null"] } },
|
|
14125
14184
|
"additionalProperties": false
|
|
14126
14185
|
},
|
|
14127
14186
|
"UseDeprecatedReasonConfiguration": {
|
|
@@ -14165,19 +14224,16 @@
|
|
|
14165
14224
|
"properties": {
|
|
14166
14225
|
"hooks": {
|
|
14167
14226
|
"description": "List of hooks of which the dependencies should be validated.",
|
|
14168
|
-
"
|
|
14169
|
-
"type": "array",
|
|
14227
|
+
"type": ["array", "null"],
|
|
14170
14228
|
"items": { "$ref": "#/definitions/Hook" }
|
|
14171
14229
|
},
|
|
14172
14230
|
"reportMissingDependenciesArray": {
|
|
14173
14231
|
"description": "Whether to report an error when a hook has no dependencies array.",
|
|
14174
|
-
"
|
|
14175
|
-
"type": "boolean"
|
|
14232
|
+
"type": ["boolean", "null"]
|
|
14176
14233
|
},
|
|
14177
14234
|
"reportUnnecessaryDependencies": {
|
|
14178
14235
|
"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"
|
|
14236
|
+
"type": ["boolean", "null"]
|
|
14181
14237
|
}
|
|
14182
14238
|
},
|
|
14183
14239
|
"additionalProperties": false
|
|
@@ -14250,7 +14306,10 @@
|
|
|
14250
14306
|
"properties": {
|
|
14251
14307
|
"filenameCases": {
|
|
14252
14308
|
"description": "Allowed cases for file names.",
|
|
14253
|
-
"
|
|
14309
|
+
"anyOf": [
|
|
14310
|
+
{ "$ref": "#/definitions/FilenameCases" },
|
|
14311
|
+
{ "type": "null" }
|
|
14312
|
+
]
|
|
14254
14313
|
},
|
|
14255
14314
|
"match": {
|
|
14256
14315
|
"description": "Regular expression to enforce",
|
|
@@ -14258,11 +14317,11 @@
|
|
|
14258
14317
|
},
|
|
14259
14318
|
"requireAscii": {
|
|
14260
14319
|
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
14261
|
-
"type": "boolean"
|
|
14320
|
+
"type": ["boolean", "null"]
|
|
14262
14321
|
},
|
|
14263
14322
|
"strictCase": {
|
|
14264
14323
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
14265
|
-
"type": "boolean"
|
|
14324
|
+
"type": ["boolean", "null"]
|
|
14266
14325
|
}
|
|
14267
14326
|
},
|
|
14268
14327
|
"additionalProperties": false
|
|
@@ -14433,8 +14492,7 @@
|
|
|
14433
14492
|
"properties": {
|
|
14434
14493
|
"forceJsExtensions": {
|
|
14435
14494
|
"description": "If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.",
|
|
14436
|
-
"
|
|
14437
|
-
"type": "boolean"
|
|
14495
|
+
"type": ["boolean", "null"]
|
|
14438
14496
|
}
|
|
14439
14497
|
},
|
|
14440
14498
|
"additionalProperties": false
|
|
@@ -14450,8 +14508,7 @@
|
|
|
14450
14508
|
"properties": {
|
|
14451
14509
|
"style": {
|
|
14452
14510
|
"description": "The style to apply when import types. Default to \"auto\"",
|
|
14453
|
-
"
|
|
14454
|
-
"allOf": [{ "$ref": "#/definitions/Style2" }]
|
|
14511
|
+
"anyOf": [{ "$ref": "#/definitions/Style2" }, { "type": "null" }]
|
|
14455
14512
|
}
|
|
14456
14513
|
},
|
|
14457
14514
|
"additionalProperties": false
|
|
@@ -14508,8 +14565,7 @@
|
|
|
14508
14565
|
"properties": {
|
|
14509
14566
|
"checkShorthandFragments": {
|
|
14510
14567
|
"description": "Set to `true` to check shorthand fragments (`<></>`)",
|
|
14511
|
-
"
|
|
14512
|
-
"type": "boolean"
|
|
14568
|
+
"type": ["boolean", "null"]
|
|
14513
14569
|
}
|
|
14514
14570
|
},
|
|
14515
14571
|
"additionalProperties": false
|
|
@@ -14565,8 +14621,7 @@
|
|
|
14565
14621
|
"properties": {
|
|
14566
14622
|
"max": {
|
|
14567
14623
|
"description": "Maximum number of parameters allowed (default: 4)",
|
|
14568
|
-
"
|
|
14569
|
-
"type": "integer",
|
|
14624
|
+
"type": ["integer", "null"],
|
|
14570
14625
|
"format": "uint8",
|
|
14571
14626
|
"minimum": 0.0
|
|
14572
14627
|
}
|
|
@@ -14605,16 +14660,16 @@
|
|
|
14605
14660
|
"properties": {
|
|
14606
14661
|
"conventions": {
|
|
14607
14662
|
"description": "Custom conventions.",
|
|
14608
|
-
"type": "array",
|
|
14663
|
+
"type": ["array", "null"],
|
|
14609
14664
|
"items": { "$ref": "#/definitions/Convention" }
|
|
14610
14665
|
},
|
|
14611
14666
|
"requireAscii": {
|
|
14612
14667
|
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
14613
|
-
"type": "boolean"
|
|
14668
|
+
"type": ["boolean", "null"]
|
|
14614
14669
|
},
|
|
14615
14670
|
"strictCase": {
|
|
14616
14671
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
14617
|
-
"type": "boolean"
|
|
14672
|
+
"type": ["boolean", "null"]
|
|
14618
14673
|
}
|
|
14619
14674
|
},
|
|
14620
14675
|
"additionalProperties": false
|
|
@@ -14762,7 +14817,7 @@
|
|
|
14762
14817
|
"properties": {
|
|
14763
14818
|
"checkAllProperties": {
|
|
14764
14819
|
"description": "When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.",
|
|
14765
|
-
"type": "boolean"
|
|
14820
|
+
"type": ["boolean", "null"]
|
|
14766
14821
|
}
|
|
14767
14822
|
},
|
|
14768
14823
|
"additionalProperties": false
|
|
@@ -14785,9 +14840,7 @@
|
|
|
14785
14840
|
},
|
|
14786
14841
|
"UseSelfClosingElementsOptions": {
|
|
14787
14842
|
"type": "object",
|
|
14788
|
-
"properties": {
|
|
14789
|
-
"ignoreHtmlElements": { "default": false, "type": "boolean" }
|
|
14790
|
-
},
|
|
14843
|
+
"properties": { "ignoreHtmlElements": { "type": ["boolean", "null"] } },
|
|
14791
14844
|
"additionalProperties": false
|
|
14792
14845
|
},
|
|
14793
14846
|
"UseSemanticElementsConfiguration": {
|
|
@@ -14874,8 +14927,7 @@
|
|
|
14874
14927
|
"type": "object",
|
|
14875
14928
|
"properties": {
|
|
14876
14929
|
"sortOrder": {
|
|
14877
|
-
"
|
|
14878
|
-
"allOf": [{ "$ref": "#/definitions/SortOrder" }]
|
|
14930
|
+
"anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
|
|
14879
14931
|
}
|
|
14880
14932
|
},
|
|
14881
14933
|
"additionalProperties": false
|
|
@@ -14906,8 +14958,7 @@
|
|
|
14906
14958
|
"type": "object",
|
|
14907
14959
|
"properties": {
|
|
14908
14960
|
"sortOrder": {
|
|
14909
|
-
"
|
|
14910
|
-
"allOf": [{ "$ref": "#/definitions/SortOrder" }]
|
|
14961
|
+
"anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
|
|
14911
14962
|
}
|
|
14912
14963
|
},
|
|
14913
14964
|
"additionalProperties": false
|
|
@@ -15011,8 +15062,7 @@
|
|
|
15011
15062
|
"properties": {
|
|
15012
15063
|
"excludedComponents": {
|
|
15013
15064
|
"description": "Component names that accept an `id` prop that does not translate to a DOM element id.",
|
|
15014
|
-
"
|
|
15015
|
-
"type": "array",
|
|
15065
|
+
"type": ["array", "null"],
|
|
15016
15066
|
"items": { "type": "string" },
|
|
15017
15067
|
"uniqueItems": true
|
|
15018
15068
|
}
|
|
@@ -15050,14 +15100,12 @@
|
|
|
15050
15100
|
"properties": {
|
|
15051
15101
|
"allowInvalidRoles": {
|
|
15052
15102
|
"description": "It allows specifying a list of roles that might be invalid otherwise",
|
|
15053
|
-
"
|
|
15054
|
-
"type": "array",
|
|
15103
|
+
"type": ["array", "null"],
|
|
15055
15104
|
"items": { "type": "string" }
|
|
15056
15105
|
},
|
|
15057
15106
|
"ignoreNonDom": {
|
|
15058
15107
|
"description": "Use this option to ignore non-DOM elements, such as custom components",
|
|
15059
|
-
"
|
|
15060
|
-
"type": "boolean"
|
|
15108
|
+
"type": ["boolean", "null"]
|
|
15061
15109
|
}
|
|
15062
15110
|
},
|
|
15063
15111
|
"additionalProperties": false
|
|
@@ -15083,8 +15131,7 @@
|
|
|
15083
15131
|
"properties": {
|
|
15084
15132
|
"inputComponents": {
|
|
15085
15133
|
"description": "`input` like custom components that should be checked.",
|
|
15086
|
-
"
|
|
15087
|
-
"type": "array",
|
|
15134
|
+
"type": ["array", "null"],
|
|
15088
15135
|
"items": { "type": "string" }
|
|
15089
15136
|
}
|
|
15090
15137
|
},
|
|
@@ -15128,8 +15175,7 @@
|
|
|
15128
15175
|
"properties": {
|
|
15129
15176
|
"order": {
|
|
15130
15177
|
"description": "The order of the Vue define macros.",
|
|
15131
|
-
"
|
|
15132
|
-
"type": "array",
|
|
15178
|
+
"type": ["array", "null"],
|
|
15133
15179
|
"items": { "type": "string" }
|
|
15134
15180
|
}
|
|
15135
15181
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.5",
|
|
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.5",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.3.5",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.3.5",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.3.5",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.3.5",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.3.5",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.3.5",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.3.5"
|
|
57
57
|
}
|
|
58
58
|
}
|