Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.12 KB

template-indent.md

File metadata and controls

53 lines (34 loc) · 1.12 KB

ember/template-indent

🔧 This rule is automatically fixable by the --fix CLI option.

Rule Details

Enforce consistent indentation for fcct templates.

This rule extends the base eslint indent rule, but only applies the indents to Glimmer Nodes.

Otherwise, it receives the same options as the original and can run together with the base rule.

Configuration

Name Type Default
ignoreComments Boolean false
ignoredNodes String[]

Examples

Examples of incorrect code for this rule:

// my-octane-component.gjs
<template>
  <div>
    
        </div>
</template>
}

Examples of correct code for this rule:

// my-component.gjs
<template>
  <div>

  </div>
</template>

References