-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrongly removed parentheses around expression over class prototype #165
Comments
Same problem with existential expressions Working code:
is turned to broken:
|
Ok this is really a Coffeescript parser bug (opened jashkenas/coffeescript#5291) But in the meantime I updated the Prettier plugin to ensure parentheses around these non-parsing object spread expressions I can release a new version of the Prettier plugin soon, but in the meantime you could use a Github dependency if you want:
|
@helixbass thank you! Stellar response speed and support! Btw is your forked prettier will land in official prettier with a first class support for coffeescript? Or is it going to be continuously supported via fork? |
I think we'll be able to land the modifications in official prettier. There's an open PR for all of the changes needed to support Coffeescript, but no-one from Prettier core team has stepped up and really reviewed it Now that we've released the Prettier plugin, I'll dig back into the Prettier side soon and try and help get it merged |
Try cc'ing @lydell, he’s a former maintainer of CoffeeScript who is/was also active in Prettier, he might be able to help. I'm happy to fast-track a 2.5.1 release of CoffeeScript to get out various bugfixes. |
This valid CoffeeScript code
Prettier turns to invalid one
Thanks for your attention!
The text was updated successfully, but these errors were encountered: