{"name":"@putout/plugin-declare-imports-first","version":"2.1.1","keywords":["putout","putout-plugin","putout-plugin-apply","plugin","declare-imports-first"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-declare-imports-first@2.1.1","homepage":"http://github.com/coderaiser/putout/tree/master/packages/plugin-declare-imports-first#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"fbc76248fb33e0f5fcce1bd5f72dc3071d5f9f20","tarball":"http://registry-npm.ywwl.com/@putout/plugin-declare-imports-first/download/@putout/plugin-declare-imports-first-2.1.1.tgz","fileCount":4,"integrity":"sha512-BeWfnUzGr96bVKJxL91DVNd5v92fHUEW5nkTfwYgbT8kXzzoR1T1vy3qkMqOiPycBD0FX8o+kWsn9TklPSbyHA==","signatures":[{"sig":"MEUCIGT01SMfMkFWP2dF6cwXEzcTVbevHQKCI+8iq2IwQTejAiEA/gTBUEtEOSuXQzw/9eKZAYq/YV0r7ViANjd+G7Rq6WM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5515,"size":2389,"noattachment":false,"key":"/@putout/plugin-declare-imports-first/-/@putout/plugin-declare-imports-first-2.1.1.tgz"},"main":"lib/declare-imports-first.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"abde958138e302f0560ff37ab0d586d81ffc5305","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"10.9.0","description":"🐊Putout plugin adds ability to declare imports first","directories":{},"_nodeVersion":"22.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","nodemon":"^3.0.1","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0","@putout/plugin-putout":"*","@putout/plugin-promises":"*","@putout/plugin-try-catch":"*"},"peerDependencies":{"putout":">=27"},"_npmOperationalInternal":{"tmp":"tmp/plugin-declare-imports-first_2.1.1_1734813483391_0.7434549939816266","host":"s3://npm-registry-packages-npm-production"},"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":1734813483575,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734813483575,"dist-tags":{"latest":"2.1.2"}}