summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2018-09-29 15:09:04 +0200
committerRoman Reiss <me@silverwind.io>2018-10-01 18:43:55 +0200
commit6ea507a8bf363b549a2630db25cc82cd71ec18fc (patch)
tree26f86360c367f237168157a3ab51a6e76a8c856a /.editorconfig
parenta82ac6eedf925b8922ca2e577d0364a62dea5ad7 (diff)
downloadandroid-node-v8-6ea507a8bf363b549a2630db25cc82cd71ec18fc.tar.gz
android-node-v8-6ea507a8bf363b549a2630db25cc82cd71ec18fc.tar.bz2
android-node-v8-6ea507a8bf363b549a2630db25cc82cd71ec18fc.zip
tools: unify .editorconfig rules for 2-space
The `doc` directory had not had any editorconfig rules applied which can lead to tab indentation in editors. This unifies the rules to use 2-space as the default. Additionally, all rules are now sorted alphabetically. PR-URL: https://github.com/nodejs/node/pull/23163 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig30
1 files changed, 8 insertions, 22 deletions
diff --git a/.editorconfig b/.editorconfig
index 52b84b424f..f1eff1dffc 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,40 +1,26 @@
root = true
[*]
-end_of_line = lf
charset = utf-8
-trim_trailing_whitespace = true
+end_of_line = lf
+indent_size = 2
+indent_style = space
insert_final_newline = true
+trim_trailing_whitespace = true
[vcbuild.bat]
end_of_line = crlf
-[{lib,test,tools}/**.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
+indent_style = tab
[{deps}/**]
-indent_style = ignore
-indent_size = ignore
+charset = ignore
end_of_line = ignore
+indent_size = ignore
+indent_style = ignore
trim_trailing_whitespace = ignore
-charset = ignore
[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
insert_final_newline = false