ember-template-lint
Advanced tools
Comparing version 0.5.17 to 0.5.18
Changelog | ||
========= | ||
## v0.5.18 | ||
- Add `deprecated-inline-view-helper` rule. Usage of `{{view` / `{{#view` helper and `{{view.path.here}}` were deprecated in Ember 1.13, and subsequently removed in Ember 2.0. | ||
This rule flags these usages. | ||
## v0.5.17 | ||
@@ -5,0 +10,0 @@ |
@@ -14,4 +14,5 @@ 'use strict'; | ||
'deprecated-each-syntax': require('./deprecations/lint-deprecated-each-syntax'), | ||
'deprecated-inline-view-helper': require('./deprecations/lint-deprecated-inline-view-helper'), | ||
'invalid-interactive': require('./lint-invalid-interactive'), | ||
'style-concatenation': require('./lint-style-concatenation') | ||
}; |
@@ -37,3 +37,3 @@ 'use strict'; | ||
var DEFAULT_CONFIG = { | ||
whitelist: ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}'], | ||
whitelist: ['(', ')', ',', '.', '&', '+', '-', '=', '*', '/', '#', '%', '!', '?', ':', '[', ']', '{', '}', '<', '>', '•', '—', ' ', '|'], | ||
globalAttributes: GLOBAL_ATTRIBUTES, | ||
@@ -40,0 +40,0 @@ elementAttributes: TAG_ATTRIBUTES |
{ | ||
"name": "ember-template-lint", | ||
"version": "0.5.17", | ||
"version": "0.5.18", | ||
"description": "Lint your templates.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -346,3 +346,3 @@ # ember-template-lint | ||
#### style-concatentation | ||
#### style-concatenation | ||
@@ -392,2 +392,34 @@ Ember has a runtime warning that says "Binding style attributes may introduce cross-site scripting vulnerabilities." It can only be avoided by always marking the bound value with `Ember.String.htmlSafe`. While we can't detect statically if you're always providing a safe string, we can detect cases common where it's impossible that you're doing so. For example, | ||
#### deprecated-inline-view-helper | ||
In Ember 1.12, support for invoking the inline View helper was deprecated. | ||
For example, this rule forbids the following: | ||
```hbs | ||
{{view 'this-is-bad'}} | ||
{{view.also-bad}} | ||
{{qux-qaz please=view.stop}} | ||
{{#not-this please=view.stop}}{{/not-this}} | ||
<div foo={{view.bar}}></div> | ||
``` | ||
Instead, you should use: | ||
```hbs | ||
{{this-is-better}} | ||
{{qux-qaz this=good}} | ||
{{#ok-this yay=nice}}{{/ok-this}} | ||
<div foo={{bar}}></div> | ||
``` | ||
More information is available at the [Deprecation Guide](http://emberjs.com/deprecations/v1.x/#toc_ember-view). | ||
## Contributing | ||
@@ -394,0 +426,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143796
62
3909
440