Перейти к содержимому

noValueAtRule

Это содержимое пока не доступно на вашем языке.

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);
}