Skip to content

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

Closed
@mathieumg

Description

@mathieumg

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions