Value-object describing what options formatting should use. This object can contain additional fields of type Bool/Int/Float/String.

Fields

@:optionaloptionaltrimTrailingWhitespace:Null<Bool>

Trim trailing whitespaces on a line.

Available since

3.15.0

.

@:optionaloptionaltrimFinalNewlines:Null<Bool>

Trim all newlines after the final newline at the end of the file.

Available since

3.15.0

.

tabSize:Int

Size of a tab in spaces.

insertSpaces:Bool

Prefer spaces over tabs.

@:optionaloptionalinsertFinalNewline:Null<Bool>

Insert a newline character at the end of the file if one does not exist.

Available since

3.15.0

.