eslint-plugin-ember
eslint-plugin-ember copied to clipboard
`import * as run '@ember/runloop'` escapes ember/no-runloop rule
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.