To avoid problems with different line endings on different platforms, this PR sets line endings to LF. It follows the default prettier setting since version 2.0.0.
.gitattributes tells git that it should check out text files with LF line endings (regardless of platform)
.prettier.yaml (default value for endOfLine is lf) tells prettier that it should format files with LF line endings
.editorconfig - not changed in this PR - already specifies end_of_line as nl.
After this is merged into master, contributors on Windows should:
commit any work in progress
switch to the master branch pull the changes
update their working tree to match the new settings by running
git rm --cached -r .
git reset --hard
This will checkout their working tree with LF line endings (git does not update files on checkout if they have not changed - and line endings do not count for change).
Alternatively, cloning the repository will achieve the same thing. More details can be found in this stackoverflow article.
To avoid problems with different line endings on different platforms, this PR sets line endings to
LF
. It follows the default prettier setting since version 2.0.0..gitattributes
tells git that it should check out text files withLF
line endings (regardless of platform).prettier.yaml
(default value forendOfLine
islf
) tells prettier that it should format files withLF
line endings.editorconfig
- not changed in this PR - already specifiesend_of_line
asnl
.After this is merged into master, contributors on Windows should:
This will checkout their working tree with LF line endings (git does not update files on checkout if they have not changed - and line endings do not count for change).
Alternatively, cloning the repository will achieve the same thing. More details can be found in this stackoverflow article.
Signed-off-by: Vit Gottwald vit.gottwald@gmail.com