Eslint-plugin-react: Would it be better to use defaultProps instead of defaultProp in warning?

Created on 30 Nov 2018  路  1Comment  路  Source: yannickcr/eslint-plugin-react

The warning message for defaultProps are:

 'propType "{{name}}" is required and should not have a defaultProp declaration.',
 'propType "{{name}}" is not required, but has no corresponding defaultProp declaration.',

A bit confusing when reading, since defaultProps is the valid method name. Maybe better to replace that?

Thanks

documentation help wanted

Most helpful comment

Sure, i can see how that鈥檇 be confusing.

>All comments

Sure, i can see how that鈥檇 be confusing.

Was this page helpful?
0 / 5 - 0 ratings