tools
tools copied to clipboard
📎 JSON Schema
Description
Create a JSON schema (following json-schema standard) would be a nice improvement to the configuration file.
I would be happy to help into this. It can be uploaded on the website then (like turbo does.) or on SchemaStore
I use this in moon and it works great https://crates.io/crates/schemars
As an example, these are the schemas it creates: https://github.com/moonrepo/moon/tree/master/website/static/schemas
@milesj
I just created a PR (#3602) for the schema and it seems to work pretty well. Anyway maybe the crate you mentioned is a better way to keep it updated (I generated mine running a script on the docs page)

Unrelated tangent: @Rawnly
What editor and theme is that in your screenshot? It looks quite nice.
Unrelated tangent:
@Rawnly
What editor and theme is that in your screenshot? It looks quite nice.
Hey is neovim with catppuccin theme
For now, while writing the configuration file you can reference https://raw.githubusercontent.com/rome/tools/main/editors/vscode/configuration_schema.json like so:
{
"$schema": "https://raw.githubusercontent.com/rome/tools/main/editors/vscode/configuration_schema.json",
"formatter": {
"indentStyle": "space"
},
"javascript": {
"formatter": {
"trailingComma": "none"
}
}
}
However $schema cannot be used when running rome, see #3690.
Duplicate of https://github.com/rome/tools/issues/3690
I want to keep only one issue around.