From 2050157aa7a4803d8b382a6dfdd71d55026891b6 Mon Sep 17 00:00:00 2001 From: "L. Yeung" Date: Tue, 17 Sep 2024 03:16:40 +0800 Subject: [PATCH] chore: add coding styles for Lua --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.editorconfig b/.editorconfig index 3ec5e57c..6cde72b1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -32,3 +32,17 @@ trim_trailing_whitespace = false [*.{ps1,psd1,psm1}] indent_size = 4 charset = utf-8-bom + +; Lua +[*.lua] +line_space_after_comment = max(2) +line_space_after_do_statement = max(2) +line_space_after_expression_statement = max(2) +line_space_after_for_statement = max(2) +line_space_after_function_statement = fixed(2) +line_space_after_if_statement = max(2) +line_space_after_local_or_assign_statement = max(2) +line_space_after_repeat_statement = max(2) +line_space_after_while_statement = max(2) +max_line_length = unset +quote_style = single