Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 655 Bytes

no-unnecessary-curly-strings.md

File metadata and controls

33 lines (21 loc) · 655 Bytes

no-unnecessary-curly-strings

✅ The extends: 'recommended' property in a configuration file enables this rule.

🔧 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