Open nmcclay opened 6 years ago
Same problem here:
@include breakpoint(smm) {
@include font-body-2-regular($color-text-dark-primary);
}
error Function 'font-body-2-regular' should be written in camelCase function-name-format
Weirdly, this passes though:
@include breakpoint(smm) {
@include font-body-2-regular;
}
It seems passing an argument through causes the linter to think a nested mixin is a function.
What version of Sass Lint are you using?
v1.12.1
Please include any relevant parts of your configuration
.sass-lint.yml
Rules forfunction-name-format
andmixin-name-format
What did you do? Please include the actual source code causing the issue. I created a mixin nested inside another mixin, this caused it to fail the linter.
What did you expect to happen? For the linter to recognize
@include column-prefix('l');
as a mixin and for it to pass.What actually happened? Please include any error messages given to you by Sass Lint. The linter seems to think this nested mixin is a function, so it fails the linter.
If you're using a IDE plugin have you tried the CLI too? Yes