# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# All files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

# JSON, YAML, Markdown files
[*.{json,yml,yaml,md}]
indent_style = space
indent_size = 2

# PHP files - WordPress standards
[*.php]
indent_style = tab
indent_size = 4
max_line_length = 120

# JavaScript and CSS files
[*.{js,css,scss,sass}]
indent_style = tab
indent_size = 4

# Configuration files
[*.{xml,ini,conf}]
indent_style = tab
indent_size = 4

# Shell scripts
[*.{sh,bash}]
indent_style = tab
indent_size = 4

# Make files
[{Makefile,makefile,*.mk}]
indent_style = tab
indent_size = 4

# Specific WordPress files
[{*.txt,LICENSE,README}]
trim_trailing_whitespace = false