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

Disallow tilde (~) in @use? #711

Open
magnattic opened this issue Nov 28, 2022 · 0 comments
Open

Disallow tilde (~) in @use? #711

magnattic opened this issue Nov 28, 2022 · 0 comments
Labels
New rule 👌 Ready to be created as a new rule Question ❓ Question

Comments

@magnattic
Copy link

I need a rule that disallows the usage of the deprecated ~ in @use rules.

Forbidden:

@use "~@mycompany/uikit/lib/styles/config" as *;

Allowed:

@use "@mycompany/uikit/lib/styles/config" as *;

Is this possible already? Is there a rule that either limits @use imports or a more generic rule that disallows specific strings/regex in the whole file?

@kristerkari kristerkari added Question ❓ Question New rule 👌 Ready to be created as a new rule labels Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New rule 👌 Ready to be created as a new rule Question ❓ Question
Development

No branches or pull requests

2 participants