Biome is awesome. I use it on all my side-projects. It replaces prettier
and eslint
. And it's significantly faster.
An annoying thing about biome
is that every time you upgrade to a new version, you have to remember to run (bunx|npx) @biomejs/biome migrate --write
. This is to update your checked in biome.json
. But there's a solution to this! Add this to the scripts
portion of your package.json
:
{
"scripts": {
...
"postinstall": "bunx @biomejs/biome migrate --write"
}
...
(Replace bunx
with npx
if you use npm
)
Now, whenever you upgrade the version of @biomejs/biome
it will automatically make the necessary changes to your biome.json
file.
Comments