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

Apache License 2.0
9 stars 3 forks source link

Improve the mechanism for @use renames #85

Closed lee-chase closed 1 year ago

lee-chase commented 1 year ago

Currently, the mechanism expects either acceptScopes to be set for each role. It works with 'vars', 'theme', 'layout', 'motion' and 'type' scopes and in file renames.

There are likely more options and it may be simpler to create a lookup table of entry points, scopes and rules.