From 9c2d4441fb3fb9eab22eb86988df1a7abb354a6d Mon Sep 17 00:00:00 2001 From: Kristopher Johnson Date: Wed, 27 May 2026 15:23:39 -0400 Subject: [PATCH] chore: add top-level `.editorconfig` matching the `ditto` repository --- .editorconfig | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..18ad2cbf6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,48 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{cjs,js,json,ts}] +indent_size = 2 + +[{*.go,*.go2}] +indent_style = tab + +[*.sh] +# like -i=4 +indent_style = space +indent_size = 4 +switch_case_indent = false + +# YAML files +[*.{yml,yaml}] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +quote_type = single + +[.github/workflows/**] +ignore = false + +[{.cxx,gradlew*,node_modules}] +ignore = true + +[target/**] +ignore = true + +[.direnv/**] +ignore = true + +[**/Pods/**] +ignore = true + +[**/node_modules/**] +ignore = true