CRM-20200. Add .editorconfig
authorChris Burgess <chris@giantrobot.co.nz>
Tue, 28 Feb 2017 23:19:32 +0000 (12:19 +1300)
committerChris Burgess <chris@giantrobot.co.nz>
Tue, 28 Feb 2017 23:19:32 +0000 (12:19 +1300)
This is straight from Drupal 7.x version. Do we need to adjust it at all?

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..ce303ed
--- /dev/null
@@ -0,0 +1,14 @@
+# CiviCRM editor configuration normalization
+# @see http://editorconfig.org/
+
+# This is the top-most .editorconfig file; do not search in parent directories.
+root = true
+
+# All files.
+[*]
+end_of_line = LF
+indent_style = space
+indent_size = 2
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true