From 21a506388af38e806d61a1bccb85c325f542684a Mon Sep 17 00:00:00 2001 From: Romain Bertrand Date: Mon, 5 Jan 2026 12:57:57 +0100 Subject: [PATCH] tools: add a basic .editorconfig --- .editorconfig | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1e5c995 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,47 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# Go files - use tabs (Go standard) +[*.go] +indent_style = tab +indent_size = 4 + +# Go mod files +[go.{mod,sum}] +indent_style = tab +indent_size = 4 + +# Makefiles - must use tabs +[{Makefile,*.mk}] +indent_style = tab +indent_size = 4 + +# YAML files +[*.{yml,yaml}] +indent_style = space +indent_size = 2 + +# JSON files +[*.json] +indent_style = space +indent_size = 2 + +# Markdown files +[*.md] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = false + +# Shell scripts +[*.sh] +indent_style = space +indent_size = 2