github / eslint-plugin-github

An opinionated collection of ESLint rules used by GitHub.
MIT License
295 stars 54 forks source link

[Fix] Only look at semantic elements for `a11y-no-title-attribute` #464

Closed kendallgassner closed 1 year ago

kendallgassner commented 1 year ago

What

Since we cannot be sure how the title attribute will be used on a Custom Component a11y-no-title-attribute should only check semantic components.

If lazyElementCheck is set to true in getElementType then getElementType will return the opening-tag of the node passed in regardless of any as prop or componentMapping.