Skip to content

A collection of codemods that can be run to quickly refactor Ember code.

License

Notifications You must be signed in to change notification settings

ciena-blueplanet/ember-codemods

Repository files navigation

@ciena-org/ember-codemods

node

A collection of codemods that can be run to quickly refactor Ember code.

Usage

Replace TRANSFORM with one of the transforms listed below.

TRANSFORM="revert-computed-macro"; \
npx @ciena-org/ember-codemods $TRANSFORM path/of/files/ or/some**/*glob.js

Transforms

Deprecations

Introduced in Deprecation Transform
3.21 ember-metal.get-with-default
3.24 ember-string.prototype-extensions
3.25 ember-string.htmlsafe-ishtmlsafe
3.26 ember-glimmer.link-to-positional-arguments
3.26 ember-glimmer.with-syntax
3.26 has-block-and-has-block-params
3.27 argument-less-helper-paren-less-invocation
3.27 deprecated-run-loop-and-computed-dot-access
3.27 ember.built-in-components.import
3.27 ember-global
4.0 ember-polyfills.deprecate-assign
4.1 deprecate-auto-location
4.10 deprecate-ember-error
4.10 ember-string.from-ember-module

Miscellaneous

Transform Description Possible issues
revert-computed-macro Replace computed from ember-macro-helpers with @ember/object instead.
  • Will add variable even if not used from function before. Can just remove as need be (or PR fix), was not a common occurence in my code to have unused dependency

Contributing

If you are interested in helping contribute to this project, please take a look at our Contributing Guide.

About

A collection of codemods that can be run to quickly refactor Ember code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published