Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.04 KB

at-mixin-argumentless-call-parentheses.md

File metadata and controls

53 lines (33 loc) · 1.04 KB

Pattern: Malformed parentheses for argumentless @mixin call

Issue: -

Description

Require or disallow parentheses in argumentless @mixin calls.

@include mixin-name() {
/**                ↑
 *                 Such mixin calls */

Examples

string: "always"|"never"

"always"

There must always be parentheses in mixin calls, even if no arguments are passed.

The following patterns are considered warnings:

@include mixin-name;

The following patterns are not considered warnings:

@include mixin-name();

"never"

There must never be parentheses when calling a mixin without arguments.

The following patterns are considered warnings:

@include mixin-name();

The following patterns are not considered warnings:

@include mixin-name;

Further Reading