From 132f9851858986d78db0b08157256384bbc5738c 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 00000000..a41f0862 --- /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