浏览代码

Extend .editorconfig

jmacura 5 年之前
父节点
当前提交
30287661ac
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .editorconfig

+ 4 - 4
.editorconfig

@@ -4,12 +4,12 @@
 # top-most EditorConfig file
 root = true
 
-# Newline ending every file
+# Newline ending every file and set default charset
 [*]
 insert_final_newline = true
+charset = utf-8
 
-# 2 space indentation and set default charset
-[*.js]
+# 2 space indentation
+[*.{js,ts,html,css}]
 indent_style = space
 indent_size = 2
-charset = utf-8