-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can a new option be added to use backticks (`) instead of double quotes (")? #74
Comments
Well, the issue doesn't reproduce with Vite template using Vue 3. What is your development environment like? |
This is a very old large Vue2 project of the company, but I have to continue to maintain it 😰. |
@ony3000 Came here to post the same issue, but for I love this plugin so much, but in Astro when you have an Astro component, it will not work with newlines between It does work on regular HTML components as Astro handles these differently. Would love an option to force |
@gersomvg That's weird. Line wrapping works fine in Astro components too. Maybe your VS Code is missing the If your setup is fine but line wrapping is not working, providing example code and Prettier configuration would be helpful in investigating the issue. |
@ony3000 your plugin is wrapping fine, but Astro doesn't compile if Error:
Reference: withastro/astro#4029 In the meantime I still see an opportunity to enforce |
When implementing Astro integration for this plugin, I also saw withastro/astro#4029. I didn't take any action on this plugin at the time because it seemed to be a problem with the Astro compiler. But it still doesn't seem to be fixed, so I'll consider adding an option. |
Is your feature request related to a problem? Please describe
In Vue JSX, if
class
appears on multiple lines without using backticks, a module resolution error will occur, and now I have to manually replace double quotes with backticks.Describe the solution you'd like
Add a
jsxBackquote
option to automatically replace quotes with backticks when line breaks occur in attributes such asclass
,className
.Describe alternatives you've considered
A more advanced use case, automatically wrap the
class
content with libraries such asclsx
,twMerge
when there are multiple lines (but it may exceed the scope of this library).The text was updated successfully, but these errors were encountered: