{"library":"prettier-plugin-astro-organize-imports","title":"prettier-plugin-astro-organize-imports","description":"A Prettier plugin that organizes imports in Astro files by removing unused imports, coalescing duplicate imports, and sorting them using the TypeScript language service API's organizeImports feature. The current stable version is 0.4.12. It is actively maintained with frequent releases. Differentiators: specifically for Astro files, provides explicit compatibility with prettier-plugin-astro and prettier-plugin-tailwindcss through per-plugin workarounds, and supports configurable modes (All, SortAndCombine, RemoveUnused).","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-astro-organize-imports"],"cli":null},"imports":["No import needed; declare in .prettierrc plugins array","In .prettierrc: \"plugins\": [\"prettier-plugin-astro\", \"prettier-plugin-tailwindcss\", \"prettier-plugin-astro-organize-imports\"]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// .prettierrc\n{\n  \"plugins\": [\n    \"prettier-plugin-astro\",\n    \"prettier-plugin-tailwindcss\",\n    \"prettier-plugin-astro-organize-imports\"\n  ],\n  \"overrides\": [\n    {\n      \"files\": \"*.astro\",\n      \"options\": {\n        \"parser\": \"astro\"\n      }\n    }\n  ],\n  \"astroOrganizeImportsMode\": \"All\"\n}","lang":"javascript","description":"Configuration to enable the plugin for Astro files, with recommended order and mode set to All.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}