-
-
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
no-unused-prop-types does not recognize use of prop inside Array.map() #819
Comments
Duplicate of #871. The |
Again, this is still a bug. If it doesn't support shape props, it should not warn on them at all. |
If you set the |
I'm saying that if that option is required for the rule to be usable when using shapes, then the rule should never check shapes. |
@ljharb That's a valid point. I'll look into whether or not it makes sense to set |
I agree that The current behavior contradicts the forbid-prop-types rule since that encourages the use of |
@EvNaverniouk any progress here? |
@ljharb Just took a few minutes now to look into this but wasn't able to get far. This issue is talking about 2 things:
Don't think there are any further action items on this issue. Can we close? |
Seems reasonable. |
In the following example, no-unused-prop-types will flag a non-use of arrayOfObjWithFoo.*.foo:
The text was updated successfully, but these errors were encountered: