2.1.1 ā€¢ Published 3 years ago

@putout/plugin-add-return-await v2.1.1

Weekly downloads
2,944
License
MIT
Repository
github
Last release
3 years ago

@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

2.1.1

3 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago