function loadPrettierConfig(configFile, { shouldCache }) {
  configFile = path.resolve(configFile);

  if (!shouldCache || !loadCache.has(configFile)) {
    // Even if `shouldCache` is false, we still cache the result, so we can use it when `shouldCache` is true
    loadCache.set(configFile, loadConfig(configFile));
  }

  return loadCache.get(configFile);
}
@param {string} configFile
@param {{shouldCache?: boolean}} param1
@returns {Promise<ReturnType<loadConfig>>}