Prettier has a --stdin-filepath argument that works wonders:
It selects the correct parser according to the filename - so TypeScript works alot better.
It looks for Prettier configuration files according to their configuration pattern. So people can use the configuration file that the VSCode extension uses and such.
I have also removed the Visual Studio formatting after the Prettier command. I'm not sure if you like that change - but it can be very confusing if you change the default tab size, and then Visual Studio goes in and reverts that to it's own formatting. We can add it back in if you like.
This matched with Pull Request #14 should fix:
12
8
4
But I haven't had time to really test each of them.
Prettier has a
--stdin-filepath
argument that works wonders:I have also removed the Visual Studio formatting after the Prettier command. I'm not sure if you like that change - but it can be very confusing if you change the default tab size, and then Visual Studio goes in and reverts that to it's own formatting. We can add it back in if you like.
This matched with Pull Request #14 should fix:
12
8
4
But I haven't had time to really test each of them.