3.0.0 β€’ Published 6 months ago

@putout/plugin-convert-quotes-to-backticks v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@putout/plugin-convert-quotes-to-backticks NPM version

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