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

scss/function-no-unknown triggers with scoped functions of SCSS modules #760

Closed
masi opened this issue Feb 13, 2023 · 4 comments · Fixed by #773
Closed

scss/function-no-unknown triggers with scoped functions of SCSS modules #760

masi opened this issue Feb 13, 2023 · 4 comments · Fixed by #773
Labels
Bug 🐛 Something isn't working Help wanted 🙋 Help is needed

Comments

@masi
Copy link

masi commented Feb 13, 2023

@use 'mymodule';

.foobar {
  property: mymodule.myfunction();
}

This code should not trigger the rule.

@kristerkari kristerkari added Bug 🐛 Something isn't working Help wanted 🙋 Help is needed labels Feb 13, 2023
@kristerkari
Copy link
Collaborator

Sounds like a bug!

@SaroGFX
Copy link

SaroGFX commented Feb 14, 2023

Same issue

@masi
Copy link
Author

masi commented Feb 16, 2023

Workaround:

'scss/function-no-unknown': [ true, { ignoreFunctions: /\./ } ],

@kristerkari
Copy link
Collaborator

I opened a Pull Request to add support for @use and namespaces. Please let me know if I missed something: #773

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working Help wanted 🙋 Help is needed
Development

Successfully merging a pull request may close this issue.

3 participants