-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
The prop-types rule reports false-positives when we upgraded from version 7.12.0 to 7.13.0. I believe this is related to #2241 and Flow.
Example
type Props = {|
_value?: number
|};
function App({ _value = defaultValue }: Props = {}) {
...
}What happened?
error '_value' is missing in props validation react/prop-types
What did you expect to happen?
No error.
Other information
It worked until 7.12.0 but it fails with 7.13.0.
I created a demo project to reproduce the bug: https://github.com/willdurand/eslint-issue-prop-types.