Skip to main content

no-duplicate-at-import-rules

Disallow duplicate @import rules.

    @import "a.css";
@import "a.css";
/** ↑
* These are duplicates */

The message secondary option can accept the arguments of this rule.

Options

true

The following patterns are considered problems:

@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 problems:

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