{"_id":"@arnaud-barre/prettier-plugin-sort-imports","_rev":"9-687caffc7bf9879e666c59e546100915","name":"@arnaud-barre/prettier-plugin-sort-imports","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.1.0","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.1.0","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"1449e88363665b10d8163a9595a13af36bbf8749","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.1.0.tgz","fileCount":4,"integrity":"sha512-eC2er4WTuMo/cmkSizd5ClkdLAoWmwAmLljFe52IUkG2rm8YXzhDreO+qao9m7nTXtQSlmKBoPFJELmdHx4MXw==","signatures":[{"sig":"MEQCIEbD6l1k7ZOT5+gkY0GyZWMo0Fu/LnUsfUFGh0cYnUVIAiBkZg0XHYiszCSqXcMaBlBNhJ7FbRWGs8hXQlV2AEnT+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7545},"main":"index.js","type":"module","gitHead":"de919811f29f82610b3c8d6bab3b0a9585a1570a","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"9.5.1","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"19.8.1","_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.0.0-alpha.11"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.1.0_1684087488736_0.6310817093660082","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.1.1","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.1.1","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"f2c2e44d7a217460de4d7df8a4af8b528f2d3eae","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.1.1.tgz","fileCount":4,"integrity":"sha512-IjVLglKNsv+0twXMEyyyzmGC8BtUfDDqknTC9pe5GyBLyQMuGi8hHDoXz5bgRPJeDtaSl2d76dt4jF0veK5tsg==","signatures":[{"sig":"MEUCIQC4QAD8n5iuy/kL765XpiAKSCfHk7B3/1kAtCH522FryAIgBEV2SW1/rRJd2wepnY71/T2BmNcbQRcCKOUnXywzuyk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7532},"main":"index.js","type":"module","gitHead":"93749bec5194573a397943ec87a666ce86ea7e99","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"9.5.1","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.1.1_1688838817407_0.201796073448532","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.1.2","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.1.2","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"014bf592779f47545444d42325f09dd3bba9d83a","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.1.2.tgz","fileCount":4,"integrity":"sha512-0l0RaEYQxQSjyOTsFQPcfyjnUcoFAbl+pxWvyJP7bTkBZEXBEnTTEqJLdRVSesxiJUxtTd4Zo9hVSobf6YcnbQ==","signatures":[{"sig":"MEUCIA78/oSxRffuYPhFdMC3nZaL6pn8vSYld4IyjxCepMqUAiEA7TMlHNePkTCQ6Q7smu3XerUcNnvVoYAa2MOKnsimlDw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8155},"main":"index.js","type":"module","gitHead":"e5d9af5f2a0478e0863a16663a363c30fba6bcdd","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"9.5.1","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.1.2_1691895010894_0.28034789176225616","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.1.3","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.1.3","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"e6187d36c47ad7261718ffa926974e73f97c53fb","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.1.3.tgz","fileCount":4,"integrity":"sha512-Uc12C4xl6zfF6jkSVLEL4EHMFQptyUHKusP9rq9FputVwhLDgQa7lyFleoyUHqUCzNbzXl46+V6A+1tm1+dFrg==","signatures":[{"sig":"MEYCIQD40ze9jqkxwt2lKljy85Ge13eIXUf0Ar4fsCNSdrXthAIhAJfZwp9u3GaFAifcrHNjx8ymkrgEuQDZ421e54O2Hthf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8181},"main":"index.js","type":"module","gitHead":"ddffdd48e908b43c60c9ae78ae3a94a81403862d","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"10.1.0","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"20.8.0","_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.1.3_1701542866778_0.3901317859327762","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.2.0","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.2.0","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"0c1c44096a04816765d884df55a5c102e9f5d896","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.2.0.tgz","fileCount":4,"integrity":"sha512-b9iOduUUX2dcoLtCjrSDcQ0KIrkoR9q/KUX41jT+ZaufCNQ/aL+vo4PcmhYQRfxWCtXw4pwBSWsyvWomYs2D+Q==","signatures":[{"sig":"MEQCIFxkSqeTzxR0r4txp1JaN8ENNP0WbSek41fzue4AQKV5AiBhthSn4VdLq5tRRYVg3QoKrIab2kfGn4JEBIMZDcBDQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8051},"type":"module","exports":{".":"./index.js"},"gitHead":"828b3c980ae4bdfd9092709e1b5177b3a7c09dee","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"10.9.2","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"23.11.0","dependencies":{"prettier":"^3.5.3"},"_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.2.0_1747526084060_0.7801539394489787","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.2.1","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.2.1","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"b86aaa683feca7b5ab4536d23a0446504b8b2611","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.2.1.tgz","fileCount":4,"integrity":"sha512-ClGSPiLgRAOc/TM6jtdzIboS4s/QzZFj/PvTWeTVhrddmuLTe4QEx+cyjFVTSu9Z+sdhBmmS4B/SpJVJQo2zjQ==","signatures":[{"sig":"MEYCIQCporTxv4s+NWl1YZPfXxC4cSq67FtQKN/2BH2f6pb6GQIhAOiyXJSzO2vpz9bXstFhb1HnVzrLvxaFP/9SPi9wHq6T","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8062},"type":"module","exports":{".":"./index.js"},"gitHead":"828b3c980ae4bdfd9092709e1b5177b3a7c09dee","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"10.9.2","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"23.11.0","dependencies":{"prettier-oxc-parser":"^0.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.5.3"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.2.1_1747587054264_0.7701224967361071","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.2.2","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.2.2","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"ec43930a5c569ced9cba9c5b3fc170cb56aa7bc9","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.2.2.tgz","fileCount":4,"integrity":"sha512-+u81nSQg5Lr9dhhrC+33WEkfIj/ZgTXZMH2+SLMCIu+wnXMTFYver0OatVr5vEZzMHRY2+AKtLVPH1aLhKKPaQ==","signatures":[{"sig":"MEYCIQDhh0GbRZsWxl/mdo3HWmAmmU6iVI6mJwhw1ZHgXO6jIQIhAPxp6yBNYhgi3NImoFyV6KKctTA482LQc62XXDlV+ifF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8062},"type":"module","exports":{".":"./index.js"},"gitHead":"c4dc65ae7b2a3b3750fefe7ea3dbd9f0edf2319e","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"11.4.2","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"24.3.0","dependencies":{"prettier-oxc-parser":"^0.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.6.2"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.2.2_1752917494836_0.20749174419098448","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@arnaud-barre/prettier-plugin-sort-imports","version":"0.2.3","author":{"url":"https://github.com/ArnaudBarre","name":"Arnaud Barré"},"license":"MIT","_id":"@arnaud-barre/prettier-plugin-sort-imports@0.2.3","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"dist":{"shasum":"de5f0b3ef41aa37dc38df6012eb629e8552cebd4","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.2.3.tgz","fileCount":4,"integrity":"sha512-WH15hsqUvZMgEkA2EzHID+dGunssp04pcn6/uZM3ldK1J85zqd4yK3cXiexW2X80LZ3VMa9/E1sGKQ+4qQvJug==","signatures":[{"sig":"MEUCIQDx5hFvMYV9t0SlU15b204xVXcAZ5tpdpAX4Uz7dhzoNgIgMCHDS/FL28CmruHNA469QeJG4t0TjAtZIJYkt9HmfWo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8098},"type":"module","exports":{".":"./index.js"},"gitHead":"c4dc65ae7b2a3b3750fefe7ea3dbd9f0edf2319e","_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"repository":{"url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git","type":"git"},"_npmVersion":"11.5.1","description":"A small low-overhead TS-only Prettier plugin to sort imports","directories":{},"_nodeVersion":"24.7.0","dependencies":{"prettier-oxc-parser":"^0.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"prettier":"^3.6.2"},"_npmOperationalInternal":{"tmp":"tmp/prettier-plugin-sort-imports_0.2.3_1758795666808_0.5641047251570872","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@arnaud-barre/prettier-plugin-sort-imports","description":"A small low-overhead TS-only Prettier plugin to sort imports","type":"module","version":"0.2.4","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","exports":{".":"./index.js"},"repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git"},"peerDependencies":{"prettier":"^3.6.2"},"dependencies":{"prettier-oxc-parser":"^0.2.0"},"_id":"@arnaud-barre/prettier-plugin-sort-imports@0.2.4","gitHead":"bcda40f52ff2efd4436a8b24474ed20aea1cbe03","bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","_nodeVersion":"24.7.0","_npmVersion":"11.5.1","dist":{"integrity":"sha512-uUGp7SXBoKrQcMK/V9z4jo4xhkJIaiCs1lZmJpYEeZNgPXe3y7j81uqgNBmS4l2S9xHiffaAU8V8u16qm35dsA==","shasum":"a9f3e4bd868ab47242f17b80c7d5859447a1cc59","tarball":"https://registry.npmjs.org/@arnaud-barre/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-0.2.4.tgz","fileCount":4,"unpackedSize":8312,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEYLXEkW5xCGmqAG2JhgCGRwlMfU740xmFyNFTTERADMAiEAweBZWpO/is8Wb9BKsutdyXTMpdSl10y37Q5q8DvbMp4="}]},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prettier-plugin-sort-imports_0.2.4_1758847878703_0.8534959232878221"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-14T18:04:48.670Z","modified":"2025-09-26T00:51:19.069Z","0.1.0":"2023-05-14T18:04:48.879Z","0.1.1":"2023-07-08T17:53:37.565Z","0.1.2":"2023-08-13T02:50:11.067Z","0.1.3":"2023-12-02T18:47:46.934Z","0.2.0":"2025-05-17T23:54:44.238Z","0.2.1":"2025-05-18T16:50:54.453Z","0.2.2":"2025-07-19T09:31:35.037Z","0.2.3":"2025-09-25T10:21:06.971Z","0.2.4":"2025-09-26T00:51:18.895Z"},"bugs":{"url":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports/issues"},"author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","homepage":"https://github.com/ArnaudBarre/prettier-plugin-sort-imports#readme","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/prettier-plugin-sort-imports.git"},"description":"A small low-overhead TS-only Prettier plugin to sort imports","maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"readme":"# @arnaud-barre/prettier-plugin-sort-imports [![npm](https://img.shields.io/npm/v/@arnaud-barre/prettier-plugin-sort-imports)](https://www.npmjs.com/package/@arnaud-barre/prettier-plugin-sort-imports)\n\nA small low-overhead TS-only Prettier plugin to sort imports. Inspired by [IanVS/prettier-plugin-import-sort](https://github.com/IanVS/prettier-plugin-sort-imports).\n\nThis package is using a monkey-patch of the estree [pinter preprocess](https://prettier.io/docs/en/plugins.html#optional-preprocess) to avoid a double code -> AST -> code pass. This is obviously not stable, but allows to get everything I need for 200 lines of code and without any dependency.\n\nIt's also using [prettier-oxc-parser](https://github.com/ArnaudBarre/prettier-oxc-parser) as the TS parser in `0.2.0`.\n\nThis plugin sorts imports into 4 groups (`bun:`, `node:`, `<packages>`, `#<subpath-imports>`, `.<relative>`), with a natural sorting inside each group. Comments follow the imports they are attached too. There is no special handling for TS paths.\n\n## Features\n\n- Don't reorder imports across side effect imports\n- Enforce `node:` prefix\n- Merge imports statement from the same module\n- Use `import type` for type only imports\n","readmeFilename":"README.md"}