# EditorConfig helps maintain consistent coding styles across all files
# https://editorconfig.org

root = true

# Unix-style newlines, UTF-8 encoding for all files
[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

# Python: 4 spaces (PEP 8)
[*.py]
indent_style = space
indent_size = 4

# JavaScript/JSON/YAML: 2 spaces (common web standard)
[*.{js,json,yml,yaml}]
indent_style = space
indent_size = 2

# HTML/CSS: 2 spaces
[*.{html,css}]
indent_style = space
indent_size = 2

# Markdown: preserve formatting
[*.md]
trim_trailing_whitespace = false
