Shared Biome config for Astro projects
(bun|npm|pnpm|yarn) add -D @biomejs/biome biome-config-astro
Add the extends
array to your project's biome.json
file:
// <project-root>/biome.json
{
// ...
"extends": ["biome-config-astro"],
// ...
}
Add scripts to your package.json
if you haven't already:
// <project-root>/package.json
{
//...
"scripts": {
"format": "biome format . --write",
"lint": "biome lint .",
"lint:fix": "biome lint . --apply",
"lint:fix:unsafe": "biome lint . --apply-unsafe"
}
// ...
}
ISC License © 2024 Marc Redwerkz