From e0209b5100df990a783d8ea9a89c56526996511e Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 8 Sep 2024 10:49:34 -0400 Subject: [PATCH] feat: add .editorconfig file Add a `.editorconfig` file at the top-level of the source tree to maintain consistency for whitespace usage across various editors and IDEs, e.g., VSCode, Notepad++, NeoVim, etc. The current definitions match the existing code conventions of using 4-space tabs for indentation. --- .editorconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..926fd0dab --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# EditorConfig (https://editorconfig.org) + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Set default charset +[*.{lua,toc,xml}] +charset = utf-8 + +# 4 space indentation +[*.lua] +indent_style = space +indent_size = 4