Skip to content

New Rule: no-forever-call #158

@nickschot

Description

@nickschot

forever is a yieldable constant exported by ember-concurrency. As most other exported yieldables are functions it's quite easy to write yield forever() which will not work. I propose a lint rule which guards against this.

docs: http://ember-concurrency.com/api/global.html#forever

Bad

@task
*example() {
  yield forever();
}

Good

@task
*example() {
  yield forever;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions