Add EditorConfig and Force LF line endings (#18)

* Add EditorConfig and set git LF line endings
pull/19/head
jonpas 2021-04-12 00:11:30 +02:00 committed by GitHub
parent 5767560051
commit 8a6353e0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

19
.editorconfig Normal file
View File

@ -0,0 +1,19 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.{c,h}]
indent_style = tab
indent_size = 8
[*.ld]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

1
.gitattributes vendored Normal file
View File

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