From c31ab6846f8a3b2f3adf07696d7c63fe2d5a963d Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Thu, 3 May 2018 10:23:21 -0700 Subject: [PATCH] Standardize editor configs for cross-platform development (#628) --- .editorconfig | 16 ++++++++++++++++ .gitattributes | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..6c49220d6d24 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +max_line_length = 80 +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000000..130805ef857a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# Auto detect text files and perform LF normalization +* text=auto +* text eol=lf