Add polymorphic component check in getElementType by kendallgassner · Pull Request #449 · github/eslint-plugin-github (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since one might already have defined a map in the shape we expect for the jsx-a11y plugin, I wonder if we should allow using that if it exists? Maybe use that if useJsxA11yMap boolean config is set to true?

The potential risk is if the component map for jsx-a11y becomes a different shape (idk how likely this is) through future updates, then that could result in breaking changes for the rules in this library, until we update this.

I'm happy to ship how it is and revisit this later too! I will leave it to you!