CCodemod

ember/5/object-new-constructor

No description available

Legacy
migration
Public
0 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

new EmberObject() is deprecated in Ember.js v3.9 in favor of constructing instances of EmberObject and its subclasses. This codemod replaces all calls to new EmberObject() with EmberObject.create() and adds a constructor function to classes that extend from EmberObject so that the classes no longer extend from EmberObject.

Before

jsx

After

tsx

Ready to contribute?

Build your own codemod and share it with the community.