$ npm install @putout/plugin-remove-useless-escape
🐊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
© 2010 - cnpmjs.org x YWFE | Home | YWFE