prettier-tailwind
prettier-tailwind copied to clipboard
Sometimes, a comment on the line of className gets trimmed by accident
In the following example:
<div
className="no-overflow-anchoring py-16" // TODO: User-adjustable section height
>
Hello, world
</div>
When I run Prettier, the result becomes:
<div
className="no-overflow-anchoring py-16" " // TODO: User-adjustable section heig
>
Hello, world
</div>
Which is wrong. Please notice the missing 'ht' characters from 'height' and the duplicate '"' before the comment.