hudochenkov / postcss-sorting

PostCSS plugin to keep rules and at-rules content in order.
MIT License
518 stars 31 forks source link

Could we support *.vue file? #84

Closed NE-SmallTown closed 6 years ago

NE-SmallTown commented 6 years ago

Seems it just support plain css file?

hudochenkov commented 6 years ago

It might work with postcss-html parser. At least this is how stylelint is able to lint Vue.

NE-SmallTown commented 6 years ago

Yea, I use stylelint sort plugin for Vue before and it works well

hudochenkov commented 6 years ago

@NE-SmallTown does it work with stylelint --fix?

NE-SmallTown commented 6 years ago

Haven't verify that because I use the node API(the {fix: true} option) and it seems ok

hudochenkov commented 6 years ago

Great! It's the same thing. Thank you for letting me know! stylelint-order fixing capability is powered by postcss-sorting :)