Convert line-endings for whole directory tree (Git)

dos2unix does that for you. Fairly straight forward process. dos2unix filename Thanks to toolbear, here is a one-liner that recursively replaces line endings and properly handles whitespace, quotes, and shell meta chars. find . -type f -exec dos2unix {} \; If you’re using dos2unix 6.0 binary files will be ignored.

Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style

Check if you have the linebreak-style rule configure as below either in your .eslintrc or in source code: /*eslint linebreak-style: [“error”, “unix”]*/ Since you’re working on Windows, you may want to use this rule instead: /*eslint linebreak-style: [“error”, “windows”]*/ Refer to the documentation of linebreak-style: When developing with a lot of people all having different … Read more

Why should I use core.autocrlf=true in Git?

The only specific reasons to set autocrlf to true are: avoid git status showing all your files as modified because of the automatic EOL conversion done when cloning a Unix-based EOL Git repo to a Windows one (see issue 83 for instance) and your coding tools somehow depends on a native EOL style being present … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)