@biomejs/biome 2.2.3 → 2.2.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/configuration_schema.json +82 -0
- package/package.json +9 -9
|
@@ -2957,6 +2957,16 @@
|
|
|
2957
2957
|
"type": "object",
|
|
2958
2958
|
"additionalProperties": false
|
|
2959
2959
|
},
|
|
2960
|
+
"NoDuplicateDependenciesConfiguration": {
|
|
2961
|
+
"anyOf": [
|
|
2962
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2963
|
+
{ "$ref": "#/definitions/RuleWithNoDuplicateDependenciesOptions" }
|
|
2964
|
+
]
|
|
2965
|
+
},
|
|
2966
|
+
"NoDuplicateDependenciesOptions": {
|
|
2967
|
+
"type": "object",
|
|
2968
|
+
"additionalProperties": false
|
|
2969
|
+
},
|
|
2960
2970
|
"NoDuplicateElseIfConfiguration": {
|
|
2961
2971
|
"anyOf": [
|
|
2962
2972
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -3576,6 +3586,34 @@
|
|
|
3576
3586
|
"type": "object",
|
|
3577
3587
|
"additionalProperties": false
|
|
3578
3588
|
},
|
|
3589
|
+
"NoJsxLiteralsConfiguration": {
|
|
3590
|
+
"anyOf": [
|
|
3591
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3592
|
+
{ "$ref": "#/definitions/RuleWithNoJsxLiteralsOptions" }
|
|
3593
|
+
]
|
|
3594
|
+
},
|
|
3595
|
+
"NoJsxLiteralsOptions": {
|
|
3596
|
+
"type": "object",
|
|
3597
|
+
"properties": {
|
|
3598
|
+
"allowedStrings": {
|
|
3599
|
+
"description": "An array of strings that won't trigger the rule. Whitespaces are taken into consideration",
|
|
3600
|
+
"default": [],
|
|
3601
|
+
"type": "array",
|
|
3602
|
+
"items": { "type": "string" }
|
|
3603
|
+
},
|
|
3604
|
+
"ignoreProps": {
|
|
3605
|
+
"description": "When enabled, strings inside props are always ignored",
|
|
3606
|
+
"default": false,
|
|
3607
|
+
"type": "boolean"
|
|
3608
|
+
},
|
|
3609
|
+
"noStrings": {
|
|
3610
|
+
"description": "When enabled, also flag string literals inside JSX expressions and attributes",
|
|
3611
|
+
"default": false,
|
|
3612
|
+
"type": "boolean"
|
|
3613
|
+
}
|
|
3614
|
+
},
|
|
3615
|
+
"additionalProperties": false
|
|
3616
|
+
},
|
|
3579
3617
|
"NoLabelVarConfiguration": {
|
|
3580
3618
|
"anyOf": [
|
|
3581
3619
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -4911,6 +4949,13 @@
|
|
|
4911
4949
|
"description": "A list of rules that belong to this group",
|
|
4912
4950
|
"type": "object",
|
|
4913
4951
|
"properties": {
|
|
4952
|
+
"noDuplicateDependencies": {
|
|
4953
|
+
"description": "Disallow any dependency from being specified more than once (e.g. in dependencies and devDependencies)",
|
|
4954
|
+
"anyOf": [
|
|
4955
|
+
{ "$ref": "#/definitions/NoDuplicateDependenciesConfiguration" },
|
|
4956
|
+
{ "type": "null" }
|
|
4957
|
+
]
|
|
4958
|
+
},
|
|
4914
4959
|
"noFloatingPromises": {
|
|
4915
4960
|
"description": "Require Promise-like statements to be handled appropriately.",
|
|
4916
4961
|
"anyOf": [
|
|
@@ -4925,6 +4970,13 @@
|
|
|
4925
4970
|
{ "type": "null" }
|
|
4926
4971
|
]
|
|
4927
4972
|
},
|
|
4973
|
+
"noJsxLiterals": {
|
|
4974
|
+
"description": "Disallow string literals inside JSX elements.",
|
|
4975
|
+
"anyOf": [
|
|
4976
|
+
{ "$ref": "#/definitions/NoJsxLiteralsConfiguration" },
|
|
4977
|
+
{ "type": "null" }
|
|
4978
|
+
]
|
|
4979
|
+
},
|
|
4928
4980
|
"noMisusedPromises": {
|
|
4929
4981
|
"description": "Disallow Promises to be used in places where they are almost certainly a mistake.",
|
|
4930
4982
|
"anyOf": [
|
|
@@ -6553,6 +6605,21 @@
|
|
|
6553
6605
|
},
|
|
6554
6606
|
"additionalProperties": false
|
|
6555
6607
|
},
|
|
6608
|
+
"RuleWithNoDuplicateDependenciesOptions": {
|
|
6609
|
+
"type": "object",
|
|
6610
|
+
"required": ["level"],
|
|
6611
|
+
"properties": {
|
|
6612
|
+
"level": {
|
|
6613
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
6614
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
6615
|
+
},
|
|
6616
|
+
"options": {
|
|
6617
|
+
"description": "Rule's options",
|
|
6618
|
+
"allOf": [{ "$ref": "#/definitions/NoDuplicateDependenciesOptions" }]
|
|
6619
|
+
}
|
|
6620
|
+
},
|
|
6621
|
+
"additionalProperties": false
|
|
6622
|
+
},
|
|
6556
6623
|
"RuleWithNoDuplicateElseIfOptions": {
|
|
6557
6624
|
"type": "object",
|
|
6558
6625
|
"required": ["level"],
|
|
@@ -7532,6 +7599,21 @@
|
|
|
7532
7599
|
},
|
|
7533
7600
|
"additionalProperties": false
|
|
7534
7601
|
},
|
|
7602
|
+
"RuleWithNoJsxLiteralsOptions": {
|
|
7603
|
+
"type": "object",
|
|
7604
|
+
"required": ["level"],
|
|
7605
|
+
"properties": {
|
|
7606
|
+
"level": {
|
|
7607
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
7608
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
7609
|
+
},
|
|
7610
|
+
"options": {
|
|
7611
|
+
"description": "Rule's options",
|
|
7612
|
+
"allOf": [{ "$ref": "#/definitions/NoJsxLiteralsOptions" }]
|
|
7613
|
+
}
|
|
7614
|
+
},
|
|
7615
|
+
"additionalProperties": false
|
|
7616
|
+
},
|
|
7535
7617
|
"RuleWithNoLabelVarOptions": {
|
|
7536
7618
|
"type": "object",
|
|
7537
7619
|
"required": ["level"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.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.2.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.2.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.2.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.2.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.2.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.2.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.2.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.2.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.2.4",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.2.4",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.2.4",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.2.4",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.2.4",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.2.4",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.2.4",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.2.4"
|
|
57
57
|
}
|
|
58
58
|
}
|