Replies: 3 comments 2 replies
-
We recommend running |
Beta Was this translation helpful? Give feedback.
-
Another option, if you are using node_modules, you can point it to local version like this: |
Beta Was this translation helpful? Give feedback.
-
Users keep reporting issues with the schema because they don't update it. I wonder if we could emit a warning that advise running |
Beta Was this translation helpful? Give feedback.
-
Consider the situation:
A developer sets up
biome.json
, specifying"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
at the top, perhaps following the guidelines, not giving much thought about it.Biome 1.9.0 comes along, with new, undoubtedly cool features.
The developer would like to use some of these new features and tries to enable them in biome.json. They are met with "Found an unknown key" or similar in their IDE. Unless they know what
$schema
does, they could be puzzled about why their now has errors, despite Biome being fully up to date.Solution:
When Biome runs, check if Biome version matches
$schema
. If not, update$schema
on the fly.Beta Was this translation helpful? Give feedback.
All reactions