Modules§
Macros§
Structs§
- Config
- The configuration to use when formatting.
- Range
- An optional formatting range. If provided, only content within these boundaries (inclusive) will be formatted. Both boundaries are optional, and are given as byte offsets from the beginning of the file.
- Sort
Requires Config - Configuration for the Sort Requires codemod
Enums§
- Call
Paren Type - When to use call parentheses
- Collapse
Simple Statement - What mode to use if we want to collapse simple functions / guard statements
- Error
- A formatting error
- Indent
Type - The type of indents to use when indenting
- Line
Endings - The type of line endings to use at the end of a line
- LuaVersion
- The Lua syntax version to use
- Output
Verification - The type of verification to perform to validate that the output AST is still correct.
- Quote
Style - The style of quotes to use within string literals
- Space
After Function Names - When to use spaces after function names
Functions§
- format_
ast - Formats given
Ast
- format_
code - Formats given Lua code