From d0c5d0dcbc4b09edf0b94969be7078f92d775d7e Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Fri, 6 Jan 2017 11:54:12 +0000 Subject: [PATCH] Add .editorconfig to (hopefully) prevent common stylistic problems The editorconfig file is respected by multiple editors by default, and more when using plugins. The config should ensure consistent newlines, indents, etc. --- .editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..ad08ecea42a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false +max_line_length = off