diff --git a/.editorconfig b/.editorconfig index 7053c49..fb6e575 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,22 @@ -[*.{js,jsx,ts,tsx,vue}] -indent_style = space -indent_size = 2 -trim_trailing_whitespace = true -insert_final_newline = true +# top-most EditorConfig file 表示是最顶层的配置文件,发现设为true时,才会停止查找.editorconfig文件 +root = true +[*.{js,jsx,ts,tsx,vue}] +charset = utf-8 +indent_style = tab +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true + +# Unix-style newlines with a newline ending every file 对于所有的文件 始终在文件末尾插入一个新行 +[*] +end_of_line = crlf +insert_final_newline = true + +# 对于所有的js文件,设置文件字符集为utf-8 +[*.js] +charset = utf-8 + +# 设置所有JS,vue的缩进为 +[*.{js,vue}] + +indent_style = tab diff --git a/.github/workflow/deploy.yml b/.github/workflows/deploy.yml similarity index 100% rename from .github/workflow/deploy.yml rename to .github/workflows/deploy.yml