Skip to content

Commit 87775bd

Browse files
authored
Merge pull request #126 from rangle/feature/BOOST-307-fix-lint-error
BOOST-307: Fix lint error
2 parents 29d1e32 + 731451a commit 87775bd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
node_modules
2-
libs/foundations/src/generated/design-tokens.types.ts
1+
node_modules

libs/foundations/scripts/templates/token-types.template.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ const renderTokenSpecificGroup = (group: TokenSpecificGroup) => {
9696
const tokenSpecificGroupName = getTokenSpecificGroupNames(group.key);
9797
const tokenKeyPrefix = toKebabCase(group.key);
9898
return `
99-
export interface ${DS_NAME}TokenIndex {
99+
export interface ${tokenSpecificGroupName}Index {
100100
['${tokenKeyPrefix}']: ${group.values.map((key) => `'${key}'`).join(' | ')};
101101
};
102-
export type ${tokenSpecificGroupName} = ${DS_NAME}TokenIndex['${tokenKeyPrefix}'];
102+
export type ${tokenSpecificGroupName} = ${tokenSpecificGroupName}Index['${tokenKeyPrefix}'];
103103
`;
104104
};
105105

@@ -180,7 +180,6 @@ export const renderTokenTypes = ({ order, layers }: TokenLayers) => {
180180

181181
return Buffer.from(`
182182
183-
export interface ${DS_NAME}TokenIndex {}
184183
// Tokens By Layer, Type and Subject
185184
${allTokenGroupsAndKeys.map(renderTokenSpecificGroup).join('\n')}
186185
// Token groups By Segment

0 commit comments

Comments
 (0)