Skip to content

Files

Latest commit

 

History

History
47 lines (32 loc) · 780 Bytes

at-rule-disallowed-list.md

File metadata and controls

47 lines (32 loc) · 780 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";

Further Reading