You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins-stylelint/no-invalid-at-import-rules-when-bundling/index.test.mjs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ testRule({
39
39
{
40
40
code: '@import "/foo.css";',
41
41
description: 'Leading slashes are ambiguous',
42
-
message: 'URL\'s that start with a slash are ambiguous when bundling, use a relative URL instead.',
42
+
message: 'URL\'s that start with a slash are ambiguous when bundling, use a relative URL instead. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
43
43
line: 1,
44
44
column: 9,
45
45
endLine: 1,
@@ -48,7 +48,7 @@ testRule({
48
48
{
49
49
code: '@import "#foo.css";',
50
50
description: 'Leading number signs are invalid',
51
-
message: 'URL\'s that start with a number sign (#) are invalid when bundling.',
51
+
message: 'URL\'s that start with a number sign (#) are invalid when bundling. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
52
52
line: 1,
53
53
column: 9,
54
54
endLine: 1,
@@ -57,7 +57,7 @@ testRule({
57
57
{
58
58
code: '@import "foo.css?bar=1";',
59
59
description: 'Query params can not be processed by a bundler',
60
-
message: 'URL\'s that have query params can not be bundled correctly. Avoid these or add a \'http(s)\' scheme and domain name.',
60
+
message: 'URL\'s that have query params can not be bundled correctly. Avoid these or add a \'http(s)\' scheme and domain name. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
61
61
line: 1,
62
62
column: 9,
63
63
endLine: 1,
@@ -69,7 +69,7 @@ testRule({
69
69
@import "https://example.com/bar.css";
70
70
`,
71
71
description: 'Remote resources after a local import will not be bundled correctly',
72
-
message: '`@import` statements for remote resources after a local import will not be bundled correctly. Move these to the top of the file.',
72
+
message: '`@import` statements for remote resources after a local import will not be bundled correctly. Move these to the top of the file. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
73
73
line: 3,
74
74
column: 13,
75
75
endLine: 3,
@@ -81,7 +81,7 @@ testRule({
81
81
@import "//example.com/bar.css";
82
82
`,
83
83
description: 'Remote resources after a local import will not be bundled correctly',
84
-
message: '`@import` statements for remote resources after a local import will not be bundled correctly. Move these to the top of the file.',
84
+
message: '`@import` statements for remote resources after a local import will not be bundled correctly. Move these to the top of the file. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
85
85
line: 3,
86
86
column: 13,
87
87
endLine: 3,
@@ -90,7 +90,7 @@ testRule({
90
90
{
91
91
code: '@import "fOO.css";',
92
92
description: 'Case sensitivity',
93
-
message: 'URL\'s with uppercase characters might give conflicts between users on case sensitive or insensitive file systems. Use lower case characters only to avoid potential issues.',
93
+
message: 'URL\'s with uppercase characters might give conflicts between users on case sensitive or insensitive file systems. Use lower case characters only to avoid potential issues. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
94
94
line: 1,
95
95
column: 9,
96
96
endLine: 1,
@@ -99,7 +99,7 @@ testRule({
99
99
{
100
100
code: '@import "foo.css" { color: green; }',
101
101
description: 'Child nodes are not allowed',
102
-
message: '`@import` statements must not have any child nodes.',
102
+
message: '`@import` statements must not have any child nodes. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
103
103
line: 1,
104
104
column: 1,
105
105
endLine: 1,
@@ -108,7 +108,7 @@ testRule({
108
108
{
109
109
code: '@import "foo.css" {}',
110
110
description: 'Child nodes are not allowed',
111
-
message: '`@import` statements must not have any child nodes.',
111
+
message: '`@import` statements must not have any child nodes. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
112
112
line: 1,
113
113
column: 1,
114
114
endLine: 1,
@@ -117,7 +117,7 @@ testRule({
117
117
{
118
118
code: '@layer foo {} @import "foo.css";',
119
119
description: 'Order',
120
-
message: '`@import` statements must be precede all other nodes except for `@charset` or `@layer` and all `@import` statements must be consecutive.',
120
+
message: '`@import` statements must be precede all other nodes except for `@charset` or `@layer` and all `@import` statements must be consecutive. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
message: '`@import` statements must be precede all other nodes except for `@charset` or `@layer` and all `@import` statements must be consecutive.',
129
+
message: '`@import` statements must be precede all other nodes except for `@charset` or `@layer` and all `@import` statements must be consecutive. (@csstools/stylelint-no-invalid-at-import-rules-when-bundling)',
0 commit comments