Environment information
Details
CLI:
Version: 2.5.7
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_DISTRIBUTION: npm
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_LOG_LEVEL: unset
BIOME_LOG_KIND: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
BIOME_WATCHER_KIND: unset
BIOME_WATCHER_POLLING_INTERVAL: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v24.11.1
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: pnpm/11.20.0
Biome Configuration:
Status: Loaded successfully.
Path: biome.json
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
HTML full support enabled: true
Workspace:
Open Documents: 0
What happened?
Playground
Biome version 2.5.7 fails to parse Tailwind container query variants when using @variant.
@variant @xl {
div {
background: red;
}
}
Biome will throw noUnknownAtRules if the rule is on:
lint/suspicious/noUnknownAtRules: Unexpected unknown at-rule: xl
Ignoring that doesn't really help since Biome will also throw a parse error specifically because of the prefixed @:
parse: Expected an identifier but instead found '@'.
Expected result
Biome should not throw noUnknownAtRules or a parse error when an @variant arg is prefixed with @.
Temporary Solution
It's not optimal but the issue can for now be circumvented by using @container in favour of @variant e.g.
@container (width > theme(--container-xl)) {
div {
background: red;
}
}
Code of Conduct
Environment information
Details
What happened?
Playground
Biome version 2.5.7 fails to parse Tailwind container query variants when using
@variant.Biome will throw
noUnknownAtRulesif the rule is on:Ignoring that doesn't really help since Biome will also throw a parse error specifically because of the prefixed
@:Expected result
Biome should not throw
noUnknownAtRulesor a parse error when an@variantarg is prefixed with@.Temporary Solution
It's not optimal but the issue can for now be circumvented by using
@containerin favour of@variante.g.Code of Conduct