Open CEN-Smart opened 1 year ago
This kinda works in headwings settings :
"headwind.classRegex": {
...
"typescriptreact": "(?:\\bclassName\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\'])|(?:\\btw\\s*`([_a-zA-Z0-9\\s\\-\\:\\/]*)`)|(?:\\bclassName\\s*=\\s*(?:[^\\'\\\"\\}]+[\\'\\\"]([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\'])*)"
}
Sort classes inside functions How can we sort classes in a conditional class function.
import classNames from 'classnames'