@putout/plugin-add-return-await

2.1.1 • Public • Published

@putout/plugin-add-return-await NPM version

🐊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

Package Sidebar

Install

npm i @putout/plugin-add-return-await

Weekly Downloads

13,521

Version

2.1.1

License

MIT

Unpacked Size

3.85 kB

Total Files

4

Last publish

Collaborators

  • coderaiser