correctness/noMissingVarFunction
correctness · since 1.9.2
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noMissingVarFunction": "error"
}
}
}
}a {
--foo: red;
color: --foo;
}.parent {
--foo: red;
.child {
color: --foo;
}
}@property --bar {}
a {
color: --bar;
}p {
color: var(--foo);
}p {
--foo: red;
color: var(--foo);
}p {
color: --foo;
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noMissingVarFunction
correctness · since 1.9.2
{
"linter": {
"rules": {
"correctness": {
"noMissingVarFunction": "error"
}
}
}
}Disallow shorthand assign when variable appears on both sides.
Require <li> elements with an HTML element parent to be children of <ul>, <ol>, or <menu>.
Enforce Playwright async APIs to be awaited or returned.
Disallow using variables from outside the function passed to page.evaluate() and page.addInitScript().