From 4e8d6dffcebce7ea7716dbef7241f8e15cfa8da8 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Sun, 22 Oct 2023 13:03:53 -0700 Subject: [PATCH] =?UTF-8?q?chore:=20create=20.gitattributes=EF=BC=88#2288?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf