From 394c9543c998acb26bb3c4537744bab01ec8a459 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Sat, 15 Oct 2016 12:08:12 +0300 Subject: [PATCH] Add .gitattributes and .editorconfig for LF line endings (#179) * Add .gitattributes forcing LF line endings * Add .editorconfig from Babel --- .editorconfig | 11 +++++++++++ .gitattributes | 1 + 2 files changed, 12 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..1a096400ce --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true +end_of_line = lf + +[*.{js,json}] +indent_style = space +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..7d07d70cc8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=lf