2.1.1 ā¢ Published 3 years ago
@putout/plugin-add-return-await v2.1.1
@putout/plugin-add-return-await 
šPutout plugin adds ability to find and add return await
. Part of @putout/promises.
Install
npm i @putout/plugin-add-return-await
Rule
{
"rules": {
"add-return-await": "on"
}
}
ā Example of incorrect code
async function world() {
return hello();
}
ā Example of correct code
async function world() {
return await hello();
}
License
MIT