style/noDescendingSpecificity
style · since 1.9.3
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"style": {
"noDescendingSpecificity": "error"
}
}
}
}Disallow lower-specificity selectors after higher-specificity selectors.
b a { color: red; }
a { color: red; }a {
& > b { color: red; }
}
b { color: red; }:root input {
color: red;
}
html input {
color: red;
}a { color: red; }
b a { color: red; }b { color: red; }
a {
& > b { color: red; }
}a { color: red; }
a:hover { color: red; }Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
style/noDescendingSpecificity
style · since 1.9.3
{
"linter": {
"rules": {
"style": {
"noDescendingSpecificity": "error"
}
}
}
}Require .where() to be called when using .delete() with Drizzle ORM.
Require .where() to be called when using .update() with Drizzle ORM.
Disallow ineffective ordering in files.includes patterns.
Require unique argument names for fields and directives.