Validates all x.propTypes = { ... }
and x.contextTypes = { ... }
statements for proper syntax (also as class members).
This rule checks propTypes on a class and validates the PropTypes against a static list from the React docs.
It supports arrays, shapes etc, nested to any depth.
The validation is rather strict; hopefully it will not generate false error reports. Please report any broken error reports you may encounter.
None yet
Make more intelligent when determining PropTypes i.e. could have been imported as "p" which would currently fail:
propTypes: {
a: p.array
};