prettier-plugin-tailwind
prettier-plugin-tailwind copied to clipboard
Support Svelte
Do you have plans to Support Svelte language?
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
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!
maybe https://github.com/sveltejs/prettier-plugin-svelte can be an inspiration?
@Acidic9 any chance you can take another stab at adding Svelte support? 🙏🏻
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!