Skip to main content

no-duplicate-at-import-rules

Disallow duplicate @import rules within a stylesheet.

@import "a.css";
@import "a.css";
/** โ†‘
* These are duplicates */

Options#

true#

The following patterns are considered violations:

@import 'a.css';
@import 'a.css';
@import url("a.css");
@import url("a.css");
@import "a.css";
@import 'a.css';
@import "a.css";
@import 'b.css';
@import url(a.css);

The following patterns are not considered violations:

@import "a.css";
@import "b.css";
@import url('a.css') projection;
@import url('a.css') tv;