Closed fergaldoyle closed 1 year ago
@fergaldoyle - could you make a pull request with the change to .editorconfig?
Longer term it is probably best to standardise on lf
, but it is going to mess up the git history somewhat.
See https://github.com/compassinformatics/cpsi-mapview/pull/641
Using .gitattributes
with * text=auto
to normalize line endings across operating systems might be the way to go in future:
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings?platform=windows
Fixed with #641
The line ending setting in
.editorconfig
is set tolf`` but the majority of js files are
crlf`.If you are using EditorConfig within your IDE, on save the file will be automatically converted to use
lf
. This can lead to diffs which show the whole file has changed instead of the actual lines of change, making PRs difficult to review.Not sure what the best setting is here. Probably 85% of the files are
crlf
with the remaininglf
. Probably removingend_of_line
from.editorconfig
will allow the IDE choose the line endings for the file currently being edited.