Jelajahi Sumber

调整编辑器配置,防止冗余信息出现在git提交中

john 2 tahun lalu
induk
melakukan
115d12fec2
1 mengubah file dengan 18 tambahan dan 9 penghapusan
  1. 18 9
      .editorconfig

+ 18 - 9
.editorconfig

@@ -1,9 +1,18 @@
-root = true
-
-[*]
-charset = utf-8
-indent_style = space
-indent_size = 2
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+insert_final_newline = false
+trim_trailing_whitespace = false
+curly_bracket_next_line = false     # 大括号不另起一行
+
+[*.js]                              # 对所有的 js 文件生效
+quote_type = single                 # 字符串使用单引号
+
+[*.{html,less,css,json}]            # 对所有 html, less, css, json 文件生效
+quote_type = double                 # 字符串使用双引号
+
+[package.json]                      # 对 package.json 生效
+indent_size = 2                     # 使用2个空格缩进