From 89f5025f9e9ea349f9d0e460068c576ea11cab86 Mon Sep 17 00:00:00 2001 From: Brion Date: Wed, 15 Feb 2023 02:54:49 +0530 Subject: [PATCH] core(primitives): fix lint issue --- packages/primitives/scripts/build-icons.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/primitives/scripts/build-icons.js b/packages/primitives/scripts/build-icons.js index 55c47f7b..de309703 100644 --- a/packages/primitives/scripts/build-icons.js +++ b/packages/primitives/scripts/build-icons.js @@ -38,8 +38,9 @@ const PATHS = { const iconFiles = fs.readdirSync(PATHS.source.icons); -const svgFilepaths = iconFiles.reduce((iconFilePaths, iconFile) => path.parse(iconFile).ext === '.svg' ? - (iconFilePaths.push(path.resolve(path.join(PATHS.source.icons, iconFile))), iconFilePaths) : iconFilePaths, []); +const svgFilepaths = iconFiles.reduce((iconFilePaths, iconFile) => (path.parse(iconFile).ext === '.svg' + ? (iconFilePaths.push(path.resolve(path.join(PATHS.source.icons, iconFile))), iconFilePaths) + : iconFilePaths), []); if (svgFilepaths.length === 0) { logger.error('No input SVG file(s) found');