From 9e4638b6067bb1be35514aac65ac2c2ac92522de Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 5 Jul 2026 10:08:27 -0700 Subject: [PATCH 1/2] Add the global editorconfig CRLF default Set end_of_line = crlf on the [*] block so every file type has a defined ending, matching the fleet template. Per-type CRLF rules and .gitattributes LF pins unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: Pieter Viljoen --- .editorconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.editorconfig b/.editorconfig index 23070bb3..f5d54bcc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,6 +16,7 @@ root = true # Defaults [*] charset = utf-8 +end_of_line = crlf indent_size = 4 indent_style = space insert_final_newline = true From eefd00f6d2b415fe784581acac8d6c1cc2206652 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 5 Jul 2026 10:18:04 -0700 Subject: [PATCH 2/2] Keep the husky hook LF under the CRLF default The global [*] end_of_line = crlf also matches the extensionless .husky/pre-commit hook, which must stay LF (a CRLF shebang breaks it when run from the working tree). Add a matching editorconfig LF override, aligned with the existing .gitattributes pin. Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: Pieter Viljoen --- .editorconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.editorconfig b/.editorconfig index f5d54bcc..ea09bc1f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -45,6 +45,10 @@ end_of_line = crlf [*.sh] end_of_line = lf +# Husky git hook is an extensionless shell script - LF like other scripts (matches the .gitattributes pin) +[.husky/pre-commit] +end_of_line = lf + # Dockerfiles - CRLF breaks RUN heredocs and line continuations [{Dockerfile,*.Dockerfile}] end_of_line = lf