Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 965 Bytes

File metadata and controls

49 lines (33 loc) · 965 Bytes

ember/template-no-whitespace-within-word

✅ The extends: 'plugin:ember/strict-gjs' and extends: 'plugin:ember/strict-gts' property in a configuration file enables this rule.

Disallow whitespace within mustache and block expressions.

Rule Details

This rule disallows extra whitespace immediately after opening or before closing mustache/block delimiters.

Examples

Examples of incorrect code for this rule:

<template>
  {{ value}}
</template>

<template>
  {{value }}
</template>

<template>
  {{ value }}
</template>

Examples of correct code for this rule:

<template>
  {{value}}
</template>

<template>
  {{this.property}}
</template>

<template>
  {{#if condition}}content{{/if}}
</template>

References