Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.06 KB

File metadata and controls

43 lines (26 loc) · 1.06 KB

ember/template-no-potential-path-strings

💼 This rule is enabled in the 📋 template-lint-migration config.

It might happen sometimes that {{ and }} are forgotten when invoking a component, and the string that is passed was actually supposed to be a property path or argument.

This rule warns about all arguments and attributes that start with this. or @, but are missing the surrounding {{ and }} characters.

Examples

This rule forbids the following:

<img src='this.picture' />
<img src='@img' />

This rule allows the following:

<img src={{this.picture}} />
<img src={{@img}} />

Migration

  • Replace the surrounding " characters with {{/}}

Related Rules

References