You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,7 +35,7 @@ The codemod accepts the following options, passed as CLI arguments, set in a `.c
35
35
|`--type` / `type`|`'services' \| 'routes' \| 'components' \| 'controllers' \| undefined`' |`undefined`| Apply transformation to only passed type. If `undefined, will match all types in path. |
36
36
|`--quote` / `quote`|`'single' \| 'double'`|`'single'`| Whether to use double or single quotes by default for new statements that are added during the codemod. |
37
37
|`--ignore-leaking-state` / `ignoreLeakingState`| `string \| string[]|`['queryParams']`| Allow-list for `ObjectExpression` or `ArrayExpression` properties to ignore issues detailed in [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). In the classic class syntax, using arrays and objects as default properties causes their state to "leak" between instances. If you have custom properties where you know that the shared state won't be a problem (for example, read-only configuration values), you can use this config to ignore them. NOTE: Passing this option will override the defaults, so ensure you include `'queryParams'` in the list unless you explicitly wish to disallow it. Pass as a comma-separated string if using as a CLI-option. Otherwise pass as an array of strings. |
38
-
|`DecoratorsConfig`| An object with the following properties. | See below. |A list of decorators that are allowed on object literal properties. (Method decorators will always be allowed.) When the codemod finds a field with one of these decorators, it will be translated directly into a class field with the same decorator. Including a decorator in this list means that you believe that the decorator will work correctly on a class field. Pass as a comma-separated string if using as a CLI-option. Otherwise pass as an array of strings. |
38
+
|`DecoratorsConfig`| An object with the following properties. | See below. |See below. |
39
39
|`DecoratorsConfig.inObjectLiterals`|`string \| string[]`|`[]`| Allow-list for decorators currently applied to object literal properties that can be safely applied to class properties. Pass as a comma-separated string if using as a CLI-option. Otherwise pass as an array of strings. NOTE: Decorators on object methods will be allowed by default. |
0 commit comments