Packages

prettier-plugin-astro

1.1.2 · 23 Oct 2026MIT1.7M / weekRepositoryHomepagenpmAtom feed

Your version

1.1.0

24 Sep 2026Where it was published

1.1.2 is the newest release of 1.x.

In short

2 fixed3 changed

Release note

Minor Changes

  • Adds support for three astroAllowShorthand formatting 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.