noValueAtRule
Summary
Section titled “Summary”- Rule available since:
v1.8.0 - Diagnostic Category:
lint/style/noValueAtRule - This rule doesn’t have a fix.
- The default severity of this rule is information.
How to configure
Section titled “How to configure”{ "linter": { "rules": { "style": { "noValueAtRule": "error" } } }}Description
Section titled “Description”Disallow use of @value rule in CSS modules.
Use of CSS variables is recommended instead of @value rule.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”@value red: #FF0000;:root { --red: #FF0000}
p { background-color: var(--red);}Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.