Add editorconfig

This commit is contained in:
2026-03-22 23:52:03 +02:00
parent f8e79fb422
commit b781415bb9

36
.editorconfig Normal file
View File

@@ -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