Add git attributes and editor config

This commit is contained in:
Filip Tibell 2024-01-20 00:26:33 +01:00
parent 047e6a5f6e
commit d1cc17b2d3
No known key found for this signature in database
2 changed files with 24 additions and 0 deletions

15
.editorconfig Normal file
View file

@ -0,0 +1,15 @@
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
[*.{json,jsonc,json5}]
indent_style = space
indent_size = 4
[*.{yml,yaml}]
indent_style = space
indent_size = 2

9
.gitattributes vendored Normal file
View file

@ -0,0 +1,9 @@
* text=auto
# Temporarily highlight luau as normal lua files
# until we get native linguist support for Luau
*.luau linguist-language=Lua
# Ensure all lua files use LF
*.lua eol=lf
*.luau eol=lf