Skip to content

Support new plugin: prettier-plugin-jsx-attr-sort#383

Closed
mattiamalonni wants to merge 3 commits intotailwindlabs:mainfrom
mattiamalonni:main
Closed

Support new plugin: prettier-plugin-jsx-attr-sort#383
mattiamalonni wants to merge 3 commits intotailwindlabs:mainfrom
mattiamalonni:main

Conversation

@mattiamalonni
Copy link
Copy Markdown

@mattiamalonni mattiamalonni commented Jul 14, 2025

I’ve built a Prettier plugin to sort JSX/TSX attributes alphabetically while preserving key/ref order and respecting spread attribute positions.
It uses a preprocess function and is compatible with prettier-plugin-tailwindcss through proper merging of preprocess.

Would you be open to supporting it via your plugin discovery mechanism?

https://github.com/mattiamalonni/prettier-plugin-jsx-attr-sort

@thecrypticace thecrypticace self-assigned this Jul 23, 2025
* tailwind-main:
  Upgrade dev dependencies (tailwindlabs#388)

# Conflicts:
#	package-lock.json
#	package.json
* tailwind-main:
  Add support for callable template literals when using custom JSX parser (tailwindlabs#367)
  Handle quotes in `@plugin`, `@config`, and `@source` (tailwindlabs#387)
  Drop support for `prettier-plugin-import-sort` (tailwindlabs#385)
  Remove `declare` to clean up global scope (tailwindlabs#354)
@mattiamalonni
Copy link
Copy Markdown
Author

Hi @thecrypticace

Just wondering if there are any updates or blockers on this PR?

@thecrypticace
Copy link
Copy Markdown
Contributor

So — we'd normally want to wait on merging support for new plugins until it becomes more widely used and/or asked for.

I'll start a discussion about this internally though and get back to you 👍

@thecrypticace
Copy link
Copy Markdown
Contributor

We discussed this a bit internally and have decided (for now) to close this. If the plugin becomes more popular in the future we'll absolutely reconsider.

Aside: I do hate that it can't "just work" without us having to explicitly add support for it but with Prettier's current design that's just not possible — which is why we have to load plugins this way in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants