A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua, built using full-moon. StyLua is inspired by the likes of prettier, it parses your Lua codebase, and prints it back out from scratch, enforcing a consistent code style.
StyLua mainly follows the Roblox Lua Style Guide, with a few deviations.
What's new in 2.5.2
There were no code changes in this release, it was just a fix to npm publishing, see https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.5.0 for the main updates
[2.5.2] - 2026-05-16
Fixed
Fixed npm publishing failing provenance validation due to normalization of repository URL