Skip to content

Commit

Permalink
fix(scope): Tagged template expressions are safe.
Browse files Browse the repository at this point in the history
cartant committed Dec 24, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 86335ff commit 01c5a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/rules/rxjsNoUnsafeScopeRule.ts
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ class Walker extends ScopeWalker {
return false;
}

if (isWithinCallExpressionExpression(node)) {
if (isWithinCallExpressionExpression(node) || tsutils.isTaggedTemplateExpression(node.parent)) {
if (isThis(node)) {
return !this.allowMethods;
}

0 comments on commit 01c5a01

Please sign in to comment.