# EditorConfig is awesome: https://EditorConfig.org
root = true

[*]
# 基础编码设置
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
# 格式规范
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120

# 缩进规则
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,html,css,scss,sass,less,styl,yml,yaml,,.eslintrc}]
indent_size = 2

[*.{json,package.json}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
