Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(lint): correct lineHeight token reference in no-hardcoded-styles rule (#2212)

Andrey Goder1fadd0e9a54a
diff --git a/internal/eslint-plugin-xds/index.js b/internal/eslint-plugin-xds/index.js
index cf4de2d0bd..b3ecc4746f 100644
--- a/internal/eslint-plugin-xds/index.js
+++ b/internal/eslint-plugin-xds/index.js
@@ -46,9 +46,9 @@ const STYLE_PROPERTIES = {
},
lineHeight: {
pattern: /^['"]?\d+(\.\d+)?(px|rem|em)?['"]?$/,
- tokenVar: 'lineHeightVars',
- message: 'Consider using lineHeightVars token for consistency',
- examples: ["lineHeightVars['--leading-normal']"],
+ tokenVar: 'typeScaleVars',
+ message: 'Consider using a typeScaleVars leading token for consistency',
+ examples: ["typeScaleVars['--text-body-leading']"],
},
// Spacing properties
padding: {