Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const isTabindex = utils.isAttribute(node, 'tabindex')
if (!isTabindex) {
return;
}
const value = utils.getAttributeValue(node);
if (value.type || +value <= 0) {
return;
}
context.report({
node: node,
message: errorMessage,
});
}
}, altRule.create(context))
}
};