Interface FormattingOptions

Value-object describing what options formatting should use.

interface FormattingOptions {
    insertFinalNewline?: boolean;
    insertSpaces: boolean;
    tabSize: number;
    trimFinalNewlines?: boolean;
    trimTrailingWhitespace?: boolean;
    [key: string]: undefined | string | number | boolean;
}

Indexable

  • [key: string]: undefined | string | number | boolean

    Signature for further properties.

Properties

insertFinalNewline?: boolean

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

3.15.0

insertSpaces: boolean

Prefer spaces over tabs.

tabSize: number

Size of a tab in spaces.

trimFinalNewlines?: boolean

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

3.15.0

trimTrailingWhitespace?: boolean

Trim trailing whitespace on a line.

3.15.0