Compare commits

1 Commits

Author SHA1 Message Date
4316906497 chore: enforce linux line endings
All checks were successful
Lint / pre-commit Linting (push) Successful in 52s
Add .gitattributes and .editorconfig to enforce LF line endings. Update devcontainer settings.
2026-01-03 21:56:28 +01:00
4 changed files with 12 additions and 2 deletions

View File

@@ -20,7 +20,8 @@
],
"settings": {
"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
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

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