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
StyLua will now take into account if a table was originally expanded onto multiple lines. If so, StyLua won't attempt to collapse it
Added support for reading in from stdin for the CLI, use stylua - to make StyLua read from stdin, and a formatted output will be written to stdout
Added --check command line flag. If enabled, then StyLua will check through the files and emit a diff for files with incorrect formatting, exiting with status code 1. StyLua will not modifiy files
Renamed CLI argument --pattern to --glob (with short form -g). --glob can now accept multiple globs.
For example, using stylua -g *.lua -g !*.spec.lua . will format all Lua files apart from .spec.lua test files.
Added support for parsing a .styluaignore file, which follows a similar structure to .gitignore files. Any patterns matched inside of this file will be ignored.
Changed
Changed when a table will expand onto new lines. It will now expand after 80 characters have been exceeded, and takes indent level into account