From 8a6353e0a659c26c0672cd7bc06ec98da0d9695a Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 12 Apr 2021 00:11:30 +0200 Subject: [PATCH] Add EditorConfig and Force LF line endings (#18) * Add EditorConfig and set git LF line endings --- .editorconfig | 19 +++++++++++++++++++ .gitattributes | 1 + 2 files changed, 20 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1db2918 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto