From e2cf7158a24d94595caa5d12f7962b24cd94ae27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Thu, 18 Jun 2015 00:08:10 +0200 Subject: [PATCH] Editor config --- .editorconfig | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e66c9af --- /dev/null +++ b/.editorconfig @@ -0,0 +1,34 @@ +# EditorConfig is awesome: http://EditorConfig.org +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# Set default charset +[*.{js,py}] +charset = utf-8 + +# Python code conventiopn +[*.py] +indent_style = space +indent_size = 4 + +# Javascript +[**.{js,json,md}] +indent_style = space +indent_size = 2 +insert_final_newline = true + +# HTML +[*.html] +indent_style = tab +insert_final_newline = false +indent_size = 2 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab