Compare commits

1 Commits

Author SHA1 Message Date
9ae6ada818 chore: enforce linux line endings
Some checks are pending
Lint / pre-commit Linting (push) Waiting to run
Add .gitattributes and .editorconfig to enforce LF line endings. Update devcontainer settings.
2026-01-03 20:54:25 +00:00
4 changed files with 12 additions and 2 deletions

View File

@@ -20,7 +20,8 @@
], ],
"settings": { "settings": {
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode",
"files.eol": "\n"
} }
} }
}, },

View File

@@ -5,7 +5,7 @@ git config --global --add safe.directory $(pwd)
# In your setup.sh or postCreateCommand # In your setup.sh or postCreateCommand
sudo chown -R node:node /home/node/.cache/ 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 # 2. Re-connect Git Hooks
pre-commit install pre-commit install
pre-commit install-hooks pre-commit install-hooks

8
.editorconfig Normal file
View File

@@ -0,0 +1,8 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
* text=auto eol=lf