← Back

no-template-curly-in-string warning

Throw a warning when a regular string contains a text which looks like a template literal placeholder

Examples

❌  Incorrect

const greeting = "Hello, ${name}";

✅  Correct

const greeting = `Hello, ${ name }`;