-
-
Notifications
You must be signed in to change notification settings - Fork 681
[New] Add vue/html-tag-attrs-content-newline
#547
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
[New] Add vue/html-tag-attrs-content-newline
#547
Conversation
Thank you @ota-meshi ! We really appreciate your engagement 🥇 I’ve been testing both of these rules now in a normal project: Now that these two are ready to play a bit, I wanted to To get a decent comparison of how they both perform in template-heavy conditions. And I must say - the old one, that we decided is too problematic actually works better in practice in my opinion 😅 The reasons why I consider it better after all are:
that there should be a new line after
I would love to hear what is your opinion on this topic @ota-meshi The more I think about it I have more ideas.. The newest one is about splitting this rule into two:
@chrisvfritz I think I have too many ideas regarding this topic... |
Does If so, I think Is each specification below?
|
That's what I exactly imagined @ota-meshi :) I think it is plain and simple, less things to think about. One case I won't bother about though:
I mean we'd treat it as multiline and force newline, because of the overall location that covers 2 lines, but not because the end tag itself is multiline. Multiline end tags should rather be reported separately, but it's not a big priority and we probably won't create a rule for that. |
This PR adds
vue/html-tag-attrs-content-newline
rule.This implements rule proposed in #445 (comment)
It is related to #415.