Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 736 Bytes

File metadata and controls

33 lines (21 loc) · 736 Bytes

ember/template-no-unnecessary-curly-strings

🔧 This rule is automatically fixable by the --fix CLI option.

Strings need not be wrapped in curly braces (mustache expressions).

Examples

This rule forbids the following:

<template><FooBar class={{"btn"}} /></template>
<template><FooBar class="btn">{{"Hello"}}</FooBar></template>

This rule allows the following:

<template><FooBar class="btn" /></template>
<template><FooBar class="btn">Hello</FooBar></template>

References