File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = {
37
37
38
38
39
39
/**
40
- * Reports all propTypes passed in that don't have a defaultProp counterpart.
40
+ * Reports all propTypes passed in that don't have a defaultProps counterpart.
41
41
* @param {Object[] } propTypes List of propTypes to check.
42
42
* @param {Object } defaultProps Object of defaultProps to check. Keys are the props names.
43
43
* @return {void }
@@ -55,7 +55,7 @@ module.exports = {
55
55
if ( forbidDefaultForRequired && defaultProps [ propName ] ) {
56
56
context . report (
57
57
prop . node ,
58
- 'propType "{{name}}" is required and should not have a defaultProp declaration.' ,
58
+ 'propType "{{name}}" is required and should not have a defaultProps declaration.' ,
59
59
{ name : propName }
60
60
) ;
61
61
}
@@ -68,7 +68,7 @@ module.exports = {
68
68
69
69
context . report (
70
70
prop . node ,
71
- 'propType "{{name}}" is not required, but has no corresponding defaultProp declaration.' ,
71
+ 'propType "{{name}}" is not required, but has no corresponding defaultProps declaration.' ,
72
72
{ name : propName }
73
73
) ;
74
74
} ) ;
You can’t perform that action at this time.
0 commit comments