From 8d1e1fbf1712e47fbfb8b2ae1bbfbec2fb10c0b4 Mon Sep 17 00:00:00 2001 From: nscuro Date: Wed, 9 Oct 2024 14:42:36 +0200 Subject: [PATCH] Add `.gitattributes` to fix prettier behavior on Windows Since prettier enforces LF line endings, it would forcefully convert Windows' CLRF linebreaks on every run, causing undesired changes for contributors using Windows. This is taken from prettier's own `.gitattributes` file: https://github.com/prettier/prettier/blob/main/.gitattributes Signed-off-by: nscuro --- .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