From fd7c503cee5186d83b78aa33af53f7748794d7d6 Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Tue, 17 Oct 2023 03:43:10 +0200 Subject: [PATCH] home-manager: add .editorconfig Sets the basic editor settings to Home Manager style guide. --- .editorconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..a41f0862b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +# The JSON files contain newlines inconsistently +[*.json] +insert_final_newline = ignore + +# Makefiles always use tabs for indentation +[Makefile] +indent_style = tab + +[*.md] +trim_trailing_whitespace = false