Skip to content

Commit

Permalink
chore: Update lua settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Nov 1, 2024
1 parent 430ae0c commit 6b19e83
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
indent_type = "Spaces"
indent_width = 2
2 changes: 1 addition & 1 deletion selene.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://github.com/Kampfkarren/selene/issues/284
std="lua52+vim"
std="lua54+vim"

[rules]
mixed_table = "allow"
53 changes: 53 additions & 0 deletions vim.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 6b19e83

Please sign in to comment.