Skip to content

noUnknownAtRule

Disallow unknown at-rules.

For details on known at-rules, see the MDN web docs.

@uNkNoWn {}
code-block.css:1:2 lint/nursery/noUnknownAtRule ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected unknown at-rule: uNkNoWn

> 1 │ @uNkNoWn {}
^^^^^^^
2 │

uNkNoWn is not a standard CSS at-rule, which may lead to unexpected styling results or failure to interpret the styles as intended.

See MDN web docs for a known list of at-rules.

To fix this issue, consider removing the unknown at-rule.

@unknown-at-rule {
font-size: 14px;
}
code-block.css:1:2 lint/nursery/noUnknownAtRule ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected unknown at-rule: unknown-at-rule

> 1 │ @unknown-at-rule {
^^^^^^^^^^^^^^^
2 │ font-size: 14px;
3 │ }

unknown-at-rule is not a standard CSS at-rule, which may lead to unexpected styling results or failure to interpret the styles as intended.

See MDN web docs for a known list of at-rules.

To fix this issue, consider removing the unknown at-rule.

@charset 'UTF-8';
@media (max-width: 960px) {
body {
font-size: 13px;
}
}
biome.json
{
"linter": {
"rules": {
"nursery": {
"noUnknownAtRule": "error"
}
}
}
}