From b0097d6e0378cd7701d3fdd951fd9c3e82e40f58 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..4d1bd82ad --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig (https://editorconfig.org) + +# Top-most EditorConfig file. +root = true + +# Unix-style newlines in every file. +[*] +end_of_line = lf + +# Set default charset. +[*.{lua,toc,xml}] +charset = utf-8 + +# 4-space indentation. +[*.lua] +indent_style = space +indent_size = 4