From 43169064970a15df7703d185bc83fafde531392f Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sat, 3 Jan 2026 20:54:25 +0000 Subject: [PATCH] chore: enforce linux line endings Add .gitattributes and .editorconfig to enforce LF line endings. Update devcontainer settings. --- .devcontainer/devcontainer.json | 3 ++- .devcontainer/setup.sh | 2 +- .editorconfig | 8 ++++++++ .gitattributes | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 219d908..0397ba4 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,7 +20,8 @@ ], "settings": { "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "files.eol": "\n" } } }, diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index 364cec0..e5716b0 100644 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -5,7 +5,7 @@ git config --global --add safe.directory $(pwd) # In your setup.sh or postCreateCommand sudo chown -R node:node /home/node/.cache/ -sudo chown -R node:node .git/hooks +sudo chown -R node:node /workspaces/screeps-deploy-action/.git/hooks # 2. Re-connect Git Hooks pre-commit install pre-commit install-hooks diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..78c6dde --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf