editorconfig and gitattributes changes

This commit is contained in:
Znote 2020-06-01 23:25:42 +02:00
parent 8d959350d3
commit 31c233d559
2 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,12 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.{php,css,html,xml,lua,js}]
indent_style = tab
indent_size = 4

16
.gitattributes vendored Normal file
View File

@ -0,0 +1,16 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Declare files that will always have LF line endings on checkout.
*.php text eol=lf
*.lua text eol=lf
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.xml text eol=lf
*.sql text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary