diff --git a/packages/component/src/Styles/CSSTokens.ts b/packages/component/src/Styles/CSSTokens.ts index 2710c63a5a..fa297fc3a9 100644 --- a/packages/component/src/Styles/CSSTokens.ts +++ b/packages/component/src/Styles/CSSTokens.ts @@ -7,12 +7,15 @@ type CSSTokensType>> = { }; // To add/remove/update a token, go to `CustomPropertyName.ts`. -const CSSTokens = new Proxy>({} as CSSTokensType, { - get(_, key: keyof CustomPropertyNamesType) { - // We already checked in the `CustomPropertyName`. - // eslint-disable-next-line security/detect-object-injection - return `var(${CustomPropertyNames[key]})`; +const CSSTokens = new Proxy( + {}, + { + get(_, key: keyof CustomPropertyNamesType) { + // We already checked in the `CustomPropertyName`. + // eslint-disable-next-line security/detect-object-injection + return `var(${CustomPropertyNames[key]})`; + } } -}); +) as CSSTokensType; export default CSSTokens;