From 26573c492e2750fd53991a6713e3672793afe1cc Mon Sep 17 00:00:00 2001 From: petrukhin Date: Fri, 26 Jun 2020 15:05:30 +0300 Subject: [PATCH] fixup: eslint --- src/core/build.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/build.ts b/src/core/build.ts index e578ad9..b6323d6 100644 --- a/src/core/build.ts +++ b/src/core/build.ts @@ -35,8 +35,8 @@ StyleDictionaryApi.registerTransform({ }) const isTypographyCategory = (prop: Property) => { - const category = prop.attributes.category; - return category === 'fontSize' || category === 'lineHeight'; + const category = prop.attributes.category + return category === 'fontSize' || category === 'lineHeight' } StyleDictionaryApi.registerTransform({ @@ -46,15 +46,15 @@ StyleDictionaryApi.registerTransform({ transformer: (prop) => { const { value, - } = prop; + } = prop - if (typeof value === 'number'){ + if (typeof value === 'number') { return `${value}rem` } - return value; - } -}); + return value + }, +}) StyleDictionaryApi.registerFilter({ name: 'whitepaper/color',