Closed guilhermehn closed 7 years ago
Yes, at-variables
and less-mixins
aren't supported in postcss-sorting. Even Less wasn't tested there. I'm not interested in working on Less support, but PRs are welcome.
I do not need the Less support (who even uses Less these days?), but someone of my team just copy-pasted some predefined config when creating our shared stylelint-order config, which came with the at-variables
value. We lost a good part of the day trying to figure out why the stylefmt was not working and just printing the error message.
It would be nice to at least have a friendlier error message, displaying invalid values that are present in the config.
who even uses Less these days?
I was surprised by that too. I know Wikipedia developers use it.
It would be nice to at least have a friendlier error message, displaying invalid values that are present in the config.
Thank you for suggestion! I'll think how to make error messages more useful.
Fixed in 3.0.2
. Thank you for a suggestion.
Thank you!
at-variables
from stylelint-order is not considered a validorder
value by lib/validateOptions.js.Example
postcss.js
a.css
When I run
$ node postcss.js
the response is:postcss-sorting: Invalid "order" option value
Is this intended behaviour?