You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added flag --respect-ignores. By default, files explicitly passed to stylua (e.g. stylua foo.lua) will always be formatted, regardless of whether the file is ignored. Enabling this flag will consider .styluaignore or glob matches before formatting the file. (#765)
Note: for backwards compatibility reasons, formatting via stdin always respects ignores. This behaviour will change in the next major release
Changed
Updated parser crate with following changes:
Support Luau floor division (//)
Fix Luau string interpolation parsing
Fix Luau \z escape parsing
Simplified access and modification patterns for StyLua configuration. You can now access the properties directly
Deprecated: the old access patterns of .property() and .with_property() are now deprecated
Breaking Change (WASM): due to JS/TS lack of differentiation between .property / .property() implementation, the .property() functions were removed from WASM output.
Multiline comments before commas will now remain in place and not move to after the comma. This is to support type-assertions-via-comments that is commonly used by some language servers. (#778)
Fixed
Wasm build now correctly supports configuring sort requires (#818)
This discussion was created from the release v0.19.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
[0.19.0] - 2023-11-12
Added
--respect-ignores
. By default, files explicitly passed to stylua (e.g.stylua foo.lua
) will always be formatted, regardless of whether the file is ignored. Enabling this flag will consider.styluaignore
or glob matches before formatting the file. (#765)Changed
Updated parser crate with following changes:
//
)\z
escape parsingSimplified access and modification patterns for StyLua configuration. You can now access the properties directly
.property()
and.with_property()
are now deprecated.property
/.property()
implementation, the.property()
functions were removed from WASM output.Multiline comments before commas will now remain in place and not move to after the comma. This is to support type-assertions-via-comments that is commonly used by some language servers. (#778)
Fixed
This discussion was created from the release v0.19.0.
Beta Was this translation helpful? Give feedback.
All reactions