From 2db3f6ad2d7ec472ab892f5f559cdf235eedf105 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Sat, 21 Oct 2023 13:01:16 -0700 Subject: [PATCH] Create .gitattributes 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 000000000..6313b56c5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf