forked from forks/qmk_firmware
Normalise .editorconfig. (#23186)
This commit is contained in:
parent
c060876692
commit
21276de7d5
|
@ -4,39 +4,39 @@
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
# We recommend you to keep these unchanged
|
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[{*.yaml,*.yml}] # To match GitHub Actions formatting
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
indent_size = 4
|
|
||||||
|
|
||||||
[{qmk,*.py}]
|
[{Makefile,*.mk}]
|
||||||
charset = utf-8
|
|
||||||
max_line_length = 200
|
|
||||||
|
|
||||||
# Make these match what we have in .gitattributes
|
|
||||||
[*.mk]
|
|
||||||
end_of_line = lf
|
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
[Makefile]
|
# Don't override anything in `lib/`...
|
||||||
end_of_line = lf
|
|
||||||
indent_style = tab
|
|
||||||
|
|
||||||
[*.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/**]
|
[lib/**]
|
||||||
|
indent_style = unset
|
||||||
|
indent_size = unset
|
||||||
|
tab_width = unset
|
||||||
end_of_line = unset
|
end_of_line = unset
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue