# EditorConfig helps maintain consistent coding styles across different editors
# https://editorconfig.org

root = true

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

# Markdown files
[*.md]
trim_trailing_whitespace = false
max_line_length = 80

# JavaScript/TypeScript
[*.{js,jsx,ts,tsx,mjs,cjs}]
indent_size = 2
max_line_length = 100

# JSON/YAML
[*.{json,yml,yaml}]
indent_size = 2

# HTML/CSS
[*.{html,css,scss,sass,less}]
indent_size = 2
max_line_length = 120

# Shell scripts
[*.{sh,bash,zsh}]
indent_size = 2

# Configuration files
[*.{toml,ini,cfg}]
indent_size = 2
