withastro / prettier-plugin-astro

Prettier plugin for Astro
Other
479 stars 36 forks source link

Fix attributes using optional chaining not formatting correctly #384

Closed Princesseuh closed 12 months ago

Princesseuh commented 12 months ago

Changes

What the title says. We were trying to make spread attributes compatible, but we don't need to because they're already valid JavaScript

Fix https://github.com/withastro/prettier-plugin-astro/issues/383

Testing

Updated tests to test for more cases

Docs

N/A

changeset-bot[bot] commented 12 months ago

🦋 Changeset detected

Latest commit: 4f39be1140ca6a60fb900a71f70c2210644f25b4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------------- | ----- | | prettier-plugin-astro | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR