Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getElementType (node) { // return tagName
assert(node && node.type === 'VElement');
if (utils.hasAttribute(node, 'is')) {
return this.getAttributeValue(node, 'is');
} else if (utils.hasDirective(node, 'bind', 'is')) {
return 'component';
}
return node.rawName;
},
isHiddenFromScreenReader (node) {
"VAttribute[directive=true][key.name.name='on'][key.argument.name='change']" (node) {
const element = node.parent.parent;
const nodeType = utils.getElementType(element);
if (applicableTypes.indexOf(nodeType) === -1) {
return;
}
const hasOnBlur = VueUtils.hasDirective(element, 'on', 'blur');
if (!hasOnBlur) {
context.report({
node,
message: errorMessage,
});
}
}
}, JsxRule.create(context))