From 7fc0a8716e753f0341300ebe34cda5f8a90527f8 Mon Sep 17 00:00:00 2001 From: awwpotato <153149335+awwpotato@users.noreply.github.com> Date: Fri, 7 Mar 2025 11:55:29 -0800 Subject: [PATCH] stylix: add editorconfig (#945) Add EditorConfig complementary to the existing formatter checks: > EditorConfig helps maintain consistent coding styles for multiple > developers working on the same project across various editors and > IDEs. > > -- EditorConfig, https://editorconfig.org Link: https://github.com/danth/stylix/pull/945 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- .editorconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cef70f21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# http://editorconfig.org +root = true + +[*] +end_of_line = lf +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +[*.{diff,patch}] +end_of_line = unset +insert_final_newline = unset +trim_trailing_whitespace = unset + +[*.{md,nix,hx,json,css,html,xml,svg,tmTheme}{,.mustache}] +indent_size = 2 + +[*.{bash,py,sh}{,.mustache}] +indent_size = 4