Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return VueUtils.defineTemplateBodyVisitor(context, {
"VElement" (node) {
const typeCheck = headings.concat(context.options[0]);
const nodeType = utils.getElementType(node);
if (typeCheck.indexOf(nodeType) === -1) {
return;
} else if (utils.hasAccessibleChild(node)) {
return;
}
context.report({
node,
message: errorMessage,
});
}
}, altRule.create(context))
}
};