Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 1.2 KB

File metadata and controls

63 lines (40 loc) · 1.2 KB

ember/template-no-multiple-empty-lines

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 to 1.

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