Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Feb 23, 2023
1 parent 4a567b1 commit 0d83cb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tokens/css-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tokens/style-dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d83cb0

Please sign in to comment.