csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.28k stars 459 forks source link

Do not remove property after zero #586

Closed muuvmuuv closed 5 years ago

muuvmuuv commented 6 years ago

I got this code with a grid value:

.class {
      grid-template-columns: 1fr 0fr 0;
    }

and when I fix the code with csscomb I get this:

.class {
      grid-template-columns: 1fr 0 0;
    }

csscomb deletes the fr from my value, how can I prevent this?

b13nxx commented 5 years ago

In your .csscomb.json set this option:

{
    "unitless-zero": false
}
muuvmuuv commented 5 years ago

Pretty smooth for a workaround but I think it shouldnt remove it no matter false or true

Sent with GitHawk

b13nxx commented 5 years ago

For me, its better to have option instead of default behavior.