1 | Changelog
|
2 | =========
|
3 |
|
4 | ## v0.5.2
|
5 |
|
6 | - Update test file generation to use proper file extension. This allows usage of the `Disable Linting` checkbox
|
7 | in the ember-cli test runner to properly suppress template linting tests.
|
8 |
|
9 | ## v0.5.1
|
10 |
|
11 | - Ensure linting warnings honor the `--silent` flag.
|
12 |
|
13 | ## v0.5.0
|
14 |
|
15 | - Update ember-template-lint to 0.6.0. Changes from 0.5.x are:
|
16 | - Add `invalid-interactive` to recommended rules.
|
17 | - Add `img-alt-attributes` to recommended rules.
|
18 | - Add `style-concatenation` to recommended rules.
|
19 | - Add `deprecated-inline-view-helper` to recommended rules.
|
20 | - Add `link-rel-noopener` to recommended rules.
|
21 | - Remove support for Node 0.10.
|
22 | - Remove support for Node 0.10
|
23 |
|
24 |
|
25 | ## v0.4.12
|
26 |
|
27 | - Update various internal dependencies.
|
28 | - Fix caching related warning message when used with recent ember-cli-htmlbars versions.
|
29 |
|
30 | ## v0.4.11
|
31 |
|
32 | - Fix typos in `ember template-lint:print-failing` command output.
|
33 |
|
34 | ## v0.4.10
|
35 |
|
36 | - Cleanup error messages (prevent the message from being squashed onto the location info).
|
37 |
|
38 | ## v0.4.9
|
39 |
|
40 | - Fix compatibility with Ember versions older than 2.1.0.
|
41 |
|
42 | ## v0.4.8
|
43 |
|
44 | - Fix publishing issue (included `.tern-port` file in blueprint).
|
45 |
|
46 | ## v0.4.7
|
47 |
|
48 | - Update underlying `ember-template-lint` to v0.5.10.
|
49 | - 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:
|
50 |
|
51 | ```js
|
52 | module.exports = {
|
53 | extends: 'recommended',
|
54 | pending: [
|
55 | { moduleId: 'foo/bar/baz', only: ['block-indentation']}
|
56 | ]
|
57 | }
|
58 | ```
|
59 |
|
60 | - Update `ember template-lint:print-failing` to emit rule specific pending list.
|
61 |
|
62 | ## v0.4.6
|
63 |
|
64 | - Update ember-template-lint to v0.5.9 (mostly internal changes/fixes).
|
65 | - Remove extra `htmlbars` dependency.
|
66 |
|
67 | ## v0.4.5
|
68 |
|
69 | - Fix cosmetic issues with error message display:
|
70 | * Ensure that multiple errors are listed on separate lines.
|
71 | * Fix formatting when `error.line` / `error.column` are missing.
|
72 | * Fix formatting when `error.source` is missing.
|
73 | * Include rule name in all error messages.
|
74 | - Ensure Node 0.10, 0.12, 4.x, 6.x are all tested in CI.
|
75 |
|
76 | ## v0.4.4
|
77 |
|
78 | - Add warning when using `ember-cli-template-lint` with a localization framework (identified by `isLocalizationFramework`
|
79 | on the addon instance). When a localization framework is present, and the `bare-strings` rule is not listed in the
|
80 | `.template-lintrc.js` file, a warning will be issued saying:
|
81 |
|
82 | ```
|
83 | 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`:
|
84 |
|
85 | rules: {
|
86 | 'bare-strings\': true
|
87 | }
|
88 | ```
|
89 |
|
90 | ## v0.4.3
|
91 |
|
92 | - Add `ember template-lint:print-failing` command to list all templates in `app/` that are currently failing. This command can be
|
93 | used to easily update the `pending` listing in `.template-lintrc.js` so that ember-cli-template-lint can be incorporated into a
|
94 | project immediately (ensuring new templates conform to rules, but providing time to fix older templates).
|
95 | - Ensure that modules listed as `pending` in the `.template-lintrc.js` file do not trigger failed tests.
|
96 |
|
97 | ## v0.4.2
|
98 |
|
99 | - Fix typo in default blueprint that triggers warnings on new installations.
|
100 |
|
101 | ## v0.4.1
|
102 |
|
103 | - Error when used with ember-cli versions prior to 2.4.3.
|
104 |
|
105 | ## v0.4.0
|
106 |
|
107 | - Migrate to using [ember-template-lint](https://github.com/rwjblue/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.
|
108 | - Add `deprecate-each-syntax` rule. Prevents usage of `{{#each foo}}` (context shifting each) and `{{#each foo in bar}}`.
|
109 | - Add `self-closing-void-elements` rule. Prevents closing void elements (`<input />` will error in favor of `<input>`). See [here](https://github.com/rwjblue/ember-template-lint/blob/master/lib/rules/lint-self-closing-void-elements.js#L24-L39) for a list.
|
110 |
|
111 | ## v0.3.5
|
112 |
|
113 | - Update the `bare-strings` rule to allow the following configuration:
|
114 | * boolean -- `true` for enabled / `false` for disabled
|
115 | * array -- an array of whitelisted strings
|
116 | * object -- An object with the following keys:
|
117 | * `whitelist` -- An array of whitelisted strings
|
118 | * `globalAttributes` -- An array of attributes to check on every element.
|
119 | * `elementAttributes` -- An object whose keys are tag names and value is an array of attributes to check for that tag name.
|
120 |
|
121 | - Change default `.template-lintrc.js` file value for `bare-strings` to be `true`, which defaults the configuration to:
|
122 |
|
123 | ```js
|
124 | {
|
125 | whitelist: ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}'],
|
126 | globalAttributes: [ 'title' ],
|
127 | elementAttributes: { input: [ 'placeholder' ], img: [ 'alt' ]}
|
128 | };
|
129 | ```
|
130 |
|
131 | - 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.
|
132 |
|
133 | ## v0.3.4
|
134 |
|
135 | - Add support for TextNode/CommentNode location information. Now the `bare-strings` / `html-comments` rules include line and column info.
|
136 | - Add `nested-interactive` rule. Usage of nested interactive content can lead to UX problems, accessibility problems, bugs and in some
|
137 | cases to DOM errors. You should not put interactive content elements nested inside other interactive content elements.
|
138 |
|
139 | ## v0.3.3
|
140 |
|
141 | - Fix issue with per-template rule configuration.
|
142 |
|
143 | ## v0.3.2
|
144 |
|
145 | - Fix issue with `block-indentation` rule when a given block starts on the same line as a previous item. i.e.:
|
146 |
|
147 | ```hbs
|
148 | {{! good }}
|
149 | {{#each foo as |bar|}}
|
150 | <span>{{bar.name}}:</span><span>{{bar.title}}</span>
|
151 | {{/each}}
|
152 | ```
|
153 |
|
154 | ## v0.3.1
|
155 |
|
156 | - Add `html-comments` rule which forbids the usage of HTML comments (other than `<!-- template-lint bare-strings=false -->` style control comments).
|
157 |
|
158 | ## v0.3.0
|
159 |
|
160 | - Change default configuration so that no plugins are enabled (warns when `.template-lintrc.js` is not found).
|
161 |
|
162 | ## v0.2.13
|
163 |
|
164 | - Add better default whitelist for `bare-strings` rule.
|
165 |
|
166 | ## v0.2.12
|
167 |
|
168 | - Add blueprint that generate `.template-lintrc.js`.
|
169 | - Deprecate using ember-cli-template-lint without a `.template-lintrc.js`.
|