@putout/plugin-remove-useless-escape 
đPutout plugin adds ability to find and remove useless escape.
Install
npm i @putout/plugin-remove-useless-escape
Rule
{
"rules": {
"remove-useless-escape": "on"
}
}
â Example of incorrect code
const t = 'hello \"world\"';
const s1 = `hello \"world\"`;
const s = `hello \'world\'`;
const reg = /\w\:/g;
â Example of correct code
const t = 'hello "world"';
const s1 = `hello "world"`;
const s = `hello 'world'`;
const reg = /\w:/g;
Comparison
Linter | Rule | Fix |
---|---|---|
đ Putout | remove-useless-escape |
â |
⣠ESLint | no-useless-escape |
â |
License
MIT