pickstack

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 --yes
Customize in the configurator

Packages it adds

PackageVersionType
@biomejs/biome2.6.8dev

New files

biome.json
{
  "$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

src/components/Counter.astro (changed)
 <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
src/layouts/Layout.astro (changed)
⋯ 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
src/pages/about.astro (changed)
⋯ 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

Related templates