And...that's a lot of typing. I would put that into .prettierrc.yaml, but neither ~ nor $HOME work in that file to refer to my home directory, which means that I can't suggest this to colleagues as a generic solution, and if I happen to have different home directories in different environments (which I do) I can't use the same configuration file (and I can't make .prettierrc part of a project repository, because it would need to be modified by everybody in their own working directory).
Is there any way to make this work in a more graceful fashion?
I have installed
prettier
andprettier-plugin-java
globally:Attempting to format some Java code like this failed:
That's unpleasant but perhaps expected based on #508. But this also fails:
The only thing that worked was this:
And...that's a lot of typing. I would put that into
.prettierrc.yaml
, but neither~
nor$HOME
work in that file to refer to my home directory, which means that I can't suggest this to colleagues as a generic solution, and if I happen to have different home directories in different environments (which I do) I can't use the same configuration file (and I can't make.prettierrc
part of a project repository, because it would need to be modified by everybody in their own working directory).Is there any way to make this work in a more graceful fashion?