ember-cli-shims
no-old-shims
The import paths in ember-cli-shims
were never considered public API and
were recently replaced by RFC #176.
If you use ember-cli-babel
with version 6.6.0
or above you can start using
the "New Module Imports" instead of the old shims or the Ember
global directly.
This will enable us to build better tree shaking feature into Ember CLI.
// GOOD
import Component from '@ember/component'
import EmberObject, { computed } from '@ember/object'
import Service, { inject } from '@ember/service'
// BAD
import Component from 'ember-component';
import EmberObject from 'ember-object';
import computed from 'ember-computed';
import Service from 'ember-service';
import inject from 'ember-service/inject';
## Don't use import paths from `ember-cli-shims` ### Rule name: `no-old-shims` The import paths in `ember-cli-shims` were never considered public API and were recently replaced by [RFC #176](https://github.com/emberjs/rfcs/pull/176). If you use `ember-cli-babel` with version `6.6.0` or above you can start using the "New Module Imports" instead of the old shims or the `Ember` global directly. This will enable us to build better tree shaking feature into Ember CLI. ```javascript // GOOD import Component from '@ember/component' import EmberObject, { computed } from '@ember/object' import Service, { inject } from '@ember/service' // BAD import Component from 'ember-component'; import EmberObject from 'ember-object'; import computed from 'ember-computed'; import Service from 'ember-service'; import inject from 'ember-service/inject'; ```