-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postcss-sorting complains about less-mixins
#71
Comments
Thank you for reporting! Indeed, this problem exists, because I believe it could be fixed if add to https://github.com/hudochenkov/postcss-sorting/blob/944da947a628192b54448368c197f586fbbe0c10/lib/getOrderData.js code similar to stylelint-order/rules/order/getOrderData.js Lines 19 to 20 in 3215ac3
Consider contributing this fix, because Less is not in my priority. While problem exists you can disable autofixing for |
Same problem. @hudochenkov The bad I feel is that this will cause the entire file won't be fixed(it lets me think it's my own fault), I think we should just ignore What's your suggestion/plan to fix this? If @stephanschubert doesn't have time, I could send a PR for this. |
@NE-SmallTown Sorry, you faced this situation. It's a rare case when something was added to stylelint-order but wasn't reflected in postcss-sorting. My suggestion is to add support for |
Never mind, I will take a look this weekend if @stephanschubert doesn't have time |
The ol' 18month later bump. I'm encountering this issue too, is it as easy a fix as the snippet in the thread above? |
Pretty much. Add new keyword and add tests for it. |
Good stuff, shall try and find some time tomorrow.
…On Thu, 16 Apr 2020 at 19:59, Aleks Hudochenkov ***@***.***> wrote:
Pretty much. Add new keyword and add tests for it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJJZ5YPOEAYR5BMQLDXCPLRM5ISPANCNFSM4F6VECFQ>
.
|
Fixing this requires adding some LESS parser to postcss-sorting e.g. postcss-less because postcss parser doesn't accept usage of LESS mixins and throws error
@hudochenkov do you allow adding that dependency or shall we just close this issue? |
I don't think it is needed. For 6 years this issue is open it only got 3 reactions. But I'm open for a PR to |
When
less-mixins
is used:Result:
Removing
less-mixins
"fixes" the error.The text was updated successfully, but these errors were encountered: