js-beautify
js-beautify copied to clipboard
Support Flow and Typescript
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
Is there any workaround yet?
I don't think so, i moved out this plugin for this reason
@DavidBabel what are you using as a replacement? I find built-in code format in vscode very poor and lacking.
The Es-lint extension with a good config and bind on eslint "auto-fix".
Looking forward to it! (But seems not going to happen)
Happy for any help, PRs welcome.