mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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>
This commit is contained in:
parent
cb0b4a6bc0
commit
d63cceeb10
39
.editorconfig
Normal file
39
.editorconfig
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user