diff --git a/lib/rules/boolean-prop-naming.js b/lib/rules/boolean-prop-naming.js index b5dd37b529..96a84b61a8 100644 --- a/lib/rules/boolean-prop-naming.js +++ b/lib/rules/boolean-prop-naming.js @@ -250,7 +250,8 @@ module.exports = { return; } - const annotationTypeParams = component.node.parent.id.typeAnnotation.typeAnnotation.typeParameters; + const typeAnnotation = component.node.parent.id.typeAnnotation.typeAnnotation; + const annotationTypeParams = typeAnnotation.typeArguments || typeAnnotation.typeParameters; if ( annotationTypeParams && ( annotationTypeParams.type === 'TSTypeParameterInstantiation'