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
I would really like to see rules added to eslint-plugin-lit-a11y to require (or prevent) attributes from being used on custom components. These rules have already been implemented for JSX via https://github.com/danrigsby/eslint-plugin-idiomatic-jsx.
A simple use case would be to require the aria-label attribute on the <mwc-icon-button>.
I'm primarily interested in the accessibility benefits, but I could see this being useful for linting any custom component.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would really like to see rules added to eslint-plugin-lit-a11y to require (or prevent) attributes from being used on custom components. These rules have already been implemented for JSX via https://github.com/danrigsby/eslint-plugin-idiomatic-jsx.
A simple use case would be to require the
aria-label
attribute on the<mwc-icon-button>
.I'm primarily interested in the accessibility benefits, but I could see this being useful for linting any custom component.
Beta Was this translation helpful? Give feedback.
All reactions