@putout/plugin-add-return-await
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