Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
750 changed files
with
191,864 additions
and
90,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
,-[$DIR/tests/rules/fail/at-rule-no-unknown/default/input.css:1:1] | ||
1 | @test { | ||
: ^^^^ | ||
2 | } | ||
`---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
,-[$DIR/tests/rules/fail/at-rule-no-unknown/ignored/input.css:1:1] | ||
1 | @test { | ||
: ^^^^ | ||
2 | } | ||
`---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 15 additions & 9 deletions
24
crates/swc_css_lints/tests/rules/fail/color-hex-length/long/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
|
||
x Hex color value '#FFF' should be written into: '#FFFFFF'. | ||
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:2:5] | ||
2 | color: #FFF; | ||
: ^^^^ | ||
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:1:1] | ||
1 | a { | ||
2 | color: #FFF; | ||
: ^^^^ | ||
3 | color: #abcd; | ||
`---- | ||
|
||
x Hex color value '#abcd' should be written into: '#aabbccdd'. | ||
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:3:5] | ||
3 | color: #abcd; | ||
: ^^^^^ | ||
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:2:5] | ||
2 | color: #FFF; | ||
3 | color: #abcd; | ||
: ^^^^^ | ||
4 | color: #123; | ||
`---- | ||
|
||
x Hex color value '#123' should be written into: '#112233'. | ||
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:4:5] | ||
4 | color: #123; | ||
: ^^^^ | ||
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:3:5] | ||
3 | color: #abcd; | ||
4 | color: #123; | ||
: ^^^^ | ||
5 | } | ||
`---- |
24 changes: 15 additions & 9 deletions
24
crates/swc_css_lints/tests/rules/fail/color-hex-length/short/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
|
||
x Hex color value '#FFFFFF' should be written into: '#FFF'. | ||
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:2:5] | ||
2 | color: #FFFFFF; | ||
: ^^^^^^^ | ||
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:1:1] | ||
1 | a { | ||
2 | color: #FFFFFF; | ||
: ^^^^^^^ | ||
3 | color: #aabbccdd; | ||
`---- | ||
|
||
x Hex color value '#aabbccdd' should be written into: '#abcd'. | ||
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:3:5] | ||
3 | color: #aabbccdd; | ||
: ^^^^^^^^^ | ||
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:2:5] | ||
2 | color: #FFFFFF; | ||
3 | color: #aabbccdd; | ||
: ^^^^^^^^^ | ||
4 | color: #112233; | ||
`---- | ||
|
||
x Hex color value '#112233' should be written into: '#123'. | ||
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:4:5] | ||
4 | color: #112233; | ||
: ^^^^^^^ | ||
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:3:5] | ||
3 | color: #aabbccdd; | ||
4 | color: #112233; | ||
: ^^^^^^^ | ||
5 | } | ||
`---- |
32 changes: 20 additions & 12 deletions
32
crates/swc_css_lints/tests/rules/fail/color-no-invalid-hex/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
|
||
x Unexpected invalid hex color '#ababa'. | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:2:5] | ||
2 | color: #ababa; | ||
: ^^^^^^ | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:1:1] | ||
1 | a { | ||
2 | color: #ababa; | ||
: ^^^^^^ | ||
3 | } | ||
`---- | ||
|
||
x Unexpected invalid hex color '#00'. | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:6:5] | ||
6 | unknown: #00, #fff, #ababab; | ||
: ^^^ | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:5:1] | ||
5 | a { | ||
6 | unknown: #00, #fff, #ababab; | ||
: ^^^ | ||
7 | } | ||
`---- | ||
|
||
x Unexpected invalid hex color '#12345abcdefg'. | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:10:5] | ||
10 | color: #12345abcdefg; | ||
: ^^^^^^^^^^^^^ | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:9:1] | ||
9 | a { | ||
10 | color: #12345abcdefg; | ||
: ^^^^^^^^^^^^^ | ||
11 | } | ||
`---- | ||
|
||
x Unexpected invalid hex color '#xyz'. | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:14:5] | ||
14 | color: #xyz; | ||
: ^^^^ | ||
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:13:1] | ||
13 | a { | ||
14 | color: #xyz; | ||
: ^^^^ | ||
15 | } | ||
`---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
crates/swc_css_lints/tests/rules/fail/declaration-no-important/default/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
|
||
x Unexpected '!important'. | ||
,-[$DIR/tests/rules/fail/declaration-no-important/default/input.css:2:5] | ||
2 | color: #000 !important; | ||
: ^^^^^^^^^^ | ||
,-[$DIR/tests/rules/fail/declaration-no-important/default/input.css:1:1] | ||
1 | a { | ||
2 | color: #000 !important; | ||
: ^^^^^^^^^^ | ||
3 | } | ||
`---- |
8 changes: 5 additions & 3 deletions
8
crates/swc_css_lints/tests/rules/fail/declaration-no-important/keyframe/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
|
||
x Unexpected '!important'. | ||
,-[$DIR/tests/rules/fail/declaration-no-important/keyframe/input.css:12:5] | ||
12 | color: #111 !important; | ||
: ^^^^^^^^^^ | ||
,-[$DIR/tests/rules/fail/declaration-no-important/keyframe/input.css:11:1] | ||
11 | a { | ||
12 | color: #111 !important; | ||
: ^^^^^^^^^^ | ||
13 | } | ||
`---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
crates/swc_css_lints/tests/rules/fail/keyframe-declaration-no-important/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
|
||
x Unexpected '!important'. | ||
,-[$DIR/tests/rules/fail/keyframe-declaration-no-important/input.css:6:9] | ||
6 | opacity: 1 !important; | ||
: ^^^^^^^^^^ | ||
,-[$DIR/tests/rules/fail/keyframe-declaration-no-important/input.css:5:5] | ||
5 | to { | ||
6 | opacity: 1 !important; | ||
: ^^^^^^^^^^ | ||
7 | } | ||
`---- |
3 changes: 2 additions & 1 deletion
3
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/10/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
|
||
x Unexpected duplicate '@import' rule 'a.css'. | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/10/input.css:2:1] | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/10/input.css:1:1] | ||
1 | @IMPORT 'a.css'; | ||
2 | @ImPoRt 'a.css'; | ||
: ^^^^^^^^^^^^^^^^ | ||
`---- |
11 changes: 8 additions & 3 deletions
11
crates/swc_css_lints/tests/rules/fail/no-duplicate-at-import-rules/11/output.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
|
||
x Unexpected duplicate '@import' rule 'a.css'. | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:2:1] | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:1:1] | ||
1 | @import 'a.css' layer; | ||
2 | @import 'a.css' layer(); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
3 | @import 'a.css' layer(default); | ||
`---- | ||
|
||
x Unexpected duplicate '@import' rule 'a.css'. | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:3:1] | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:2:1] | ||
2 | @import 'a.css' layer(); | ||
3 | @import 'a.css' layer(default); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
4 | @import 'a.css' layer(other); | ||
`---- | ||
|
||
x Unexpected duplicate '@import' rule 'a.css'. | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:4:1] | ||
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:3:1] | ||
3 | @import 'a.css' layer(default); | ||
4 | @import 'a.css' layer(other); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- |
Oops, something went wrong.