* fix(eslint-plugin-lit-a11y): qualified specifiers
also refactors rules to extend from common base
common base checks whether lit-html is imported
import check now supports namespaces and aliases
fixes#1911fixes#1916
* refactor(eslint-plugin-lit-a11y): add TemplateAnalyzer helpers
* fix(eslint-plugin-lit-a11y): allow hash links
* docs(eslint-plugin-lit-a11y): tix fypo
thanks for the nod, @thepassle !
* refactor(eslint-plugin-lit-a11y): decruft
* fix(eslint-plugin-lit-a11y): aria-label img role
also modifies error message
* fix(eslint-plugin-lit-a11y): allow emoji with alt
* fix(eslint-plugin-lit-a11y): disable accessible-emoji
modern UAs are able to handle emoji, so this rule should not be enabled in `recommended`
also removes check for `alt` attr on non-image elements
* fix(eslint-plugin-lit-a11y): removes alt from img role attrs
alt attribute has no effect on non-img elements, even if they have an img role
permits images that are hidden from AOM
* fix(eslint-plugin-lit-a11y): refactors and fixes rules
- *: add rule docs url to meta.docs
- utils: refactor utils to take Element
- anchor-is-valid: error messages by id
- click-events-have-key-events: add `allowCustomElements` option
- click-events-have-key-events: schematize `allowList` option
- heading-has-content: add `customHeadingElements` option
- iframe-title: error messages by id, refactor
- img-redundant-alt: add defaults to schema
- mouse-events-have-key-events: add `allowCustomElements` option
- mouse-events-have-key-events: schematize `allowList` option
- no-autofocus: include `.autofocus` DOM property
- tabindex-no-positive: error messages by id, refactor
* chore: fix function param
Co-authored-by: thepassle <pascalschilp@gmail.com>
* fix(eslint-plugin-lit-a11y): aria-label img role
also modifies error message
* fix(eslint-plugin-lit-a11y): allow emoji with alt
* fix(eslint-plugin-lit-a11y): disable accessible-emoji
modern UAs are able to handle emoji, so this rule should not be enabled in `recommended`
also removes check for `alt` attr on non-image elements
* fix(eslint-plugin-lit-a11y): removes alt from img role attrs
alt attribute has no effect on non-img elements, even if they have an img role
permits images that are hidden from AOM
* fix(eslint-plugin-lit-a11y): support member and conditional expressions
* fix(eslint-plugin-lit-a11y): adopt "role" list from "aria-query"
* chore: fix tests
Co-authored-by: Pascal Schilp <pascalschilp@gmail.com>
* feat(eslint-plugin-lit-a11y): add heading-has-content function calls
* feat(eslint-plugin-lit-a11y): add test for ara-attr-valid-value
* feat(eslint-plugin-lit-a11y): add test for ara-attr-valid-value
* feat(eslint-plugin-lit-a11y): add test for heading-has-content
* feat(eslint-plugin-lit-a11y): fix test for heading-has-content
Co-authored-by: Pascal Schilp <pascalschilp@gmail.com>