Merge pull request #1506 from Repiteo/editorconfig

Add `.editorconfig`, consolidate `.gitattributes`
pull/1509/head
David Snopek 2024-06-25 09:43:36 -05:00 committed by GitHub
commit 7abe4ca9e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 6 deletions

16
.editorconfig Normal file
View File

@ -0,0 +1,16 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[{*.py,SConstruct}]
indent_style = space
[*.{yml,yaml}]
indent_size = 2
indent_style = space

8
.gitattributes vendored
View File

@ -1,6 +1,2 @@
*.c eol=lf # Normalize EOL for all files that Git considers text files
*.cpp eol=lf * text=auto eol=lf
*.gd eol=lf
*.tscn eol=lf
*.cfg eol=lf
*.godot eol=lf