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_comma becomes tailingComma.

optiondescriptiondefault
indent_stringIndentation to use, should be tabs or spaces but technically could be anything2 spaces
trailing_commaPut trailing commas for multiline arrays/objectsfalse
trailing_newlineAdd trailing newline to the sourcefalse
format_keyRemove unnecessary quote or choose better quote for property.false