Skip to content
Edit this page View source of this page

Biome

Biome formats and lints supported web and configuration files. In this template, use it for files such as the Dev Container's JSON configuration and for web files you add to your project.

Configuration in this template

biome.json enables Git ignore integration, uses EditorConfig for formatter defaults, and sets the formatter's line width to 120. It selects Biome's recommended lint rules and enables the experimental full HTML support and HTML formatter. Markdown, MDX, and YAML are excluded. Use rumdl for Markdown and the check-yaml Prek hook for YAML syntax.

Check or fix a file

From the repository root, run a check on the file you edited. Add --write when you want Biome to apply formatting and available safe fixes, then review the diff.

biome check .devcontainer/devcontainer.json
biome check --write .devcontainer/devcontainer.json

The biome-check hook is registered in prek.toml. Set file patterns, formatter settings, or lint rules in biome.json if your derived project adds web code or generated assets. Biome configuration reference