EditorConfigProperties
EditorConfigProperties =
object
Defined in: properties.ts:9
The properties EditorConfig defines, with their spec spellings resolved to values a program can act on.
Every field is optional: an unset property means the file said nothing about
it, which is different from setting it off. "unset" in the source also
lands here as absent, since that is exactly what it means.
Properties
Section titled “Properties”charset?
Section titled “charset?”
readonlyoptionalcharset?:string
Defined in: properties.ts:23
charset.
endOfLine?
Section titled “endOfLine?”
readonlyoptionalendOfLine?:"lf"|"crlf"|"cr"
Defined in: properties.ts:20
end_of_line.
indentSize?
Section titled “indentSize?”
readonlyoptionalindentSize?:number|"tab"
Defined in: properties.ts:14
indent_size; "tab" defers to tabWidth.
indentStyle?
Section titled “indentStyle?”
readonlyoptionalindentStyle?:"tab"|"space"
Defined in: properties.ts:11
indent_style.
insertFinalNewline?
Section titled “insertFinalNewline?”
readonlyoptionalinsertFinalNewline?:boolean
Defined in: properties.ts:29
insert_final_newline.
maxLineLength?
Section titled “maxLineLength?”
readonlyoptionalmaxLineLength?:number|"off"
Defined in: properties.ts:32
max_line_length; "off" where the spec allows disabling it.
tabWidth?
Section titled “tabWidth?”
readonlyoptionaltabWidth?:number
Defined in: properties.ts:17
tab_width. Defaults to indent_size when that is a number.
trimTrailingWhitespace?
Section titled “trimTrailingWhitespace?”
readonlyoptionaltrimTrailingWhitespace?:boolean
Defined in: properties.ts:26
trim_trailing_whitespace.
unknown?
Section titled “unknown?”
readonlyoptionalunknown?:Readonly<Record<string,string>>
Defined in: properties.ts:35
Properties the spec does not define, preserved with their raw values.