From d426d1ade88bfdf611e1f150e5fc4f98a634ff66 Mon Sep 17 00:00:00 2001 From: Igor Velkov Date: Thu, 8 May 2025 00:16:14 +0300 Subject: [PATCH] copy .editorconfig from main armbian repo --- .editorconfig | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 7b816442..2c42e458 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,41 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = tab +indent_size = 4 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.patch] +trim_trailing_whitespace = false + [*.md] -tab_width = 2 +tab_width = 4 indent_style = space +indent_size = 4 + +[*.json] +indent_style = space +indent_size = 4 + +# Custom Armbian formatting for bash sources and configuration +[*.{sh,inc,conf,eos,wip,tvb,csc}] +indent_size = 4 +shell_variant = bash +binary_next_line = false +switch_case_indent = true +space_redirects = true +keep_padding = false +function_next_line = false + +[*.{yaml,yml}] +indent_style = space +indent_size = 2 + + +