We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2ac4b commit 2f327e6Copy full SHA for 2f327e6
src/rules/tabindex-no-positive.ts
@@ -22,7 +22,7 @@ const rule: Rule.RuleModule = {
22
VElement(node) {
23
const tabIndex = getLiteralAttributeValue(node, "tabindex");
24
25
- if (tabIndex && +tabIndex > 0) {
+ if (tabIndex && Number(tabIndex) > 0) {
26
context.report({ node: node as any, messageId: "default" });
27
}
28
0 commit comments