You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But now this plugin does not know that the href is sometimes not set and reports an error for no-redundant-roles.
I'm not familiar with ESLint plugin development, but I'm wondering if this can be fixed by using type information and checking whether the attribute type can be nullish. Alternatively, maybe there can be an option to treat all v-bind attributes as possibly not satisfying the aria constraint, which does not rely on typing information.
The text was updated successfully, but these errors were encountered:
For example, I have an
<a>
tag that is sometimes disabled:The w3c specification requires a
role="link"
when it the link is disabled: https://www.w3.org/TR/html-aria/#example-communicate-a-disabled-link-with-ariaBut now this plugin does not know that the
href
is sometimes not set and reports an error forno-redundant-roles
.I'm not familiar with ESLint plugin development, but I'm wondering if this can be fixed by using type information and checking whether the attribute type can be nullish. Alternatively, maybe there can be an option to treat all
v-bind
attributes as possibly not satisfying the aria constraint, which does not rely on typing information.The text was updated successfully, but these errors were encountered: