summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorronkorving <ron@ronkorving.nl>2015-09-22 12:36:03 +0900
committerRoman Reiss <me@silverwind.io>2015-12-16 16:23:32 +0100
commitd63cceeb10b7b841479a6e92d18f9fc902afda72 (patch)
tree97dfaad0c68008f8e1d59558bfe91b0d2b859521 /.editorconfig
parentcb0b4a6bc09d1339a471fcb9002a074eb5aac3a5 (diff)
downloadandroid-node-v8-d63cceeb10b7b841479a6e92d18f9fc902afda72.tar.gz
android-node-v8-d63cceeb10b7b841479a6e92d18f9fc902afda72.tar.bz2
android-node-v8-d63cceeb10b7b841479a6e92d18f9fc902afda72.zip
tools: add .editorconfig
This helps editors (see http://editorconfig.org/#download) to apply the right indentation and encoding rules to files by default. PR-URL: https://github.com/nodejs/node/pull/2993 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig39
1 files changed, 39 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..ca97ab47df
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,39 @@
+root = true
+
+[*]
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+
+[vcbuild.bat]
+end_of_line = crlf
+
+[*.{md,markdown}]
+trim_trailing_whitespace = false
+
+[{lib,src,test}/**.js]
+indent_style = space
+indent_size = 2
+
+[src/**.{h,cc}]
+indent_style = space
+indent_size = 2
+
+[test/*.py]
+indent_style = space
+indent_size = 2
+
+[configure]
+indent_style = space
+indent_size = 2
+
+[Makefile]
+indent_style = tab
+indent_size = 8
+
+[{deps,tools}/**]
+indent_style = ignore
+indent_size = ignore
+end_of_line = ignore
+trim_trailing_whitespace = ignore
+charset = ignore