From 6b19e8354cb84e5f8e12729e00fb3055492847c3 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 1 Nov 2024 19:33:14 +0100 Subject: [PATCH] chore: Update lua settings --- .stylua.toml | 2 ++ selene.toml | 2 +- vim.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .stylua.toml diff --git a/.stylua.toml b/.stylua.toml new file mode 100644 index 0000000..0435f67 --- /dev/null +++ b/.stylua.toml @@ -0,0 +1,2 @@ +indent_type = "Spaces" +indent_width = 2 diff --git a/selene.toml b/selene.toml index 6a317df..6052029 100644 --- a/selene.toml +++ b/selene.toml @@ -1,5 +1,5 @@ # https://github.com/Kampfkarren/selene/issues/284 -std="lua52+vim" +std="lua54+vim" [rules] mixed_table = "allow" diff --git a/vim.toml b/vim.toml index 0fa5c4f..13b1c0f 100644 --- a/vim.toml +++ b/vim.toml @@ -1,2 +1,55 @@ +[selene] +base = "lua54" +name = "vim" + [vim] any = true + +[[describe.args]] +type = "string" +[[describe.args]] +type = "function" + +[[it.args]] +type = "string" +[[it.args]] +type = "function" + +[[before_each.args]] +type = "function" +[[after_each.args]] +type = "function" + +[assert.is_not] +any = true + +[assert.matches] +any = true + +[assert.has_error] +any = true + +[[assert.equals.args]] +type = "any" +[[assert.equals.args]] +type = "any" +[[assert.equals.args]] +type = "any" +required = false + +[[assert.same.args]] +type = "any" +[[assert.same.args]] +type = "any" + +[[assert.truthy.args]] +type = "any" + +[[assert.falsy.args]] +type = "any" + +[[assert.spy.args]] +type = "any" + +[[assert.stub.args]] +type = "any"