From b781415bb9b3dca6f5a1845e1e9041bcf39a653c Mon Sep 17 00:00:00 2001 From: Jonathan Agmon Date: Sun, 22 Mar 2026 23:52:03 +0200 Subject: [PATCH] Add editorconfig --- .editorconfig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f98702d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,36 @@ +# EditorConfig helps maintain consistent coding styles across different editors +# See https://editorconfig.org + +# Top-most EditorConfig file +root = true + +# Default settings for all files +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# YAML files - 2 spaces +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +# JSON files - 2 spaces +[*.json] +indent_style = space +indent_size = 2 + +# JavaScript/TypeScript - 2 spaces +[*.{js,jsx,ts,tsx}] +indent_style = space +indent_size = 2 + +# Python - 4 spaces (PEP 8) +[*.py] +indent_style = space +indent_size = 4 + +# Markdown - no trimming +[*.md] +trim_trailing_whitespace = false