Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .changeset/bright-foxes-smile.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/calm-comments-rest.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/calm-scripts-format.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# prettier-plugin-astro

## 1.1.0

### Minor Changes

- bfbb6c5: 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

- 4b3547e: Fix non-idempotent indentation of multiline comments nested inside CSS rules.
- edfb35f: Fixes raw elements being forcefully paired up when self-closed.

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-plugin-astro",
"version": "1.0.1",
"version": "1.1.0",
"description": "A Prettier Plugin for formatting Astro files",
"keywords": [
"prettier-plugin",
Expand Down
Loading