chore: 🔨 代码检测和格式化配置

Former-commit-id: 386cef18e522eb38da0b7bfabccb06ee721ea17f
This commit is contained in:
郝先瑞
2023-04-15 23:35:07 +08:00
parent f05dda3c7e
commit 0b25352607
9 changed files with 143 additions and 101 deletions

View File

@@ -1,15 +1,14 @@
# http://editorconfig.org
root = true
[*] # 表示所有文件适用
# 表示所有文件适用
[*]
charset = utf-8 # 设置文件字符集为 utf-8
indent_style = space # 缩进风格tab | space
indent_size = 2 # 缩进大小
end_of_line = lf # 控制换行类型(lf | cr | crlf)
trim_trailing_whitespace = true # 去除行首的任意空白字符
indent_style = tab # 缩进风格tab | space
insert_final_newline = true # 始终在文件末尾插入一个新行
[*.md] # 表示仅 md 文件适用以下规则
max_line_length = off
trim_trailing_whitespace = false
# 表示仅 md 文件适用以下规则
[*.md]
max_line_length = off # 关闭最大行长度限制
trim_trailing_whitespace = false # 关闭末尾空格修剪