We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e588bdf commit 4ab0ba8Copy full SHA for 4ab0ba8
lib/rules/no-empty-component-block.js
@@ -47,14 +47,11 @@ module.exports = {
47
* @returns {RuleListener} AST event handlers.
48
*/
49
create(context) {
50
+ const componentBlocks = context.parserServices.getDocumentFragment()
51
+ .children
52
+
53
return {
54
Program(node) {
- if (!node.templateBody) {
- return
- }
55
-
56
- const componentBlocks = node.templateBody.parent.children
57
58
for (const componentBlock of componentBlocks) {
59
if (
60
componentBlock.name !== 'template' &&
0 commit comments