formatter-development

Installation
SKILL.md

Purpose

Use this skill when implementing or modifying Biome's formatters. It covers the trait-based formatting system, IR generation, comment handling, and testing with Prettier comparison.

Prerequisites

  1. Install required tools: just install-tools (includes wasm-bindgen-cli and wasm-opt)
  2. Language-specific crates must exist: biome_{lang}_syntax, biome_{lang}_formatter
  3. For Prettier comparison: Install bun and run pnpm install in repo root

Common Workflows

Generate Formatter Boilerplate

For a new language (e.g., HTML):

just gen-formatter html
Related skills

More from biomejs/biome

Installs
73
Repository
biomejs/biome
GitHub Stars
24.6K
First Seen
Feb 18, 2026