Skip to content

Commit c64d83c

Browse files
Rel1cxCopilot
andauthored
Update packages/core/src/component/component-definition.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent 1d9023f commit c64d83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/component/component-definition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ export function isComponentDefinition(context: RuleContext, node: AST.TSESTreeFu
103103
]),
104104
);
105105

106-
return significantParent?.type !== T.JSXExpressionContainer;
106+
return significantParent == null || significantParent.type !== T.JSXExpressionContainer;
107107
}

0 commit comments

Comments
 (0)