Requires specific units' values to be full integers instead of floats. The most common use-case is to disallow pixel values to be floats.
{
"rules": {
"dczajkowski/no-floats-with-unit": [["px", "%"]]
}
}
For this config the following applies:
/* This is allowed */
.a {
margin: 1px;
margin: 1%;
margin: 1rem;
margin: .1rem;
}
/* This is not allowed */
.b {
margin: .1px;
margin: .1%;
}