trivago/prettier-plugin-sort-imports
A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order. observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 61
- Release rhythm 65
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 14.0
- age_days: 2235
- days_rel: 238
- days_push: 238
- n_releases_24m: 9
Adoption not part of the score
3948 stars · 162 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Prettier plugin that sorts import declarations in TypeScript and JavaScript files according to a user-defined regular expression order. It is configured via the prettier config file with options like importOrder, importOrderSeparation, and importOrderSortSpecifiers.
Use cases
- sort imports in typescript files
- organize javascript import statements by custom order
- enforce consistent import ordering across a codebase
- group third-party and local imports with prettier
- sort import specifiers alphabetically
- auto-format import order in vue sfc files
When to choose
- you already use Prettier and want deterministic, regex-configurable import ordering
- you want to group imports by path aliases like @core, @server, @ui
- you need to sort named specifiers within import statements
When to avoid
- you don't use Prettier and only want import sorting
- you need ESLint-based import linting with autofix rather than formatting
- you need sorting of exports or other syntax beyond imports
Facets
plugin · maturity active
formatter developer-tools developer-tools web-development frontend cross-platform prettier import-sorting typescript javascript code-style nodejs
1 source
- readme: https://github.com/trivago/prettier-plugin-sort-imports · fetched 2026-08-28 · f9322222714f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| trivago/prettier-plugin-sort-imports | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="trivago/prettier-plugin-sort-imports")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem