.editorconfig 984 Bytes
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/

root = true # 告诉EditorConfig插件,这是根文件,不用继续往上查找

[*] # 匹配全部文件
charset = utf-8 # 设置字符集
end_of_line = lf # 结尾换行符,可选"lf"、"cr"、"crlf"
indent_size = 2 # 缩进的空格数
indent_style = space # 缩进风格,可选"space"、"tab"
insert_final_newline = true # 是否使文件以一个空白行结尾
trim_trailing_whitespace = true # 是否将行尾空格自动删除

[*.md] # 匹配md结尾的文件
trim_trailing_whitespace = false

[*.{groovy, java, kt, xml}] # 以下匹配,类同
indent_style = tab
indent_size = 4
continuation_indent_size = 8

[{.travis.yml, package.json}] # 以下匹配,类同
# The indent size used in the `package.json` file cannot be changed
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
indent_size = 2
indent_style = space