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 fixed3 changed
Release note
Minor Changes
Adds support for three
astroAllowShorthandformatting modes:When unset /
undefined, the attributes stay as written, i.e<Comp value={value} />and<Comp {value} />can co-exist in the same file.When set to
true, attributes that can be written in the shorthand form will automatically be transformed.<Comp value={value} />will become<Comp {value} />When set to
false, attributes will always be expanded to their full form.
Patch Changes
Fix non-idempotent indentation of multiline comments nested inside CSS rules.
Fixes raw elements being forcefully paired up when self-closed.
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.