Specify scales for radii.
a {
border-radius: 2px;
}
/** ↑
* This radius */
This rule can automatically fix all of the problems reported.
This rule checks <length>
and <percentage>
values.
This rule can be paired with the declaration-property-unit-allowed-list
rule in stylelint, using the RegEx:
/radius$/
array
of objects
as {scale: [], units: []}
Given:
[{ "scale": [1, 2], "units": ["px"] }]
The following patterns are considered violations:
a {
border-radius: 4px;
}
The following patterns are not considered violations:
a {
border-top-right-radius: 2px;
}