{"name":"@putout/plugin-group-imports-by-source","version":"2.0.4","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and group imports by source","homepage":"https://github.com/coderaiser/putout/tree/v36.18.0/packages/plugin-group-imports-by-source#readme","main":"lib/group-imports-by-source.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-remove","plugin","debugger"],"devDependencies":{"@putout/plugin-nodejs":"*","@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":">=36"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-group-imports-by-source@2.0.4","gitHead":"06fa9243858a31e21523413915cb274b43652622","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-QKL/CHGEGNF9QU6bHLYHMOnwIn5TpGPYSfGCGrodHuF4BwEtWgccZlYhXRaauL5yx7vagH5uRG9MkG6roTiZrg==","shasum":"9ed0326c821d1f6ee5dbabd8076b14b28b5e4b9f","tarball":"http://registry-npm.ywwl.com/@putout/plugin-group-imports-by-source/download/@putout/plugin-group-imports-by-source-2.0.4.tgz","fileCount":4,"unpackedSize":6155,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrYzxXgmMrXqwrnlULKzDcNT8hNjE6AMovwctJ/VJNWgIhAP4eba+OYV4k4Py8LUuATCAInH1Lz22oYHzvtUr9HFzY"}],"size":2659,"noattachment":false,"key":"/@putout/plugin-group-imports-by-source/-/@putout/plugin-group-imports-by-source-2.0.4.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-group-imports-by-source_2.0.4_1734865789445_0.35791152156851314"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-group-imports-by-source [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-group-imports-by-source.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-group-imports-by-source \"npm\"\n\n> The static **import** declaration is used to import read-only live bindings which are exported by another module.\n> The imported bindings are called live bindings because they are updated by the module that exported the binding, but cannot be re-assigned by the importing 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 find and group `import` statements by source. Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/3cc782acf95211f9d456d63a99032ee1/0674223d050bba572f5271ffdccf8616cb441af5). For **CommonJS** use [`nodejs/group-require-by-id`](https://www.npmjs.com/package/@putout/plugin-nodejs#group-require-by-id).\nMerged with [`@putout/plugin-esm`](https://www.npmjs.com/package/@putout/plugin-esm##group-imports-by-source).\n\nGroup order:\n\n- ✅ builtins;\n- ✅ external;\n- ✅ internal;\n\n## Install\n\n```\nnpm i @putout/plugin-group-imports-by-source\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"group-imports-by-source\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nimport fs from 'node:fs';\nimport {lodash} from 'lodash';\nimport react from 'react';\nimport d from '../hello.js';\nimport ss from '../../bb/ss.js';\nimport b from './ss.js';\n\nconst c = 5;\n```\n\n## ✅ Example of correct code\n\n```js\nimport fs from 'node:fs';\nimport react from 'react';\nimport {lodash} from 'lodash';\nimport b from './ss.js';\nimport d from '../hello.js';\nimport ss from '../../bb/ss.js';\n\nconst c = 5;\n```\n\n## License\n\nMIT\n","publish_time":1734865789632,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1734865789632,"dist-tags":{"latest":"2.0.4"}}