code: function createLanguage(linguistData, { extend, override }) {
    const language = {};
  
    for (const key in linguistData) {
      const newKey = key === "languageId" ? "linguistLanguageId" : key;
      language[newKey] = linguistData[key];
    }
  
    if (extend) {
      for (const key in extend) {
        language[key] = (language[key] || []).concat(extend[key]);
      }
    }
  
    for (const key in override) {
      language[key] = override[key];
    }
  
    return language;
  }
docs: TODO: remove after resolve https://github.com/prettier/prettier/pull/5854