Skip to content

VBC-053: redundant-interpolation

warning

Category: clean-code
Analysis: Regex (line by line)
File types: .js, .ts, .tsx, .astro
Scope: the whole file, with no scope filtering
Tags: clean-code

What it reports

Redundant string interpolation detected at line {line}. Use the variable directly.

Flagged

js
const label = `${count}`;

Not flagged

js
const label = `${count} items`;

Pattern

regex
`\$\{[a-zA-Z0-9_]+\}`

Released under the MIT License.