Skip to content
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

v0.5.0

05 Nov 17:24
Compare
Choose a tag to compare

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.
  • Remove support for Node 0.10

v0.4.12

12 Aug 13:11
Compare
Choose a tag to compare

CHANGELOG

  • Update various internal dependencies.
  • Fix caching related warning message when used with recent ember-cli-htmlbars versions.

v0.4.11

08 Jun 17:28
Compare
Choose a tag to compare

CHANGELOG

  • Fix typos in ember template-lint:print-failing command output.

v0.4.10

05 Jun 22:28
Compare
Choose a tag to compare

CHANGELOG

  • Cleanup error messages (prevent the message from being squashed onto the location info).

v0.4.9

05 Jun 22:14
Compare
Choose a tag to compare

CHANGELOG

  • Fix compatibility with Ember versions older than 2.1.0.

v0.4.7

14 May 19:24
Compare
Choose a tag to compare

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, the foo/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

07 May 19:06
165b35f
Compare
Choose a tag to compare

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

06 May 17:02
c7c6a7b
Compare
Choose a tag to compare

CHANGELOG

  • Add warning when using ember-cli-template-lint with a localization framework (identified by isLocalizationFramework
    on the addon instance). When a localization framework is present, and the bare-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

01 May 04:59
0d9a658
Compare
Choose a tag to compare

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

16 Apr 15:08
Compare
Choose a tag to compare

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 strings
      • globalAttributes -- 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.
  • Change default .template-lintrc.js file value for bare-strings to be true, 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.