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
When defining ES6 compatibile propTypes with qoted properties there is an error
export default class OfferList extends React.Component { render() { //... } } OfferList.propTypes = { "items": React.PropTypes.array.isRequired };
When propety is unquoted everything works fine:
export default class OfferList extends React.Component { render() { //.. } } OfferList.propTypes = { items: React.PropTypes.array.isRequired };
The text was updated successfully, but these errors were encountered:
I think bug is here: https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/rules/prop-types.js#L168 becuase there is no name property.
name
Sorry, something went wrong.
98718a3
Fix quoted propTypes in ES6 (fixes #77)
c3384a9
No branches or pull requests
When defining ES6 compatibile propTypes with qoted properties there is an error
When propety is unquoted everything works fine:
The text was updated successfully, but these errors were encountered: