Home / Market / biome toolchain

biome toolchain

Configure, run, and migrate JS/TS projects to Biome v2 formatting and linting. Separate safe from unsafe fixes, scope overrides, run biome ci, and pair with tsc for type-aware checks.

skill★ 508750 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: biome-toolchain description: "Configure, run, and migrate JS/TS projects to Biome v2 formatting and linting. Separate safe from unsafe fixes, scope overrides, run biome ci, and pair with tsc for type-aware checks." category: code-quality risk: critical source: self source_type: self date_added: "2026-11-30" author: ShianMike tags: [biome, typescript, javascript, linting, formatting, ci]

---

Biome Toolchain

When to Use

Prerequisites

Inspect the repository's package.json, lockfile, installed @biomejs/biome version (npx --no-install biome --version or ./node_modules/.bin/biome --version), existing biome.json / biome.jsonc, and any coexisting ESLint, Prettier, or tsconfig.json setup. Pin $schema in biome.json to the installed Biome version so schema validation matches the binary.

Configure Biome v2 cleanly

  1. Match the installed schema version (for example Biome 2.6+ uses "linter": { "rules": { "preset": "recommended" } } rather than the deprecated "recommended": true key; run biome migrate when upgrading older configs).
  2. Enable VCS integration ("vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }) when appropriate so .gitignore entries are respected without duplicating ignore globs, and use files.includes for generated or vendored exclusions.
  3. Scope rule relaxations narrowly with "overrides" (for example turning off suspicious/noExplicitAny only for tests/** rather than disabling it globally).
  4. In monorepos, place a shared root biome.json and extend it from packages with "extends": "//" (Biome v2 root-extends syntax) when packages need local overrides.

Separate safe fixes, unsafe fixes, and CI checks

Pair Biome with tsc for type-checked invariants

Example

> Configure a Biome 2.6 project that bans any in src/ while allowing it in tests/, and prove biome check --write applies safe fixes without silently applying unsafe rewrites.

Run the worked Biome check and safe-fix verification to verify biome.json schema compliance, per-directory overrides, safe vs unsafe autofix behavior, and a passing biome ci run after fixing the source error.

Limitations

Safety and Side Effects

Inspect package.json scripts and run read-only biome check before --write. Do not run --write --unsafe without reviewing the affected files and running tests. Avoid using npx to download an unpinned Biome binary silently when the project already pins a version in node_modules.

Related Skills and Documentation