nursery/useLogicalProperties
nursery · since 2.5.15
Unsafe autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"useLogicalProperties": "error"
}
}
}
}p {
margin: 1px 2px;
}p {
padding: var(--spacing) 2px;
}p {
margin-block-start: 1px;
margin-block-end: 2px;
}p {
inline-size: 100%;
inset-block-start: 0;
margin-inline-start: 1rem;
border-inline-start: 1px solid;
float: inline-start;
text-align: end;
justify-content: start;
inline-size: anchor-size(self-inline);
block-size: anchor-size(self-block);
inset-block-start: anchor(end);
}p {
margin: 1px;
margin: var(--spacing);
margin-block: 1px 2px;
color: red;
}Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/useLogicalProperties
nursery · since 2.5.15
{
"linter": {
"rules": {
"nursery": {
"useLogicalProperties": "error"
}
}
}
}Enforces the use of with { type: "json" } for JSON module imports.
Detects a disposable object assigned to a variable without using or await using syntax.