> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ember-template-lint

> How CodeRabbit runs ember-template-lint to lint Ember Handlebars template files on pull requests — including supported file types, project detection, configuration, and skip conditions.

[ember-template-lint](https://github.com/ember-template-lint/ember-template-lint) is a linter for Ember and Glimmer Handlebars (`.hbs`) template files. It checks for accessibility violations, deprecated patterns, template anti-patterns, and style issues in Ember.js and Glimmer templates.

## Files

ember-template-lint considers files with the following extensions:

* `.hbs`

## Project detection

CodeRabbit runs ember-template-lint only when changed `.hbs` files appear to belong to an Ember project. A pull request is treated as Ember-related when at least one of these signals is present:

* A changed `.hbs` file is under a standard Ember template or component path, such as `app/templates/`, `app/components/`, `addon/templates/`, `addon/components/`, or `tests/dummy/app/`.
* The repository contains an Ember project marker, such as `.ember-cli`, `ember-cli-build.js`, `ember-cli-build.cjs`, or `ember-cli-build.mjs`.
* A nearby `package.json` or the repository-root `package.json` includes Ember dependencies, such as packages named `ember`, `ember-*`, or `@ember/*`.

This avoids running ember-template-lint on unrelated Handlebars files, such as generator templates, when the repository does not contain Ember project signals.

## Configuration

ember-template-lint reads its configuration from your repository automatically. Supported config files include:

* `.template-lintrc.js`
* `.template-lintrc.cjs`
* `.template-lintrc.mjs`
* `.template-lintrc.json`
* `.template-lintrc.yaml`
* `.template-lintrc.yml`

If no config file is found, ember-template-lint runs with its default rule set.

To enable or disable ember-template-lint, use your `.coderabbit.yaml` file or the CodeRabbit web UI:

<Tabs>
  <Tab title=".coderabbit.yaml">
    ```yaml .coderabbit.yaml theme={null}
    reviews:
      tools:
        emberTemplateLint:
          enabled: true
    ```
  </Tab>

  <Tab title="Web UI">
    Go to **Reviews → Tools → ember-template-lint** in your organization or repository settings and toggle ember-template-lint `on` or `off`.

    ***
  </Tab>
</Tabs>

## When CodeRabbit skips ember-template-lint

CodeRabbit skips ember-template-lint when:

* No `.hbs` files are present in the pull request diff.
* Changed `.hbs` files are not under standard Ember template paths and CodeRabbit cannot find Ember project markers or Ember dependencies nearby.
* ember-template-lint is already running as a step in your CI pipeline (detected via GitHub Checks).

## What's next

<CardGroup cols={1}>
  <Card title="All supported tools" href="/tools/list" icon="list" horizontal>
    Browse the complete list of linters, security analyzers, and CI/CD integrations available in CodeRabbit.
  </Card>

  <Card title="Tools reference" href="/reference/tools-reference" icon="wrench" horizontal>
    Explore detailed specifications and capabilities of all available CodeRabbit tools.
  </Card>

  <Card title="Configuration reference" href="/reference/configuration" icon="settings" horizontal>
    Full reference for all available options, including how to enable, disable, and tune individual tools.
  </Card>
</CardGroup>
