Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.17 KB

File metadata and controls

62 lines (39 loc) · 1.17 KB

ember/template-no-multiple-empty-lines

💼 This rule is enabled in the following configs: strict-gjs, strict-gts.

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).

Config

This rule has no configuration options.

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>

References