Query module TemplateSyntaxInStringLiteral

name
Template syntax in string literal
description
A string literal appears to use template syntax but is not quoted with backticks.
kind
problem
problem.severity
warning
id
js/template-syntax-in-string-literal
precision
high
tags
correctness

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

getDeclIn

Gets a declaration of variable v in tl, where v has the given name and belongs to scope.

hasProperty

Holds if object has a property with the given name.

providesTemplateVariablesFor

Holds if obj has a property for each template variable in lit and they occur as arguments to the same call.

Classes

CandidateStringLiteral

A string literal in a toplevel that contains at least one template literal.

CandidateTopLevel

A toplevel that contains at least one template literal.