# https://editorconfig.org
root = true

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

# Python — Ruff: 100-col, 4-space
[*.py]
max_line_length = 100

# TypeScript / JS — Prettier: 4-space, printWidth 110
[*.{ts,tsx,js,jsx,mjs,cjs}]
max_line_length = 110

# Data / markup / styles — Prettier 2-space override
[*.{yml,yaml,md,css,json}]
indent_size = 2

# Makefiles require real tabs
[Makefile]
indent_style = tab

# Markdown: trailing spaces are hard line breaks
[*.md]
trim_trailing_whitespace = false
