You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Removes newline character in .includes() inside classNamesΒ #426
The classes are already properly sorted. However, when formatting with prettier-plugin-tailwindcss, the \n character inside .includes() is removed. This results in the following code:
Activity
feat(formatter): add TailwindCSS support for JS/TS files (#16990)
mrcoles commentedon Feb 9, 2026
Same issue, I encountered this with a leading space getting removed from an
indexOf(β¦)callβ¦Input:
Output:
fix(formatter): don't sort templates in nested non-Tailwind calls (#2β¦