Update tooling, fix luau analyze errors

This commit is contained in:
Filip Tibell 2024-01-04 20:00:44 +01:00
parent c9ce29741b
commit 5040deddb6
No known key found for this signature in database
4 changed files with 9 additions and 8 deletions

View file

@ -65,9 +65,10 @@ fmt-check:
analyze: analyze:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
luau-lsp analyze .lune scripts tests types \ luau-lsp analyze \
--settings=".vscode/settings.json" \ --settings=".vscode/settings.json" \
--ignore="tests/roblox/rbx-test-files/**" --ignore="tests/roblox/rbx-test-files/**" \
.lune scripts tests types
# Zips up the built binary into a single zip file # Zips up the built binary into a single zip file
[no-exit-message] [no-exit-message]

View file

@ -171,7 +171,7 @@ local apiResult = net.request({
method = "PATCH", method = "PATCH",
headers = { headers = {
["Content-Type"] = "application/json", ["Content-Type"] = "application/json",
}, } :: { [string]: string },
body = net.jsonEncode({ body = net.jsonEncode({
title = "foo", title = "foo",
body = "bar", body = "bar",

View file

@ -1,4 +1,4 @@
[tools] [tools]
luau-lsp = "JohnnyMorganz/luau-lsp@1.24.1" luau-lsp = "JohnnyMorganz/luau-lsp@1.27.0"
selene = "Kampfkarren/selene@0.25.0" selene = "Kampfkarren/selene@0.26.1"
stylua = "JohnnyMorganz/StyLua@0.18.2" stylua = "JohnnyMorganz/StyLua@0.19.1"

View file

@ -6,7 +6,7 @@ local response = net.request({
url = "https://httpbingo.org/gzip", url = "https://httpbingo.org/gzip",
headers = { headers = {
["Accept-Encoding"] = "gzip", ["Accept-Encoding"] = "gzip",
}, } :: { [string]: string },
}) })
assert( assert(
@ -33,7 +33,7 @@ local response2 = net.request({
url = "https://httpbingo.org/gzip", url = "https://httpbingo.org/gzip",
headers = { headers = {
["Accept-Encoding"] = "gzip", ["Accept-Encoding"] = "gzip",
}, } :: { [string]: string },
options = { decompress = false }, options = { decompress = false },
}) })