Skip to content
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

Rule idea: provide the equivalent rules for at-use than for at-import #572

Open
stof opened this issue Dec 1, 2021 · 1 comment
Open
Labels
Help wanted 🙋 Help is needed New rule 👌 Ready to be created as a new rule

Comments

@stof
Copy link
Contributor

stof commented Dec 1, 2021

stylelint-scss currently provides a set of at-import-* rules to check imported paths.
It would make sense IMO to have the equivalent at-use-* rules (maybe using the new -allowed-list and -disallowed-list naming convention of stylelint, see #571) for code that migrates to the modern way.

Differences between import and use:

  • @use is always a Sass rule (there is no CSS @use)
  • @use only supports one module per rule (while @import supports a list
  • @use supports modifiers for the rule (as <namespace> and with <configuration>) coming after the path
  • @use only supports strings (no url(foo))
@kristerkari kristerkari added Help wanted 🙋 Help is needed New rule 👌 Ready to be created as a new rule labels Dec 2, 2021
@kristerkari
Copy link
Collaborator

Sounds like a good idea to prove those for @use too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted 🙋 Help is needed New rule 👌 Ready to be created as a new rule
Development

No branches or pull requests

2 participants