ember/template-no-multiple-empty-lines
March 14, 2026 ยท View on GitHub
๐ง This rule is automatically fixable by the --fix CLI option.
Disallows multiple consecutive empty lines in templates.
Multiple consecutive blank lines reduce readability and should be limited.
Rule Details
This rule enforces a maximum number of consecutive empty lines (default: 1).
Configuration
The following values are valid configuration:
- object -- An object with the following keys:
max-- An integer specifying the maximum number of consecutive empty lines allowed. Defaults to1.
Examples
Examples of incorrect code for this rule:
<template>
<div>First</div>
<div>Second</div>
</template>
<template>
<div>Content</div>
<div>More content</div>
</template>
Examples of correct code for this rule:
<template>
<div>First</div>
<div>Second</div>
</template>
<template>
<div>Content</div>
<div>More content</div>
</template>