Skip to content

Commit

Permalink
refactor: tidy boolean prop naming type arg
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryBrown0 committed Apr 26, 2024
1 parent 6c50ba1 commit fa6a122
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rules/boolean-prop-naming.js
Expand Up @@ -250,8 +250,9 @@ module.exports = {
return;
}

const typeAnnotation = component.node.parent.id.typeAnnotation.typeAnnotation;
const annotationTypeArguments = propsUtil.getTypeArguments(typeAnnotation);
const annotationTypeArguments = propsUtil.getTypeArguments(
component.node.parent.id.typeAnnotation.typeAnnotation
);
if (
annotationTypeArguments && (
annotationTypeArguments.type === 'TSTypeParameterInstantiation'
Expand Down

0 comments on commit fa6a122

Please sign in to comment.