-
Notifications
You must be signed in to change notification settings - Fork 97
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 a lint to ban specific built-in functions #422
Comments
Maybe a more general way to do this would be to have a lint that just takes a list of banned functions. |
Would this rule from stylelint be enough? https://github.com/stylelint/stylelint/blob/master/lib/rules/function-blacklist/README.md |
No, that rule isn't aware of Sass's module syntax. |
I see.
This seems like a good option to add in addition to the |
The random() function exists primarily for Sass demos to produce cool effects—it's pretty much always a bad idea to use in real stylesheets. We should add an (off-by-default) lint to forbid this function, whether from the global namespace or from
sass:math
.cc @rambleraptor
The text was updated successfully, but these errors were encountered: