vue/html-closing-bracket-spacing
(and more) does not work for top-level tags
#1879
Labels
vue/html-closing-bracket-spacing
(and more) does not work for top-level tags
#1879
Currently
vue/html-closing-bracket-spacing
only reports issues in the template, not issues with SFC top-level tags. This behavior is consistent with the implementation, but I'm not sure if this is intentional by design. I would like this rule to support a new option to check and report issues in top-level tags.What rule do you want to change?
vue/html-closing-bracket-spacing
andvue/html-closing-bracket-newline
. Maybe there are others, I'm not sure.Does this change cause the rule to produce more or fewer warnings?
Yes, it may add warnings. But we can also prevent breaking changes with a new option.
How will the change be implemented? (New option, new default behavior, etc.)?
This rule currently contains an object option, so it looks like we just need to add a
checkTopLevelTags: true
option. Further, this option should probably become the default behavior in the next major release.Please provide some example code that this change will affect:
What does the rule currently do for this code?
What will the rule do after it's changed?
You can compare line 4 and line 16 of this demo to confirm this issue.
The text was updated successfully, but these errors were encountered: