# Top-most EditorConfig file tells plugins to stop searching up the tree
root = true

# Vendored Gradle wrapper: generated by `gradle wrapper`, not ours to restyle.
# It has no extension, so the [*.{sh,bash}] rule below cannot match it, and
# shfmt would fall back to its built-in default (tabs) and rewrite the whole
# file. Declaring the 2-space style Gradle actually ships keeps shfmt happy
# without touching a generated third-party file that would be overwritten on
# the next wrapper regeneration.
[gradlew]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# Shell / Bash script configuration mapping
[*.{sh,bash}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 200
trim_trailing_whitespace = true

[*.{c,h}]
indent_style = space

[*.{css,html,js,json,toml,ts,tsx,ya?ml}]
indent_size = 2
indent_style = space
