prettier-plugin-tailwind icon indicating copy to clipboard operation
prettier-plugin-tailwind copied to clipboard

Support Svelte

Open raduab opened this issue 4 years ago • 5 comments

Do you have plans to Support Svelte language?

raduab avatar Dec 21 '20 22:12 raduab

Well, there is an issue #4 which said it should be working. Also there is commit saying "add svelte support" two moths ago, but one month ago, support for Svelte was removed. Why? @Acidic9

thefrana avatar Jan 19 '21 15:01 thefrana

Hi @lukeeno and @raduab

I had to remove the implementation of svelte support for now because it was causing some unpredictable bugs i couldn't solve which was affecting people who weren't even using Svelte.

I'd love to tackle this issue again sometime soon but I don't have a whole lot of time recently.

The prettier API for plugins such as this is so terrible and the way this plugin works is by overriding the html/JavaScript/... parsers provided by prettier. It would be much more desirable to extend rather than override, but it is not possible currently and I don't think prettier have plans for this too.

I'm happy for anyone to submit PR's.. unfortunately I don't have so much time to fix all the issues myself these days and I truly apologise. I hope I can be more active in the future!

tqwewe avatar Jan 20 '21 01:01 tqwewe

maybe https://github.com/sveltejs/prettier-plugin-svelte can be an inspiration?

raduab avatar Mar 02 '21 13:03 raduab

@Acidic9 any chance you can take another stab at adding Svelte support? 🙏🏻

ebeloded avatar Jun 21 '21 23:06 ebeloded

I don't know but this Code extension might help also: https://github.com/heybourn/headwind

If I want to implement this myself, would you please give me some pointers on what should I begin with? Also, any other info to get me up to speed, maybe a short list of tasks that I should follow. Thanks!

raduab avatar Jun 28 '21 02:06 raduab