Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
This release only affects users of the luau
feature flag
luau
feature flag. (#403)Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v0.12.4...v0.12.5
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v0.12.2...v0.12.3
Published by github-actions[bot] over 2 years ago
This release only affects users of the luau
feature flag.
luau
feature flag. (#358)luau
feature flag. (#360)Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v0.12.1...v0.12.2
Published by github-actions[bot] over 2 years ago
luau
feature flag. (#349)luau
feature flag).luau
feature flag. (#352)luau
feature flag. (#351)|
symbol in a type info being lost when hanging the type under the luau
feature flag.call_parentheses
is set to not Always
. (#356)format_contained_punctuated_multiline
by @JohnnyMorganz in https://github.com/JohnnyMorganz/StyLua/pull/353
Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v0.12.0...v0.12.1
Published by github-actions[bot] over 2 years ago
call_parentheses
:Always
(default), NoSingleString
, NoSingleTable
, None
. (#329)luau
feature flag. (#289)luau
feature flag.luau
feature flag. (#333)luau
feature flag. (#345)no_call_parentheses
has been deprecated. Use call_parentheses = "None"
instead.Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v0.11.3...v0.12.0
Published by github-actions[bot] almost 3 years ago
luau
feature flag. (#315)Full Changelog: https://github.com/JohnnyMorganz/StyLua/compare/v0.11.2...v0.11.3
Published by github-actions[bot] almost 3 years ago
[[string]]
) used as an index or table key (i.e. [ [[string]] ]
) being removed, leading to a syntax error. (#293)luau
feature flag. (#297)foo[index]
) incorrectly handled leading to malformed formatting. (#304)Published by github-actions[bot] almost 3 years ago
luau
parsing. (#229, #231)**/*.luau
(as well as **/*.lua
) when the luau
flag is enabled. (#291)--num-threads 1
causing a deadlock. (#281)Published by github-actions[bot] about 3 years ago
$XDG_CONFIG_HOME
and $HOME/.config
) not being looked into correctly on macOS when --search-parent-directories
is used. (#260)luau
feature flag. (#256)Published by github-actions[bot] about 3 years ago
luau
feature flag.Published by github-actions[bot] over 3 years ago
--verify
which, when enabled, attempts to verify the generated output AST with the input AST to detect any changes to code correctness. Useful for adopting StyLua into a large codebase, at the cost of slower processing. (#199)--column-width
, --indent-type
, --indent-width
, --line-endings
and --quote-style
, which, when provided, will override any configuration setting inferred from the default or a stylua.toml
. (#213)--num-threads
-- stylua: ignore start
to disable formatting and -- stylua: ignore end
to re-enable it. The comment must be preceding a statement and disabling formatting cannot cross block scope boundaries. (#198)luau
feature flag) now use the same formatting strategy as normal expression tables, so that their formatting is more aligned.luau
feature flag.--check
when taking input from stdin.1
. Other errors (e.g. parse errors or internal errors) will now exit with status code of 2
.luau
feature flag. (#219)Published by github-actions[bot] over 3 years ago
--verbose
to print debug information, including finding config files and time taken to format files.Published by github-actions[bot] over 3 years ago
0.12.1
to fix parsing bugsluau
feature flag.luau
feature flag. (#201)Published by github-actions[bot] over 3 years ago
--stdin-filepath
option to specify location of file being taken in from stdin. This is optional and is only used to determine where to find the configuration file. If not provided, we default to searching from current working directory. (#192)Published by github-actions[bot] over 3 years ago
stylua.toml
and its hidden counterpart, .stylua.toml
. (#145)--search-parent-directories
. If enabled, we will look in parent directories for a configuration file, or look in $XDG_CONFIG_HOME
or $XDG_CONFIG_HOME/stylua
. (#127, #146).lua
ending, the *.lua
glob check is skipped. (#170)luau
feature flag. (#165)no_call_parentheses
. Enabling this config will remove parentheses around function calls taking a single string/table as an argument. This config was added for adoption purposes. (#133)("foooo" .. "barrrrrrr" .. "bazzzzzz"):format(...)
) will now hang multiline (#139)local function noop() end
. (#188)local test --[[foo]] = true
-> local test --[[foo]] = true
) (#136)- -foo
/-(-foo)
) being formatted as --foo
leading to a comment syntax error. Parentheses are now enforced: -(-foo)
(#171)function call x new statement
ambiguity when next statement is an assignment with the first variable being a parentheses var expression (#173)if condition then
or while condition do
lines - improved assurance that they will hang multiline (#164)then
or do
token when if ... then
or while ... do
are multiline.luau
feature flag (#166)luau
feature flag (#166)Published by JohnnyMorganz over 3 years ago
Published by JohnnyMorganz over 3 years ago
if (foo and (not bar or baz)) then ... end
turns to if foo and (not bar or baz) then ... end
("hello"):len()
)Published by JohnnyMorganz over 3 years ago
({}):foo()
Published by JohnnyMorganz over 3 years ago
do
in a while ... do
statement not correctly indented when the condition spans multiple lines