-
-
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
react/prop-types does not validate missing propTypes for functions in version 7.12.3 #2134
Comments
(On a side note, there's zero reason for I've added a test case that passes; that suggests this is fixed on master but not yet released. I'm happy to reopen if the next release doesn't fix it. |
v7.12.4 has been released. |
Seems like this is still an issue in version 7.17.0 Prop types are not validated in a function component with a return of:
But are with a function component with a return of:
|
@ljharb closed the issue #1958 with the v7.12.1 released and he suggested to open a new issue if the problem persists.
I have the same problem with both v7.11.1, v7.12.1 and recently updated v7.12.3. I'm providing a self-contained repro as follows (As you can see the MyInput class reports the "eslint is missing in props validation [react/prop-types]" and the MyTest class don't. It is the same .jsx file and the reason is because of the spread props {...formikProps} ):
My eslintrc.json
The text was updated successfully, but these errors were encountered: