A template literal has no substitution, so a string would do

tx0/ts:backtick-string-without-placeholderstrictwarningstyle

What it finds

A template literal without a substitution, as ` ready `, promises interpolation that never comes; quotes say plainly that the text is fixed.

Reported are untagged templates without ${...} that fit on one line and contain no quote characters, which would need escaping in a string. Templates in tagged calls, where the tag reads them, are left alone. The fix, which is safe, writes a string with double quotes.

From the rule's source, backtick_string_without_placeholder.rs.

Example from the rule's tests
export const a = `ready`;tx0 reports: has no substitutionexport const b = `count: ${a}`;export const c = `it's`;export const d = String.raw`x`;
Highlighted lines are the ones tx0 reports, with its message under each; the other lines are left alone.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/ts:backtick-string-without-placeholder" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/ts:backtick-string-without-placeholder] reason="..."

tx0 explain tx0/ts:backtick-string-without-placeholder shows the same in the terminal. Found a false positive? Report it.