Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 634 Bytes

File metadata and controls

39 lines (28 loc) · 634 Bytes

ember/template-no-potential-path-strings

Disallow potential path strings that should be dynamic values in templates.

Rule Details

This rule catches potential path strings in text nodes that should likely be dynamic values.

Examples

Examples of incorrect code for this rule:

<template>
  <div>this.propertyName</div>
</template>
<template>
  <div>foo.bar</div>
</template>

Examples of correct code for this rule:

<template>
  <div>{{this.propertyName}}</div>
</template>
<template>
  <div>{{this.foo.bar}}</div>
</template>