mohammadsiyou / prettier-plugin-twin.macro

Sort Tailwind and Twin classes based on recommended class order of Tailwind using Prettier.
11 stars 1 forks source link

Group `!important` issue in individual cases #13

Open u3u opened 1 year ago

u3u commented 1 year ago

Case

tw`[img]:(w-auto max-w-none)!`
// ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
tw`[img]:!(w-auto max-w-none)`

Format again will result in an error

["ERROR" - 10:09:19 PM] Error formatting document.
["ERROR" - 10:09:19 PM] An ending bracket ')' wasn’t found for these classes:

(w-auto max-w-none
Error: An ending bracket ')' wasn’t found for these classes:

(w-auto max-w-none