Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 315 Bytes

prefer-template-literal.md

File metadata and controls

19 lines (13 loc) · 315 Bytes

Prefer template literal (jlc/prefer-template-literal)

💼 This rule is enabled in the ✅ recommended config.

That is bad:

const name = "tom";
const message = "Hello" + name;

That is good:

const name = "tom";
const message = `Hello ${name}`;