eslint-plugin-ember weekly downloads statistics
By ember-cli (3 listings) · npm · ESLint plugins
ESLint plugin for Ember.js apps
eslint-plugin-ember has 269,045 recorded weekly downloads on npm, a decrease of 12.6% over the past 30 days, ranking #483 of 3,247 tracked listings.
About eslint-plugin-ember
eslint-plugin-ember
An ESLint plugin that provides a set of rules for Ember applications based on commonly known good practices.
❗️Requirements
🚀 Usage
1. Install plugin
npm install --save-dev eslint-plugin-ember
2. Update your config
// eslint.config.js (flat config)
const eslintPluginEmberRecommended = require('eslint-plugin-ember/configs/recommended');
module.exports = [
...eslintPluginEmberRecommended,
];
or
// .eslintrc.js (legacy config)
module.exports = {
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended' // or other configuration
],
rules: {
// override / enable optional rules
'ember/no-replace-test-comments': 'error'
}
};
3. Set your Ember version (optional)
Some rules only report when your Ember version supports the fix, and the parser only treats the Ember 7.1 template keywords (such as eq and on) as defined on 7.1 or newer. Both read the version from the installed ember-source. If you lint without ember-source installed, set the version in your config. Rules read settings, but ESLint doesn't pass settings to parsers, so the parser needs its own option:
// eslint.config.js (flat config)
module.exports = [
...eslintPluginEmberRecommended,
{
settings: { ember: { version: '7.3.0' } },
languageOptions: { parserOptions: { emberSourceVersion: '7.3.0' } },
},
];
gts/gjs
lint files having First-Class Component Templates (fcct)
learn more at ember-template-imports
[!NOTE] special care should be used when setting up parsers, since they cannot be overwritten. thus they should be used in override only and specific to file types
gjs/gts support is provided by the ember-eslint-parser
[!NOTE] if you import .gts files in .ts files, then
ember-eslint-parseris required for .ts as well to enable typed linting
// .eslintrc.js
module.exports = {
overrides: [
{
files: ['**/*.{js,ts}'],
plugins: ['ember'],
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:ember/recommended', // or other configuration
],
rules: {
// override / enable optional rules
'ember/no-replace-test-comments': 'error'
}
},
{
files: ['**/*.gts'],
parser: 'ember-eslint-parser',
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:ember/recommended',
'plugin:ember/recommended-gts',
],
},
{
files: ['**/*.gjs'],
parser: 'ember-eslint-parser',
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:ember/recommended-gjs',
],
},
{
files: ['tests/**/*.{js,ts,gjs,gts}'],
rules: {
// override / enable optional rules
'ember/no-replace-test-comments': 'error'
}
},
],
};
rules applied to fcct templates
- semi rule, same as prettier plugin
- no-undef rule will take effect for template vars (includes js scope)
- no-unused rule will take effect for template block params
rules in templates can be disabled with eslint directives with mustache or html comments:
<template>
<div>
{{!eslint-disable-next-line}}
{{test}}
</div>
<div>
{{!--eslint-disable--}}
{{test}}
{{test}}
{{test}}
{{!--eslint-enable--}}
</div>
</template>
<template>
<div>
<!--eslint-disable-next-line-->
{{test}}
</div>
<div>
<!-- eslint-disable -->
{{test}}
{{test}}
{{test}}
<!-- eslint-enable -->
</div>
</template>
Migrating from ember-template-lint
If you are replacing ember-template-lint with this plugin, use the template-lint-migration config to get the equivalent set of rules:
// eslint.config.js (flat config)
import eslintPluginEmberRecommended from 'eslint-plugin-ember/configs/recommended';
import eslintPluginEmberTemplateLintMigration from 'eslint-plugin-ember/configs/template-lint-migration';
export default [
...eslintPluginEmberRecommended,
...eslintPluginEmberTemplateLintMigration,
{
rules: {
// Migrate custom overrides from your .template-lintrc.*:
'ember/template-no-bare-strings': ['error', { allowlist: ['×'] }],
'ember/template-no-inline-styles': 'off',
},
},
];
template-lint-migration mirrors the ember-template-lint recommended preset.
Linting .hbs files
ESLint flat config only picks up .hbs files when a files glob names them. Add a dedicated block so they route to the Handlebars parser:
// eslint.config.mjs
import { hbsParser, plugin as emberPlugin } from 'eslint-plugin-ember/recommended';
export default [
// ...other blocks...
{
files: ['app/**/*.hbs'],
languageOptions: { parser: hbsParser },
plugins: { ember: emberPlugin },
rules: {
'ember/template-no-bare-strings': 'error',
// ...other template rules...
},
},
];
```…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- ember
- ember.js
- plugin
- styleguide
- rules
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 (591)Similar npm ESLint plugins plugins
All 20 eslint-plugin-ember 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/eslint-plugin-ember. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.