add .editorconfig

This commit is contained in:
Robin Appelman 2018-08-24 17:53:17 +02:00
commit bebed6f456

23
.editorconfig Normal file
View file

@ -0,0 +1,23 @@
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=false
indent_style=space
indent_size=4
[{composer.lock,.babelrc,.stylelintrc,.eslintrc,jest.config,*.bowerrc,*.jsb3,*.jsb2,*.json}]
indent_style=space
indent_size=2
[{Makefile.*,Makefile,GNUmakefile,makefile,*.mk}]
indent_style=tab
tab_width=4
[{*.module,*.hphp,*.phtml,*.php5,*.php4,*.php,*.inc}]
indent_style=tab
tab_width=4
[{*.yml,*.yaml}]
indent_style=space
indent_size=2