From dfb4f1838e3dbe6aa5e063b0552ef3cdb6762000 Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Wed, 28 Feb 2024 16:37:14 -0600 Subject: [PATCH] Move lua style config to editorconfig --- .editorconfig | 35 +++++++++++++++++++---------------- .luarc.json | 5 +---- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.editorconfig b/.editorconfig index 12af57e..50a7c86 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,16 +1,19 @@ -# EditorConfig is awesome: https://EditorConfig.org - -# top-most EditorConfig file -root = true - -[*] -indent_style = tab -indent_size = 4 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.{lua,toc,xml}] -end_of_line = crlf -insert_final_newline = false \ No newline at end of file +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = tab +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.{lua,toc,xml}] +end_of_line = crlf +insert_final_newline = false + +[*.lua] +trailing_table_separator = smart diff --git a/.luarc.json b/.luarc.json index cc77038..aa30547 100644 --- a/.luarc.json +++ b/.luarc.json @@ -3,8 +3,5 @@ "runtime.version": "Lua 5.1", "workspace.ignoreDir": [ ".vscode" - ], - "format.defaultConfig": { - "trailing_table_separator": "always" - } + ] }