We use TypeScript and use your formatOnSave feature. It woks great for some files but doesn't work for others. It seems like newer TypeScript syntax is not recognized. I.e. enum and as.
When running prettier from command-line we solve this by adding the --parser typescript flag. Can we enable that flag somehow in this plugin too? Or any other workaround that will allow "newer" TypeScript syntax on formatOnSave?
Here is an image describing when prettier used via this plugin gets into trouble. Note how prettier fails around the enum keyword with an Unexpected token error.

I suppose you have a prettier config file where you specify "parser"
@CiGit you're correct! Sorry, we had missed that, had set parser: 'babylon' in .prettierrc.js. Thanks for the help 馃檱
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@CiGit you're correct! Sorry, we had missed that, had set
parser: 'babylon'in.prettierrc.js. Thanks for the help 馃檱