From 0310f76a545b865f9b5d42f8b4b39a6f6d8758e3 Mon Sep 17 00:00:00 2001 From: Iftekhar Rifat <rifat662@gmail.com> Date: Thu, 9 Feb 2017 12:22:24 +0600 Subject: [PATCH] Skip shape props in flow --- lib/rules/no-unused-prop-types.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rules/no-unused-prop-types.js b/lib/rules/no-unused-prop-types.js index be9054934c..266948c654 100644 --- a/lib/rules/no-unused-prop-types.js +++ b/lib/rules/no-unused-prop-types.js @@ -411,6 +411,9 @@ module.exports = { } return true; case 'ObjectTypeAnnotation': + if (skipShapeProps) { + return true; + } var shapeTypeDefinition = { type: 'shape', children: []