Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 910 Bytes

File metadata and controls

52 lines (36 loc) · 910 Bytes

ember/template-no-debugger

Disallows usage of {{debugger}} in templates.

The {{debugger}} helper is useful for debugging but should not be present in production code.

Rule Details

This rule disallows the use of {{debugger}} statements in templates.

Examples

Examples of incorrect code for this rule:

<template>
  {{debugger}}
  <div>Content</div>
</template>
<template>
  {{#if condition}}
    {{debugger}}
  {{/if}}
</template>

Examples of correct code for this rule:

<template>
  <div>Content</div>
</template>
<template>
  {{this.debug}}
</template>

Related Rules

References