[TASK] Introduce .editorconfig file 94/32794/3
authorFrank Nägler <typo3@naegler.net>
Tue, 16 Sep 2014 07:47:00 +0000 (09:47 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 16 Sep 2014 21:55:37 +0000 (23:55 +0200)
A lot of IDEs support a .editorconfig file, this file contains
informations for the IDE how to handle and format files.
This little file can be used for any kind of file. If the IDE
support this file, the IDE configure it selfs to use the settings
e.g. to use TAB instead of SPACES.

Resolves: #61621
Releases: 6.2, 6.3
Change-Id: I76fb7901c0cf07a5b848523a0c0e46a6f705db4d
Reviewed-on: http://review.typo3.org/32794
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..e867562
--- /dev/null
@@ -0,0 +1,33 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+charset = utf-8
+
+# Get rid of whitespace to avoid diffs with a bunch of EOL changes
+trim_trailing_whitespace = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+# JS-Files
+[*.js]
+indent_style = tab
+indent_size = 4
+
+# PHP-Files
+[*.php]
+indent_style = tab
+indent_size = 4
+
+# MD-Files
+[*.md]
+indent_style = space
+indent_size = 4
+
+# package.json or .travis.yml
+[{package.json,.travis.yml}]
+indent_style = space
+indent_size = 2
\ No newline at end of file