Vscode-Luau-Analyzer
Vscode port of zeux's SublimeLinter-Luau.
NOTE: You need to have v512 luau-analyzer or greater in your environment path! (Found here)
Vscode Marketplace Link
Use for Roblox
Method 1
If you're using this extension for roblox development, you should consider creating a .luaurc
file in your project root.
Heres a small template:
{
"languageMode": "strict", // nocheck, nonstrict, strict
"lint": {"*": true, "LocalUnused": false},
"lintErrors": true,
"globals": [
"delay",
"DebuggerManager",
"elapsedTime",
"PluginManager",
"printidentity",
"settings",
"spawn",
"stats",
"tick",
"time",
"UserSettings",
"version",
"wait",
"warn",
"Enum",
"game",
"plugin",
"shared",
"script",
"workspace"
]
}
Method 2
Download install JohnnyMorganz's luau-analyze-rojo.
Go to the extensions settings and change Use Luau Analyze Rojo
to true. (You might also need to change Analyzer Command
)
Download the latest global types from here. Name it globalTypes.d.lua
, or change the default in the configuration.
If your rojo project is not named default.project.json
, then you can change it in the configurations.