OptionalbracketOptionalcheckLeave a file unchanged when a comment at its top contains
@noformat or @noprettier. Default: false.
OptionalcommentWrap column for wrapComments. Defaults to lineWidth.
OptionalcompactIf true, enum/union bodies (and single-field table/struct bodies)
that fit within lineWidth collapse onto one line. Doc comments,
block comments, and per-value metadata always force expansion.
Default: true.
OptionalendLine endings: "lf", "crlf", or "auto" to keep the ones the
source uses (decided by its first line break). Takes precedence
over newline. Default: "lf".
OptionalindentSpaces per indent level (or tabs per level when useTabs is true).
Default: 2.
OptionallineTarget column for "does it fit on one line" decisions, used by
compactSingleLine and wrapComments. Default: 80.
OptionalmaxMaximum consecutive blank lines preserved between top-level declarations. Runs of more newlines collapse to this many. Default: 1.
OptionalnewlineNewline style at end of every emitted line. Default: "\n".
Optionalobject"preserve" keeps a body expanded when the source has a line break
between its { and the first item, as Prettier does for objects;
"collapse" puts every body that fits on one line (see
compactSingleLine). Default: "preserve".
OptionalrequireFormat only files with a comment at their top containing @format
or @prettier; leave every other file unchanged. Default: false.
Optionaltrailing"all" puts a comma after the last value of an enum or union
written one value per line; "none" leaves it off. A body
collapsed onto one line never gets one. Same name and default as
Prettier's option. Default: "all".
OptionalunsafeSkip the checks that the output keeps every comment and code token of the input. Only for working around a bug in those checks. Default: false.
OptionaluseUse literal tab characters for indentation instead of spaces. When
true, each indent level emits indent tab characters (so the
combination useTabs: true, indent: 1 is one tab per level — the
usual setting; useTabs: true, indent: 2 would emit two tabs per
level). Default: false.
OptionalwrapIf true, line comments longer than commentWidth are reflowed at
whitespace boundaries. URL-shaped tokens (https://…) are never
split mid-token. Block comments and doc comments are not touched.
Default: false.
Spaces inside the braces of a body collapsed onto one line:
{ a, b }when true,{a, b}when false. Default: true.