Skip to content

Commit

Permalink
implement suggestions, update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTimonius committed May 1, 2024
1 parent 1b2bb43 commit ea2f9dc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ impl Rule for NoDuplicateAtImportRules {
rule_category!(),
span,
markup! {
"Duplicate @import rule."
"Each "<Emphasis>"@import"</Emphasis>" should be unique unless differing by media queries."
},
)
.note(markup! {
"To fix this issue, remove one of the duplicated imports."
"Consider removing one of the duplicated imports."
}),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ expression: invalid.css
```
invalid.css:3:2 lint/nursery/noDuplicateAtImportRules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Duplicate @import rule.
! Each @import should be unique unless differing by media queries.
1 │ @import "a.css";
2 │ @import "b.css";
> 3 │ @import "a.css";
│ ^^^^^^^^^^^^^^^
4 │
i To fix this issue, remove one of the duplicated imports.
i Consider removing one of the duplicated imports.
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ expression: invalidMedia.css
```
invalidMedia.css:3:2 lint/nursery/noDuplicateAtImportRules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Duplicate @import rule.
! Each @import should be unique unless differing by media queries.
1 │ @import url("a.css") tv;
2 │ @import url("a.css") projection;
> 3 │ @import "a.css";
│ ^^^^^^^^^^^^^^^
4 │
i To fix this issue, remove one of the duplicated imports.
i Consider removing one of the duplicated imports.
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ expression: invalidMultipleMedia.css
```
invalidMultipleMedia.css:3:2 lint/nursery/noDuplicateAtImportRules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Duplicate @import rule.
! Each @import should be unique unless differing by media queries.
1 │ @import url("a.css") tv, projection;
2 │ @import url("a.css") mobile;
> 3 │ @import url("a.css") tv;
│ ^^^^^^^^^^^^^^^^^^^^^^^
4 │
i To fix this issue, remove one of the duplicated imports.
i Consider removing one of the duplicated imports.
```
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ expression: invalidUrls.css
```
invalidUrls.css:2:2 lint/nursery/noDuplicateAtImportRules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Duplicate @import rule.
! Each @import should be unique unless differing by media queries.
1 │ @import url("c.css");
> 2 │ @import url("c.css");
│ ^^^^^^^^^^^^^^^^^^^^
3 │
i To fix this issue, remove one of the duplicated imports.
i Consider removing one of the duplicated imports.
```

0 comments on commit ea2f9dc

Please sign in to comment.