-
-
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 doesn't support Props defined in Flow TypedArguments #1393
Comments
FYI I'm working on this: https://github.com/jseminck/eslint-plugin-react/tree/prop-types-util - just to make sure we don't do double work! |
Just an update on this and also for myself to keep track of all the changes:
This is far from done. My biggest issue to tackle is how to make |
Is there more to do that hasn't been merged into the release candidate? |
Currently using the Flow TypedArgument syntax should work: React.Component<void, Props, void> or React.Component<Props> There's some work to complete as I would like to eliminate ALL shared code between the two rules ( But in general I'd expect the Flow syntax to work. Did you encounter any issues? |
Nope! Just curious if this issue should be closed or open after I noticed the PR getting merged. |
hi @jseminck
I shows me the ESLint error Having theses version number:
|
@bastoune it’s not used in any of the code you showed; please show the entire component instead of eliding parts of it. |
This seems all fixed. If not, please file a new issue. |
This syntax is not supported. Additionally, this code is already available for the
prop-types
rule, but we should extract this code to detect the existing prop-types to some shared utility so it can be shared between rules.The text was updated successfully, but these errors were encountered: