Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.03 KB

File metadata and controls

54 lines (37 loc) · 1.03 KB

ember/template-no-debugger

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

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