From 91b474f0739f09ed3ae4e1eef4cae0dd4080f009 Mon Sep 17 00:00:00 2001 From: Simon McConnell <22566656+simonmcconnell@users.noreply.github.com> Date: Thu, 31 Aug 2023 16:41:23 +0800 Subject: [PATCH] Enforce LF line endings (#2190) --- .editorconfig | 6 ++++++ .gitattributes | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..d20e676f4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,6 @@ +# https://EditorConfig.org + +root = true + +[*] +end_of_line = lf diff --git a/.gitattributes b/.gitattributes index 8a4689880..f13d9ecee 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,7 @@ -iframe/priv/static/iframe/*.html text eol=lf \ No newline at end of file +# convert all CRLF to LF +* text=auto eol=lf + +# ensure binary files are not marked as text +*.{ico,png,jpg,jpeg,gif,webp,woff,woff2} binary + +iframe/priv/static/iframe/*.html text eol=lf