hudochenkov / stylelint-order

A plugin pack of order related linting rules for Stylelint.
MIT License
916 stars 61 forks source link

Exclude `rotate`, `scale` and `translate` from the alphabetical order rule #159

Closed jpzwarte closed 2 years ago

jpzwarte commented 2 years ago

See https://twitter.com/stefanjudis/status/1541365726266662912

Currently behaviour is that it wants to sort these properties alphabetically, but that changes the output.

So this is incorrect atm, but it shouldn't be:

  translate: 50%;
  scale: 1.4;

Expected scale to come before translate (order/properties-alphabetical-order)

hudochenkov commented 2 years ago

Indeed seems like an issue that needs to be fixed. Thank you for bringing an attention.

I never personally supported alphabetical order, so I'm not going to fix this. But if there is a pull request with the fix, I would be more than happy to accept it.

I wonder what would be acceptable automatic sorting for this use case.

jpzwarte commented 2 years ago

Apparently I misunderstood and it doesn't matter: https://twitter.com/bramus/status/1541788791677009922

hudochenkov commented 2 years ago

I fell in the same trap :) I guess understanding how individual properties work in comparison to transform would leave many people puzzled.