@putout/plugin-apply-await-import
putout plugin adds ability apply await import
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-apply-await-import 
SYNC missed versions from official npm registry.

@putout/plugin-apply-await-import NPM version

🐊Putout plugin adds ability to add forgotten await to dynamic import(). Part of @putout/plugin-promises.

Install

npm i @putout/plugin-apply-await-import

Rule

{
    "rules": {
        "apply-await-import": "on"
    }
}

❌ Example of incorrect code

const {readFile} = import('fs/promises');

✅ Example of correct code

const {readFile} = await import('fs/promises');

License

MIT

Current Tags

  • 1.1.1                                ...           latest (3 years ago)

3 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 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)
Dependents (1)

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