@putout/plugin-convert-top-level-return
v4.0.1
Published
putout plugin adds ability to convert top-level return to process.exit
Downloads
24,533
Maintainers
Readme
@putout/plugin-convert-top-level-return
🐊Putout
plugin adds ability convert top-level return
into process.exit
.
Moved to @putout/plugin-nodejs.
Install
npm i @putout/plugin-convert-top-level-return -D
Rule
{
"rules": {
"convert-top-level-return": "on"
}
}
❌ Incorrect code example
return;
✅ Correct code Example
process.exit();
License
MIT