-
Notifications
You must be signed in to change notification settings - Fork 97
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
The new singleAttributePerLine
option not working
#305
Comments
singleAttributePerLine
doesn't worksingleAttributePerLine
option not working
@dummdidumm Shouldn't this be given the "bug" label as opposed to "enhancement"? Because it's not asking for a new feature, it's just that an already existing option in Prettier isn't functioning. I'm not familiar with the inner workings of this plugin but doesn't it just pass through the options to Prettier and use its HTML formatter under the hood? If so, then it's kind of strange that this doesn't work already. Am I right? Thanks. |
It's an enhancement because we don't use the HTML/JSX parser of Prettier which supports this now, we have to create our own. So it's an enhancement because it's a new option which wasn't added support for yet. |
Don't mean to annoy you but may I ask why? That sounds like a strange design decision. |
Because the HTML parser would parse things like |
Prettier added a
singleAttributePerLine
option in version 2.6.0, which applies to any kind of markup including the HTML in.svelte
files, but it seems like enabling it has no effect when formatting Svelte files:Untitled.Project.mp4
The text was updated successfully, but these errors were encountered: