-
-
Notifications
You must be signed in to change notification settings - Fork 681
Update: Add allowEmptyLines
option to vue/multiline-html-element-content-newline
rule
#759
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
Conversation
…ntent-newline` rule Close #683
arrowEmptyLine
option to vue/multiline-html-element-content-newline
ruleallowEmptyLine
option to vue/multiline-html-element-content-newline
rule
@armano2 Thank you for pointing that out 😖 I fixed it. |
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.
looks good, thank you
@@ -87,6 +88,8 @@ This rule enforces a line break before and after the contents of a multiline ele | |||
default `true` | |||
- `ignores` ... the configuration for element names to ignore line breaks style. | |||
default `["pre", "textarea"]` | |||
- `allowEmptyLine` ... if `true`, allow empty line. If disallow multiple empty lines, use [no-multiple-empty-lines] in combination. |
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.
Implementation-wise it looks like allowEmptyLines
might be a bit more correct option 🤔
As for copy, what do you think about: "... if true
, it allows empty lines around content. If you want to disallow multiple empty lines, use ..."?
Also, does the core no-multiple-empty-lines
rule work with Vue template by default?
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.
Also, does the core no-multiple-empty-lines rule work with Vue template by default?
If no-multiple-empty-lines
rule is enabled, no-multiple-empty-lines
rule also checks in the Vue template.
@michalsnik Thank you for your review. |
allowEmptyLine
option to vue/multiline-html-element-content-newline
ruleallowEmptyLines
option to vue/multiline-html-element-content-newline
rule
Close #683
This PR adds
allowEmptyLines
option tovue/multiline-html-element-content-newline
rule.allowEmptyLines
... iftrue
, it allows empty lines around content. If you want to disallow multiple empty lines, use no-multiple-empty-lines in combination.default
false