Skip to content
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

Object.hasOwnProperty taken for a prop in react/prop-types rule #102

Closed
mathieumg opened this issue Jun 10, 2015 · 0 comments
Closed

Object.hasOwnProperty taken for a prop in react/prop-types rule #102

mathieumg opened this issue Jun 10, 2015 · 0 comments

Comments

@mathieumg
Copy link
Contributor

mathieumg commented Jun 10, 2015

Object.prototype.hasOwnProperty is taken for a prop in the react/prop-types rule, so whenever I want to validate that a prop actually exists using that method I get a linter warning saying I didn't define the hasOwnProperty prop. I imagine the same happens with other methods on the Object prototype.

I'm using v2.5 with eslint v0.22.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants