Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions crates/biome_rule_options/src/no_restricted_elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ impl schemars::JsonSchema for CustomRestrictedElements {
}

fn json_schema(_generator: &mut schemars::SchemaGenerator) -> schemars::Schema {
// Generate schema for FxHashMap<Box<str>, Box<str>> inline
schemars::json_schema!({
"$ref": "#/definitions/CustomRestrictedElementsBaseType",
"minProperties": 1
"type": "object",
"additionalProperties": {
"type": "string"
},
"minProperties": 1,
"description": "Elements to restrict. Each key is the element name, and the value is the message to show when the element is used."
})
}
}
Expand Down
1 change: 0 additions & 1 deletion crates/biome_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ biome_fs = { workspace = true }
biome_service = { workspace = true, features = ["schema"] }
camino = { workspace = true }
js-sys = "0.3.82"
schemars = { workspace = true }
serde = { workspace = true }
serde-wasm-bindgen = "0.6.5"
serde_json = { workspace = true }
Expand Down
5 changes: 4 additions & 1 deletion packages/@biomejs/backend-jsonrpc/src/workspace.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/@biomejs/biome/configuration_schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.