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 · Dec 6, 2026

prettier-plugin-ember-hbs-tag has 3,023 recorded weekly downloads on npm, an increase of 36.6% over the past 30 days, ranking #1732 of 3,247 tracked listings.

Weekly downloads
3,023
Official API · Dec 5, 2026
7-day growth
+7.2%
+202 weekly downloads
30-day growth
+36.6%
+810 weekly downloads
90-day growth
+110%
+1.6K weekly downloads
Rank
#1732
▼ 57 in 7 days

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: 3,023 weekly downloads as of Dec 5, 2026, +110% over 90 days.prettier-plugin-ember-hbs-tagWeekly downloads on npm · Last 90 days3,023downloads / week+110% over 90 days05001K1.5K2K2.5K3K3.5K4KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-ember-hbs-tag weekly downloads on npm, last 90 days: 3,023 weekly downloads as of Dec 5, 2026, +110% over 90 days.

7/30/90-day growth

prettier-plugin-ember-hbs-tag weekly downloads growth on npm: +7.2% over 7 days, +36.6% over 30 days, +110% over 90 days.prettier-plugin-ember-hbs-tagWeekly downloads growth on npm3,023downloads / week now7-day growth+202 weekly downloads+7.2%30-day growth+810 weekly downloads+36.6%90-day growth+1,582 weekly downloads+110%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-ember-hbs-tag weekly downloads growth on npm: +7.2% over 7 days, +36.6% over 30 days, +110% over 90 days.

Ranking history

prettier-plugin-ember-hbs-tag npm ranking history: currently #1732 (by weekly downloads).prettier-plugin-ember-hbs-tagnpm ranking · by weekly downloads · Last 90 days#1732current rank#1300#1400#1500#1600#1700#1800#1900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-ember-hbs-tag npm ranking history: currently #1732 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 87, #12 (overall #1,732)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 2, #4 (overall #24)
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 (170)
Recent weekly downloads observations for prettier-plugin-ember-hbs-tag
Date (UTC)Weekly downloadsChange vs. previous
3,023+48
2,975+4
2,971-643
3,614-63
3,677+101
3,576+674
2,902+81
2,821+41
2,780+105
2,675+628
2,047+25
2,022-480
2,502-279
2,781—

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 Dec 6, 2026. See the methodology.