suspicious/noShorthandPropertyOverrides
suspicious · since 1.8.2
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noShorthandPropertyOverrides": "error"
}
}
}
}Disallow shorthand properties that override earlier, more specific properties.
a { padding-left: 10px; padding: 20px; }@keyframes fade {
from { margin-left: 1px; margin: 0; }
}a { padding: 10px; padding-left: 20px; }a { transition-property: opacity; } a { transition: opacity 1s linear; }body { font-size: var(--font-size); }
@supports (font: -apple-system-body) {
body { font-size: -apple-system-body; }
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noShorthandPropertyOverrides
suspicious · since 1.8.2
{
"linter": {
"rules": {
"suspicious": {
"noShorthandPropertyOverrides": "error"
}
}
}
}Disallow comparing values to null in Sass @if conditions.
Disallow comparison of expressions modifying the string case with non-compliant value.
It detects possible "wrong" semicolons inside JSX elements.
Prevents React-specific JSX properties from being used.