You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Hey, it's great that you added support for .stylelintrc!
I started using it in my project and I have noticed that, apparently, stylefmt uses a merging strategy when choosing rules: it follows .stylelintrc rules and also applies stylefmt's standard ones for the rules it didn't find/recognize in .stylelintrc.
For instance, I follow stylelint-config-standard rules, where a block like
.selector-x { width:10%; }
is allowed. Having a .stylelintrc with these simple contents
{
"extends": "stylelint-config-standard"
}
does not raise an error or a warning when running stylelint for a block like the one ^. However, it gets auto formatted into
.selector-x {
width:10%;
}
when I run stylefmt.
I think it would be great if there was a CLI option --only-stylelint or something like that which when passed would force stylefmt to format only the rules found/recognized in .stylelintrc file and do not do anything extra.
rogerjohansson, jasonlong, s10wen, ArmorDarks, lkraav and 4 more