Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed Jul 27, 2019
1 parent 13e2e6c commit 39c44ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/util/propTypes.js
Expand Up @@ -547,9 +547,11 @@ module.exports = function propTypesInstructions(context, components, utils) {
break;
case 'GenericTypeAnnotation':
if (propTypes.id.name === '$ReadOnly') {
ignorePropsValidation = declarePropTypesForObjectTypeAnnotation(propTypes.typeParameters.params[0], declaredPropTypes);
ignorePropsValidation = declarePropTypesForObjectTypeAnnotation(
propTypes.typeParameters.params[0],
declaredPropTypes);
} else {
ignorePropsValidation = true;
ignorePropsValidation = true;
}
break;
case null:
Expand Down

0 comments on commit 39c44ce

Please sign in to comment.