{"repo":"simonhaenisch/prettier-plugin-organize-imports","free":true,"listed":false,"github":"https://github.com/simonhaenisch/prettier-plugin-organize-imports","clone":"git clone https://github.com/simonhaenisch/prettier-plugin-organize-imports.git","description":"Make Prettier organize your imports using the TypeScript language service API.","language":"JavaScript","stars":1240,"topics":["prettier","prettier-plugin","typescript","sort-imports","tsx","javascript","jsx","vue"],"license":"MIT","category":"ui-components","readme_excerpt":"Prettier Plugin: Organize Imports Make sure that your import statements stay consistent no matter who writes them and what their preferences are. A plugin that makes Prettier organize your imports (i. e. sorts, combines and removes unused ones) using the organizeImports feature of the TypeScript language service API. This is the same as using the \"Organize Imports\" action in VS Code. Features - 👌 Dependency-free (just peer-dependencies you probably already have). - 💪 Supports .js , .jsx , .ts , .tsx and .vue files. - 🚀 Zero config. - 🤓 No more weird diffs or annoying merge conflicts in PRs caused by import statements. - 🤯 If your editor supports auto-imports, you'll stop thinking about your imports so much that you won't even care about their order anymore. Caveat This plugin inherits, extends, and then overrides the built-in Prettier parsers for babel , babel-ts , typescript and vue . This means that it is incompatible with other plugins that do the same; only the last loaded plugin that exports one of those parsers will function. Installation Note that prettier and typescript are peer dependencies, so make sure you have those installed in your project. Usage Prettier 3 Automatic plugin discovery has been removed. Thus you need to configure Prettier to use the plugin according to the Plugins docs, for example by adding it to the plugins config option: Prettier 2 The plugin will be loaded by Prettier automatically. No configuration needed. Note that automatic plugin disc","default_branch":null,"files":null,"tree":[],"storefront":"/r/simonhaenisch","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simonhaenisch/prettier-plugin-organize-imports/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}