Skip to content
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

Fix: html-indent about comments (fixes #241) #280

Merged
merged 1 commit into from
Dec 17, 2017

Conversation

mysticatea
Copy link
Member

Fixes #241.

This PR fixes vue/html-indent rule about comments.

If the next token of a comment is the following tokens, the rule allows the indentation of comments at either the same as the next line or the previous line. If neither, the rule auto-fixes the indentation of comments to the same as the previous line.

  • HTMLEndTagOpen (e.g. </div)
  • VExpressionEnd (}})
  • }
  • ]
  • )

@michalsnik
Copy link
Member

Well done 🚀

@michalsnik michalsnik merged commit e6593a5 into master Dec 17, 2017
@michalsnik michalsnik deleted the indent/fix-comment-indent branch December 17, 2017 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML indent calculation problem with comments
2 participants