Sha256: 505a380dcd7402d47a13b3c8c2305c8d6da216598a0701e22a23a7362e2e80ef

Contents?: true

Size: 814 Bytes

Versions: 24

Compression:

Stored size: 814 Bytes

Contents

# no-duplicate-at-import-rules

Disallow duplicate `@import` rules within a stylesheet.

<!-- prettier-ignore -->
```css
    @import "a.css";
    @import "a.css";
/** ↑
 * These are duplicates */
```

## Options

### `true`

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
@import 'a.css';
@import 'a.css';
```

<!-- prettier-ignore -->
```css
@import url("a.css");
@import url("a.css");
```

<!-- prettier-ignore -->
```css
@import "a.css";
@import 'a.css';
```

<!-- prettier-ignore -->
```css
@import "a.css";
@import 'b.css';
@import url(a.css);
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
@import "a.css";
@import "b.css";
```

<!-- prettier-ignore -->
```css
@import url('a.css') projection;
@import url('a.css') tv;
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md