# simonhaenisch/prettier-plugin-organize-imports

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

Repository: https://github.com/simonhaenisch/prettier-plugin-organize-imports
Canonical: https://ross.abutalabs.com/products/prettier-plugin-organize-imports
Homepage: https://npmjs.com/prettier-plugin-organize-imports
Language: JavaScript
License: MIT
License Family: permissive
Topics: prettier, prettier-plugin, typescript, sort-imports, tsx, javascript, jsx, vue
Last push: 2025-09-18T07:59:23+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 42, release rhythm 16, longevity 100
- inputs: {"age_days": 2406, "days_push": 349, "days_rel": 349, "gap_med": 180.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1238, forks 46 (observed 2026-08-28T04:04:05.444439+00:00)

## What it is
A Prettier plugin that organizes import statements (sorting, combining, and removing unused ones) using the TypeScript language service API. It supports .js, .jsx, .ts, .tsx, and .vue files and requires zero configuration.

## Use cases
- sort imports in typescript files automatically
- remove unused imports when formatting with prettier
- stop merge conflicts caused by import statements
- make prettier organize imports like vs code
- organize imports in vue single-file components
- enforce consistent import order across a team

## When to choose
- you already use Prettier and want automatic import organization
- you want the same behavior as VS Code's 'Organize Imports' action in CI or formatting pipelines
- you work with TypeScript, JavaScript, JSX, TSX, or Vue files

## When to avoid
- you use other Prettier plugins that override the babel, typescript, or vue parsers, since they are incompatible
- you don't use Prettier in your project
- you need import organization for languages other than JS/TS/Vue

## Facets
- artifact type: plugin
- maturity: active
- function: formatter, developer-tools
- domain: developer-tools, web-development, frontend
- platform: cli, editor-plugin
- tags: prettier-plugin, sort-imports, typescript, javascript, vue, code-style, nodejs

## Member repositories
- simonhaenisch/prettier-plugin-organize-imports (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.444439+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:21:48.898877+00:00, confidence not recorded.
  - readme: https://github.com/simonhaenisch/prettier-plugin-organize-imports (fetched 2026-08-28T04:04:05.444439+00:00, sha d7705b52663b)
  - registry_npm: https://registry.npmjs.org/prettier-plugin-organize-imports (fetched 2026-08-29T12:20:52.877209+00:00, sha a4d09df20097)
- Data as of 2026-08-30T08:39:29.467469+00:00.
