correctness/noUnknownMediaFeatureName
correctness · since 1.8.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noUnknownMediaFeatureName": "error"
}
}
}
}@media screen and (unknown > 320px) {}@media only screen and (min-width: 320px) and (max-width: 480px) and (unknown: 150dpi) {}@media (not(unknown < 320px)) and (max-width > 640px) {}@media screen and (width > 320px) {}@media only screen and (min-width: 320px) and (max-width: 480px) and (resolution: 150dpi) {}@media (not(min-width < 320px)) and (max-width > 640px) {}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noUnknownMediaFeatureName
correctness · since 1.8.0
{
"linter": {
"rules": {
"correctness": {
"noUnknownMediaFeatureName": "error"
}
}
}
}Disallow unrecognized pseudo-element selectors.