From 01c5a013b65abce967f5c20a2dfdd4264700ad24 Mon Sep 17 00:00:00 2001 From: Nicholas Jamieson Date: Tue, 25 Dec 2018 08:55:51 +1000 Subject: [PATCH] fix(scope): Tagged template expressions are safe. --- source/rules/rxjsNoUnsafeScopeRule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rules/rxjsNoUnsafeScopeRule.ts b/source/rules/rxjsNoUnsafeScopeRule.ts index 0d00fad7..094875bf 100644 --- a/source/rules/rxjsNoUnsafeScopeRule.ts +++ b/source/rules/rxjsNoUnsafeScopeRule.ts @@ -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; }