🐊Putout plugin adds ability to find and remove useless escape.
npm i @putout/plugin-remove-useless-escape
{
"rules": {
"remove-useless-escape": "on"
}
}const t = 'hello \"world\"';
const s1 = `hello \"world\"`;
const s = `hello \'world\'`;
const reg = /\w\:/g;const t = 'hello "world"';
const s1 = `hello "world"`;
const s = `hello 'world'`;
const reg = /\w:/g;| Linter | Rule | Fix |
|---|---|---|
| 🐊 Putout | remove-useless-escape |
✅ |
| ⏣ ESLint | no-useless-escape |
❌ |
MIT