-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
incorrect prop-types error for VFC #3230
Comments
Presumably both |
This does not seem to be fixed after updating to v7.29.4. Maybe we missed adding |
@dlech seems plausible :-) can you file a new issue, or better, a PR with a failing test case? |
done |
dlech
added a commit
to dlech/eslint-plugin-react
that referenced
this issue
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: jsx-eslint#3230
ljharb
pushed a commit
to dlech/eslint-plugin-react
that referenced
this issue
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 jsx-eslint#3230
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is essentially the same issue as #3090 except that the
VFC
abbreviation was also overlooked in the fix that closed that issue. Basically the same changes need to be made as in #3092 except replaceVoidFunctionComponent
withVFC
.The text was updated successfully, but these errors were encountered: