Skip to content
PluginStats

@elegantech/prettier-multi-config weekly downloads statistics

By elegantech · npm · Prettier plugins

Pre-configuration builder for Prettier 3 to support multiple file formats.

View on npm Fresh · Dec 6, 2026

@elegantech/prettier-multi-config has 18 recorded weekly downloads on npm, an increase of 157% over the past 30 days, ranking #3010 of 3,247 tracked listings.

Weekly downloads
18
Official API · Dec 5, 2026
7-day growth
+80.0%
+8 weekly downloads
30-day growth
+157%
+11 weekly downloads
90-day growth
+200%
+12 weekly downloads
Rank
#3010
▼ 63 in 7 days

About @elegantech/prettier-multi-config

@elegantech/prettier-multi-config

<!-- [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) -->

semantic-release

Multi-configurations presets for Prettier 3. Compatibility with some plugins (PHP, Blade templates, Bash, etc).

Requirements

  • Prettier >= 3.0.0: Base prettier and plugins are compatible with Prettier >= 3 only.
  • Node.js:
    • Minimum: 14.18.0 (for ESM config compatibility and default plugins)
  • npm:
    • Minimum: 7.2.0 (automatic install of peerDependencies).

Note: Some optional plugins may require a more recent version of Node.js.

Installing

In the following instructions it will be used npm, but commands arguments are the same for yarn.

Add Prettier and this package to your project:

# Base Prettier 3
npm add -D --save-exact prettier

# This package
npm add -D @elegantech/prettier-multi-config

Prettier's team recommends to use --save-exact for prettier dependency.

Installing plugins dependencies

There are other optional dependencies that vary depending of the presets you are using. Check that sections for instructions.

Depending on how are you creating your own config file, you may choose to install the required plugins packages as:

  • devDependencies (-D, --save-dev).
  • peerDependencies (--save-peer).
  • dependencies.
<!-- TODO: Add documentation about other types of installation -->

In the following plugin installation instructions, it is assumed you are building your configuration directly into your project, and therefore plugin packages should be installed as devDependencies (using the -D npm/yarn alias).

Available presets

There are some presets available with default configurations and plugins for specific languages or cases. These will help you create your own configuration file.

Check for examples in the Usage section.

Base preset (base)

Includes general base rules for all the languages/files officially supported by Prettier. Also, there are options for formatting the package.json file.

Required plugins:
npm add -D prettier-plugin-pkg
PHP preset (php)

Compatibility with PHP.

Note: You need to set the phpVersion option depending of your PHP environment.

Required plugins:
npm add -D @prettier/plugin-php
Bash Script preset (sh)

Compatibility with Shell Script for Bash or sh.

Required plugins:
npm add -D prettier-plugin-sh
Multiline preset (sh)

Multiline elements for some languages.

Required plugins:
npm add -D prettier-plugin-multiline-arrays

Usage

Simple usage

Although this package is not intended to be used directly as a shared configuration or plugin, you can still use the default export as your prettier setup.

In your package.json:

{
  "prettier": "@elegantech/prettier-multi-config"
}

Or in your .prettierrc.json:

"@elegantech/prettier-multi-config"

This includes the base preset only.

You can use this technique to create your shared configuration using this package. 😉

Check out the following sections to create your own customized configuration file.

The config file
<!-- TODO: Add doc in VitePress or VuePress -->

You have to use .js, .cjs or .mjs formats to be able to customize your presets. As you can see, this package it's available for ESM and CommonJs modules.

Remember: If your project is an ESM ({ "type": "module" } in your package.json), by using .prettierrc.js it will import the ESM build, but in the other hand, it will be required the commonjs version. To avoid this, you can use .cjs or .mjs extensions instead.

Initial state for .prettier.mjs:

/** @type {import("prettier").Config} */
const config = {
  // ...
};

export default config;

Read more about config formats in the Prettier documentation.

Examples

Note: Most of the following examples will assume you are using .prettierrc.mjs (ESM), but you are free to use .cjs format instead.

In your .prettier.mjs:

import {
  getMergedGlobalOptionsFor,
  getPluginsFor,
  getMergedOverrideFor,
} from '@elegantech/prettier-multi-config/presets';

const selectedPresets = [
  'base',
  'php',
  'sh',
];

/** @type {import("prettier").Config} */
const config = {
  // Add global configurations for selected presets
  ...getMergedGlobalOptionsFor(selectedPresets, {
    // Here you can add your own global options
  }),

  // Add plugins for selected presets
  plugins: getPluginsFor(selectedPresets, [
    // Here you can add other plugins
    'prettier-plugin-organize-imports',
  ]),

  overrides: [
    // Specific options for presets
    ...getMergedOverrideFor('base'),
    ...getMergedOverrideFor('php', {
      config: {
        // You can override some default options in the preset
        options: { phpVersion: '8.1' },
      },
    }),
    ...getMergedOverrideFor('sh'),

    // Here ypu can add your custom config override
    {
      files: ['.prettierrc.json'],
      options: {
        printWidth: 80,
      },
    },
  ],
};

The order of included options is respected. Be careful of options

Publish a package for your config file (🚧 WIP)

You can create a package that builds the config, using Typescript directly.…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • prettier-config
  • prettier-preset
  • prettier-presets
  • static analysis

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

@elegantech/prettier-multi-config weekly downloads on npm, last 90 days: 18 weekly downloads as of Dec 5, 2026, +200% over 90 days.@elegantech/prettier-multi-configWeekly downloads on npm · Last 90 days18downloads / week+200% over 90 days0510152025Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@elegantech/prettier-multi-config weekly downloads on npm, last 90 days: 18 weekly downloads as of Dec 5, 2026, +200% over 90 days.

7/30/90-day growth

@elegantech/prettier-multi-config weekly downloads growth on npm: +80.0% over 7 days, +157% over 30 days, +200% over 90 days.@elegantech/prettier-multi-configWeekly downloads growth on npm18downloads / week now7-day growth+8 weekly downloads+80.0%30-day growth+11 weekly downloads+157%90-day growth+12 weekly downloads+200%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@elegantech/prettier-multi-config weekly downloads growth on npm: +80.0% over 7 days, +157% over 30 days, +200% over 90 days.

Ranking history

@elegantech/prettier-multi-config npm ranking history: currently #3010 (by weekly downloads).@elegantech/prettier-multi-confignpm ranking · by weekly downloads · Last 90 days#3010current rank#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@elegantech/prettier-multi-config npm ranking history: currently #3010 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 151, #12 (overall #3,012)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 10, #4 (overall #184)
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 (170)
Recent weekly downloads observations for @elegantech/prettier-multi-config
Date (UTC)Weekly downloadsChange vs. previous
18+1
17+1
16+1
15+4
11-1
12-1
13+3
10-2
12-4
16+2
14+1
13+1
12-1
13—

Similar npm Prettier plugins plugins

All 20 @elegantech/prettier-multi-config 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/@elegantech/prettier-multi-config. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.