matype / stylefmt

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

Add support for groups in `declaration-block-properties-order` #167

Closed hudochenkov closed 8 years ago

hudochenkov commented 8 years ago

Add support for groups in stylelint config:

{
  "rules": {
    "declaration-block-properties-order": [
      {
        "properties": [
          "font-size",
          "font-weight"
        ]
      },
      "display",
      "width",
      "height",
      "color",
      "background",
      "opacity"
    ]
  }
}

Also it fixes #165.

matype commented 8 years ago

@hudochenkov Wow, thanks! Nice work :)

paazmaya commented 8 years ago

This does seem to miss the possibility to use "alphabetical". http://stylelint.io/user-guide/rules/declaration-block-properties-order/