-
-
Notifications
You must be signed in to change notification settings - Fork 677
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/multiline-html-element-content-newline
rule
#551
[New] Add vue/multiline-html-element-content-newline
rule
#551
Conversation
schema: [{ | ||
type: 'object', | ||
properties: { | ||
'ignoreNames': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should stick to the convention and use simple ignore
property? I don't have strong preference though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for review!
Name
was unnecessary.
Since the indent
rule is named ignores
, we also name it ignores
.
</div> | ||
</template>`, | ||
errors: [ | ||
'Expected 1 line break after closing bracket of the "div" element, but no line breaks found.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find closing bracket
and opening bracket
a little confusing. What do you think about instead using opening tag
and closing tag
?
So for example:
Expected 1 line break after opening tag (`<div>`), but no line breaks found.
and
Expected 1 line break before closing tag (`</div>`), but no line breaks found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for review!
The message you suggested is very easy to understand.
@michalsnik I changed it! so please check again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! ⭐️
sadly i found issue in this rule: #662 |
This PR adds
vue/multiline-html-element-content-newline
rule.This implements rule proposed in #547 (comment)
It is related to #415.