🐊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 t = 'hello "world"';
const s1 = `hello "world"`;
const s = `hello 'world'`;| Linter | Rule | Fix |
|---|---|---|
| 🐊 Putout | remove-useless-escape |
✅ |
| ⏣ ESLint | no-useless-escape |
❌ |
MIT