@putout/plugin-add-return-await
putout plugin adds ability to find and remove test.only calls
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-add-return-await 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 2.1.1                                ...           latest (3 years ago)

7 Versions

  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           4 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
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)

© 2010 - cnpmjs.org x YWFE | Home | YWFE