Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Single quotes are replaced by double quotes #4

Closed
francoismassart opened this issue Mar 31, 2021 · 0 comments
Closed

[BUG] Single quotes are replaced by double quotes #4

francoismassart opened this issue Mar 31, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@francoismassart
Copy link
Owner

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:

  1. Enable tailwindcss/classnames-order rule
  2. Use invalid classnames with single quotes order like class='flex container'
  3. Apply the fix via VSCode's UI or via a npm script eslint --plugin 'tailwindcss' --fix --rule '"tailwindcss/classnames-order": 2' demo.html
  4. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant