My team and I have recently made the decision to use Prettier to format our code, as some of our devs are on Jetbrain products, and others are on VS Code, and so it harmonizes things.
Prettier is all set up and makes the correct formatting, however whenever I commit, all of the Prettier changes are undone and IntelliJ's formatting is done. When making a commit, I have unchecked Reformat Code and Rearrange Code, but this doesn't seem to change anything. IntelliJ still formats things back. I have looked online but surprisingly there is no clear solution for disabling the formatter when committing.
Surely there is something simple that I'm missing? Any help would be hugely appreciated, as it is really getting quite frustrating.
Thank you very much.