PSR-12 for PHP and Airbnb's ESLint config for React requires LF line endings over CRLF. I see in the ESLint docs that they recommend adding a .gitattributes
file with content similar to this:
*.js text eol=lf
I checked the Git documentation and it mentions that using eol
can make paths be considered dirty. What is meant by this? I also notice there's mentions of core.safecrlf
later in the docs, so can these types of conversions cause irreversible problems?
Will I also need to set core.autocrlf
to false so that .gitattributes
takes effect?