Skip to content

Files

Latest commit

 

History

History
43 lines (30 loc) · 611 Bytes

at-rule-blacklist.md

File metadata and controls

43 lines (30 loc) · 611 Bytes

Pattern: Use of blacklisted at-rule

Issue: -

Description

Specify a blacklist of disallowed at-rules. This rule ignores @import in Less.

Examples

array|string: ["array", "of", "unprefixed", "at-rules"]|"at-rule"

Given:

["extend", "keyframes"]

The following patterns are considered violations:

a { @extend placeholder; }
@keyframes name {
  from { top: 10px; }
  to { top: 20px; }
}
@-moz-keyframes name {
  from { top: 10px; }
  to { top: 20px; }
}

The following patterns are not considered violations:

@import "path/to/file.css";