Some members of my team use Mac, some use Linux and other use Windows.
We started to use prettier --write before pushing changes to ensure uniformity in code style. The problem occurs on Windows, where all project files are changed. Prettier replaces all LF end of lines with CRLF.
We have "endOfLine": "lf" in our .prettierrc, but it seems to be ignored. Even adding --end-of-line lf in the command line is ignored.
This is not happening to Linux and Mac users.
How can we run Prettier to ensure line endings are preserved?
Thanks!