2017-10-31 23:13:40 +08:00
|
|
|
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
|
|
|
|
# editorconfig.org
|
|
|
|
|
|
|
|
root = true
|
|
|
|
|
|
|
|
[*]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
|
|
|
# We recommend you to keep these unchanged
|
|
|
|
charset = utf-8
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
insert_final_newline = true
|
|
|
|
|
|
|
|
[*.md]
|
|
|
|
trim_trailing_whitespace = false
|
|
|
|
indent_size = 4
|
2018-02-03 23:47:28 +08:00
|
|
|
|
|
|
|
# Make these match what we have in .gitattributes
|
|
|
|
[*.mk]
|
|
|
|
end_of_line = lf
|
|
|
|
|
|
|
|
[Makefile]
|
|
|
|
end_of_line = lf
|
|
|
|
|
|
|
|
[*.sh]
|
|
|
|
end_of_line = lf
|
|
|
|
|
|
|
|
# The gitattributes file will handle the line endings conversion properly according to the operating system settings for other files
|
|
|
|
|
|
|
|
|
|
|
|
# We don't have gitattributes properly for these
|
|
|
|
# So if the user have for example core.autocrlf set to true
|
|
|
|
# the line endings would be wrong.
|
|
|
|
[lib/**]
|
|
|
|
end_of_line = unset
|