-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Add selfClosingTag
option to vue/html-closing-bracket-newline
#2346
Add selfClosingTag
option to vue/html-closing-bracket-newline
#2346
Conversation
selfClosingTag
option to vue/html-closing-bracket-newline
I plan to update the docs once the implementation is confirmed/approved 🙇 Should I mark the PR as draft when I do this? Or should I let the maintainers do it? |
Yes please; it makes it clear that the PR is not intended to be complete yet. |
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 overall. Can you please improve the test cases with my suggestions and check if they still pass? Please also add the documentation for the next review 🙂
@FloEdelmann Oops, I re-requested review before finishing the docs. I'm on them right now |
@FloEdelmann Docs updated. I tried to follow the same structure as https://eslint.vuejs.org/rules/html-self-closing Let me know if that looks OK! |
This commit also adds a missing whitespace
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 to me now. Thanks for your contribution! :)
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.
LGTM! Thank you!
Resolves #1794
The implementation follows @ota-meshi's suggestion of adding a
selfClosingTag
option to thehtml-closing-bracket-newline
rule.It keeps compatibility by falling back to the previous behavior if the user does not specify the new option.