Configuration
Formatter Options
This page contains a list of formatting options the formatter accepts.
In some environments (e.g. in Visual Studio Code and JavaScript) the option keys are camelCase to better fit the conventions. For example
tailing_commabecomestailingComma.
| option | description | default |
|---|---|---|
| indent_string | Indentation to use, should be tabs or spaces but technically could be anything | 2 spaces |
| trailing_comma | Put trailing commas for multiline arrays/objects | false |
| trailing_newline | Add trailing newline to the source | false |
| format_key | Remove unnecessary quote or choose better quote for property. | false |