function resolveRcFilePath(pathToRcFile) {
  if (typeof pathToRcFile === 'string') return path.resolve(process.cwd(), pathToRcFile);
  return hasOptedOutOfRcDetection() ? undefined : findRcFile();
}
@param {string|undefined} pathToRcFile
@return {string|undefined}