nursery/noInvalidPropertyInitValue
nursery · since 2.5.8
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noInvalidPropertyInitValue": "error"
}
}
}
}Checks that the initial-value of an @property rule follows the value format declared by its syntax.
@property --size {
syntax: "<length>";
inherits: false;
initial-value: red;
}@property --background-image {
syntax: "<image>";
inherits: false;
initial-value: #fff;
}@property --palette {
syntax: "<color>#";
inherits: false;
initial-value: red blue;
}@property --size {
syntax: "<length>";
inherits: false;
initial-value: 1rem;
}
@property --calculated-size {
syntax: "<length>";
inherits: false;
initial-value: calc(1px + 2px);
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noInvalidPropertyInitValue
nursery · since 2.5.8
{
"linter": {
"rules": {
"nursery": {
"noInvalidPropertyInitValue": "error"
}
}
}
}Disallow unsafe JSON values that may cause interoperability issues.
Disallow invalid named areas in CSS grid templates.
Disallow non-standard directions in linear gradients.
Require <li> elements with an HTML element parent to be children of <ul>, <ol>, or <menu>.