pickstack

Astro + Prettier

Opinionated code formatter. This page shows exactly what pickstack adds to a Astro project for Prettier: 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 prettier --yes
Customize in the configurator

Packages it adds

PackageVersionType
prettier^3.10.1dev
prettier-plugin-astro^1.1.2dev

New files

.prettierignore
dist
.astro
pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lock
.prettierrc
{
  "plugins": ["prettier-plugin-astro"],
  "overrides": [
    {
      "files": "*.astro",
      "options": {
        "parser": "astro"
      }
    }
  ]
}

Changes to existing files

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, Prettier.</p>−    <p class="text">Built with Astro, TypeScript.</p>   </section> </Layout>  

Project files

Related templates