Download Latest Version stylua-linux-x86_64-musl.zip (3.5 MB) Google Add to Preferred Sources
Home / v2.6.0
Name Modified Size InfoDownloads / Week
Parent folder
stylua-windows-x86_64.zip 2026-10-10 2.9 MB
stylua-macos-aarch64.zip 2026-10-10 3.0 MB
stylua-linux-x86_64-musl.zip 2026-10-10 3.5 MB
stylua-linux-x86_64.zip 2026-10-10 3.3 MB
stylua-macos-x86_64.zip 2026-10-10 3.1 MB
stylua-linux-aarch64-musl.zip 2026-10-10 3.4 MB
stylua-linux-aarch64.zip 2026-10-10 3.3 MB
README.md 2026-10-10 3.1 kB
v2.6.0 source code.tar.gz 2026-10-10 468.0 kB
v2.6.0 source code.zip 2026-10-10 766.6 kB
Totals: 10 Items   23.8 MB 2

[2.6.0] - 2026-10-10

Added

  • Luau: Added support for if local / if const condition bindings in both if statements and if expressions (e.g. if local x = getValue() then ... end)
  • Added Input mode for collapse_simple_statement, preserving whether simple statements are single-line or multi-line in the input while still formatting their contents (#1112)

Fixed

  • Fixed range formatting indenting statements one level too shallow when nested inside a function expression within a table constructor (#1145)
  • Fixed -- stylua: ignore start/end ranges inside multiline tables reformatting the ignored fields (#1134)
  • When using range formatting, semicolons outside of the provided range are no longer incorrectly formatted (#1147)
  • Luau: Fixed sort requires not recognizing imports declared with const, e.g. const Foo = require(path)
  • Luau: Fixed the read/write access modifier merging into the element type in array type shorthand, changing the meaning of the code ({ read Foo } was formatted as { readFoo }) (#1126)
  • Fixed single-line comments in CRLF files gaining an extra carriage return (\r\r\n) on every format when line_endings = "Windows", and keeping their original \r\n when formatting to Unix line endings (#1167)

External Contributions

New Contributors

Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v2.5.2...v2.6.0

Source: README.md, updated 2026-10-10