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.
What
Since we cannot be sure how the
title
attribute will be used on a Custom Componenta11y-no-title-attribute
should only check semantic components.If
lazyElementCheck
is set to true ingetElementType
thengetElementType
will return the opening-tag of the node passed in regardless of any as prop or componentMapping.