add .editorconfig to fix indentation issues

This commit is contained in:
Alex Kocharin 2014-08-13 10:23:17 +04:00
parent 60ae815c09
commit fdbde9eb87
1 changed files with 21 additions and 0 deletions

21
.editorconfig Normal file
View File

@ -0,0 +1,21 @@
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Tab indentation (no size specified)
[*.js]
indent_style = tab
# 2 space indentation
[{.,}*.y{a,}ml]
indent_style = space
indent_size = 2
# Indentation override for Gruntfile
[Gruntfile.js]
indent_style = space
indent_size = 4