Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 569 Bytes

no-unnecessary-curly-strings.md

File metadata and controls

31 lines (20 loc) · 569 Bytes

no-unnecessary-curly-strings

🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

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

Examples

This rule forbids the following:

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

This rule allows the following:

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

References