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 4903e48 commit 9c7f471Copy full SHA for 9c7f471
src/util/type.ts
@@ -81,9 +81,12 @@ const getFlowNode = (
81
baseIdentifier: TSESTree.Node,
82
): ts.Node & { name?: ts.Node } => {
83
if (
84
- baseIdentifier.parent?.type !== 'Property' ||
85
!('flowNode' in node) ||
86
- !node.flowNode
+ !node.flowNode ||
+ baseIdentifier.type !== 'Identifier' ||
87
+ baseIdentifier.parent?.type !== 'Property' ||
88
+ baseIdentifier.parent.key?.type !== 'Identifier' ||
89
+ baseIdentifier.name !== baseIdentifier.parent.key.name
90
) {
91
return node;
92
}
0 commit comments