stylua

An opinionated Lua code formatter. More information: https://github.com/JohnnyMorganz/StyLua.

stylua path/to/file_or_directory

stylua --check path/to/file

stylua --config-path path/to/config_file path/to/file

stylua - < path/to/file.lua

stylua --indent-type Spaces --quote-style AutoPreferSingle path/to/file_or_directory