IanVS / prettier-plugin-sort-imports

An opinionated but flexible prettier plugin to sort import statements
Apache License 2.0
1.02k stars 25 forks source link

Support for compound classes? #55

Closed CodeWithShreyans closed 1 year ago

CodeWithShreyans commented 1 year ago

Is your feature request related to a problem? If I need to combine 2 or more classes in the same element, the order doesn't get parsed or fixed.

// Using shadcn's cn utility
<div className={cn("flex-col bg-slate-800 h-screen w-screen flow-root", inter.className)}>

// Simple combination
<div className={"flex-col bg-slate-800 h-screen w-screen flow-root" + inter.className}>

Describe the solution you'd like The classes get parsed just like regular ones.

Describe alternatives you've considered N/A

IanVS commented 1 year ago

Hi @DestroyerXyz, this package has nothing to do with class names, it is for organizing the import statements at the top of a file.

CodeWithShreyans commented 1 year ago

Oh sorry I'm so stupid I opened the issue in the wrong repo 🤣

IanVS commented 1 year ago

Haha no worries!