carbon-design-system / stylelint-plugin-carbon-tokens

Apache License 2.0
9 stars 3 forks source link

Linter rule messages are very generic #123

Open lee-chase opened 4 months ago

lee-chase commented 4 months ago

As mentioned in #104 the messages displayed by the linter rule are very generic

e.g. Expected carbon type token, mixin or function to be set for variable "$spacing-07" used by "line-height" found "an unknown, undefined or unrecognized value". carbon/type-token-use

A more specific message could in many cases would allow users to understand and address issues raised by the linter rule.

e.g. Line-height shouldn't be set directly. Use the typography.type-style() mixin instead. carbon/type-token-use