We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e05ce3c commit 586b162Copy full SHA for 586b162
lib/rules/boolean-prop-naming.js
@@ -250,7 +250,8 @@ module.exports = {
250
return;
251
}
252
253
- const annotationTypeParams = component.node.parent.id.typeAnnotation.typeAnnotation.typeParameters;
+ const typeAnnotation = component.node.parent.id.typeAnnotation.typeAnnotation;
254
+ const annotationTypeParams = typeAnnotation.typeArguments || typeAnnotation.typeParameters;
255
if (
256
annotationTypeParams && (
257
annotationTypeParams.type === 'TSTypeParameterInstantiation'
0 commit comments