Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 592 Bytes

empty-args.md

File metadata and controls

33 lines (23 loc) · 592 Bytes

Empty Args

Rule empty-args will enforce whether or not parenthesis should be included if no arguments are defined or used, when declaring or invoking a mixin.

Options

  • include: true/false (defaults to false)

Examples

When include: false, the following are allowed. When include: true, the following are disallowed:

@mixin bar {
  padding: 10px;
}

.bar {
  @include bar;
}

When include: true, the following are allowed. When include: false, the following are disallowed:

@mixin foo() {
  padding: 10px;
}

.foo {
  @include foo();
}