ember-native-class-codemod icon indicating copy to clipboard operation
ember-native-class-codemod copied to clipboard

A codemod-cli project for converting Ember objects to es6 native classes

Results 66 ember-native-class-codemod issues
Sort by recently updated
recently updated
newest added

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@​joaomoreno, @​lukekarrys) Changelog Sourced from semver's...

dependencies

Example invocation: Add this version of the codemod to package.json, then ``` yarn ember-native-class-codemod http://localhost:4200 ./plugins/poll/assets/javascripts/components/poll-breakdown-option.js --module-root discourse/plugins/poll --package-base poll/assets/javascripts ``` Example of the above invocation here: https://github.com/discourse/discourse/pull/21652/files#diff-4d0d489ce2d1489c8fb5fc9b619f8039ee286455a7033753f038f02d95e8b6f2

I have tried the codemode with multiple different ember verisions and projects and never got it to work. I get for each file the error message: ``` ERR app/components/change/change-edit.js Transformation...

> Ember Objects with objects or arrays as direct properties (`actions` and `queryParams` are the exception). See [eslint-plugin-ember/avoid-leaking-state-in-ember-objects](https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/avoid-leaking-state-in-ember-objects.md) for more details. I have a file with an actions hash that...

Working on a app running Ember v 3.15. When trying to mod any files to native class I get 200 in response but it won't modify any of the files...

bad: ```ts @classic export default class TestComponent extends Component { @fullNameMacro() fullName; } ``` good: ```ts @classic class TestComponent extends Component { @fullNameMacro() fullName; } export default TestComponent; ``` see...