Skip to content
PluginStats

prettier-plugin-ember-hbs-tag weekly downloads statistics

By ijlee2 · npm · Prettier plugins

Prettier plugin to format hbs tags

View on npm Fresh · Oct 18, 2026

prettier-plugin-ember-hbs-tag has 702 recorded weekly downloads on npm, a decrease of 51.1% over the past 30 days, ranking #1501 of 2,322 tracked listings.

Weekly downloads
702
Official API · Oct 18, 2026
7-day growth
-80.4%
-2.9K weekly downloads
30-day growth
-51.1%
-733 weekly downloads
90-day growth
-79.1%
-2.7K weekly downloads
Rank
#1501
Among tracked npm listings

About prettier-plugin-ember-hbs-tag

This project uses GitHub Actions for continuous integration.

prettier-plugin-ember-hbs-tag

Prettier plugin to format hbs tags

  1. Why use this package?
  2. Installation
  3. Compatibility
  4. Contributing
  5. License

Why use this package?

Until now, Ember developers had to use ember-template-lint-plugin-prettier to format their *.hbs files. This is a bit strange, because Prettier natively supports Handlebars since May 2021.

The plugin also comes with a few issues:

  • It uglifies code inside an hbs tag (i.e. wrong indentations in rendering tests, Storybook stories).
  • It needs to dynamically load prettier and use a hook from ember-template-lint to format *.hbs. Due to strong coupling, it will fall behind if prettier or ember-template-lint makes a breaking change to their API.
  • Prettier recommends not running prettier through a linter plugin. In January 2025, Ember CLI removed eslint-plugin-prettier and stylelint-prettier from its blueprints, in order to separate formatting and linting.

In short, what we're missing is a Prettier plugin to format hbs tags.

[!TIP]

Use prettier-plugin-ember-template-tag to format <template> tags. You can find out below how to set up both plugins.

Installation

  1. In package.json, replace ember-template-lint-plugin-prettier with prettier-plugin-ember-hbs-tag.

    <details> <summary><code>package.json</code></summary>

    eslint-plugin-prettier and stylelint-prettier are assumed to have been removed already. For more details, please see my blog post.

    {
      "devDependencies": {
        "ember-template-lint": "...",
    -     "ember-template-lint-plugin-prettier": "...",
        "prettier": "...",
    +     "prettier-plugin-ember-hbs-tag": "...",
        "prettier-plugin-ember-template-tag": "..."
      }
    }
    
    </details>
  2. Remove ember-template-lint-plugin-prettier from the ember-template-lint configuration.

    <details> <summary><code>.template-lintrc.cjs</code></summary>
    'use strict';
    
    module.exports = {
    -   plugins: ['ember-template-lint-plugin-prettier'],
    -   extends: ['recommended', 'ember-template-lint-plugin-prettier:recommended'],
    -   overrides: [
    -     {
    -       files: ['**/*.{gjs,gts}'],
    -       rules: {
    -         prettier: 'off',
    -       },
    -     },
    -     {
    -       files: ['tests/**/*-test.{js,ts}'],
    -       rules: {
    -         prettier: 'off',
    -       },
    -     },
    -   ],
    +   extends: ['recommended'],
    };
    
    </details>
  3. Add prettier-plugin-ember-hbs-tag to the prettier configuration.

    <details> <summary><code>prettier.config.mjs</code></summary>

    Prettier's default parser for *.{js,ts} is 'babel'. To format *.{js,ts} with an hbs tag, set the parser to 'ember-hbs-tag'.

    export default {
      plugins: [
        'prettier-plugin-ember-hbs-tag',
        'prettier-plugin-ember-template-tag',
      ],
      overrides: [
        {
          files: ['*.{cjs,cts,js,mjs,mts,ts}'],
          options: {
            singleQuote: true,
          },
        },
        {
          files: ['tests/**/*-test.{js,ts}'],
          options: {
            parser: 'ember-hbs-tag',
            singleQuote: true,
            templateSingleQuote: false,
          },
        },
        {
          files: ['*.{gjs,gts}'],
          options: {
            singleQuote: true,
            templateSingleQuote: false,
          },
        },
        {
          files: ['*.hbs'],
          options: {
            printWidth: 64,
            singleQuote: false,
          },
        },
      ],
    };
    
    </details>
  4. Finally, run install to update your project dependencies. Run lint and lint:fix to check that hbs tags can be formatted.

Plugin options
<details> <summary><code>preserveTrailingWhitespace</code></summary>

By default, the plugin aims for prettiness.

If you need the trailing whitespace to remain unchanged (e.g. in tests), set preserveTrailingWhitespace to true.

/* prettier.config.mjs */
export default {
  overrides: [
    {
      files: ['tests/**/*-test.{js,ts}'],
      options: {
        parser: 'ember-hbs-tag',
+         preserveTrailingWhitespace: true,
      },
    },
  ],
};
</details> <details> <summary><code>templateSingleQuote</code></summary>

By default, Prettier uses single quotes in *.{js,ts}, and the plugin uses the global value of singleQuote to decide whether to use single or double quotes in templates.

However, you will most likely want double quotes for templates. So set templateSingleQuote to false, just like you did it for prettier-plugin-ember-template-tag.

/* prettier.config.mjs */
export default {
  overrides: [
    {
      files: ['tests/**/*-test.{js,ts}'],
      options: {
        parser: 'ember-hbs-tag',
+         templateSingleQuote: false,
      },
    },
  ],
};
</details>

Compatibility

  • Prettier v3
  • Node.js v22 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Description from the npm listing.

  • ember
  • emberjs
  • prettier
  • prettier-plugin

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

prettier-plugin-ember-hbs-tag weekly downloads on npm, last 90 days: 702 weekly downloads as of Oct 18, 2026, -79.1% over 90 days.prettier-plugin-ember-hbs-tagWeekly downloads on npm · Last 90 days702downloads / week-79.1% over 90 days05001K1.5K2K2.5K3K3.5K4KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-ember-hbs-tag weekly downloads on npm, last 90 days: 702 weekly downloads as of Oct 18, 2026, -79.1% over 90 days.

7/30/90-day growth

prettier-plugin-ember-hbs-tag weekly downloads growth on npm: -80.4% over 7 days, -51.1% over 30 days, -79.1% over 90 days.prettier-plugin-ember-hbs-tagWeekly downloads growth on npm702downloads / week now7-day growth-2,875 weekly downloads-80.4%30-day growth-733 weekly downloads-51.1%90-day growth-2,655 weekly downloads-79.1%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-ember-hbs-tag weekly downloads growth on npm: -80.4% over 7 days, -51.1% over 30 days, -79.1% over 90 days.

Ranking history

prettier-plugin-ember-hbs-tag npm ranking history: currently #1501 (by weekly downloads).prettier-plugin-ember-hbs-tagnpm ranking · by weekly downloads · Last 90 days#1501current rank#1420#1440#1460#1480#1500#1520Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-ember-hbs-tag npm ranking history: currently #1501 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 76, #4 (overall #1,504)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 2, #10 (overall #30)
Prettier plugins: every listing in weekly downloads order

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 (122)
Recent weekly downloads observations for prettier-plugin-ember-hbs-tag
Date (UTC)Weekly downloadsChange vs. previous
702-136
838-32
870+90
780-1.5K
2,231-1.2K
3,4520
3,452-125
3,577+202
3,375-1
3,376-56
3,432+1.1K
2,365+907
1,458-827
2,285—

Similar npm Prettier plugins plugins

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