$ npm install @putout/plugin-remove-unreachable-code
putout plugin adds ability to find and remove unreachable code.
npm i @putout/plugin-remove-unreachable-code
{
"rules": {
"remove-unreachable-code": "on"
}
}
function hi() {
return 'world';
console.log('hello');
}
function log() {
throw Error('error');
console.log('hello');
}
function hi() {
return 'world';
}
function log() {
throw Error('error');
}
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE