Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfennis committed Jun 28, 2024
1 parent b722fb8 commit a6a6ab7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions tools/build-icons/building/generateAliasesFile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getImportString = (
iconName,
aliasImportFileExtension,
deprecated,
deprecationReason = ''
deprecationReason = '',
) =>
deprecated
? `export {\n` +
Expand Down Expand Up @@ -65,7 +65,7 @@ export default async function generateAliasesFile({
importString += getImportString(
`Lucide${componentName}`,
iconName,
aliasImportFileExtension
aliasImportFileExtension,
);
}

Expand Down Expand Up @@ -100,7 +100,7 @@ export default async function generateAliasesFile({
exportFileIcon,
aliasImportFileExtension,
alias.deprecated,
deprecationReason
deprecationReason,
);

if (!aliasNamesOnly) {
Expand All @@ -109,23 +109,23 @@ export default async function generateAliasesFile({
exportFileIcon,
aliasImportFileExtension,
alias.deprecated,
deprecationReason
deprecationReason,
);

importString += getImportString(
`Lucide${componentNameAlias}`,
exportFileIcon,
aliasImportFileExtension,
alias.deprecated,
deprecationReason
deprecationReason,
);
}
})
}),
);
}

appendFile(importString, fileName, outputDirectory);
})
}),
);

appendFile('\n', fileName, outputDirectory);
Expand Down
2 changes: 1 addition & 1 deletion tools/build-icons/building/generateExportsFile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default (
outputDirectory,
iconNodes,
exportModuleNameCasing,
iconFileExtension = ''
iconFileExtension = '',
) => {
const fileName = path.basename(inputEntry);

Expand Down
2 changes: 1 addition & 1 deletion tools/build-icons/utils/getAliases.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function getAliases(iconDirectory) {
iconJsons.map(async (jsonFile) => {
const file = await import(path.join(iconDirectory, jsonFile), { assert: { type: 'json' } });
return [path.basename(jsonFile, '.json'), file.default];
})
}),
);

return Object.fromEntries(aliasesEntries);
Expand Down

0 comments on commit a6a6ab7

Please sign in to comment.