hudochenkov / postcss-sorting

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

[Question]Consider adding reg type in properties-order #77

Closed NE-SmallTown closed 6 years ago

NE-SmallTown commented 6 years ago

If do this, we can just use /^margin/ rather than margin, margin-top, margin-right ....

hudochenkov commented 6 years ago

It won't going to happen. Explanation in related repository https://github.com/hudochenkov/stylelint-order/issues/43#issuecomment-331741788:

There are multiple reasons we won't have wildcard support for properties:

  1. It will increase code complexity without much benefit. Config verbosity is a problem, but properties order isn't a thing, which will often be changed.
  2. List of all properties is available, and all properties could be easily copied to config.