Download Latest Version stylua-linux-x86_64-musl.zip (3.1 MB)
Email in envelope

Get an email when there's a new version of StyLua

Home / v2.1.0
Name Modified Size InfoDownloads / Week
Parent folder
stylua-windows-x86_64.zip 2025-04-21 2.6 MB
stylua-linux-x86_64-musl.zip 2025-04-21 3.1 MB
stylua-linux-aarch64-musl.zip 2025-04-21 3.0 MB
stylua-macos-aarch64.zip 2025-04-21 2.8 MB
stylua-macos-x86_64.zip 2025-04-21 2.9 MB
stylua-linux-x86_64.zip 2025-04-21 3.1 MB
stylua-linux-aarch64.zip 2025-04-21 3.0 MB
README.md 2025-04-21 3.2 kB
v2.1.0 source code.tar.gz 2025-04-21 430.1 kB
v2.1.0 source code.zip 2025-04-21 706.6 kB
Totals: 10 Items   21.7 MB 0

[2.1.0] - 2025-04-21

Added

  • Luau: Added support for parsing user-defined type functions (#938)
  • Luau: Added support for parsing attributes (@native / @deprecated) on functions
  • Added support for CfxLua (FiveM) syntax formatting. This is available with syntax = "cfxlua" (#855)
  • Added a pre-built binary release for stylua-linux-aarch64-musl.zip
  • Added error hints on parse failurse when a potential Lua syntax conflict is noticed (e.g., Lua 5.2 vs Luau syntax for labels :: and generics >>) (#960 / #962)

Changed

  • Updated StyLua release GitHub action to ubuntu-22.04 workers due to GitHub's deprecation of ubuntu-20.04. This may mean the pre-built release artifacts published to GitHub no longer work on ubuntu-20.04 and require a manual build.

Fixed

  • Luau: fixed parentheses incorrectly removed in (expr :: assertion) < foo when multilining the expression, leading to a syntax error (#940)
  • Fixed panic when attempting to format a file outside of the current working directory when --respect-ignores is enabled (#969)
  • Fixed unnecessary semicolons being introduced at the end of statements when incorrectly determined as ambiguous (#963)
  • Fixed malformed formatting of function calls where parentheses are removed but there are comments in between the parentheses and the expression. Now, we will keep the parentheses in these cases, except for trailing comments (#964)
  • Fixed malformed formatting of table field expression when there are comments in between the equals and the value (#942)

External Contributions

New Contributors

Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v2.0.2...v2.1.0

Source: README.md, updated 2025-04-21