eslint-plugin-ember icon indicating copy to clipboard operation
eslint-plugin-ember copied to clipboard

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

Open chancancode opened this issue 9 months ago • 0 comments

import { later } from '@ember/runloop'`

later(...); // bad!
import * as run from '@ember/runloop'`

run.later(...); // sure, no problem :)

I was essentially re-implementing something akin to ember-lifeline, so I was intentionally integrating with the ember runloop for test waiters. I was going to turn off this rules for that file, but after some refactoring eslint told me the comment wasn't necessary. Turns out the rule doesn't care about namespace import.

chancancode avatar Feb 14 '25 22:02 chancancode