3.0.0 β’ Published 8 months ago
@putout/plugin-convert-template-to-string v3.0.0
@putout/plugin-convert-template-to-string 
- Template literals are literals delimited with backticks (`), allowing embedded expressions called substitutions.
- The
Stringobject is used to represent and manipulate a sequence of characters.(c) MDN
πPutout plugin adds ability to find and convert Template Literals to calling of String constructor.
Install
npm i @putout/plugin-convert-template-to-stringRule
{
"rules": {
"convert-template-to-string": "on"
}
}β Example of incorrect code
const s = `${a + b}`;β Example of correct code
const s = String(a + b);License
MIT