ember/template-no-trailing-spaces

March 21, 2026 Ā· View on GitHub

šŸ”§ This rule is automatically fixable by the --fix CLI option.

Disallow trailing whitespace at the end of lines.

Examples

In examples below, • represents a trailing space character.

This rule forbids the following:

<div>test</div>•• •••••
<template>
  <div>Hello</div>••
</template>

This rule allows the following:

<div>test</div>
<template>
  <div>Hello</div>
</template>

References