From ed19fecefd60de369c67ebbe2da0a2db882787bf Mon Sep 17 00:00:00 2001 From: Luke AKA Shoot Your Bricks Date: Wed, 25 Jun 2025 17:49:46 -0500 Subject: [PATCH 1/3] Create .gitattributes Git Attributes file to ensure that line endings are the same regardless of the OS (This was causing problems for Windows + Docker) --- .gitattributes | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000000..a613c90793eb --- /dev/null +++ b/.gitattributes @@ -0,0 +1,43 @@ +# Enforce LF endings across all text files +* text=auto eol=lf + +# --- TypeScript & JavaScript --- +*.ts text eol=lf +*.tsx text eol=lf +*.js text eol=lf +*.jsx text eol=lf + +# --- CSS --- +*.css text eol=lf + +# --- Shell Scripts --- +*.sh text eol=lf + +# --- SQL (PL/pgSQL scripts) --- +*.sql text eol=lf + +# --- Docker --- +Dockerfile* text eol=lf +*.dockerignore text eol=lf + +# --- Config & Markup --- +*.json text eol=lf +*.yml text eol=lf +*.yaml text eol=lf +*.env text eol=lf +*.md text eol=lf +*.toml text eol=lf +*.html text eol=lf +*.xml text eol=lf + +# --- Binary files (no line ending normalization) --- +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary +*.ttf binary +*.eot binary +*.pdf binary From b53e32eb47eee6d682ad273755e6a89ff7b8c2bf Mon Sep 17 00:00:00 2001 From: Luke AKA Shoot Your Bricks Date: Fri, 27 Jun 2025 12:08:14 +0000 Subject: [PATCH 2/3] Replace git attributes with editor.config --- .gitattributes | 43 ------------------------------------------- editor.config | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 43 deletions(-) delete mode 100644 .gitattributes create mode 100644 editor.config diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index a613c90793eb..000000000000 --- a/.gitattributes +++ /dev/null @@ -1,43 +0,0 @@ -# Enforce LF endings across all text files -* text=auto eol=lf - -# --- TypeScript & JavaScript --- -*.ts text eol=lf -*.tsx text eol=lf -*.js text eol=lf -*.jsx text eol=lf - -# --- CSS --- -*.css text eol=lf - -# --- Shell Scripts --- -*.sh text eol=lf - -# --- SQL (PL/pgSQL scripts) --- -*.sql text eol=lf - -# --- Docker --- -Dockerfile* text eol=lf -*.dockerignore text eol=lf - -# --- Config & Markup --- -*.json text eol=lf -*.yml text eol=lf -*.yaml text eol=lf -*.env text eol=lf -*.md text eol=lf -*.toml text eol=lf -*.html text eol=lf -*.xml text eol=lf - -# --- Binary files (no line ending normalization) --- -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.woff binary -*.woff2 binary -*.ttf binary -*.eot binary -*.pdf binary diff --git a/editor.config b/editor.config new file mode 100644 index 000000000000..30fa8a715618 --- /dev/null +++ b/editor.config @@ -0,0 +1,15 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = tab +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true + +[test/**/expected.css] +insert_final_newline = false + +[package.json] +indent_style = space \ No newline at end of file From 4f50167b62c844d6b9da5cf7425d009a57537323 Mon Sep 17 00:00:00 2001 From: Luke AKA Shoot Your Bricks Date: Fri, 27 Jun 2025 09:01:19 -0500 Subject: [PATCH 3/3] Update and rename editor.config to .editorconfig Changed editor.config to .editorconfig and removed unnecessary code --- .editorconfig | 4 ++++ editor.config | 15 --------------- 2 files changed, 4 insertions(+), 15 deletions(-) create mode 100644 .editorconfig delete mode 100644 editor.config diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..006bc2fc7794 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +end_of_line = lf diff --git a/editor.config b/editor.config deleted file mode 100644 index 30fa8a715618..000000000000 --- a/editor.config +++ /dev/null @@ -1,15 +0,0 @@ -root = true - -[*] -end_of_line = lf -insert_final_newline = true -indent_style = tab -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true - -[test/**/expected.css] -insert_final_newline = false - -[package.json] -indent_style = space \ No newline at end of file