@putout/plugin-convert-quotes-to-backticks
v3.0.0
Published
šPutout plugin adds ability to convert quotes to backticks
Downloads
29,090
Maintainers
Readme
@putout/plugin-convert-quotes-to-backticks
Template literals are literals delimited with backticks (`).
(c) MDN
šPutout plugin adds ability to convert quotes to backticks. Related to @putout/plugin-remove-useless-escape.
Install
npm i @putout/plugin-convert-quotes-to-backticks -D
Rule
{
"rules": {
"convert-quotes-to-backticks": "on"
}
}
ā Example of incorrect code
const a = 'hello \'world\'';
ā Example of correct code
const a = `hello 'world'`;
License
MIT