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 Stale · Oct 18, 2026

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

Weekly downloads
5
Official API · Oct 18, 2026
7-day growth
+25.0%
+1 weekly downloads
30-day growth
-64.3%
-9 weekly downloads
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About @sroussey/prettier-plugin-organize-imports

GitHub Workflow Status

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

npm install --save-dev @sroussey/prettier-plugin-organize-imports

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:

{
  "plugins": ["@sroussey/prettier-plugin-organize-imports"]
}

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.

{
  "organizeImportsSkipDestructiveCodeActions": true
}

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.

npm install --save-dev vue-tsc

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 install        # install dependencies
bun run build      # bundle src/ to dist/index.js (ESM) and emit type declarations
bun run typecheck  # typecheck the library and the tests
bun run format     # format with prettier
bun test           # run the test suite against the built plugin
bun run test       # typecheck, build, then run the test suite (what CI runs)

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/.…

Description from the npm listing.

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

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

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

7/30/90-day growth

@sroussey/prettier-plugin-organize-imports weekly downloads growth on npm: +25.0% over 7 days, -64.3% over 30 days, 90-day growth unavailable.@sroussey/prettier-plugin-organize-imp…Weekly downloads growth on npm5downloads / week now7-day growth+1 weekly downloads+25.0%30-day growth-9 weekly downloads-64.3%90-day growth+5 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@sroussey/prettier-plugin-organize-imports weekly downloads growth on npm: +25.0% over 7 days, -64.3% over 30 days, 90-day growth unavailable.

Ranking history

@sroussey/prettier-plugin-organize-imports npm ranking history: currently #2209 (by weekly downloads).@sroussey/prettier-plugin-organize-imp…npm ranking · by weekly downloads · Last 90 days#2209current rank#2080#2100#2120#2140#2160#2180#2200#2220Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@sroussey/prettier-plugin-organize-imports npm ranking history: currently #2209 (by weekly downloads).

Listing placement

All npm2,422 listings · 122 pages · 1,212 shown · page 114, #17 (overall #2,277)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins245 listings · 13 pages · page 9, #3 (overall #163)
Prettier plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

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

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 22, 2026. See the methodology.