Skip to content
PluginStats

@sroussey/prettier-plugin-organize-imports weekly downloads statistics

By sroussey · npm · Prettier plugins

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

View on npm Fresh · Oct 17, 2026

@sroussey/prettier-plugin-organize-imports has 3 recorded weekly downloads on npm, a decrease of 78.6% over the past 30 days.

It ranks #2099 of 2,251 tracked npm listings by weekly downloads.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
3
Official API · Oct 17, 2026
7-day growth
0.0%
0 weekly downloads
30-day growth
-78.6%
-11 weekly downloads
90-day growth
—
Insufficient history
Rank
#2099
Among tracked npm listings

About @sroussey/prettier-plugin-organize-imports

Prettier Plugin: Organize Imports

Make sure that your import statements stay consistent no matter who writes them and what their preferences are.

_This is a fork of prettier-plugin-organize-imports published as @sroussey/prettier-plugin-organize-imports. It brings its own TypeScript instead of relying on the project's (which TypeScript 7 made impossible), ships as ESM only (so it requires Prettier 3), and is written in TypeScript, built and tested with Bun. The plugin's behaviour and options are otherwise unchanged._

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

• 👌 One dependency (its own TypeScript), and prettier as the only required peer. • 📦 ESM only, shipped as a single bundled file with type declarations. • 💪 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

_prettier is the only required peer dependency. This package is ESM only and requires Prettier 3._

TypeScript

The plugin brings its own TypeScript. It depends on @typescript/typescript6 and organizes imports with that language service, so it works whatever version of typescript your project has — or none at all.

This is deliberate. TypeScript 7.0 dropped the programmatic language service API this plugin is built on (announcement), so following the project's own TypeScript is no longer possible. Owning the dependency also means one less peer dependency to keep in range, and the same sorting behaviour across every project.

The trade-off is that the plugin sorts with TypeScript 6's language service rather than your project's version, so in principle it can disagree with your editor's own "Organize Imports" action if you're on a different one.

Usage

Automatic plugin discovery has been removed in Prettier 3. 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:

This works from a CommonJS project too — Prettier loads plugins with a dynamic import(), so the plugin being ESM doesn't constrain your own project's module format.

Configuration

Skip Files

Files containing the substring // organize-imports-ignore or // tslint:disable:ordered-imports are skipped.

Skip Destructive Code Actions

If you don't want destructive code actions (like removing unused imports), you can enable the option organizeImportsSkipDestructiveCodeActions via your Prettier config.

Compatibility

ESLint

For compatibility with ESLint or other linters, see "Integrating with Linters" in the Prettier docs. You should have any import order rules/plugins disabled.

React

Depending on your configuration, if you need the React import to stay even if it's "unused" (i.e. only needed for the JSX factory), make sure to have the jsx option set to react in your tsconfig.json. For more details click here.

Vue.js

Make sure that you have the optional peer dependency vue-tsc installed.

If you're using Vue.js with Pug templates, you'll also need to install @vue/language-plugin-pug as a dev dependency, and configure it in vueCompilerOptions (see usage).

Debug Logs

If something doesn't work, you can try to prefix your prettier command with DEBUG=true which will enable this plugin to print some logs.

Development

This package is written in TypeScript and uses Bun as its package manager, bundler and test runner.

bun test runs against dist/index.js, i. e. the artifact that actually gets published, so run bun run build after changing anything under src/.

The scripts call tsc6 rather than tsc: typescript and @typescript/old both claim the tsc bin, so which one tsc resolves to depends on install order. typescript itself is only a devDependency here, because @vue/language-core's types import from it.

Rationale/Disclaimer

This plugin acts outside of Prettier's scope because _"Prettier only prints code. It does not transform it."_, and technically sorting is a code transformation because it changes the AST (this plugin even removes code, i. e. unused imports). In my opinion however, the import statements are not _really_ part of the code, they are merely directives that instruct the module system where to find the code (only true as long as your imports are side-effects free regarding the global scope, i. e. import order doesn't matter), comparable with using directives in C# or #include preprocessing directives in C. Therefore the practical benefits outweigh sticking with the philosophy in this case.

Changelog

See changelog.md.

License

MIT.

Description from the npm listing.

  • prettier
  • prettier-plugin
  • typescript
  • imports
  • organize-imports

Where @sroussey/prettier-plugin-organize-imports sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 105, #20 (overall #2100)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 9, #1 (overall #161)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@sroussey/prettier-plugin-organize-imports weekly downloads on npm, last 90 days: 3 weekly downloads as of Oct 17, 2026.@sroussey/prettier-plugin-organize-imp…Weekly downloads on npm · Last 90 days3downloads / week020406080100120140160Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@sroussey/prettier-plugin-organize-imports weekly downloads on npm, last 90 days: 3 weekly downloads as of Oct 17, 2026.
PNG SVG

7/30/90-day growth

@sroussey/prettier-plugin-organize-imports weekly downloads growth on npm: 0.0% over 7 days, -78.6% over 30 days, 90-day growth unavailable.@sroussey/prettier-plugin-organize-imp…Weekly downloads growth on npm3downloads / week now7-day growth+0 weekly downloads0.0%30-day growth-11 weekly downloads-78.6%90-day growth+3 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@sroussey/prettier-plugin-organize-imports weekly downloads growth on npm: 0.0% over 7 days, -78.6% over 30 days, 90-day growth unavailable.
PNG SVG

Ranking history

@sroussey/prettier-plugin-organize-imports npm ranking history: currently #2099 (by weekly downloads).@sroussey/prettier-plugin-organize-imp…npm ranking · by weekly downloads · Last 90 days#2099current rank#2097#2098#2099#2100#2101Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@sroussey/prettier-plugin-organize-imports npm ranking history: currently #2099 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for @sroussey/prettier-plugin-organize-imports
Date (UTC)Weekly downloadsChange vs. previous
30
30
3-1
40
40
40
4+1
3-1
4+1
30
30
30
3-1
4—

Similar npm Prettier plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@sroussey/prettier-plugin-organize-imports. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.