@elegantech/prettier-multi-config weekly downloads statistics
By elegantech · npm · Prettier plugins
Pre-configuration builder for Prettier 3 to support multiple file formats.
@elegantech/prettier-multi-config has 1 recorded weekly downloads on npm, a decrease of 95.5% over the past 30 days.
It ranks #2187 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.
About @elegantech/prettier-multi-config
@elegantech/prettier-multi-config
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:
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.
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:
• prettier-plugin-pkg
PHP preset (php)
Compatibility with PHP.
Note: You need to set the phpVersion option depending of your PHP environment.
Required plugins:
• @prettier/plugin-php
Bash Script preset (sh)
Compatibility with Shell Script for Bash or sh.
Required plugins:
• prettier-plugin-sh
Multiline preset (sh)
Multiline elements for some languages.
Required plugins:
• 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:
Or in your .prettierrc.json:
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
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:
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:
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.
Check this example using unbuild to create a config.
🚧 WIP
IDEs
VS Code
Check the .vscode directory for extensions and settings recommendations.
Sponsors
• Joinnus
License
Licensed under the Apache License, Version 2.0.
Description from the npm listing.
- prettier
- prettier-plugin
- prettier-config
- prettier-preset
- prettier-presets
- static analysis
Where @elegantech/prettier-multi-config 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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)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/@elegantech/prettier-multi-config. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.