Skip to content

Commit bcd12ac

Browse files
HenryBrown0ljharb
andcommitted
style: multiline if statement in boolean prop naming
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 32cb6e2 commit bcd12ac

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/rules/boolean-prop-naming.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,12 @@ module.exports = {
251251
}
252252

253253
const annotationTypeParams = component.node.parent.id.typeAnnotation.typeAnnotation.typeParameters;
254-
if (annotationTypeParams && (
255-
annotationTypeParams.type === 'TSTypeParameterInstantiation'
256-
|| annotationTypeParams.type === 'TypeParameterInstantiation'
257-
)) {
254+
if (
255+
annotationTypeParams && (
256+
annotationTypeParams.type === 'TSTypeParameterInstantiation'
257+
|| annotationTypeParams.type === 'TypeParameterInstantiation'
258+
)
259+
) {
258260
return annotationTypeParams.params.find(
259261
(param) => param.type === 'TSTypeReference' || param.type === 'GenericTypeAnnotation'
260262
);

0 commit comments

Comments
 (0)