code: function initConfig(conf) {
    const result = Object.assign({}, conf);
    if (conf.filename) {
      result.filepath = path.dirname(conf.filename);
    }
    return result;
  }
docs: Initialize the config
  @param {object} conf - The configuration