-
-
Notifications
You must be signed in to change notification settings - Fork 95
0.50.0 ignores trailing comma option #375
Comments
@olsonpm any ideas on how this happened with your changes? |
i'll look into it |
haha - I was going hardcore getting a clean vm set up making sure all the versions matched, when I noticed:
The reason this worked before is the update prevents your prettier configuration from being merged into your prettier settings located in the plugin. And the reason we want that behavior is to allow a single source of formatting configurations for teams. There's a lot of (fragmented) conversation here if you're interested, but feel free to ask questions if something doesn't make sense. Thanks for the detailed report on your issue! Makes life much simpler. |
Should we close? |
I would. I know some repo ownerers let the OP close but that seems to allow for a litter of open issues in my experience. |
Yeah I usually just go ahead and do it and we can always reopen |
Just to clarify for future readers. The issue here was that the user misspelled Be sure to check your .prettierrc for mistakes when making one by hand! |
Totally missed that. Thanks for the catch, and apologies for wasting folks' time. |
not a waste - personally I feel prettier should throw an error upon invalid input. A lot of devs don't seem to like throwing errors though or validating input :( |
I have trailing comma set to "es5" in both the plugin settings and my .prettierrc. After upgrading to 0.50.0, it now removes the trailing commas. Other options seem to be respected. I did test setting trailing comma to "all" in both locations; the commas are still removed.
No other changes were made in my environment (e.g. updates to Atom or other packages, changing prettier version, etc). Reverting to 0.49.2 restores the correct behavior.
Prettier:Debug output and .prettierrc below.
Prettier:Debug
.prettierrc
The text was updated successfully, but these errors were encountered: