ember-template-lint
Advanced tools
Changelog
0.8.3
block-indentation
rule to allow {{#if foo}}stuff{{else}}stuff{{/if}}
.linebreak-style
rule when dynamic attributes were being used (e.g. <img alt="example" src={{some/thing here}}>
).Changelog
0.8.2
no-duplicate-attributes
to prevent duplicating the same attributes in a single mustache/block/element. Read the documentation for more details.linkbreak-style
to ensure all templates use the same style of linebreaks throughout the template. Read the documentation for more details.Changelog
0.8.1
Changelog
0.8.0
Linter.errorsToMessages
).Changelog
0.7.4
README.md
and into docs/rules/<rule-name>.md
to make it simpler to reason about and link to documentation by rule.require
as an option to self-closing-void-elements
. Use this value if you would like to require that all void elements are self closing (e.g. you require <img />
).Changelog
0.7.0
Add support for user supplied rules and configuration. Please review the documentation for more details.
Add ember-template-lint
command line script. This enable much easier running of the linter from the command line, editor plugins, etc. Supports --json
flag to enable easier consumption by tools. See documentation for more details.
Allow rel=noreferrer
to satisfy the link-rel-noopener
rule.
Add inline-styles
rule, which forbids using the style
attribute in HTML elements.
Drop support for Node < 4.
Fix a number of issues with block-indentation
rule when using "whitespace control" characters (e.g. {{~if foo~}}
).
Add support for globs in .template-lintrc.js
's ignore
option.
Add simple-unless
rule which forbids using {{unless
with an inverse (or from an inverse), and with complex helper invocations as the predicate.
{{! good }}
<div class="{{unless foo "bar"}}"></div>
{{#unless something}}
{{/unless}}
{{! bad }}
{{#unless something}}
{{else}}
{{/unless}}
{{#unless (complex (helper (invocation)))}}
{{/unless}}
Add simple-unless
to the recommended configuration.
Allow <form onsubmit={{action 'foo'}}></form>
from the invalid-interactive
rule.
Remove deprecated-each-syntax
from recommended
config.
Add configurable option to link-rel-noopener
to require both noopener
and noreferrer
. See the documentation for more details.
Update to leverage ES2015 features that are supported in Node 4.
Added no-log
and no-debugger
rules. These rules forbid usage of {{log}}
and {{debugger}
helpers, which should be used only for local debugging and never checked in.
Fix issues around templates including a Byte Order Mark.
Upgrade underlying engine to leverage @glimmer/compiler@0.25.1
. Includes much smaller footprint, better location support, easier to use plugin API.
Change API around Rule
definition. A simple class extends Rule { }
is all that is required.