Skip to content

Nested properties and prop-types #105

Closed
@mathieumg

Description

@mathieumg

Is it an oversight or a limitation that for the react/prop-types rule, no warning is emitted for missing nested properties.

For example, with:

propTypes: {
  a: React.PropTypes.shape({
    b: React.PropTypes.shape({
      c: React.PropTypes.func
    })
  })
}

I get no warning when I use this.props.a.b.d.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions