ember-template-lint
Advanced tools
Changelog
0.8.13
quotes
rule. Examples:Enforce either:
<div class="my-class">test</div>
{{my-helper "hello there"}}
or:
<div class='my-class'>test</div>
{{my-helper 'hello there'}}
You can read more about the rule in the documentation.
Changelog
0.8.12
ember-template-lint
as a globally installed package.Changelog
0.8.11
attribute-indentation
rule (reporting incorrect indentation for multiple valid invocations).Changelog
0.8.10
no-trailing-spaces
rule. Examples:Bad:
<div>test</div>//••
//•••••
Good:
<div>test</div>//
//
You can read more about the rule in the documentation.
eol-last
rule. Examples:Enforce either:
<div>test</div>
or:
<div>test</div>
You can read more about the rule in the documentation.
Changelog
0.8.9
colgroup
and caption
to table-groups
rule.Changelog
0.8.8
table-groups
rule. Examples:The rule forbids the following:
<table>
<tr>
<td></td>
</tr>
</table>
<table>
{{some-thing content=content}}
</table>
Instead, you should write your table as:
<table>
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
<table>
<tbody>
{{some-thing content=content}}
</tbody>
</table>
You can read more about the rule in the documentation.
Changelog
0.8.7
inverse
blocks) are checked for indentation.Changelog
0.8.5
template-length
rule. When enabled, this rule restricts the total number of lines in a template file to the configured number. You can read more about the rule (and configuration) in the documentation.Changelog
0.8.4
attribute-indentation
rule. Examples:{{! good }}
{{foo-bar baz="bat" derp="qux"}}
{{foo-bar
baz="bat"
derp="qux"
}}
{{#foo-bar
baz="bat"
derp="qux"
as |foo|}}
stuff here
{{/foo-bar}}
{{#foo-bar baz="bat" derp="qux" as |foo|}}
stuff here
{{/foo-bar}}
{{! bad }}
{{foo-bar baz="bat"
derp="qux"
}}
{{foo-bar
baz="bat"
derp="qux"
}}
{{foo-bar
baz="bat"
derp="qux"}}
You can read more about the rule (and configuration) in the documentation.