Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.34 KB

File metadata and controls

65 lines (41 loc) · 1.34 KB

ember/template-no-multiple-empty-lines

🔧 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 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