$ npm install @putout/plugin-convert-throw
putout plugin adds ability convert throw statement into throw expression.
npm i @putout/plugin-convert-throw -D
{
"rules": {
"convert-throw": true
}
}
const fn = () => {throw Error('hello')};
const fn = () => throw Error('hello');
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE