diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..a1d04f95 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# EditorConfig helps maintain consistent coding styles across different editors. +# See https://editorconfig.org for details. +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 + +[*.{yml,yaml}] +indent_size = 2 + +[*.json] +indent_size = 2 + +[*.md] +indent_size = 2 +# Trailing whitespace is significant in Markdown (line breaks), so leave it. +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab