Require named parameters in at-mixin call rule.
@include animation($duration: 250ms) {
// ↑
// Require or disallow this
string
: "always"|"never"
The following patterns are considered warnings:
.foo {
@include animation(250ms, 100ms, infinite);
}
.foo {
@include animation(250ms);
}
.foo {
@include reset($value: 20, 'bar', $color: #FFF);
}
The following patterns are not considered warnings:
.foo {
@include animation($duration: 250ms);
}
.foo {
@include animation($duration: 250ms, $delay: 100ms, $direction: infinite);
}
The following patterns are considered warnings:
.foo {
@include reset($value: 20);
}
.foo {
@include animation($duration: 250ms, $delay: 100ms, $direction: infinite);
}
.foo {
@include reset($value: 20, 'bar', $color: #FFF);
}
The following patterns are not considered warnings:
.foo {
@include animation(250ms, 100ms, infinite);
}
Given:
{ "ignore": ["single-argument"] }
The following patterns are not considered warnings:
.foo {
@include animation($duration: 250ms);
}
.foo {
@include reset(20);
}