prettier-plugin-salesforce weekly downloads statistics
By mattsimonis · npm · Prettier plugins
Prettier plugin for Salesforce Apex, metadata XML, Visualforce, Aura, and LWC template files.
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.
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
7/30/90-day growth
Ranking history
Listing placement
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)Similar npm Prettier plugins plugins
All 20 prettier-plugin-salesforce alternativesData 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.