Releases: ember-template-lint/ember-template-lint
v0.7.2
v0.7.0
CHANGELOG
-
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 thelink-rel-noopener
rule. -
Add
inline-styles
rule, which forbids using thestyle
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
'signore
option. -
Add
unless-helper
rule which forbids using{{unless
with an inverse (or from an inverse), and with complex helper invocations as the predicate. -
Add
unless-helper
to the recommended configuration. -
Allow
<form onsubmit={{action 'foo'}}></form>
from theinvalid-interactive
rule. -
Remove
deprecated-each-syntax
fromrecommended
config. -
Add configurable option to
link-rel-noopener
to require bothnoopener
andnoreferrer
. See the documentation for more details. -
Update to leverage ES2015 features that are supported in Node 4.
-
Added
no-log
andno-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 simpleclass extends Rule { }
is all that is required.
v0.7.0-beta.3
CHANGELOG
-
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 thelink-rel-noopener
rule. -
Add
inline-styles
rule, which forbids using thestyle
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
'signore
option. -
Add
unless-helper
rule which forbids using{{unless
with an inverse (or from an inverse), and with complex helper invocations as the predicate. -
Add
unless-helper
to the recommended configuration. -
Allow
<form onsubmit={{action 'foo'}}></form>
from theinvalid-interactive
rule. -
Remove
deprecated-each-syntax
fromrecommended
config. -
Add configurable option to
link-rel-noopener
to require bothnoopener
andnoreferrer
. See the documentation for more details. -
Update to leverage ES2015 features that are supported in Node 4.
-
Added
no-log
andno-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 simpleclass extends Rule { }
is all that is required.
v0.6.4
v0.6.3
CHANGELOG
-
Add support for Handlebars comments.
A few new types of control statements are now available:
{{! template-lint-enable some-rule-name }}
- This will enable the rulesome-rule-name
with the default configuration (from.template-lintrc.js
) ortrue
(if not present in the config file). This can be ran for multiple rules at once (i.e.{{! template-lint-enable bare-strings some-other-thing }}
).{{! template-lint-disable some-rule-name }}
- This will disable the rulesome-rule-name
. Multiple rules can be provided at once (i.e.{{! template-lint-disable bare-strings some-other-thing }}
).{{! template-lint-configure some-rule-name { "whitelist": ["some", "valid", "json"] } }}
- This configures the rulesome-rule-name
with theJSON.parse()
'ed result of the second argument. The configure instruction only applies toa single rule at a time.
These configuration instructions do not modify the rule for the rest of the template, but instead only modify it within whatever DOM scope the comment instruction appears.
An instruction will apply to all later siblings and their descendants:
An in-element instruction will apply to only that element:
An in-element instruction with the -tree suffix will apply to that element and all its descendants:
-
Deprecate using HTML comments for enabling/disabling rules. Support for HTML comments will be removed in v0.7.0.
v0.6.2
CHANGELOG
- Add
ignore
to allowed configuration values.ignore
is an array of moduleId's that are to be completely ignored. This is similar (but different) frompending
. - Add
unused-block-params
rule. The following example would fail this rule (since it has an unused block paramindex
):
- Update
img-alt-attributes
rule to allow<img alt>
and<img alt="">
. - Update
invalid-interactive
rule to allow<form {{action 'foo' on="submit"}}>
.
v0.6.1
v0.6.0
CHANGELOG
- Add
invalid-interactive
to recommended rules. - Add
img-alt-attributes
to recommended rules. - Add
style-concatenation
to recommended rules. - Add
deprecated-inline-view-helper
to recommended rules. - Add
link-rel-noopener
to recommended rules. - Remove support for Node 0.10.