lib/load-config.js
function loadYaml (filename) {
    const file = findFile(`${filename}.yml`)
    return file ? YAML.parse(fs.readFileSync(file, 'utf8')) : {}
  }
function loadYaml (filename) {
    const file = findFile(`${filename}.yml`)
    return file ? YAML.parse(fs.readFileSync(file, 'utf8')) : {}
  }
function loadYaml ( filename ) { const file = findFile ( ` ${ filename } ` ) return file ? YAML . parse ( fs . readFileSync ( file , 'utf8' ) ) : { } }
Return the JSON of a YAML file if it found, otherwise return an empty object.
Return the JSON of a YAML file if it found otherwise return an empty object .