NiklasPor / prettier-plugin-organize-attributes

Organize your HTML attributes automatically with Prettier ๐Ÿงผ
MIT License
205 stars 12 forks source link

Incompatibility with prettier 3.0 #17

Closed pshurygin closed 1 year ago

pshurygin commented 1 year ago

The plugin is incompatible with prettier v3. Are there any plans to support v3 anytime soon? Here is a migration guide for plugin authors.

NiklasPor commented 1 year ago

Looks very doable, I think it might be just the version increment and some minor adjustments.

mbenzenhoefer commented 1 year ago

I also need that update, can we somehow support you here? @NiklasPor

NiklasPor commented 1 year ago

I'm gonna start with the migration on this plugin today and then continue to the more complex packages ๐Ÿ‘€๐Ÿซก

NiklasPor commented 1 year ago

Starting with prettier-plugin-organize-attributes@1.0.0 we're supporting prettier: "^3.0.0". Beware that you need to add now the plugin explicitly to your prettier config (๐Ÿ˜ข):

{
  "plugins": ["prettier-plugin-organize-attributes"]
}
NiklasPor commented 1 year ago

If anyone has any problems feel free to write here, or create a new issue ๐Ÿ‘

dtslvr commented 1 year ago

It works like a charm. Thank you very much @NiklasPor ๐Ÿ™‚

minijusl commented 1 year ago

@NiklasPor is it backwards compatible with version 2?

NiklasPor commented 1 year ago

@minijusl I didn't test it, but I'd expect it not to be, as Prettier 3 included breaking API changes. Just stay on the old version if you're using Prettier 2 currently ๐Ÿ‘