warning
no-template-curly-in-stringThrow 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 }`;
Throw a warning when a regular string contains a text which looks like a template literal placeholder
❌ Incorrect
const greeting = "Hello, ${name}";
✅ Correct
const greeting = `Hello, ${ name }`;