From 58318bcc6786ffab5da6adfe4891a93d6db6bf9b Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Mon, 21 Oct 2019 09:43:38 +0100 Subject: [PATCH] [IMP] Adapt .editorconfig Fix #614. --- sample_files/.editorconfig | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/sample_files/.editorconfig b/sample_files/.editorconfig index 198e02a58..4c2dab460 100644 --- a/sample_files/.editorconfig +++ b/sample_files/.editorconfig @@ -1,5 +1,5 @@ -# Defaults for all kinds of source code -[*] +# Configuration for known file extensions +[*.{css,js,less,md,py,rst,sass,scss,xml,yaml,yml}] charset = utf-8 end_of_line = lf indent_size = 4 @@ -7,21 +7,11 @@ indent_style = space insert_final_newline = true trim_trailing_whitespace = true -# Specific language overrides [*.{yml,yaml,rst,md}] indent_size = 2 -# External web libs should be left untouched -[*/static/lib/**] -charset = unset -end_of_line = unset -indent_size = unset -indent_style = unset -insert_final_newline = false -trim_trailing_whitespace = false - -# External web libs should be left untouched -[*/static/src/lib/**] +# Do not configure editor for libs and autogenerated content +[*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst] charset = unset end_of_line = unset indent_size = unset