prettier-plugin-ocd weekly downloads statistics
By nksrentas · npm · Prettier plugins
A Prettier plugin that automatically formats JSX attributes in ascending length order (creating a left triangle pattern), making React components more visually organized and consistent.
prettier-plugin-ocd has 4 recorded weekly downloads on npm, a decrease of 20.0% over the past 30 days.
It ranks #2059 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by 0.0%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About prettier-plugin-ocd
Prettier Plugin OCD :)
A Prettier plugin that automatically formats JSX attributes in ascending length order (creating a left triangle pattern), making React components more visually organized and consistent.
Features
• Automatically sorts JSX attributes by length (shortest to longest) • Creates a visually appealing left triangle pattern • Preserves non-JSX content • Handles multiple JSX elements in the same file • Full TypeScript support • Maintains Prettier's high standards for code formatting
Installation
Using npm:
Using yarn:
Usage
The plugin will be automatically picked up by Prettier. No additional configuration is needed.
Before:
After:
Configuration
This plugin works out of the box with Prettier's default configuration. No additional settings are required.
How It Works
The plugin uses a sophisticated attribute processing system that:
1. Parses the JSX using Babel 2. Identifies all JSX attributes 3. Calculates the length of each attribute 4. Sorts them in ascending order 5. Generates the formatted code while preserving all other formatting
License
MIT
Credits
Created by Nikos Rentas
FAQ
Q: Will this affect my code's functionality?
A: No, the plugin only changes the order of JSX attributes, which doesn't affect functionality.
Q: Does it work with all JSX/TSX files?
A: Yes, the plugin supports both JSX and TSX files.
Q: What happens if there's an error?
A: The plugin gracefully handles errors by returning the original code unchanged.
Requirements
• Node.js >= 14 • Prettier >= 2.0.0
Known Issues
None at the moment. If you find any issues, please report them in the GitHub issue tracker.
Description from the npm listing.
- prettier
- prettier-plugin
- left-triangle
- triangle
- react
- jsx
- tsx
- props
- ocd
Where prettier-plugin-ocd 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/prettier-plugin-ocd. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.