← Back

template-curly-spacing warning

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

Examples

❌  Incorrect

`hello, ${people.name}`;
`hello, ${ people.name}`;
`hello, ${people.name }`;

✅  Correct

`hello, ${ people.name }`;
`hello, ${
    people.name
}`;