Skip to content

fix: no-runloop: catch namespace imports#2315

Merged
bmish merged 2 commits intoember-cli:masterfrom
Geodewd549:catch-namespace-imports-in-no-ember-runloop
Aug 10, 2025
Merged

fix: no-runloop: catch namespace imports#2315
bmish merged 2 commits intoember-cli:masterfrom
Geodewd549:catch-namespace-imports-in-no-ember-runloop

Conversation

@Geodewd549
Copy link
Contributor

Let's update the no-runloop rule to flag usages of @ember/runloop methods when imported via namespace import (e.g. import * as runloop from '@ember/runloop') and used via member expressions (e.g. `runloop.later(), runloop.schedule(), etc.).

This fixes: #2263.

Let's update the `no-runloop` rule to flag usages of `@ember/runloop`
methods when imported via namespace import (e.g. `import * as runloop
from '@ember/runloop'`) and used via member expressions (e.g.
`runloop.later(), runloop.schedule(), etc.).

This fixes: ember-cli#2263.
@bmish bmish added the bug label Aug 10, 2025
Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bmish bmish merged commit 4a75afe into ember-cli:master Aug 10, 2025
9 checks passed
@github-actions github-actions bot mentioned this pull request Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

import * as run '@ember/runloop' escapes ember/no-runloop rule

2 participants