function reportPropTypesWithoutDefault(propTypes,defaultProps){// If this defaultProps is "unresolved", then we should ignore this component and not report
// any errors for it, to avoid false-positives with e.g. external defaultProps declarations or spread operators.
if(defaultProps==='unresolved'){return;}propTypes.forEach(function(prop){if(prop.isRequired){return;}if(defaultProps[prop.name]){return;}context.report(prop.node,'propType "{{name}}" is not required, but has no corresponding defaultProp declaration.',{name:prop.name});});}// --------------------------------------------------------------------------
Reports all propTypes passed in that don't have a defaultProp counterpart.
@param  {Object[]} propTypes    List of propTypes to check.
@param  {Object}   defaultProps Object of defaultProps to check. Keys are the props names.
@return {void}