This rule requires the positional params, attributes, and block params of the helper/component to be indented by moving them to multiple lines when the open invocation has more than 80 characters (configurable).
Non-Block form
Block form
Non-Block form (HTML)
Block form (HTML)
Non-Block form
Non-Block form (open invocation < 80 characters)
Non-Block form with Helper
Non-Block form with Helper unfolded
Non-Block form (HTML)
Block form
Block form (as-indentation attribute)
Block form (open invocation < 80 characters)
Block form (HTML)
<a
href="https://www.emberjs.com"
class="emberjs-home link"
rel="noopener"
target="_blank"
>
Ember JS
</a>
- boolean -
true
- Enables the rule to be enforced when the opening invocation has more than 80 characters or when it spans multiple lines. - object - { 'indentation': n spaces } - Indentation length for attributes (defaults to
2
). - object - { 'open-invocation-max-len': n characters } - Maximum length of the opening invocation.
- object - { 'process-elements':
true
} - Also validate the indentation of HTML/SVG elements. - object - { 'element-open-end':
new-line
|last-attribute
} - Enforce the position of the closing brace>
to be on a new line or next to the last attribute (defaults tonew-line
). - object - { 'mustache-open-end':
new-line
|last-attribute
} - Enforce the position of the closing braces}}
to be on a new line or next to the last attribute (defaults tonew-line
). - object - { 'as-indentation':
attribute
|closing-brace
} - Enforce the position of theas |param|
to be indented at the same level as closing brace or attribute (defaults toclosing-brace
).