-
-
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
forbid-prop-types warning shown on Yup validation #2722
Comments
This should only warn when object/array/etc is chained off of |
Working on this |
I have the same problem with this declaration
I found the problem started form version 7.20.1, in particular with this commit. From what I understand, it checks recursively for the propTypes definition to be correct. I tried to fix it adding to Maybe I should block the recursive calls in another point? |
I don't know if anyone is still having this problem but i update some of my packages today and got a similar error when running my lint, I was able to fix by changing this:
For this:
|
I'd like to work on this! |
Go for it! |
Hey there, a project I work on uses both prop-types and Yup which have a similar syntax.
The following where I'm declaring a Yup validation object:
Gives me a warning on the line
customer_ids: Yup.array()
like so:I believe this is a bug as this is not a prop type declaration.
The text was updated successfully, but these errors were encountered: