Skip to content

Commit 94b3886

Browse files
committed
fix
1 parent a437bcd commit 94b3886

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • plugins-stylelint/no-invalid-at-import-rules-when-bundling

plugins-stylelint/no-invalid-at-import-rules-when-bundling/index.test.mjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ testRule({
3939
{
4040
code: '@import "/foo.css";',
4141
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)',
4343
line: 1,
4444
column: 9,
4545
endLine: 1,
@@ -48,7 +48,7 @@ testRule({
4848
{
4949
code: '@import "#foo.css";',
5050
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)',
5252
line: 1,
5353
column: 9,
5454
endLine: 1,
@@ -57,7 +57,7 @@ testRule({
5757
{
5858
code: '@import "foo.css?bar=1";',
5959
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)',
6161
line: 1,
6262
column: 9,
6363
endLine: 1,
@@ -69,7 +69,7 @@ testRule({
6969
@import "https://example.com/bar.css";
7070
`,
7171
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)',
7373
line: 3,
7474
column: 13,
7575
endLine: 3,
@@ -81,7 +81,7 @@ testRule({
8181
@import "//example.com/bar.css";
8282
`,
8383
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)',
8585
line: 3,
8686
column: 13,
8787
endLine: 3,
@@ -90,7 +90,7 @@ testRule({
9090
{
9191
code: '@import "fOO.css";',
9292
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)',
9494
line: 1,
9595
column: 9,
9696
endLine: 1,
@@ -99,7 +99,7 @@ testRule({
9999
{
100100
code: '@import "foo.css" { color: green; }',
101101
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)',
103103
line: 1,
104104
column: 1,
105105
endLine: 1,
@@ -108,7 +108,7 @@ testRule({
108108
{
109109
code: '@import "foo.css" {}',
110110
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)',
112112
line: 1,
113113
column: 1,
114114
endLine: 1,
@@ -117,7 +117,7 @@ testRule({
117117
{
118118
code: '@layer foo {} @import "foo.css";',
119119
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)',
121121
line: 1,
122122
column: 15,
123123
endLine: 1,
@@ -126,7 +126,7 @@ testRule({
126126
{
127127
code: '@import "foo.css"; .bar {} @import "bar.css";',
128128
description: 'Order',
129-
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)',
130130
line: 1,
131131
column: 28,
132132
endLine: 1,

0 commit comments

Comments
 (0)