Astro + Biome
Linter and formatter in one tool (replaces ESLint + Prettier). This page shows exactly what pickstack adds to a Astro project for Biome: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework astro --modules biome --yesCustomize in the configurator
Packages it adds
| Package | Version | Type |
|---|---|---|
@biomejs/biome | 2.6.8 | dev |
New files
{
"$schema": "https://biomejs.dev/schemas/2.6.8/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"preset": "recommended"
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"html": {
"experimentalFullSupportEnabled": true,
"formatter": {
"enabled": true,
"selfCloseVoidElements": "always",
"indentScriptAndStyle": true
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
Changes to existing files
<counter-card> <div class="card">+ <p class="count" data-count>0</p>− <p class="count" data-count>− 0− </p> <div class="row">+ <button type="button" class="btn" data-step="-1">-1</button>+ <button type="button" class="btn" data-step="1">+1</button>− <button type="button" class="btn" data-step="-1">− -1− </button>− <button type="button" class="btn" data-step="1">− +1− </button> </div> </div> </counter-card>⋯ 18 unchanged lines
⋯ 17 unchanged lines <body> <main class="app"> <nav class="nav">+ <a class="link" href="/">Home</a>+ <a class="link" href="/about">About</a>− <a class="link" href="/">− Home− </a>− <a class="link" href="/about">− About− </a> </nav> <slot /> </main>⋯ 3 unchanged lines
⋯ 4 unchanged lines <Layout title="About"> <section class="page"> <h1 class="title">About</h1>+ <p class="text">Built with Astro, TypeScript, Biome.</p>− <p class="text">Built with Astro, TypeScript.</p> </section> </Layout>
Project files
.gitignoreREADME.mdastro.config.mjsbiome.jsonpackage.jsonsrc/components/Counter.astrosrc/layouts/Layout.astrosrc/pages/about.astrosrc/pages/index.astrosrc/styles/global.csstsconfig.json