@biomejs/biome 2.4.4 → 2.4.6
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 +165 -1
- package/package.json +9 -9
|
@@ -5668,6 +5668,16 @@
|
|
|
5668
5668
|
"type": "object",
|
|
5669
5669
|
"additionalProperties": false
|
|
5670
5670
|
},
|
|
5671
|
+
"NoVueRefAsOperandConfiguration": {
|
|
5672
|
+
"oneOf": [
|
|
5673
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5674
|
+
{ "$ref": "#/$defs/RuleWithNoVueRefAsOperandOptions" }
|
|
5675
|
+
]
|
|
5676
|
+
},
|
|
5677
|
+
"NoVueRefAsOperandOptions": {
|
|
5678
|
+
"type": "object",
|
|
5679
|
+
"additionalProperties": false
|
|
5680
|
+
},
|
|
5671
5681
|
"NoVueReservedKeysConfiguration": {
|
|
5672
5682
|
"oneOf": [
|
|
5673
5683
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -6113,6 +6123,13 @@
|
|
|
6113
6123
|
{ "type": "null" }
|
|
6114
6124
|
]
|
|
6115
6125
|
},
|
|
6126
|
+
"noVueRefAsOperand": {
|
|
6127
|
+
"description": "Disallow the use of value wrapped by ref()(Composition API) as operand.\nSee https://biomejs.dev/linter/rules/no-vue-ref-as-operand",
|
|
6128
|
+
"anyOf": [
|
|
6129
|
+
{ "$ref": "#/$defs/NoVueRefAsOperandConfiguration" },
|
|
6130
|
+
{ "type": "null" }
|
|
6131
|
+
]
|
|
6132
|
+
},
|
|
6116
6133
|
"noVueVIfWithVFor": {
|
|
6117
6134
|
"description": "Disallow using v-if and v-for directives on the same element.\nSee https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for",
|
|
6118
6135
|
"anyOf": [
|
|
@@ -6124,6 +6141,13 @@
|
|
|
6124
6141
|
"description": "Enables the recommended rules for this group",
|
|
6125
6142
|
"type": ["boolean", "null"]
|
|
6126
6143
|
},
|
|
6144
|
+
"useArraySome": {
|
|
6145
|
+
"description": "Prefer Array.prototype.some() over verbose existence checks.\nSee https://biomejs.dev/linter/rules/use-array-some",
|
|
6146
|
+
"anyOf": [
|
|
6147
|
+
{ "$ref": "#/$defs/UseArraySomeConfiguration" },
|
|
6148
|
+
{ "type": "null" }
|
|
6149
|
+
]
|
|
6150
|
+
},
|
|
6127
6151
|
"useArraySortCompare": {
|
|
6128
6152
|
"description": "Require Array#sort and Array#toSorted calls to always provide a compareFunction.\nSee https://biomejs.dev/linter/rules/use-array-sort-compare",
|
|
6129
6153
|
"anyOf": [
|
|
@@ -6181,7 +6205,7 @@
|
|
|
6181
6205
|
]
|
|
6182
6206
|
},
|
|
6183
6207
|
"useExpect": {
|
|
6184
|
-
"description": "Ensure that test functions contain at least one expect() assertion.\nSee https://biomejs.dev/linter/rules/use-expect",
|
|
6208
|
+
"description": "Ensure that test functions contain at least one expect() or similar assertion.\nSee https://biomejs.dev/linter/rules/use-expect",
|
|
6185
6209
|
"anyOf": [
|
|
6186
6210
|
{ "$ref": "#/$defs/UseExpectConfiguration" },
|
|
6187
6211
|
{ "type": "null" }
|
|
@@ -6236,6 +6260,20 @@
|
|
|
6236
6260
|
{ "type": "null" }
|
|
6237
6261
|
]
|
|
6238
6262
|
},
|
|
6263
|
+
"useNamedCaptureGroup": {
|
|
6264
|
+
"description": "Enforce using named capture groups in regular expression.\nSee https://biomejs.dev/linter/rules/use-named-capture-group",
|
|
6265
|
+
"anyOf": [
|
|
6266
|
+
{ "$ref": "#/$defs/UseNamedCaptureGroupConfiguration" },
|
|
6267
|
+
{ "type": "null" }
|
|
6268
|
+
]
|
|
6269
|
+
},
|
|
6270
|
+
"useNullishCoalescing": {
|
|
6271
|
+
"description": "Enforce using the nullish coalescing operator (??) instead of logical or (||).\nSee https://biomejs.dev/linter/rules/use-nullish-coalescing",
|
|
6272
|
+
"anyOf": [
|
|
6273
|
+
{ "$ref": "#/$defs/UseNullishCoalescingConfiguration" },
|
|
6274
|
+
{ "type": "null" }
|
|
6275
|
+
]
|
|
6276
|
+
},
|
|
6239
6277
|
"usePlaywrightValidDescribeCallback": {
|
|
6240
6278
|
"description": "Enforce valid describe() callback.\nSee https://biomejs.dev/linter/rules/use-playwright-valid-describe-callback",
|
|
6241
6279
|
"anyOf": [
|
|
@@ -6259,6 +6297,13 @@
|
|
|
6259
6297
|
{ "type": "null" }
|
|
6260
6298
|
]
|
|
6261
6299
|
},
|
|
6300
|
+
"useScopedStyles": {
|
|
6301
|
+
"description": "Enforce that \\<style> blocks in Vue SFCs have the scoped attribute and that \\<style> blocks in Astro components do not have the is:global directive.\nSee https://biomejs.dev/linter/rules/use-scoped-styles",
|
|
6302
|
+
"anyOf": [
|
|
6303
|
+
{ "$ref": "#/$defs/UseScopedStylesConfiguration" },
|
|
6304
|
+
{ "type": "null" }
|
|
6305
|
+
]
|
|
6306
|
+
},
|
|
6262
6307
|
"useSortedClasses": {
|
|
6263
6308
|
"description": "Enforce the sorting of CSS utility classes.\nSee https://biomejs.dev/linter/rules/use-sorted-classes",
|
|
6264
6309
|
"anyOf": [
|
|
@@ -6273,6 +6318,13 @@
|
|
|
6273
6318
|
{ "type": "null" }
|
|
6274
6319
|
]
|
|
6275
6320
|
},
|
|
6321
|
+
"useUnicodeRegex": {
|
|
6322
|
+
"description": "Enforce the use of the u or v flag for regular expressions.\nSee https://biomejs.dev/linter/rules/use-unicode-regex",
|
|
6323
|
+
"anyOf": [
|
|
6324
|
+
{ "$ref": "#/$defs/UseUnicodeRegexConfiguration" },
|
|
6325
|
+
{ "type": "null" }
|
|
6326
|
+
]
|
|
6327
|
+
},
|
|
6276
6328
|
"useVueConsistentDefinePropsDeclaration": {
|
|
6277
6329
|
"description": "Enforce consistent defineProps declaration style.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration",
|
|
6278
6330
|
"anyOf": [
|
|
@@ -9651,6 +9703,15 @@
|
|
|
9651
9703
|
"additionalProperties": false,
|
|
9652
9704
|
"required": ["level"]
|
|
9653
9705
|
},
|
|
9706
|
+
"RuleWithNoVueRefAsOperandOptions": {
|
|
9707
|
+
"type": "object",
|
|
9708
|
+
"properties": {
|
|
9709
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9710
|
+
"options": { "$ref": "#/$defs/NoVueRefAsOperandOptions" }
|
|
9711
|
+
},
|
|
9712
|
+
"additionalProperties": false,
|
|
9713
|
+
"required": ["level"]
|
|
9714
|
+
},
|
|
9654
9715
|
"RuleWithNoVueReservedKeysOptions": {
|
|
9655
9716
|
"type": "object",
|
|
9656
9717
|
"properties": {
|
|
@@ -9774,6 +9835,16 @@
|
|
|
9774
9835
|
"additionalProperties": false,
|
|
9775
9836
|
"required": ["level"]
|
|
9776
9837
|
},
|
|
9838
|
+
"RuleWithUseArraySomeOptions": {
|
|
9839
|
+
"type": "object",
|
|
9840
|
+
"properties": {
|
|
9841
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
9842
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9843
|
+
"options": { "$ref": "#/$defs/UseArraySomeOptions" }
|
|
9844
|
+
},
|
|
9845
|
+
"additionalProperties": false,
|
|
9846
|
+
"required": ["level"]
|
|
9847
|
+
},
|
|
9777
9848
|
"RuleWithUseArraySortCompareOptions": {
|
|
9778
9849
|
"type": "object",
|
|
9779
9850
|
"properties": {
|
|
@@ -10520,6 +10591,15 @@
|
|
|
10520
10591
|
"additionalProperties": false,
|
|
10521
10592
|
"required": ["level"]
|
|
10522
10593
|
},
|
|
10594
|
+
"RuleWithUseNamedCaptureGroupOptions": {
|
|
10595
|
+
"type": "object",
|
|
10596
|
+
"properties": {
|
|
10597
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10598
|
+
"options": { "$ref": "#/$defs/UseNamedCaptureGroupOptions" }
|
|
10599
|
+
},
|
|
10600
|
+
"additionalProperties": false,
|
|
10601
|
+
"required": ["level"]
|
|
10602
|
+
},
|
|
10523
10603
|
"RuleWithUseNamespaceKeywordOptions": {
|
|
10524
10604
|
"type": "object",
|
|
10525
10605
|
"properties": {
|
|
@@ -10560,6 +10640,16 @@
|
|
|
10560
10640
|
"additionalProperties": false,
|
|
10561
10641
|
"required": ["level"]
|
|
10562
10642
|
},
|
|
10643
|
+
"RuleWithUseNullishCoalescingOptions": {
|
|
10644
|
+
"type": "object",
|
|
10645
|
+
"properties": {
|
|
10646
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
10647
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10648
|
+
"options": { "$ref": "#/$defs/UseNullishCoalescingOptions" }
|
|
10649
|
+
},
|
|
10650
|
+
"additionalProperties": false,
|
|
10651
|
+
"required": ["level"]
|
|
10652
|
+
},
|
|
10563
10653
|
"RuleWithUseNumberNamespaceOptions": {
|
|
10564
10654
|
"type": "object",
|
|
10565
10655
|
"properties": {
|
|
@@ -10715,6 +10805,16 @@
|
|
|
10715
10805
|
"additionalProperties": false,
|
|
10716
10806
|
"required": ["level"]
|
|
10717
10807
|
},
|
|
10808
|
+
"RuleWithUseScopedStylesOptions": {
|
|
10809
|
+
"type": "object",
|
|
10810
|
+
"properties": {
|
|
10811
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
10812
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10813
|
+
"options": { "$ref": "#/$defs/UseScopedStylesOptions" }
|
|
10814
|
+
},
|
|
10815
|
+
"additionalProperties": false,
|
|
10816
|
+
"required": ["level"]
|
|
10817
|
+
},
|
|
10718
10818
|
"RuleWithUseSelfClosingElementsOptions": {
|
|
10719
10819
|
"type": "object",
|
|
10720
10820
|
"properties": {
|
|
@@ -10900,6 +11000,16 @@
|
|
|
10900
11000
|
"additionalProperties": false,
|
|
10901
11001
|
"required": ["level"]
|
|
10902
11002
|
},
|
|
11003
|
+
"RuleWithUseUnicodeRegexOptions": {
|
|
11004
|
+
"type": "object",
|
|
11005
|
+
"properties": {
|
|
11006
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
11007
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
11008
|
+
"options": { "$ref": "#/$defs/UseUnicodeRegexOptions" }
|
|
11009
|
+
},
|
|
11010
|
+
"additionalProperties": false,
|
|
11011
|
+
"required": ["level"]
|
|
11012
|
+
},
|
|
10903
11013
|
"RuleWithUseUnifiedTypeSignaturesOptions": {
|
|
10904
11014
|
"type": "object",
|
|
10905
11015
|
"properties": {
|
|
@@ -12797,6 +12907,13 @@
|
|
|
12797
12907
|
"type": "object",
|
|
12798
12908
|
"additionalProperties": false
|
|
12799
12909
|
},
|
|
12910
|
+
"UseArraySomeConfiguration": {
|
|
12911
|
+
"oneOf": [
|
|
12912
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
12913
|
+
{ "$ref": "#/$defs/RuleWithUseArraySomeOptions" }
|
|
12914
|
+
]
|
|
12915
|
+
},
|
|
12916
|
+
"UseArraySomeOptions": { "type": "object", "additionalProperties": false },
|
|
12800
12917
|
"UseArraySortCompareConfiguration": {
|
|
12801
12918
|
"oneOf": [
|
|
12802
12919
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -13739,6 +13856,16 @@
|
|
|
13739
13856
|
"type": "object",
|
|
13740
13857
|
"additionalProperties": false
|
|
13741
13858
|
},
|
|
13859
|
+
"UseNamedCaptureGroupConfiguration": {
|
|
13860
|
+
"oneOf": [
|
|
13861
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
13862
|
+
{ "$ref": "#/$defs/RuleWithUseNamedCaptureGroupOptions" }
|
|
13863
|
+
]
|
|
13864
|
+
},
|
|
13865
|
+
"UseNamedCaptureGroupOptions": {
|
|
13866
|
+
"type": "object",
|
|
13867
|
+
"additionalProperties": false
|
|
13868
|
+
},
|
|
13742
13869
|
"UseNamespaceKeywordConfiguration": {
|
|
13743
13870
|
"oneOf": [
|
|
13744
13871
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -13795,6 +13922,23 @@
|
|
|
13795
13922
|
"type": "object",
|
|
13796
13923
|
"additionalProperties": false
|
|
13797
13924
|
},
|
|
13925
|
+
"UseNullishCoalescingConfiguration": {
|
|
13926
|
+
"oneOf": [
|
|
13927
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
13928
|
+
{ "$ref": "#/$defs/RuleWithUseNullishCoalescingOptions" }
|
|
13929
|
+
]
|
|
13930
|
+
},
|
|
13931
|
+
"UseNullishCoalescingOptions": {
|
|
13932
|
+
"type": "object",
|
|
13933
|
+
"properties": {
|
|
13934
|
+
"ignoreConditionalTests": {
|
|
13935
|
+
"description": "Whether to ignore `||` expressions in conditional test positions\n(if/while/for/do-while/ternary conditions).\n\nWhen `true` (the default), the rule will not report `||` expressions\nthat appear in places where the falsy-checking behavior may be intentional.\n\nDefault: `true`",
|
|
13936
|
+
"type": ["boolean", "null"],
|
|
13937
|
+
"default": null
|
|
13938
|
+
}
|
|
13939
|
+
},
|
|
13940
|
+
"additionalProperties": false
|
|
13941
|
+
},
|
|
13798
13942
|
"UseNumberNamespaceConfiguration": {
|
|
13799
13943
|
"oneOf": [
|
|
13800
13944
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -13966,6 +14110,16 @@
|
|
|
13966
14110
|
},
|
|
13967
14111
|
"additionalProperties": false
|
|
13968
14112
|
},
|
|
14113
|
+
"UseScopedStylesConfiguration": {
|
|
14114
|
+
"oneOf": [
|
|
14115
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
14116
|
+
{ "$ref": "#/$defs/RuleWithUseScopedStylesOptions" }
|
|
14117
|
+
]
|
|
14118
|
+
},
|
|
14119
|
+
"UseScopedStylesOptions": {
|
|
14120
|
+
"type": "object",
|
|
14121
|
+
"additionalProperties": false
|
|
14122
|
+
},
|
|
13969
14123
|
"UseSelfClosingElementsConfiguration": {
|
|
13970
14124
|
"oneOf": [
|
|
13971
14125
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -14214,6 +14368,16 @@
|
|
|
14214
14368
|
"type": "object",
|
|
14215
14369
|
"additionalProperties": false
|
|
14216
14370
|
},
|
|
14371
|
+
"UseUnicodeRegexConfiguration": {
|
|
14372
|
+
"oneOf": [
|
|
14373
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
14374
|
+
{ "$ref": "#/$defs/RuleWithUseUnicodeRegexOptions" }
|
|
14375
|
+
]
|
|
14376
|
+
},
|
|
14377
|
+
"UseUnicodeRegexOptions": {
|
|
14378
|
+
"type": "object",
|
|
14379
|
+
"additionalProperties": false
|
|
14380
|
+
},
|
|
14217
14381
|
"UseUnifiedTypeSignaturesConfiguration": {
|
|
14218
14382
|
"oneOf": [
|
|
14219
14383
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
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.4.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.4.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.4.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.4.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.4.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.4.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.4.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.4.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.4.6",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.4.6",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.4.6",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.4.6",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.4.6",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.4.6",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.4.6",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.4.6"
|
|
57
57
|
}
|
|
58
58
|
}
|