Ir al contenido

noValueAtRule

Esta página aún no está disponible en tu idioma.

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.

@value red: #FF0000;
code-block.css:1:1 lint/style/noValueAtRule ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Use of @value rule is disallowed

> 1 │ @value red: #FF0000;
^^^^^^^^^^^^^^^^^^^^
2 │

Using @value is not recommended, consider using CSS variables instead.

See MDN web docs for more details.

:root {
--red: #FF0000
}
p {
background-color: var(--red);
}