@putout/plugin-remove-useless-escape
v6.0.0
Published
šPutout plugin adds ability to find and remove useless escape
Downloads
64,818
Maintainers
Readme
@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