@putout/plugin-remove-useless-await

putout plugin adds ability to remove useless await

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@putout/plugin-remove-useless-await
36501.3.18 months ago3 years agoMinified + gzip package size for @putout/plugin-remove-useless-await in KB

Readme

@putout/plugin-remove-useless-await !NPM versionNPMIMGURLNPMURL
šŸŠ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