React Legacy APIs provide a way to define the default values for props and check the prop types at runtime. This rule verifies if a
defaultProps
definition does have a corresponding propTypes
definition. If it is missing, this could be the result of errors
in refactoring or a spelling mistake.
It is also an error if a defaultProp
has propType
that is marked as isRequired
.