Aller au contenu

noShorthandPropertyOverrides

Ce contenu n’est pas encore disponible dans votre langue.

Disallow shorthand properties that override related longhand properties.

For details on shorthand properties, see the MDN web docs.

a { padding-left: 10px; padding: 20px; }
code-block.css:1:25 lint/suspicious/noShorthandPropertyOverrides ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected shorthand property padding after padding-left

> 1 │ a { padding-left: 10px; padding: 20px; }
^^^^^^^
2 │

a { padding: 10px; padding-left: 20px; }
a { transition-property: opacity; } a { transition: opacity 1s linear; }
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noShorthandPropertyOverrides": "error"
}
}
}
}