diff --git a/lib/rules/required-root-tag.js b/lib/rules/required-root-tag.js index 75e8964..0a26fbe 100644 --- a/lib/rules/required-root-tag.js +++ b/lib/rules/required-root-tag.js @@ -29,15 +29,9 @@ module.exports = { if (!rootTagName) return; let tags; if (node && node.body && node.body.length >= 0) { - tags = node.body.filter(tag => tag.type === "WXElement"); + tags = node.body.filter((tag) => tag.type === "WXElement"); } - if ( - !( - tags && - tags.length === 1 && - tags[0].name === rootTagName - ) - ) { + if (!(tags && tags.length === 1 && tags[0].name === rootTagName)) { context.report({ node, messageId: "rootTag",