Add .editorconfig

This commit is contained in:
printempw 2018-02-16 15:25:29 +08:00
parent 77f828c817
commit 42e06e8954
2 changed files with 17 additions and 0 deletions

13
.editorconfig Normal file
View File

@ -0,0 +1,13 @@
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{php,js,md}]
indent_size = 4

View File

@ -0,0 +1,4 @@
# http://editorconfig.org
[*.js]
indent_size = 2