PayrollManagementSystem/.editorconfig

29 lines
706 B
INI
Raw Normal View History

# 编辑器统一配置。
#
# 本项目同时含 Python 与 Vue/TS,编辑器的默认缩进、换行符、编码各不相同,
# 不做统一的话,一次提交会混进大量「只有空白字符差异」的 diff,review 时
# 真正的改动会被淹没。多数编辑器与 IDE 原生支持 .editorconfig,无需装插件。
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.py]
indent_size = 4
[*.{md,markdown}]
# Markdown 行尾的两个空格是「硬换行」语法,不能自动删除
trim_trailing_whitespace = false
[*.{json,yml,yaml}]
indent_size = 2
[Makefile]
indent_style = tab