-
Notifications
You must be signed in to change notification settings - Fork 533
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
New Rule: Empty Args #38
Comments
Started to look into this one. Experience is slightly different. Parenthesis can be left off of the definition of mixins but not functions. When I try I get a Sass error; While I can drop the parenthesis off both the invocation of functions and mixins. // Causes an error
@function baz {
@return 'baz';
}
// Is ok
.baz {
content: baz;
}
// Is ok
@mixin qux {
content: 'baz';
}
// Is ok
.qux {
@include qux;
} |
Check out this Sass Meister: The function isn't being invoked if it doesn't include There is, however, a discrepancy between Libsass and Ruby Sass as to whether a function can be defined w/o |
Haha oh dear. Amateur mistake! Libsass are working towards parity with Ruby Sass so do you agree that this rule should be mixin only? |
I trusted you man! I trusted you! 😝 |
Hahaha 😁 - Thoughts on above? |
Yah, only for mixins makes sense to me |
With Sass, if a function or mixin doesn't have any arguments, the parenthesis can be left off of the definition and, in the case of mixins, the invocation as well
The text was updated successfully, but these errors were encountered: