readEditorConfigSources
readEditorConfigSources(
filePath,options?):Promise<EditorConfigSource[]>
Defined in: editorconfig.ts:36
Reads every .editorconfig governing filePath, outermost first.
Ascends from the file’s own directory, stopping at the first file declaring
root = true (that file included) or at
EditorConfigWalkOptions.stopAt. A directory with no .editorconfig,
or one that cannot be read, is skipped — the search is best-effort by design,
since an unreadable parent directory is a permissions fact rather than a
configuration error.
This is the host-bound half of EditorConfig support;
@ac-kit/format-editorconfig owns the parsing and resolution and stays
portable.
Parameters
Section titled “Parameters”filePath
Section titled “filePath”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<EditorConfigSource[]>