@putout/plugin-remove-useless-await

1.3.1 • Public • Published

@putout/plugin-remove-useless-await NPM version

🐊Putout plugin adds ability to remove useless await. Part of @putout/plugin-promises.

Install

npm i @putout/plugin-remove-useless-await

Rule

{
    "rules": {
        "remove-useless-await": "on"
    }
}

Incorrect code example

await await Promise.resolve();

Correct code Example

await Promise.resolve();

License

MIT

Package Sidebar

Install

npm i @putout/plugin-remove-useless-await

Weekly Downloads

13,814

Version

1.3.1

License

MIT

Unpacked Size

4.82 kB

Total Files

4

Last publish

Collaborators

  • coderaiser