resolveEditorConfig
resolveEditorConfig(
sources,path):EditorConfigProperties
Defined in: resolve-editorconfig.ts:65
Resolves the properties that apply to path.
sources must be ordered outermost first — the root of the search down
to the directory holding the file — because a later section overrides an
earlier one, and a nearer .editorconfig overrides a further one. Reading
the files and stopping at root = true is the caller’s job; that walk is
host-bound, and keeping it out is what lets this package stay portable.
indent_size and tab_width are cross-filled per the spec: each defaults to
the other where only one was given.
Parameters
Section titled “Parameters”sources
Section titled “sources”readonly EditorConfigSource[]
string