From e9619cc4f8717c1b8b66f60998cf8402bb983349 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 11 Oct 2017 21:35:17 +0200 Subject: Add EditorConfig configuration EditorConfig allows specifying indentation, line feed and encoding properties according to the type of file being edited. Most editors support it out-of-the-box, or can benefit from it through a plugin. See: - http://editorconfig.org/ - https://github.com/editorconfig/editorconfig - https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties Signed-off-by: VirtualTam --- .editorconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .editorconfig (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..5abbd7bf --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +# EditorConfig: http://EditorConfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.{html,xml}] +indent_size = 2 + +[*.php] +max_line_length = 100 + +[Dockerfile] +max_line_length = 80 + +[Makefile] +indent_style = tab -- cgit v1.2.3 From a93b620a35a9768e102de31f19552624f33a0ae0 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Mon, 16 Oct 2017 19:38:33 +0200 Subject: EditorConfig: add .htaccess support Signed-off-by: VirtualTam --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig index 5abbd7bf..4a6589a2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ trim_trailing_whitespace = true indent_style = space indent_size = 4 -[*.{html,xml}] +[*.{htaccess,html,xml}] indent_size = 2 [*.php] -- cgit v1.2.3