Format source code¶
Bash
npm run format:check # Check formatting without modifying files
npm run format:write # Apply formatting automatically
# or
task format
- Formats
.tsand.jsfiles using Biome. - Format settings are configured in
biome.json.
Formatting automatically adjusts the layout and style of your code (indentation, spacing, line breaks) to match consistent rules.
References¶
biome.json— Biome formatter configurationpackage.json— npm scripts
Related¶
- Linter — Lint code with Biome
- Build — Type-check TypeScript
- Style Guide — Code style preferences