matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Add postcss-sorting integration #161

Closed nkt closed 8 years ago

matype commented 8 years ago

@nkt Thank you for you PR! Good stuff :)

But, I have a question. Are you taking into account using with @include and @extend in SCSS code, or @apply rules?

There is a possibility to change source code destructive by sorting declarations. Please see also https://github.com/morishitter/stylefmt/issues/3#issuecomment-129844951 .

Thanks.

matype commented 8 years ago

@nkt Thank you so much ;)

jeddy3 commented 8 years ago

This is fantastic! Great job :)

You might be interested in keeping an eye on this proposal for a companion plugin to declaration-block-properties-order called stylelint-block-non-properties-order. The hope is that it'll work alongside declaration-block-properties-order to lint the order of non-property things like nested at-rules, nested rules and variables. It's early days yet, but hopefully something will come of it :)

jasonlong commented 8 years ago

Thanks @nkt!