@putout/plugin-declare-imports-first
v2.1.2
Published
🐊Putout plugin adds ability to declare imports first
Maintainers
Readme
@putout/plugin-declare-imports-first 
The static
importdeclaration 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-firstRule
{
"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
