Add ignoreAtRules: [] to no-invalid-position-at-import-rule
See original GitHub issueIt 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.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@GrimLink Thanks for the request.
I agree. The primary purpose of secondary options is to make rules more permissive. We can add an
ignoreAtRules: []
secondary option to the rule.As @Semigradsky and @ybiquitous suggested, this would eventually make it into
stylelint-scss
asscss/at-import-no-invalid-position
, which would make use of this newignoreAtRules: []
secondary option and thecheckAgainstRule
util.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
v14
rather thanmaster
.For context, this earlier comment is about
@import
being proceeded by rule-sets rather than other at-rules. This request is different as it about the interplay between@use
and@import
.Ideally it would be to create
scss/at-import-no-invalid-position
rule but option would be nice workaround.