# EditorConfig — https://editorconfig.org
# Aligns with WordPress Coding Standards (WPCS) for PHP.
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# PHP: tabs (WPCS). Indent size 4 (renders as 1 tab).
[*.php]
indent_style = tab
indent_size = 4

# JS / CSS: 2 spaces (project convention; matches widget.css and *.js).
[*.{js,css}]
indent_style = space
indent_size = 2

# JSON: 2 spaces.
[*.json]
indent_style = space
indent_size = 2

# Markdown: trailing whitespace can be significant (hard breaks).
[*.md]
trim_trailing_whitespace = false
