ember-modules-codemod icon indicating copy to clipboard operation
ember-modules-codemod copied to clipboard

Codemod to upgrade Ember apps to JavaScript (ES6) modules

Results 38 ember-modules-codemod issues
Sort by recently updated
recently updated
newest added

The codemod gave me some ```js import { A } from '@ember/array'; ``` I thought the preferred style was ```js import { A as emberA } from '@ember/array'; ``` Am...

This results in multiple `computed` imports: ```js import Ember from 'ember'; import computed from 'my-computed'; export default Ember.Component.extend({ a: Ember.computed(() => { return 'ok' }), b: computed('a') }); ``` =>...

Got into this situation: ```js import Component from '@ember/component'; const Component = Component.extend({ // ... }); Component.reopenClass({ positionalParams: ['positionalParamValue'] }); export default Component; ``` And ```js import { helper }...

Had code like ```js return Ember.observer.apply(Ember, keys.concat(function () { Ember.run.throttle(this, throttled[0], throttled[1], throttled[2] || false); })); ``` which was turned into ```js return observer.apply(Ember, keys.concat(function () { throttle(this, throttled[0], throttled[1],...

The named imports were originally in the order that they were used in the file. So one file would be `import { get, set } ` and another would be...

## Module Report ### Unknown Global **Global**: `Ember.Logger` **Location**: `app/pods/almond-hull-split/detail/controller.js` at line 8 ```js const { Logger } = Ember; ``` ### Unknown Global **Global**: `Ember.Logger` **Location**: `app/pods/almond-hull-split/index/controller.js` at line...

A bit of a cheap check and could possibly be refactored more to join the alias checks but initial implementation of a check to see if we need to prepend...

Primarily bumps the jscodeshift version to `^0.11.0` in order to unblock and support optional chaining conversions. https://github.com/ember-codemods/ember-modules-codemod/issues/226