correctness/noInvalidDirectionInLinearGradient
correctness · since 1.9.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noInvalidDirectionInLinearGradient": "error"
}
}
}
}Disallow non-standard directions in linear gradients.
.foo { background: linear-gradient(top, #fff, #000); }.foo { background: linear-gradient(45, #fff, #000); }.foo { background: linear-gradient(to top, #fff, #000); }.foo { background: linear-gradient(45deg, #fff, #000); }Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noInvalidDirectionInLinearGradient
correctness · since 1.9.0
{
"linter": {
"rules": {
"correctness": {
"noInvalidDirectionInLinearGradient": "error"
}
}
}
}Disallow !important in @keyframes declarations.
Disallow invalid named areas in CSS grid templates.
Disallow use of implicit any type on variable declarations.
Checks that the initial-value of an @property rule follows the value format declared by its syntax.