We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example code:
// @flow type Role = 'owner' | 'admin' | 'user'; type Props = {| contacts: { [role: Role]: string }, |}; export default class MyClass extends React.Component<Props> { render() { return ( <> {contacts.owner} </> ); } }
Error:
error 'contacts.owner' is missing in props validation react/prop-types
Using eslint-plugin-react@7.14.2 and eslint@5.16.0.
eslint-plugin-react@7.14.2
eslint@5.16.0
This does not happen with eslint-plugin-react@7.13.0.
eslint-plugin-react@7.13.0
The text was updated successfully, but these errors were encountered:
Duplicate of #2330.
It should be fixed in the next release.
Sorry, something went wrong.
No branches or pull requests
Example code:
Error:
Using
eslint-plugin-react@7.14.2
andeslint@5.16.0
.This does not happen with
eslint-plugin-react@7.13.0
.The text was updated successfully, but these errors were encountered: