Skip to content

Latest commit

 

History

History
102 lines (77 loc) · 1.35 KB

File metadata and controls

102 lines (77 loc) · 1.35 KB

at-mixin-named-arguments

Require named parameters in at-mixin call rule.

@include animation($duration: 250ms) {
//
// Require or disallow this

Options

string: "always"|"never"

always

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);
}

never

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);
} 

Optional secondary options

"ignore": ["single-argument"]

Given:

{ "ignore": ["single-argument"] }

The following patterns are not considered warnings:

.foo {
  @include animation($duration: 250ms);
}
.foo {
  @include reset(20);
}