@putout/plugin-declare-imports-first
🐊Putout plugin adds ability to declare imports first
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-declare-imports-first 
SYNC missed versions from official npm registry.

@putout/plugin-declare-imports-first NPM version

The static import declaration is used to import read-only live bindings which are exported by another module.

(c) MDN

🐊Putout plugin adds ability to declare imports first.

Check out in 🐊Putout Editor.

Install

npm i @putout/plugin-declare-imports-first

Rule

{
    "rules": {
        "declare-imports-first": "on"
    }
}

❌ Example of incorrect code

const [arg] = process.argv;
import esbuild from 'esbuild';

✅ Example of correct code

import esbuild from 'esbuild';
const [arg] = process.argv;

License

MIT

Current Tags

  • 2.1.0                                ...           latest (2 years ago)

4 Versions

  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.1.0                                ...           2 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 (11)
Dependents (1)

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