From 0d83cb0f0f688f6ccf4e0628f355fa53ff01aa23 Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Thu, 23 Feb 2023 09:04:35 -0500 Subject: [PATCH] fix: lint issues --- tokens/css-utilities.js | 4 ++-- tokens/style-dictionary.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tokens/css-utilities.js b/tokens/css-utilities.js index 5270abd7cca..55c7b0ad090 100644 --- a/tokens/css-utilities.js +++ b/tokens/css-utilities.js @@ -2,7 +2,7 @@ * Implements bg-variant mixin from bootstrap. Creates utility classes for background colors based on theme color. */ function bgVariant(token) { - const { attributes: { type, item}, actions } = token; + const { attributes: { type, item }, actions } = token; const parent = `.bg-${type}${item === 'base' ? '' : `-${item}`}`; return `${parent} { background-color: ${`var(--${token.name})`} !important; @@ -22,7 +22,7 @@ button${parent}:focus { * Implements text-emphasis-variant mixin from bootstrap. Creates utility classes for text colors based on theme color. */ function textEmphasisVariant(token) { - const { attributes: { type, item}, actions } = token; + const { attributes: { type, item }, actions } = token; const parent = `.text-${type}${item === 'base' ? '' : `-${item}`}`; return `${parent} { color: ${`var(--${token.name})`} !important; diff --git a/tokens/style-dictionary.js b/tokens/style-dictionary.js index be2f874efcc..9220f0f3bd2 100644 --- a/tokens/style-dictionary.js +++ b/tokens/style-dictionary.js @@ -143,7 +143,7 @@ StyleDictionary.registerFormat({ // eslint-disable-next-line no-restricted-syntax for (const token of tokens) { - token.actions = {"default": `var(--pgn-${token.actions.default.join('-')})`}; + token.actions = { default: `var(--pgn-${token.actions.default.join('-')})` }; // eslint-disable-next-line no-restricted-syntax for (const funcName of utilityFunctionsToApply) { utilityClasses += cssUtilities[funcName](token);