@biomejs/biome 2.5.5 → 2.5.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 +61 -0
- package/package.json +9 -9
|
@@ -4519,6 +4519,23 @@
|
|
|
4519
4519
|
"type": "object",
|
|
4520
4520
|
"additionalProperties": false
|
|
4521
4521
|
},
|
|
4522
|
+
"NoJsRestrictedPropertiesConfiguration": {
|
|
4523
|
+
"oneOf": [
|
|
4524
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
4525
|
+
{ "$ref": "#/$defs/RuleWithNoJsRestrictedPropertiesOptions" }
|
|
4526
|
+
]
|
|
4527
|
+
},
|
|
4528
|
+
"NoJsRestrictedPropertiesOptions": {
|
|
4529
|
+
"type": "object",
|
|
4530
|
+
"properties": {
|
|
4531
|
+
"entries": {
|
|
4532
|
+
"description": "Restriction entries for object/property access.\n\nEach entry can describe one of these cases:\n\n- exact object/property match:\n `{ \"object\": \"require\", \"property\": \"ensure\" }`\n- property-wide restriction with allowed objects:\n `{ \"property\": \"__defineGetter__\", \"allowObjects\": [\"Object\"] }`\n- object-wide restriction with allowed properties:\n `{ \"object\": \"arguments\", \"allowProperties\": [\"length\"] }`",
|
|
4533
|
+
"type": ["array", "null"],
|
|
4534
|
+
"items": { "$ref": "#/$defs/RestrictedPropertyEntry" }
|
|
4535
|
+
}
|
|
4536
|
+
},
|
|
4537
|
+
"additionalProperties": false
|
|
4538
|
+
},
|
|
4522
4539
|
"NoJsxLeakedDollarConfiguration": {
|
|
4523
4540
|
"oneOf": [
|
|
4524
4541
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -6682,6 +6699,13 @@
|
|
|
6682
6699
|
{ "type": "null" }
|
|
6683
6700
|
]
|
|
6684
6701
|
},
|
|
6702
|
+
"noJsRestrictedProperties": {
|
|
6703
|
+
"description": "Disallow specific object properties.\nSee https://biomejs.dev/linter/rules/no-js-restricted-properties",
|
|
6704
|
+
"anyOf": [
|
|
6705
|
+
{ "$ref": "#/$defs/NoJsRestrictedPropertiesConfiguration" },
|
|
6706
|
+
{ "type": "null" }
|
|
6707
|
+
]
|
|
6708
|
+
},
|
|
6685
6709
|
"noJsxLeakedDollar": {
|
|
6686
6710
|
"description": "Flags text nodes with a trailing $ before a JSX expression.\nSee https://biomejs.dev/linter/rules/no-jsx-leaked-dollar",
|
|
6687
6711
|
"anyOf": [
|
|
@@ -7638,6 +7662,34 @@
|
|
|
7638
7662
|
"type": "string",
|
|
7639
7663
|
"enum": ["abstract", "private", "protected", "readonly", "static"]
|
|
7640
7664
|
},
|
|
7665
|
+
"RestrictedPropertyEntry": {
|
|
7666
|
+
"type": "object",
|
|
7667
|
+
"properties": {
|
|
7668
|
+
"allowObjects": {
|
|
7669
|
+
"description": "Objects that are allowed when `property` is restricted globally.\n\nExample:\n`{ \"property\": \"__defineGetter__\", \"allowObjects\": [\"Object\"] }`",
|
|
7670
|
+
"type": "array",
|
|
7671
|
+
"items": { "type": "string" }
|
|
7672
|
+
},
|
|
7673
|
+
"allowProperties": {
|
|
7674
|
+
"description": "Properties that are allowed when `object` is restricted globally.\n\nExample:\n`{ \"object\": \"arguments\", \"allowProperties\": [\"length\"] }`",
|
|
7675
|
+
"type": "array",
|
|
7676
|
+
"items": { "type": "string" }
|
|
7677
|
+
},
|
|
7678
|
+
"message": {
|
|
7679
|
+
"description": "Optional custom note appended to the diagnostic.",
|
|
7680
|
+
"type": ["string", "null"]
|
|
7681
|
+
},
|
|
7682
|
+
"object": {
|
|
7683
|
+
"description": "Object name to restrict.\n\nExample: `\"require\"` or `\"Object\"`.",
|
|
7684
|
+
"type": ["string", "null"]
|
|
7685
|
+
},
|
|
7686
|
+
"property": {
|
|
7687
|
+
"description": "Property name to restrict.\n\nExample: `\"ensure\"` or `\"__defineGetter__\"`.",
|
|
7688
|
+
"type": ["string", "null"]
|
|
7689
|
+
}
|
|
7690
|
+
},
|
|
7691
|
+
"additionalProperties": false
|
|
7692
|
+
},
|
|
7641
7693
|
"RuleAssistPlainConfiguration": { "type": "string", "enum": ["off", "on"] },
|
|
7642
7694
|
"RuleAssistWithNoDuplicateClassesOptions": {
|
|
7643
7695
|
"type": "object",
|
|
@@ -9184,6 +9236,15 @@
|
|
|
9184
9236
|
"additionalProperties": false,
|
|
9185
9237
|
"required": ["level"]
|
|
9186
9238
|
},
|
|
9239
|
+
"RuleWithNoJsRestrictedPropertiesOptions": {
|
|
9240
|
+
"type": "object",
|
|
9241
|
+
"properties": {
|
|
9242
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9243
|
+
"options": { "$ref": "#/$defs/NoJsRestrictedPropertiesOptions" }
|
|
9244
|
+
},
|
|
9245
|
+
"additionalProperties": false,
|
|
9246
|
+
"required": ["level"]
|
|
9247
|
+
},
|
|
9187
9248
|
"RuleWithNoJsxLeakedDollarOptions": {
|
|
9188
9249
|
"type": "object",
|
|
9189
9250
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.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.5.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.5.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.5.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.5.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.5.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.5.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.5.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.5.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.5.6",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.5.6",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.5.6",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.5.6",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.5.6",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.5.6",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.5.6",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.5.6"
|
|
57
57
|
}
|
|
58
58
|
}
|