Skip to content

Commit 2f327e6

Browse files
committed
♻️ Remove hacky/illegal Number conversion
Also typescript doesn't recognize this technique
1 parent 7c2ac4b commit 2f327e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/rules/tabindex-no-positive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const rule: Rule.RuleModule = {
2222
VElement(node) {
2323
const tabIndex = getLiteralAttributeValue(node, "tabindex");
2424

25-
if (tabIndex && +tabIndex > 0) {
25+
if (tabIndex && Number(tabIndex) > 0) {
2626
context.report({ node: node as any, messageId: "default" });
2727
}
2828
}

0 commit comments

Comments
 (0)