prettier-plugin-object-multiline weekly downloads statistics
By alexkates · npm · Prettier plugins
A Prettier plugin that enforces one property per line in all object literals
prettier-plugin-object-multiline has 1 recorded weekly downloads on npm, a decrease of 83.3% over the past 30 days, ranking #2218 of 2,256 tracked listings.
About prettier-plugin-object-multiline
prettier-plugin-object-multiline
A Prettier plugin that enforces one property per line in all object literals, regardless of the printWidth setting.
🚀 Installation
📝 Usage
Once installed, Prettier will automatically use this plugin. No configuration needed!
Example
Input:
Output:
Nested Objects
The plugin also formats nested objects correctly:
Complex Example
The plugin handles complex, deeply nested objects with consistency:
⚙️ How It Works
This plugin overrides the default object expression printer in Prettier to always format objects with one property per line, regardless of the object's length or the printWidth setting.
It uses Prettier's own babel and estree plugins as a foundation and extends them to modify the object expression formatting behavior.
Why Use This Plugin?
• Consistency: Ensures all object properties are formatted in the same way, regardless of object size • Readability: Makes objects easier to read, with each property on its own line • Cleaner Git Diffs: When objects change, Git diffs are cleaner with one property per line • Simplified Editing: Makes it easier to add, remove, or reorder properties • Zero Configuration: Works out of the box with no additional setup
Compatibility
This plugin:
• Requires Prettier v3.0.0 or newer • Is fully compatible with ES Modules • Requires Node.js 18.0.0 or newer • Adds trailing commas to all object properties
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository 2. Create your feature branch (git checkout -b feature/amazing-feature) 3. Commit your changes (git commit -m 'Add some amazing feature') 4. Push to the branch (git push origin feature/amazing-feature) 5. Open a Pull Request
For more detailed information, please see the CONTRIBUTING.md file.
Testing
This plugin uses Node.js built-in test runner. To run the tests:
License
MIT
Description from the npm listing.
- prettier-plugin
- object
- multiline
- formatter
- code-style
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
7/30/90-day growth
Ranking history
Listing placement
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 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 (121)Similar npm Prettier plugins plugins
All 20 prettier-plugin-object-multiline 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-object-multiline. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.