root = true

# Default: Tabs, 2-space visual width
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
tab_width = 2

# PowerShell scripts — tabs, CRLF
[*.ps1]
indent_style = tab
tab_width = 2
end_of_line = crlf

# Markdown — preserve trailing whitespace
[*.md]
trim_trailing_whitespace = false

# JSON/YAML — tabs, 2-space visual width
[*.{json,yml,yaml}]
indent_style = tab
tab_width = 2

# Makefiles — always tabs
[Makefile]
indent_style = tab
tab_width = 2

# Windows batch — CRLF
[*.{bat,cmd}]
end_of_line = crlf

# Shell scripts — LF
[*.sh]
end_of_line = lf
