From fb768f1f02403a48a2282707ce45bd35f39a6de9 Mon Sep 17 00:00:00 2001 From: Saereth Date: Sun, 19 Apr 2026 11:49:05 -0700 Subject: [PATCH] Add .editorconfig for style guide hygiene Codifies the indent, line-ending, and whitespace rules from STYLE_GUIDE.md so editors apply them automatically. Java uses tabs conventions (JSON/YAML 2-space, Markdown keeps trailing whitespace for hard line breaks as reqired). --- .editorconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..c11a5c19c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.java] +indent_style = tab +indent_size = 4 +tab_width = 4 + +[*.{gradle,properties,toml,cfg,prefs}] +indent_style = tab +indent_size = 4 +tab_width = 4 + +[*.{json,mcmeta,yml,yaml}] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false + +[{Makefile,*.bat}] +indent_style = tab