I'm someone who obsesses over code style and I really don't want to. Prettier worked quite well to prevent me from wasting precious time formatting code.
Unfortunately, Prettier removes parentheses where it sees fit. I had to stop using it because my brain really needs them to stay put.
Honestly, I'd just use the prettier-ignore comment to keep the parentheses. Hopefully you don't feel like you have to do this multiple times in a single file. But once in a while I think it's okay.
I'm someone who obsesses over code style and I really don't want to. Prettier worked quite well to prevent me from wasting precious time formatting code.
Unfortunately, Prettier removes parentheses where it sees fit. I had to stop using it because my brain really needs them to stay put.
Any way to solve this?
Honestly, I'd just use the prettier-ignore comment to keep the parentheses. Hopefully you don't feel like you have to do this multiple times in a single file. But once in a while I think it's okay.
See prettier.io/docs/en/ignore.html
You could consider opening an issue on the prettier repo to see if others share your opinion.
Thanks, will surely give it another try!
Here’s the issue for that: github.com/prettier/prettier/issue...