Closed u3u closed 1 year ago
@mohammadsiyou any idea about how to fix this?
(btw this is a dope plugin, just discovered it today 🔥)
@mohammadsiyou I've found another one related to styling data attributes. Would be great to get this sorted out quickly :)
Makes this (great) plugin unusable for us at the moment, unfortunately.
data-[state=open]:(border-green-500) ✅
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
data-[state=open] :(border-green-500) ❌
@u3u @wottpal Sorry for late update! New version released and reported bugs fixed:)
Hey @mohammadsiyou, thank you so much for revisiting this one :)
Unfortunately, after the update, a lot of prettier errors are thrown now:
basis-[45%]
Error: An ending bracket ')' wasn’t found for these classes:
or something more complex:
[:not([data-state='active'] &)]:hidden
Error: An ending bracket ')' wasn’t found for these classes:
So I basically can't use it. 🙈
In a separate environment though, my case (https://github.com/mohammadsiyou/prettier-plugin-twin.macro/issues/1#issuecomment-1358359266) seems to work now. 🥳
@wottpal New version is released and bugs are fixed.
Amazing, @mohammadsiyou! It's almost working error-free for me. Right now, this seems to be the only case (when grouping !important
s) that throws an error:
!(w-full grow justify-start justify-between rounded-none py-9 text-red-500 text-lg)
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
(w-full! ) grow justify-start justify-between rounded-none py-9 text-red-500 text-lg
@wottpal Group important issue is fixed.
1. Grouping with only arbitrary attributes
2. Multiple
:nth-child
selectors on the same line