Skip to content

Commit

Permalink
fixup: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrukhin committed Jun 26, 2020
1 parent 37b4097 commit 26573c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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',
Expand Down

0 comments on commit 26573c4

Please sign in to comment.