diff --git a/tools/build-icons/building/generateAliasesFile.mjs b/tools/build-icons/building/generateAliasesFile.mjs index 4d23becc4ae..e361eedbb3e 100644 --- a/tools/build-icons/building/generateAliasesFile.mjs +++ b/tools/build-icons/building/generateAliasesFile.mjs @@ -2,7 +2,13 @@ import path from 'path'; import fs from 'fs'; import { toPascalCase, resetFile, appendFile } from '../../../scripts/helpers.mjs'; -const getImportString = (componentName, iconName, aliasImportFileExtension, deprecated, deprecationReason = '') => +const getImportString = ( + componentName, + iconName, + aliasImportFileExtension, + deprecated, + deprecationReason = '', +) => deprecated ? `export {\n` + ` /** @deprecated ${deprecationReason} */\n` + @@ -32,7 +38,7 @@ export default async function generateAliasesFile({ await Promise.all( icons.map(async (iconName, index) => { const componentName = toPascalCase(iconName); - const iconAliases = iconMetaData[iconName]?.aliases?.map(alias => { + const iconAliases = iconMetaData[iconName]?.aliases?.map((alias) => { if (typeof alias === 'string') { return { name: alias, diff --git a/tools/build-icons/building/generateIconFiles.mjs b/tools/build-icons/building/generateIconFiles.mjs index f8ef2b954f7..966e20f07a1 100644 --- a/tools/build-icons/building/generateIconFiles.mjs +++ b/tools/build-icons/building/generateIconFiles.mjs @@ -30,7 +30,14 @@ export default ({ const getSvg = () => readSvg(`${iconName}.svg`, iconsDir); const { deprecated = false, deprecationReason = '' } = iconMetaData[iconName]; - const elementTemplate = template({ componentName, iconName, children, getSvg, deprecated, deprecationReason }); + const elementTemplate = template({ + componentName, + iconName, + children, + getSvg, + deprecated, + deprecationReason, + }); const output = pretty ? prettier.format(elementTemplate, { singleQuote: true,