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