Skip to content

prop-types rule should not trigger error for attributes #135

Closed
@jbe456

Description

Using version 2.6.2 and the rule react/prop-types:

"react/prop-types": [2, {"ignore": ["foo"]}],

Then I have error if in my code I'm doing:

this.props.foo.bar
'foo.bar' is missing in props validation for XYZ

Although I would have expected not to trigger any error since I asked to ignore foo.

Activity

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

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