From 5fa5e70aad19643c97f90decf4d0a3ac58f4e95f Mon Sep 17 00:00:00 2001 From: Tyler Miller Date: Fri, 19 Jul 2024 20:03:27 -0700 Subject: [PATCH] chore: add .editorconfig file --- .editorconfig | 22 ++++++++++++++++++++++ .luarc.json | 10 ++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c2966b6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +root = false + +[*] +# e.g. tabstop +tab_width = unset + +[*.sh] +indent_size = 4 +indent_style = space + +[{.gitconfig,**/.git/config,config.worktree}] +indent_style = tab + +[*.{lua,nix,scm,json,yml,yaml}] +indent_style = space +indent_size = 2 + +[*.lua] +max_line_length = 90 + +[*.{yml,yaml}] +quote_type = single diff --git a/.luarc.json b/.luarc.json index 0bd22f3..98a61b1 100644 --- a/.luarc.json +++ b/.luarc.json @@ -11,6 +11,16 @@ "checkThirdParty": "Disable", "library": [ "test/plenary" + ], + "ignoreDir": [ + "/.meta", + "/.log", + ".vscode" + ] + }, + "diagnostics": { + "unusedLocalExclude": [ + "_*" ] } }