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)

package.json

Now, whenever you upgrade the version of @biomejs/biome it will automatically make the necessary changes to your biome.json file.

Comments

Your email will never ever be published.

Previous:
gg shell completion August 13, 2025 Linux, JavaScript, Bun, macOS
Related by category:
gg2 - a new CLI for helping me manage git branches August 6, 2025 Bun, JavaScript
Parse a CSV file with Bun September 13, 2023 Bun
Switching from Next.js to Vite + wouter July 28, 2023 JavaScript, Node
An ideal pattern to combine React Router with TanStack Query November 18, 2024 JavaScript
Related by keyword:
How I do deployments December 16, 2013 Linux, Web development