diff --git a/.editorconfig b/.editorconfig index 23070bb3..ea09bc1f 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 @@ -44,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