From 39c44ce8350304f4a59eba0340a0687bf4caf2c9 Mon Sep 17 00:00:00 2001 From: Luke Page Date: Sat, 27 Jul 2019 19:28:13 +0200 Subject: [PATCH] Fix lint errors --- lib/util/propTypes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/util/propTypes.js b/lib/util/propTypes.js index 8e9e85b669..5b8eb885c7 100644 --- a/lib/util/propTypes.js +++ b/lib/util/propTypes.js @@ -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: