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
Describe the bug
MINOR If the linted code use single quotes around the class attribute value, after applying the "tailwindcss/classnames-order" FIX the single quotes are replaced by double quotes.
To Reproduce
Steps to reproduce the behavior:
Enable tailwindcss/classnames-order rule
Use invalid classnames with single quotes order like class='flex container'
Apply the fix via VSCode's UI or via a npm script eslint --plugin 'tailwindcss' --fix --rule '"tailwindcss/classnames-order": 2' demo.html
See how single quotes were replaced class='flex container' was replaced by class="container flex"
Expected behavior
Only the value should be fixed leave the surrounding quotes as is.
Environment (please complete the following information):
OS: macOS 10.14.6 Mojave
Softwares + version:
VSCode 1.54.3
Terminal 2.9.5
npm 6.14.5
node v14.5.0
The text was updated successfully, but these errors were encountered:
Describe the bug
MINOR If the linted code use single quotes around the class attribute value, after applying the "tailwindcss/classnames-order" FIX the single quotes are replaced by double quotes.
To Reproduce
Steps to reproduce the behavior:
tailwindcss/classnames-order
ruleclass='flex container'
eslint --plugin 'tailwindcss' --fix --rule '"tailwindcss/classnames-order": 2' demo.html
class='flex container'
was replaced byclass="container flex"
Expected behavior
Only the value should be fixed leave the surrounding quotes as is.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: