chore: create .gitattributes(#2288)

It is recommended by Prettier to use LF endings for all files including in Windows, and they officially recommend to set this option in .gitattributes file for consistency, and LF is the default in Prettier 2 or higher. The lack of this file bit me in another project whose build failed in Windows in GitHub Actions due to `prettier --check` failing in Windows with default LF mode.

More info: https://github.com/prettier/prettier/issues/7825#issuecomment-602171740
This commit is contained in:
Joe Pea 2023-10-22 13:03:53 -07:00 committed by GitHub
parent dbe8fc5ec8
commit 4e8d6dffce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto eol=lf