Skip to content

Commit 6509e19

Browse files
HenryBrown0ljharb
authored andcommitted
refactor: tidy boolean prop naming type arg
1 parent ab5b92a commit 6509e19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/rules/boolean-prop-naming.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,9 @@ module.exports = {
256256
return;
257257
}
258258

259-
const typeAnnotation = component.node.parent.id.typeAnnotation.typeAnnotation;
260-
const annotationTypeArguments = propsUtil.getTypeArguments(typeAnnotation);
259+
const annotationTypeArguments = propsUtil.getTypeArguments(
260+
component.node.parent.id.typeAnnotation.typeAnnotation
261+
);
261262
if (
262263
annotationTypeArguments && (
263264
annotationTypeArguments.type === 'TSTypeParameterInstantiation'

0 commit comments

Comments
 (0)