noValueAtRule
Este conteúdo não está disponível em sua língua ainda.
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;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);}Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.