Skip to content
  • Sponsor vue-a11y/eslint-plugin-vuejs-accessibility

  • Notifications You must be signed in to change notification settings
  • Fork 31
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c108001

Browse files
committedJan 25, 2022
♻️ Remove hacky Number conversion
Also typescript doesn't recognize this technique
1 parent 7c2ac4b commit c108001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/rules/tabindex-no-positive.ts

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.