My projects that are programmed in Ubuntu, where VSCode is configured in LF work perfectly.
When I clone on Windows even with the .editorconfig configured only for lf, it modifies the entire code of a file when saving, needing to commit the files again just because it reconfigured the lf.
The problem is that I have already configured editorconfig, vscode, git global to lf and nothing solved, whenever saved it modifies the file.
I use eslint, prettier and editorconfig in the code. I wanted a solution to be able to program on both operating systems.