A Prettier plugin that adds support for formatting Handlebars templates, primarily used in Ember.js applications. Current stable version 1.0.1. Development appears to be minimal with infrequent updates. Differentiates from other Handlebars formatters by integrating directly with Prettier, leveraging its consistent formatting engine and configuration. Suitable for Ember.js projects using GJS/GTS files or standalone .hbs templates.
npm install prettier-plugin-hbsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install Prettier and the plugin, configure with .prettierrc, then format a .hbs file.
Ensure prettier is also installed: npm install --save-dev prettier
Check plugin compatibility; consider alternative plugins like 'prettier-plugin-ember-template-tag' for Ember GJS/GTS files.
Use parser: 'hbs' in Prettier configuration or API calls.
Run npm install --save-dev prettier-plugin-hbs
Add 'plugins': ['prettier-plugin-hbs'] to .prettierrc or pass plugins option in API.
Downgrade Prettier to 2.x or use a compatible plugin.