Skip to content

Commit

Permalink
fix(scope): Tagged template expressions are safe.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Dec 24, 2018
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
Expand Up @@ -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;
}
Expand Down

0 comments on commit 01c5a01

Please sign in to comment.