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
Add ignoreAtRules: [] to no-invalid-position-at-import-rule #5492
Comments
@ybiquitous I did 😉 I am not having an issue with it at the moment, I am just asking for an option so I can keep |
I see. Is it possible to use For example: /* stylelint-disable-next-line no-invalid-position-at-import-rule */
@use "...";
@import "..."; See also https://stylelint.io/user-guide/ignore-code/#within-files |
@ybiquitous it is for me, I was just wondering this could be an option, as I already mentioned in my previous comments |
Ideally it would be to create |
@Semigradsky Thanks for the help. As you commented, it seems ideal also to me to add a new rule to the |
@GrimLink Thanks for the request.
I agree. The primary purpose of secondary options is to make rules more permissive. We can add an As @Semigradsky and @ybiquitous suggested, this would eventually make it into I've labelled the issue as ready to implement. Please consider contributing if you have time. There are steps on how to add a new option in the Developer guide. Please branch of For context, this earlier comment is about |
Done in #5520 |
It would be nice to have an option to keep the
no-invalid-position-at-import-rule
on and also support@use
.This syntax is used by both Sass but some PostCSS plugins also use at rules in the CSS directly.
Adding this option give some flexibility.
Not a must for me, but it would be a nice to have.
The text was updated successfully, but these errors were encountered: