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
|
|
|
|
|
|
|
|
[*]
|
2024-03-02 20:23:34 +08:00
|
|
|
end_of_line = lf
|
2017-10-31 23:13:40 +08:00
|
|
|
indent_style = space
|
2019-04-19 06:59:51 +08:00
|
|
|
indent_size = 4
|
2017-10-31 23:13:40 +08:00
|
|
|
charset = utf-8
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
insert_final_newline = true
|
|
|
|
|
2024-09-22 02:48:31 +08:00
|
|
|
# To match GitHub Actions formatting
|
|
|
|
[*.{yaml,yml}]
|
2024-03-02 20:23:34 +08:00
|
|
|
indent_size = 2
|
|
|
|
|
2017-10-31 23:13:40 +08:00
|
|
|
[*.md]
|
|
|
|
trim_trailing_whitespace = false
|
2018-02-03 23:47:28 +08:00
|
|
|
|
2024-03-02 20:23:34 +08:00
|
|
|
[{Makefile,*.mk}]
|
2019-07-05 12:36:50 +08:00
|
|
|
indent_style = tab
|
2018-02-03 23:47:28 +08:00
|
|
|
|
2024-03-02 20:23:34 +08:00
|
|
|
# Don't override anything in `lib/`...
|
2018-02-03 23:47:28 +08:00
|
|
|
[lib/**]
|
2024-03-02 20:23:34 +08:00
|
|
|
indent_style = unset
|
|
|
|
indent_size = unset
|
|
|
|
tab_width = unset
|
2018-02-03 23:47:28 +08:00
|
|
|
end_of_line = unset
|
2024-03-02 20:23:34 +08:00
|
|
|
charset = unset
|
|
|
|
spelling_language = unset
|
|
|
|
trim_trailing_whitespace = unset
|
|
|
|
insert_final_newline = unset
|
|
|
|
|
|
|
|
# ...except QMK's `lib/python`.
|
|
|
|
[{*.py,lib/python/**.py}]
|
|
|
|
end_of_line = lf
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
charset = utf-8
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
insert_final_newline = true
|
|
|
|
max_line_length = 200
|