Skip to content

DetectedStyle

DetectedStyle = Pick<EditorConfigProperties, "indentStyle" | "indentSize" | "endOfLine" | "insertFinalNewline" | "trimTrailingWhitespace">

Defined in: text-style.ts:14

What a piece of text currently does, in EditorConfig’s own vocabulary.

Every field is optional for the same reason it is on EditorConfigProperties: the text may be silent about a property — no indented line reveals nothing about indent_style — and “unknown” is not “off”.