# EditorConfig — cross-editor defaults (no relation to formatters; rustfmt / tsc still win for those languages).
# https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{ts,tsx,js,cjs,mjs,jsx}]
indent_style = space
indent_size = 2

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

[*.rs]
indent_style = space
indent_size = 4

[*.md]
# Markdown may use trailing spaces for hard line breaks.
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
