Skip to content
PluginStats

prettier-plugin-salesforce weekly downloads statistics

By mattsimonis · npm · Prettier plugins

Prettier plugin for Salesforce Apex, metadata XML, Visualforce, Aura, and LWC template files.

View on npm Fresh · Oct 17, 2026

prettier-plugin-salesforce has 2 recorded weekly downloads on npm, a decrease of 66.7% over the past 30 days.

It ranks #2149 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +100%.

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

Weekly downloads
2
Official API · Oct 17, 2026
7-day growth
-60.0%
-3 weekly downloads
30-day growth
-66.7%
-4 weekly downloads
90-day growth
+100%
+1 weekly downloads
Rank
#2149
Among tracked npm listings

About prettier-plugin-salesforce

prettier-plugin-salesforce

Prettier plugin for Salesforce Apex, Visualforce, Aura, LWC templates, and Salesforce metadata XML.

Site and playground: https://mattsimonis.github.io/prettier-plugin-salesforce/

Install

Use the matching command for npm or Yarn if your project uses one of those package managers.

Configure

Add the plugin to .prettierrc:

Format Salesforce source:

Check formatting in CI:

Do not set a top-level parser in a shared Prettier config. Use targeted overrides only when a file family needs a parser forced.

Supported files

| Surface | Files |

| Apex | .cls, .trigger, anonymous .apex files | | Visualforce | .page, .component | | Aura markup | .cmp, .intf, .tokens, .evt, .design, .auradoc, Aura .app | | LWC templates | .html files under an lwc path segment | | LWC, Aura, and static resource assets | Delegated JS, TS, CSS, JSON, YAML, Markdown, and HTML text assets | | Salesforce metadata XML | *-meta.xml, .labels, known metadata family suffix files, and metadata XML paths | | Salesforce payload text | .email, .resource, .asset, .forceignore, and known Salesforce payload text paths |

The plugin owns Salesforce paths only. Ordinary project files stay with Prettier core, another plugin, or no parser.

Options

| Option | Default | Use |

| salesforceSortLabelsByFullName | false | Sort blocks in CustomLabels metadata by nested . | | salesforceFinalNewline | true | Print one trailing newline at the end of Salesforce-formatted files. | | salesforceTestVisiblePlacement | "own-line" | Print Apex @TestVisible on its own line. Use "inline" to keep it with the declaration. | | salesforceBlankLineBeforeLineComment | false | Add an empty line before standalone Apex // comments, except first comments in a block and comments directly after block comments. | | salesforceLogicalOperatorPosition | "end-of-line" | Put wrapped Apex logical operators at the end of the previous line. Use "start-of-line" for leading operators. |

Example:

Parser overrides

Most projects should let Prettier infer parsers. If your repo has broad parser overrides, put Salesforce-specific overrides later so they win:

Available parser names:

| Parser | Use |

| salesforce-apex | Apex classes and triggers. | | salesforce-apex-anonymous | Anonymous Apex scripts. | | salesforce-markup | Visualforce and Aura markup. | | salesforce-metadata-xml | Salesforce metadata XML and metadata suffix files. | | salesforce-router-by-path | Path-aware router for shared extensions such as .html, .md, .xml, .svg, and .app. |

Config audit APIs

The package exports helpers for finding risky Prettier overrides in Salesforce workspaces. The source repository also has a local audit:configs script for maintainers.

Programmatic APIs

• routeFile(filePath) returns the Salesforce route for a path. • auditPrettierConfig(config) reports risky parser overrides. • scanPrettierConfigAuditReports(root) scans a workspace tree.

For repository development, release checks, playground use, and deep routing notes, see the project README and docs/ directory.

Description from the npm listing.

  • prettier
  • prettier-plugin
  • salesforce
  • apex
  • sfdx

Charts

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

Adoption over time

prettier-plugin-salesforce weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, +100% over 90 days.prettier-plugin-salesforceWeekly downloads on npm · Last 90 days2downloads / week+100% over 90 days024681012Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-salesforce weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, +100% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-salesforce weekly downloads growth on npm: -60.0% over 7 days, -66.7% over 30 days, +100% over 90 days.prettier-plugin-salesforceWeekly downloads growth on npm2downloads / week now7-day growth-3 weekly downloads-60.0%30-day growth-4 weekly downloads-66.7%90-day growth+1 weekly downloads+100%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-salesforce weekly downloads growth on npm: -60.0% over 7 days, -66.7% over 30 days, +100% over 90 days.
PNG SVG

Ranking history

prettier-plugin-salesforce npm ranking history: currently #2149 (by weekly downloads).prettier-plugin-salesforcenpm ranking · by weekly downloads · Last 90 days#2149current rank#2142#2144#2146#2148#2150#2152Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-salesforce npm ranking history: currently #2149 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 108, #10 (overall #2,150)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

Prettier plugins244 listings · 13 pages · page 9, #15 (overall #175)
Prettier plugins: every listing in weekly downloads order
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.

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.

Recent observations

Full history (121)
Recent weekly downloads observations for prettier-plugin-salesforce
Date (UTC)Weekly downloadsChange vs. previous
20
20
2-2
4-1
50
5-1
6+1
50
5-3
8+2
6-1
70
7+1
6—

Similar npm Prettier plugins plugins

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