/prettier-plugin-organize-imports

Make Prettier organize your imports using the TypeScript language service API.

Primary LanguageJavaScriptMIT LicenseMIT

Prettier Plugin: Organize Imports

A plugin that makes Prettier organize your imports (i. e. sort and remove unused imports) using the organizeImports feature of the TypeScript language service API. This is the same as using the "Organize Imports" action in VS Code.

Installation

npm install --save-dev prettier-plugin-organize-imports

prettier and typescript are peer dependencies, so make sure you have those installed in your project.

Usage

The plugin will be loaded by Prettier automatically. No configuration needed.

License

MIT.