New lint rule: disallow non-token values #51
bennypowers
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposed new rule would disallow non
var(--rh-*)
values for certain properties, among them:Why?
The purpose of this rule is to enforce brand standards and catch design errors sooner. In cases where a non-token value is genuinely and legitimately desired, a lint ignore comment would be required, and a reason provided in situ.
❌ The following CSS would ERROR under this rule:
✔️ The following CSS would be ALLOWED under this rule:
Note that
0
is allowed for padding;Beta Was this translation helpful? Give feedback.
All reactions