From 721d3a0a6521b2fbc2f8e8b51385f8a935d9d8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20S=2E=20Ga=C3=9Fmann?= Date: Wed, 14 Feb 2024 21:12:04 +0100 Subject: [PATCH] style: Enforce LF line endings via `.gitattributes` --- .editorconfig | 1 + .gitattributes | 2 ++ .prettierrc.yaml | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 0ec575c..9d39e75 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,6 +5,7 @@ charset = utf-8 indent_style = space insert_final_newline = true trim_trailing_whitespace = true +end_of_line = lf [*.{ts,cts,mts}] indent_size = 2 diff --git a/.gitattributes b/.gitattributes index af3ad12..5431db2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,5 @@ +* text=auto eol=lf + /.yarn/** linguist-vendored /.yarn/releases/* binary /.yarn/plugins/**/* binary diff --git a/.prettierrc.yaml b/.prettierrc.yaml index 2429fb1..d3baa6e 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -1,2 +1 @@ -endOfLine: auto trailingComma: all