formatter.lineEnding
based on the operating system.
#3290
-
I'm working in a team to deliver a project and chose Biome as the promising and very fast solution for formatting and linting. Thx for such a great tool. Some of the teammates are using Windows and some are using Linux and as we know windows uses So, configuring Biome to use one of them only won't help us and will result to changes in all files if formatter in one OS and then formatted again all files in another OS. I don't know if there is a solution for my use case or not. Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you using Git? I think it can be configured to enforce one type of line-ending so that people who check in from “the other OS” will still commit with the line-ending expected for the repository. |
Beta Was this translation helpful? Give feedback.
I think the solution here is to configure your IDE to use the line ending that the repository expects. Even though you’re on Windows, you can still use a different line ending.
The confusing
git add .
behavior you witness is due to the files having no real changes after the line endings are normalized.