js-beautify icon indicating copy to clipboard operation
js-beautify copied to clipboard

Support Flow and Typescript

Open DavidBabel opened this issue 8 years ago • 6 comments

I got an issue with typescript / flow typing, adding extra spaces after { and <. An option will be great?

Beautify js : function my_function(): Promise < { CommenPrefices: [] } > { ...

Expected : function my_function(): Promise <{CommenPrefices: []}> { ...

see #1140

DavidBabel avatar Feb 24 '17 23:02 DavidBabel

Is there any workaround yet?

Deilan avatar Apr 06 '17 21:04 Deilan

I don't think so, i moved out this plugin for this reason

DavidBabel avatar Apr 07 '17 08:04 DavidBabel

@DavidBabel what are you using as a replacement? I find built-in code format in vscode very poor and lacking.

Nikki1993 avatar Apr 30 '17 15:04 Nikki1993

The Es-lint extension with a good config and bind on eslint "auto-fix".

DavidBabel avatar May 06 '17 18:05 DavidBabel

Looking forward to it! (But seems not going to happen)

softmarshmallow avatar Jun 11 '21 06:06 softmarshmallow

Happy for any help, PRs welcome.

bitwiseman avatar Jun 11 '21 17:06 bitwiseman