Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 605 Bytes

File metadata and controls

43 lines (30 loc) · 605 Bytes

at-rule-conditional-no-parentheses

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

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

The fix option can automatically fix all of the problems reported by this rule.

Options

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