# EditorConfig — https://editorconfig.org
# Ensures consistent coding style across editors and IDEs.
# Works with VS Code, JetBrains IDEs, Vim, Emacs, and most modern editors.

root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
# Markdown: trailing spaces are significant (line breaks)
trim_trailing_whitespace = false
max_line_length = off

[*.py]
indent_size = 4

[*.go]
# Go uses tabs — gofmt enforces this
indent_style = tab
indent_size = 4

[*.rs]
indent_size = 4

[Makefile]
# Make requires tabs
indent_style = tab

[*.{yml,yaml}]
indent_size = 2

[*.{json,jsonc}]
indent_size = 2

[*.toml]
indent_size = 4

[*.sh]
indent_size = 2

[*.{sql}]
indent_size = 2
