Skip to content

Commit 55def3b

Browse files
ptr727claude
andauthored
Add the global editorconfig CRLF default (#803)
* 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) <noreply@anthropic.com> Signed-off-by: Pieter Viljoen <ptr727@users.noreply.github.com> * 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) <noreply@anthropic.com> Signed-off-by: Pieter Viljoen <ptr727@users.noreply.github.com> --------- Signed-off-by: Pieter Viljoen <ptr727@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a8ac2dc commit 55def3b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ root = true
1616
# Defaults
1717
[*]
1818
charset = utf-8
19+
end_of_line = crlf
1920
indent_size = 4
2021
indent_style = space
2122
insert_final_newline = true
@@ -44,6 +45,10 @@ end_of_line = crlf
4445
[*.sh]
4546
end_of_line = lf
4647

48+
# Husky git hook is an extensionless shell script - LF like other scripts (matches the .gitattributes pin)
49+
[.husky/pre-commit]
50+
end_of_line = lf
51+
4752
# Dockerfiles - CRLF breaks RUN heredocs and line continuations
4853
[{Dockerfile,*.Dockerfile}]
4954
end_of_line = lf

0 commit comments

Comments
 (0)