prettier-plugin-coffeescript icon indicating copy to clipboard operation
prettier-plugin-coffeescript copied to clipboard

Support .cson extension file

Open aminya opened this issue 4 years ago • 4 comments

.cson files are valid coffeescript. It would be nice if .cson is also supported.

aminya avatar Jan 27 '21 10:01 aminya

@helixbass Could you please add CSON?

aminya avatar Feb 26 '21 02:02 aminya

@aminya can you explain your understanding of how .cson should be supported? It looks here like .cson is already "registered" by this plugin (but I didn't originally write this code)?

helixbass avatar Feb 27 '21 22:02 helixbass

When I run prettier it errors for the missing parser for this file extension.

aminya avatar Feb 27 '21 22:02 aminya

Ok when I try manually running eg yarn prettier path/to/some/file.cson in a repo where I have prettier-plugin-coffeescript set up, I'm seeing it succeed

So can you point me to an example repo where you see yarn prettier path/to/some/file.coffee working but yarn prettier path/to/some/file.cson failing?

helixbass avatar Feb 28 '21 17:02 helixbass