Skip to content

Commit

Permalink
Sort classes inside className in Astro (#215)
Browse files Browse the repository at this point in the history
* Update lockfile

* Add `className` to sortable properties in Astro

When using Astro with React you’d also want to sort `className` in addition to `class` and `class:list`. While we might be able to do some work to figure out if the element the attribute is on is a React component it seems unnecessary and I think it’s reasonable to have this enabled all the time.

* Update changelog
  • Loading branch information
thecrypticace authored Sep 18, 2023
1 parent 38fed86 commit b300077
Show file tree
Hide file tree
Showing 4 changed files with 1,241 additions and 1,050 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Nothing yet!
### Fixed

- Sort classes inside `className` in Astro ([#215](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/215))

## [0.5.4] - 2023-08-31

Expand Down
Loading

0 comments on commit b300077

Please sign in to comment.