StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

An opinionated Lua code formatter

Results 136 StyLua issues
Sort by recently updated
recently updated
newest added

As title mentioned. I came across this while testing this in a diff environment that had symlinks and it worked with this flag and didn't without

enhancement

add AutoPreferInterp and ForceInterp to quote_style people can select to use \`Hello, {expr} World\` quotes by default

enhancement
luau

There's no way to enforce a consistent style based on the number of entries in a table. For readability, it would be beneficial to always expand tables that contain several...

Support for [teal](https://www.github.com/teal-language/tl), which is a strongly-typed dialect of lua, would be great!

enhancement
external

workaround is to change all integer divisions in my code to math.floor(13/3) but this is much slower in lua

I'm using Stylua 2.1.0 . I've tried both "Luau" and "All" syntax values. According to a previous issue (#613), support for the character was fixed for 5.2 and above. Perhaps...

With the introduction of `FFlagDebugLuauStringSingletonBasedOnQuotes` in luau 0.688, double-quotes and single-quotes now have different functionalities in type checking: "...simplifies the singleton inference model a lot. With this flag enabled, the...

enhancement
external
luau

I would like to ask for the feature to be able to collapse all simple unnamed functions assigned to something, but not declarations of named functions. Examples Collapse this createSomething(5,...

When using stylua as a library, the only formatting interface it provides are the `format_code` and `format_ast` functions, which both already expect a config file. To replicate the config file...