Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 877 Bytes

File metadata and controls

35 lines (22 loc) · 877 Bytes

ember/template-no-unnecessary-curly-strings

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

🔧 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