We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filter
1 parent 1543f1c commit 54bd4c2Copy full SHA for 54bd4c2
lib/rules/no-multiple-template-root.js
@@ -50,11 +50,9 @@ module.exports = {
50
return
51
}
52
53
- const comments = element.comments.filter((comment) =>
54
- utils.inRange(element, comment)
55
- )
56
- const reportComments = comments.filter(
+ const reportComments = element.comments.filter(
57
(comment) =>
+ utils.inRange(element, comment) &&
58
!element.children.some((child) => utils.inRange(child, comment))
59
)
60
if (disallowComments) {
0 commit comments