Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
create (context) {
return VueUtils.defineTemplateBodyVisitor(context, {
"VElement[name='iframe']" (node) {
const title = utils.getAttribute(node, 'title');
const titleValue = utils.getAttributeValue(node, 'title');
if (title && typeof titleValue === 'string' || typeof titleValue === 'object') {
return;
}
context.report({
node,
message: errorMessage,
});
}
}, altRule.create(context))
}
};