# Functions
DefaultOptions returns the recommended formatter behaviour.
Format returns code that is equivalent to its input but better formatted according to the given options.
FormatNode returns code that is equivalent to its input but better formatted according to the given options.
SortImports sorts imports at the top of the file into alphabetical order by path.
# Constants
CommentStyleHash means #.
CommentStyleLeave means comments are left as they are found.
CommentStyleSlash means //.
StringStyleDouble means "this".
StringStyleLeave means strings are left how they were found.
StringStyleSingle means 'this'.
# Structs
AddPlusObject is a formatter pass that replaces e {} with e + {}.
EnforceCommentStyle is a formatter pass that ensures the comments are styled according to the configuration in Options.
EnforceMaxBlankLines is a formatter pass that ensures there are not too many blank lines in the code.
EnforceStringStyle is a formatter pass that manages string literals.
FixIndentation is a formatter pass that changes the indentation of new line fodder so that it follows the nested structure of the code.
FixNewlines is a formatter pass that adds newlines inside complex structures (arrays, objects etc.).
FixParens is a formatter pass that replaces ((e)) with (e).
FixTrailingCommas is a formatter pass that ensures trailing commas are present when a list is split over several lines.
NoRedundantSliceColon is a formatter pass that preserves fodder in the case of arr[1::] being formatted as arr[1:].
Options is a set of parameters that control the reformatter's behaviour.
PrettyFieldNames forces minimal syntax with field lookups and definitions.
RemovePlusObject is a formatter pass that replaces ((e)) with (e).
StripAllButComments removes all comments and newlines.
StripComments removes all comments.
StripEverything removes all comments and newlines.
# Type aliases
CommentStyle controls how the reformatter rewrites comments.
StringStyle controls how the reformatter rewrites string literals.