This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
Releases: ember-template-lint/ember-cli-template-lint
Releases · ember-template-lint/ember-cli-template-lint
v0.5.0
CHANGELOG
- Update ember-template-lint to 0.6.0. Changes from [email protected] are:
- 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.
- Add
- Remove support for Node 0.10
v0.4.12
v0.4.11
v0.4.10
v0.4.9
v0.4.7
CHANGELOG
- Update underlying
ember-template-lint
to v0.5.10. - Add ability to mark specific rules as pending for a module. Given the following
.template-lintrc.js
file, thefoo/bar/baz
module would have only its indentation related issues labeled as warnings:
module.exports = {
extends: 'recommended',
pending: [
{ moduleId: 'foo/bar/baz', only: ['block-indentation']}
]
}
- Update
ember template-lint:print-failing
to emit rule specific pending list.
v0.4.5
CHANGELOG
- Fix cosmetic issues with error message display:
- Ensure that multiple errors are listed on separate lines.
- Fix formatting when
error.line
/error.column
are missing. - Fix formatting when
error.source
is missing. - Include rule name in all error messages.
- Ensure Node 0.10, 0.12, 4.x, 6.x are all tested in CI.
v0.4.4
CHANGELOG
- Add warning when using
ember-cli-template-lint
with a localization framework (identified byisLocalizationFramework
on the addon instance). When a localization framework is present, and thebare-strings
rule is not listed in the
.template-lintrc.js
file, a warning will be issued saying:
The `bare-strings` rule must be configured when using a localization framework (`ember-i18n`).
To prevent this warning, add the following to your `.template-lintrc.js`:
rules: {
'bare-strings\': true
}
v0.4.0
Changelog
- Migrate to using ember-template-lint. All existing rules are supported and were migrated to ember-template-lint as the underlying linting engine. ember-cli-template-lint is now an ember-cli specific wrapper around ember-template-lint.
- Add
deprecate-each-syntax
rule. Prevents usage of{{#each foo}}
(context shifting each) and{{#each foo in bar}}
. - Add
self-closing-void-elements
rule. Prevents closing void elements (<input />
will error in favor of<input>
). See here for a list.
v0.3.5
Changelog
- Update the
bare-strings
rule to allow the following configuration:- boolean --
true
for enabled /false
for disabled - array -- an array of whitelisted strings
- object -- An object with the following keys:
whitelist
-- An array of whitelisted stringsglobalAttributes
-- An array of attributes to check on every element.elementAttributes
-- An object whose keys are tag names and value is an array of attributes to check for that tag name.
- boolean --
- Change default
.template-lintrc.js
file value forbare-strings
to betrue
, which defaults the configuration to:
{
whitelist: ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}'],
globalAttributes: [ 'title' ],
elementAttributes: { input: [ 'placeholder' ], img: [ 'alt' ]}
};
- Fix bug with
bare-strings
where an allowed whitelisted string would only be allowed once in a given string. i.e&&
would have failed, even though&
was a whitelisted string.