fix(lua): fix some emmyluals warnings

This commit is contained in:
Christian Clason 2025-12-05 15:32:28 +01:00 committed by Christian Clason
parent 75797cdd8a
commit e0eec76dad
6 changed files with 37 additions and 13 deletions

25
.emmyrc.json Normal file
View file

@ -0,0 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json",
"format": {
"externalTool": {
"program": "stylua",
"args": [
"-",
"--stdin-filepath",
"${file}"
]
}
},
"diagnostics": {
"disable": [
"unnecessary-if"
]
},
"codeAction": {
"insertSpace": true
},
"strict": {
"typeCall": true,
"arrayIndex": true
}
}