Skip to main content

no-duplicate-at-import-rules

禁止重复的 @import 规则。

¥Disallow duplicate @import rules.

    @import "a.css";
@import "a.css";
/** ↑

* These are duplicates */

message 次要选项 可以接受该规则的参数。

¥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;