getPrettierParser = fileExtension => {
  // See more parser options here: https://prettier.io/docs/en/options.html#parser
  const FILE_EXTENSION_TO_PARSER = {
    js: 'babel',
    cjs: 'babel',
    mjs: 'babel',
    md: 'markdown',
    html: 'html',
    json: 'json',
    css: 'css',
    yaml: 'yaml',
    yml: 'yaml',
  };
  const parser = FILE_EXTENSION_TO_PARSER[fileExtension];
  if (!parser) {
    throw new Error(ERROR_UNSUPPORTED_FILE_EXTENSION);
  }
  return parser;
}
Get prettier `parser` for given `fileExtension`
@example getPrettierParser('md') == 'markdown'
@param {string} fileExtension
@returns {string}
@throws ERROR_UNSUPPORTED_FILE_EXTENSION