diff options
author | ronkorving <ron@ronkorving.nl> | 2015-09-22 06:36:03 +0300 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-01-19 22:52:42 +0300 |
commit | 628cb8657c631b53e5314af684c455ef347b340b (patch) | |
tree | 935e1769dc6fc9892e6de8e8e44ee0bf6640e740 | |
parent | 87181cd74cd66930a656ce743a60dd8de612aa65 (diff) |
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>
-rw-r--r-- | .editorconfig | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..ca97ab47dfe --- /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 |