Skip to content

noValueAtRule

  • Rule available since: v1.8.0
  • Diagnostic Category: lint/style/noValueAtRule
  • This rule isn’t recommended, so you need to enable it.
  • This rule doesn’t have a fix.
  • The default severity of this rule is information.
biome.json
{
"linter": {
"rules": {
"style": {
"noValueAtRule": "error"
}
}
}
}

Disallow use of @value rule in CSS modules.

Use of CSS variables is recommended instead of @value rule.

example.module.css
@value red: #FF0000;
example.module.css
:root {
--red: #FF0000
}
p {
background-color: var(--red);
}