Module configuration

Source

Structs§

Configuration
ConfigurationBuilder
TypeScript formatting configuration builder.

Enums§

BracePosition
Where to place the opening brace.
ForceMultiLine
Force multilines possibilities.
JsxMultiLineParens
Whether to surround a JSX element or fragment with parentheses when it’s the top JSX node and it spans multiple lines.
JsxQuoteStyle
Whether to use single or double quotes for JSX attributes.
MemberSpacing
How to space members.
NamedTypeImportsExportsOrder
NextControlFlowPosition
Where to place the next control flow within a control flow statement.
OperatorPosition
Where to place the operator for expressions that span multiple lines.
PreferHanging
QuoteProps
Behaviour to use for quotes on property names.
QuoteStyle
How to decide to use single or double quotes.
SameOrNextLinePosition
Where to place a node that could be on the same line or next line.
SemiColonOrComma
Whether to use semi-colons or commas.
SemiColons
Semi colon possibilities.
SortOrder
The kind of sort ordering to use.
TrailingCommas
Trailing comma possibilities.
UseBraces
If braces should be used or not in certain scenarios.
UseParentheses
Whether to use parentheses around a single parameter in an arrow function.

Functions§

resolve_config
Resolves configuration from a collection of key value strings.