Skip to content
PluginStats

prettier-plugin-multiline weekly downloads statistics

By kj7lnw · npm · Prettier plugins

Prettier plugin for multiline formatting and safe sorting

View on npm Fresh · Oct 18, 2026

prettier-plugin-multiline has 7 recorded weekly downloads on npm, unchanged over the past 30 days, ranking #2116 of 2,322 tracked listings.

Weekly downloads
7
Official API · Oct 18, 2026
7-day growth
+600%
+6 weekly downloads
30-day growth
0.0%
0 weekly downloads
90-day growth
+600%
+6 weekly downloads
Rank
#2116
Among tracked npm listings

About prettier-plugin-multiline

Prettier Multiline Plugin

A Prettier plugin that formats imports, arrays, and objects on multiple lines to minimize merge conflicts in collaborative development environments.

npm version License: MIT

Why Multi-line Formatting Matters

The Problem: Merge Conflicts in Collaborative Development

In large projects with multiple developers working simultaneously, merge conflicts are a common pain point that slow down development and integration. One of the most frequent sources of these conflicts is single-line formatting of imports, arrays, and objects.

Consider this common scenario:

  1. Developer A adds a new import to a file:

    import { alpha, beta, delta, gamma } from 'module';
    
  2. Meanwhile, Developer B also adds a different import to the same line:

    import { alpha, beta, epsilon, gamma } from 'module';
    
  3. When merging these changes, a conflict occurs that must be manually resolved:

    <<<<<<< HEAD
    import { alpha, beta, delta, gamma } from 'module';
    =======
    import { alpha, beta, epsilon, gamma } from 'module';
    >>>>>>> feature-branch
    

These conflicts are:

  • Time-consuming: Each must be manually resolved
  • Error-prone: Easy to accidentally remove someone's import
  • Frequent: Happens constantly in active projects
The Solution: Multi-line Formatting

By formatting imports, arrays, and objects with one item per line, merge conflicts become both less frequent and easier to resolve:

import {
  alpha,
  beta,
  delta,
  gamma,
} from 'module';
Benefits:
  1. Reduced Conflict Frequency: Changes to different items won't conflict
  2. Clearer Diffs: Git diffs show exactly which item was added/removed
  3. Easier Resolution: When conflicts do occur, they're isolated to specific items
  4. Better Code Reviews: Reviewers can clearly see which items were modified
  5. Improved Maintainability: Easier to alphabetize or organize imports
Real-world Example
With single-line formatting:
- import { alpha, beta, gamma } from 'module';
+ import { alpha, beta, delta, gamma } from 'module';

If two developers add different items, this creates a merge conflict.

With multi-line formatting:
  import {
    alpha,
    beta,
+   delta,
    gamma,
  } from 'module';

Even if two developers add different items, Git can often auto-merge these changes without conflicts.

Installation

npm install --save-dev prettier-plugin-multiline

Usage

Configuration File

Add the plugin to your Prettier configuration:

{
  "plugins": ["prettier-plugin-multiline"],
  "multilineImports": true,
  "multilineArrays": true,
  "multilineObjects": true,
  "sortImports": true,
  "minItemsForMultiline": 2
}
Command Line

You can also use the plugin directly from the command line:

# Format with multiline imports
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --multiline-imports file.ts

# Format with sorted imports
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --sort-imports file.ts

# Format with both multiline and sorted imports
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --multiline-imports --sort-imports file.ts

# Set minimum items for multiline formatting
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --multiline-imports --min-items-for-multiline=2 file.ts

Configuration Options

OptionTypeDefaultDescription
multilineImportsbooleanfalseFormat imports on multiple lines
multilineArraysbooleanfalseFormat array literals on multiple lines
multilineObjectsbooleanfalseFormat object literals on multiple lines
sortImportsbooleanfalseSort import specifiers
minItemsForMultilinenumber1Minimum number of items to trigger multiline formatting
debugbooleanfalseEnable debug output for the plugin

Example Configuration

For optimal merge conflict reduction in large projects:

{
  "plugins": ["prettier-plugin-multiline"],
  "multilineImports": true,
  "multilineArrays": true,
  "multilineObjects": true,
  "minItemsForMultiline": 2
}

This configuration will format all imports, arrays, and objects with 2 or more items on multiple lines, significantly reducing merge conflicts in collaborative environments.

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • formatter
  • multiline
  • typescript
  • javascript

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

prettier-plugin-multiline weekly downloads on npm, last 90 days: 7 weekly downloads as of Oct 18, 2026, +600% over 90 days.prettier-plugin-multilineWeekly downloads on npm · Last 90 days7downloads / week+600% over 90 days0246810Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-multiline weekly downloads on npm, last 90 days: 7 weekly downloads as of Oct 18, 2026, +600% over 90 days.

7/30/90-day growth

prettier-plugin-multiline weekly downloads growth on npm: +600% over 7 days, 0.0% over 30 days, +600% over 90 days.prettier-plugin-multilineWeekly downloads growth on npm7downloads / week now7-day growth+6 weekly downloads+600%30-day growth+0 weekly downloads0.0%90-day growth+6 weekly downloads+600%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-multiline weekly downloads growth on npm: +600% over 7 days, 0.0% over 30 days, +600% over 90 days.

Ranking history

prettier-plugin-multiline npm ranking history: currently #2116 (by weekly downloads).prettier-plugin-multilinenpm ranking · by weekly downloads · Last 90 days#2116current rank#2050#2060#2070#2080#2090#2100#2110#2120Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-multiline npm ranking history: currently #2116 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 106, #20 (overall #2,120)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 8, #5 (overall #145)
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 prettier-plugin-multiline
Date (UTC)Weekly downloadsChange vs. previous
7+3
40
4+4
00
00
00
0-1
10
10
1-1
20
20
20
2—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-multiline alternatives

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/prettier-plugin-multiline. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.