@putout/plugin-declare-imports-first
🐊Putout plugin adds ability to declare imports first
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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. For CommonJS use nodejs/declare-after-require.

Check out in ????Putout Editor. Merged with @putout/plugin-esm.

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.2                                ...           latest (a year ago)

6 Versions

  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (11)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |