-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
feature requestNew feature or requestNew feature or request
Description
Description
I noticed that when class names are printed, spaces are converted to bullet points:
eslint-plugin-better-tailwindcss/src/utils/utils.ts
Lines 39 to 45 in a9876d0
| export function display(classes: string): string { | |
| return classes | |
| .replaceAll(" ", "·") | |
| .replaceAll("\n", "↵\n") | |
| .replaceAll("\r", "↩\r") | |
| .replaceAll("\t", "→"); | |
| } |
│ 108:21 error Incorrect class order. Expected
│
│ "text-2xl·font-bold·leading-[34px]·text-text"
│
│ to be
│
│ "text-2xl·leading-[34px]·font-bold·text-text" better-tailwindcss/enforce-consistent-class-order
I don't love this behavior because if I simply copy the class name that is printed, my code won't work but the lint error will go away. It makes it harder to manually apply lint suggestions from the output. Would it be possible to make this behavior configurable?
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or request