4.0.1 ā¢ Published 2 years ago
@putout/plugin-convert-top-level-return v4.0.1
@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