The discussion revolves around an issue with Prettier complaining that @discourseComputed cannot be used to decorate literal properties. pfaffman initially encountered the error and was unsure why it occurred, despite having similar constructions elsewhere in their code. After pfaffman experienced the error again, Arkshine suggested that the issue might be related to the legacy .extend({}) syntax, pointing to a meta discussion on moving to JS native class syntax. pfaffman confirmed this was the cause and is now in the process of updating their code, considering the use of ember-native-class-codemod to facilitate the transition.
I don’t understand why prettier is unhappy with the following code. Error is SyntaxError: Decorators cannot be used to decorate object literal properties. (9:3)
I have the same construction in other places that look, to me, to be exactly the same.
EDIT: this seems to have started working for reasons completely unclear. I’ll delete this next. Except I can’t.
I’m getting this same error again on a different plugin on @action, @on, and @discourseComputed. I thought maybe it was something with the prettier config, but I just copied it from discourse-plugin-skeleton.