prettier-plugin-astro
1.1.2 · 23 Oct 2026MIT1.7M / weekRepositoryHomepagenpmAtom feed
1.1.2 is the newest release of 1.x.
In short
2 breaking
- Breaking
Raises the minimum supported Node version to 22.12.0.
- Breaking
The plugin has been fully rewritten on top of Astro 7's new Rust compiler. This rewrite fixes many long-standing issues, such as certain elements not being handled properly inside expressions.
Release note
Major Changes
- Breaking
Raises the minimum supported Node version to 22.12.0.
- Breaking
The plugin has been fully rewritten on top of Astro 7's new Rust compiler. This rewrite fixes many long-standing issues, such as certain elements not being handled properly inside expressions.
Whitespace formatting now matches Astro’s whitespace handling, and a new
astroCompressHTMLoption has been added to match Astro'scompressHTMLsetting. If you setcompressHTMLin your Astro config, also setastroCompressHTMLin your Prettier config to match.In addition, this rewrite has allowed us to more closely match Prettier's built-in JSX and HTML formatting, leading to less cosmetic differences between the different files in your repo.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.