{"name":"@putout/plugin-declare-imports-first","version":"2.1.2","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to declare imports first","homepage":"http://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-declare-imports-first#readme","main":"lib/declare-imports-first.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-apply","plugin","declare-imports-first"],"devDependencies":{"@putout/plugin-promises":"*","@putout/plugin-putout":"*","@putout/plugin-try-catch":"*","@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","lerna":"^6.0.1","madrun":"^10.0.0","nodemon":"^3.0.1"},"peerDependencies":{"putout":">=27"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-declare-imports-first@2.1.2","gitHead":"06fa9243858a31e21523413915cb274b43652622","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-vZbl5+FhqKjwzNU6n09AR7rybEEcIWavo43Djjr+keTTUevzs7oy3h8i9UAUIG6C6rZnvISrsDEZPx32R1budQ==","shasum":"1ed3f17d24edde53723642d3faed06df9662dd4a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-declare-imports-first/download/@putout/plugin-declare-imports-first-2.1.2.tgz","fileCount":4,"unpackedSize":5517,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqJrbpHBIhBYxUjKopxARQkPoQisZsYKnVAjBHUk4q7gIhAPEuRTQMyZdM8G+qXJdXgWQBU7pfRmGlAJoqODpaaB54"}],"size":2403,"noattachment":false,"key":"/@putout/plugin-declare-imports-first/-/@putout/plugin-declare-imports-first-2.1.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-declare-imports-first_2.1.2_1734865412228_0.37837711142024366"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-declare-imports-first [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-declare-imports-first.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-declare-imports-first \"npm\"\n\n> The static `import` declaration is used to import read-only live bindings which are exported by another module.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to declare imports first. For CommonJS use [nodejs/declare-after-require](https://github.com/coderaiser/putout/tree/master/packages/plugin-nodejs#declare-after-require).\n\nCheck out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/b1c18e5d726afe4ebb69d6b7a7dda82b/8189590815a1b8adb35bb8a846e28228e3c7fadf). Merged with [`@putout/plugin-esm`](https://www.npmjs.com/package/@putout/plugin-esm).\n\n## Install\n\n```\nnpm i @putout/plugin-declare-imports-first\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"declare-imports-first\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nconst [arg] = process.argv;\nimport esbuild from 'esbuild';\n```\n\n## ✅ Example of correct code\n\n```js\nimport esbuild from 'esbuild';\n\nconst [arg] = process.argv;\n```\n\n## License\n\nMIT\n","publish_time":1734865412406,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734865412406,"dist-tags":{"latest":"2.1.2"}}