From 5040deddb6b10515e2cd577aa193b094911d78ae Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 4 Jan 2024 20:00:44 +0100 Subject: [PATCH] Update tooling, fix luau analyze errors --- .justfile | 5 +++-- .lune/hello_lune.luau | 2 +- aftman.toml | 6 +++--- tests/net/request/compression.luau | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.justfile b/.justfile index 99ea8ae..3ea08d6 100644 --- a/.justfile +++ b/.justfile @@ -65,9 +65,10 @@ fmt-check: analyze: #!/usr/bin/env bash set -euo pipefail - luau-lsp analyze .lune scripts tests types \ + luau-lsp analyze \ --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 [no-exit-message] diff --git a/.lune/hello_lune.luau b/.lune/hello_lune.luau index 4c9afec..197fe32 100644 --- a/.lune/hello_lune.luau +++ b/.lune/hello_lune.luau @@ -171,7 +171,7 @@ local apiResult = net.request({ method = "PATCH", headers = { ["Content-Type"] = "application/json", - }, + } :: { [string]: string }, body = net.jsonEncode({ title = "foo", body = "bar", diff --git a/aftman.toml b/aftman.toml index 7c2a05f..38cb739 100644 --- a/aftman.toml +++ b/aftman.toml @@ -1,4 +1,4 @@ [tools] -luau-lsp = "JohnnyMorganz/luau-lsp@1.24.1" -selene = "Kampfkarren/selene@0.25.0" -stylua = "JohnnyMorganz/StyLua@0.18.2" +luau-lsp = "JohnnyMorganz/luau-lsp@1.27.0" +selene = "Kampfkarren/selene@0.26.1" +stylua = "JohnnyMorganz/StyLua@0.19.1" diff --git a/tests/net/request/compression.luau b/tests/net/request/compression.luau index 6fd6b49..8399fff 100644 --- a/tests/net/request/compression.luau +++ b/tests/net/request/compression.luau @@ -6,7 +6,7 @@ local response = net.request({ url = "https://httpbingo.org/gzip", headers = { ["Accept-Encoding"] = "gzip", - }, + } :: { [string]: string }, }) assert( @@ -33,7 +33,7 @@ local response2 = net.request({ url = "https://httpbingo.org/gzip", headers = { ["Accept-Encoding"] = "gzip", - }, + } :: { [string]: string }, options = { decompress = false }, })