Auto format on save
olavblj opened this issue · 4 comments
olavblj commented
How would I go about getting formatting on save with this package? Really love the direction, but need to be able to paste in tailwind classes into a styled component and for them to automatically be split to each line when saving.
randallmlough commented
I'm not the owner of this library, but that's a job for Prettier
or whatever your linter of choice is
olavblj commented
Yes, do you have a prettier configuration that would do this?
MathiasGilson commented
Prettier does not format template strings unfortunately and a plugin would need to be made for that 😬
dimitribarbot commented
Hi, I've made the following prettier plugin that should help with this matter : prettier-plugin-tailwind-styled-components.
I hope it will help.