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