Provide git config for crlf

it break eslint check

1:14   error  Expected linebreaks to be 'LF' but found 'CRLF'  linebreak-style

I see no reason why a tool shouldn’t expect Windows line endings in Windows.

https://stackoverflow.com/questions/39114446/how-can-i-write-a-eslint-rule-for-linebreak-style-changing-depending-on-windo has an example how to make ESLint require OS-specific EOL style.


FWIW, you can convert line endings in the worktree CRLF->LF as per https://stackoverflow.com/questions/53581439/how-to-force-converting-worktree-files-after-changing-core-autocrlf :

git config core.autocrlf false
git add --renormalize .
git reset --hard
1 Like