Browse Source

improve .editorconfig

jomo 10 năm trước cách đây
mục cha
commit
3cc14ae837
1 tập tin đã thay đổi với 6 bổ sung8 xóa
  1. 6 8
      .editorconfig

+ 6 - 8
.editorconfig

@@ -1,19 +1,17 @@
 # We use EditorConfig to standardize settings between contributors
 # See http://editorconfig.org for more info and plugin downloads
 
-# This is the only config file
 root = true
 
-# Unix-style newlines with with new lines at the end
 [*]
 end_of_line = lf
-insert_final_newline = true
+insert_final_newline = false
+trim_trailing_whitespace = true
 
-# Use utf-8 for character encoding
 [*.{js, json, yml}]
+indent_style = space
+indent_size = 2
 charset = utf-8
 
-# 2 space indents
-[*.{js, json, yml}]
-indent_style = space
-indent_size = 2
+[*.md]
+trim_trailing_whitespace = false