chore: optimize .editorconfig for consistent coding style
This commit is contained in:
parent
59863b4214
commit
57d0442291
1 changed files with 27 additions and 1 deletions
|
|
@ -1,7 +1,33 @@
|
|||
# .editorconfig for Railiance
|
||||
# See: https://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# Default indentation
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Markdown: don't strip trailing whitespace (needed for line breaks)
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
# YAML & Ansible playbooks: 2 spaces
|
||||
[*.{yml,yaml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Shell scripts: 2 spaces, LF enforced above
|
||||
[*.sh]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Python: 4 spaces
|
||||
[*.py]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue