Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] propTypes: add VFC to react generic param map #3246

Merged
merged 1 commit into from Mar 16, 2022

Conversation

dlech
Copy link
Contributor

@dlech dlech commented Mar 16, 2022

In d9531c3, we missed adding VFC to genericTypeParamIndexWherePropsArePresent in addition to allowedGenericTypes.

This adds some failing tests and fixes the issue.

Fixes: #3230

In d9531c3, we missed adding VFC to genericTypeParamIndexWherePropsArePresent in addition to allowedGenericTypes.

This adds some failing tests and fixes the issue.

Fixes jsx-eslint#3230
@ljharb ljharb merged commit 37b4f8e into jsx-eslint:master Mar 16, 2022
@ljharb
Copy link
Member

ljharb commented Mar 16, 2022

oops, merged before tests finished, but i'm confident :-)

@dlech dlech deleted the vfc branch March 16, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

incorrect prop-types error for VFC
2 participants