Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 696 Bytes

at-rule-conditional-no-parentheses.md

File metadata and controls

51 lines (33 loc) · 696 Bytes

Pattern: Unexpected () used to surround @-rule

Issue: -

Description

Disallows parentheses in conditional @ rules (if, elsif, while)

    @if (true) {}
/**     ↑    ↑
 * Get rid of parentheses like this. */

Examples

true

The following patterns are considered warnings:

@if(true)
@else if(true)
@while(true)

The following patterns are not considered warnings:

@if true
@else if true
@while true

Further Reading