45 lines
631 B
INI
45 lines
631 B
INI
# EditorConfig is awesome: https://EditorConfig.org
|
|
|
|
# top-most EditorConfig file
|
|
root = true
|
|
|
|
# All files
|
|
[*]
|
|
indent_style = space
|
|
indent_size = 2
|
|
end_of_line = lf
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
|
|
# Rust files - match rustfmt.toml
|
|
[*.rs]
|
|
indent_size = 4
|
|
max_line_length = 100
|
|
|
|
# Markdown files
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
max_line_length = 80
|
|
|
|
# TOML files
|
|
[*.toml]
|
|
indent_size = 2
|
|
|
|
# YAML files
|
|
[*.{yml,yaml}]
|
|
indent_size = 2
|
|
|
|
# Python files
|
|
[*.py]
|
|
indent_size = 4
|
|
max_line_length = 100
|
|
|
|
# Shell scripts
|
|
[*.{sh,bash}]
|
|
indent_size = 2
|
|
|
|
# JSON files
|
|
[*.json]
|
|
indent_size = 2
|