This rule ensures that all ember-concurrency
tasks in the app
do not have debug shipped into production.
This rule forbids the following:
export default Component.extend({
submit: task(function*() {
//...
}).debug(),
})
export default class extends Component {
@(task(function*() {
//...
}).debug()) submitTask;
}
export default class extends Component {
@task({ debug: true }) *submitTask() {
//...
}
}
This rule allows the following:
export default class extends Component {
@task *submitTask() { };
}
export default Component.extend({
submit: task(function*() {
//...
}).debug(),
})
export default class extends Component {
@(task(function*() {
//...
}).debug()) submitTask;
}