Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-template-lint

Package Overview
Dependencies
Maintainers
1
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-template-lint - npm Package Compare versions

Comparing version 0.5.17 to 0.5.18

lib/rules/deprecations/lint-deprecated-inline-view-helper.js

5

CHANGELOG.md
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 @@

1

lib/rules/index.js

@@ -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')
};

2

lib/rules/lint-bare-strings.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc