Skip to content

Commit

Permalink
fix(scope): Ignore qualified names.
Browse files Browse the repository at this point in the history
Closes #102.
  • Loading branch information
cartant committed Jun 27, 2019
1 parent 2e189d8 commit 76f020e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/rules/rxjsNoUnsafeScopeRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ class Walker extends ScopeWalker {
private isUnsafeRoot(node: ts.Node, callback: ts.Node): ts.Node | undefined {
const typeChecker = this.getTypeChecker();

if (ts.isQualifiedName(node.parent)) {
return undefined;
}

if (isInstanceofCtor(node)) {
return undefined;
}
Expand Down

0 comments on commit 76f020e

Please sign in to comment.