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, {
"VAttribute" (node) {
const isAccesskey = utils.isAttribute(node, 'accesskey')
if (!isAccesskey) {
return;
}
const accessKeyValue = utils.getAttributeValue(node);
if (accessKeyValue) {
context.report({
node,
message: errorMessage,
});
}
}
}, altRule.create(context))
}
};